!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){"use strict";var r,i,o,s,a,u,c,l,p,f,h,d,m,g,y,v,b,D,E,C,A,S,w,x,F,_,T,O;n.d(t,"m",(function(){return a})),n.d(t,"n",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return y})),n.d(t,"g",(function(){return D})),n.d(t,"d",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"l",(function(){return L})),n.d(t,"f",(function(){return B})),n.d(t,"j",(function(){return j})),n.d(t,"e",(function(){return $})),n.d(t,"o",(function(){return X})),n.d(t,"b",(function(){return ne})),n.d(t,"a",(function(){return oe})),n.d(t,"c",(function(){return se})),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.uinteger(t.line)&&Se.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,r){if(Se.uinteger(e)&&Se.uinteger(t)&&Se.uinteger(n)&&Se.uinteger(r))return{start:a.create(e,t),end:a.create(n,r)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},e.is=function(e){var t=e;return Se.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(u||(u={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&u.is(t.range)&&(Se.string(t.uri)||Se.undefined(t.uri))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&u.is(t.targetRange)&&Se.string(t.targetUri)&&u.is(t.targetSelectionRange)&&(u.is(t.originSelectionRange)||Se.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.numberRange(t.red,0,1)&&Se.numberRange(t.green,0,1)&&Se.numberRange(t.blue,0,1)&&Se.numberRange(t.alpha,0,1)}}(p||(p={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&u.is(t.range)&&p.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.string(t.label)&&(Se.undefined(t.textEdit)||C.is(t))&&(Se.undefined(t.additionalTextEdits)||Se.typedArray(t.additionalTextEdits,C.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(d||(d={})),function(e){e.create=function(e,t,n,r,i,o){var s={startLine:e,endLine:t};return Se.defined(n)&&(s.startCharacter=n),Se.defined(r)&&(s.endCharacter=r),Se.defined(i)&&(s.kind=i),Se.defined(o)&&(s.collapsedText=o),s},e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.uinteger(t.startLine)&&Se.uinteger(t.startLine)&&(Se.undefined(t.startCharacter)||Se.uinteger(t.startCharacter))&&(Se.undefined(t.endCharacter)||Se.uinteger(t.endCharacter))&&(Se.undefined(t.kind)||Se.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Se.defined(t)&&c.is(t.location)&&Se.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,i,o){var s={range:e,message:t};return Se.defined(n)&&(s.severity=n),Se.defined(r)&&(s.code=r),Se.defined(i)&&(s.source=i),Se.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t,n=e;return Se.defined(n)&&u.is(n.range)&&Se.string(n.message)&&(Se.number(n.severity)||Se.undefined(n.severity))&&(Se.integer(n.code)||Se.string(n.code)||Se.undefined(n.code))&&(Se.undefined(n.codeDescription)||Se.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Se.string(n.source)||Se.undefined(n.source))&&(Se.undefined(n.relatedInformation)||Se.typedArray(n.relatedInformation,g.is))}}(D||(D={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return Se.defined(t)&&Se.string(t.title)&&Se.string(t.command)}}(E||(E={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.string(t.newText)&&u.is(t.range)}}(C||(C={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return Se.objectLiteral(t)&&Se.string(t.label)&&(Se.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Se.string(t.description)||void 0===t.description)}}(A||(A={})),function(e){e.is=function(e){var t=e;return Se.string(t)}}(S||(S={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return C.is(t)&&(A.is(t.annotationId)||S.is(t.annotationId))}}(w||(w={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Se.defined(t)&&M.is(t.textDocument)&&Array.isArray(t.edits)}}(x||(x={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Se.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Se.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Se.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(F||(F={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Se.string(t.oldUri)&&Se.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Se.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Se.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(_||(_={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Se.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Se.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Se.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(T||(T={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Se.string(e.kind)?F.is(e)||_.is(e)||T.is(e):x.is(e)})))}}(O||(O={}));var N,k,M,P,L,I,B,j,R,U,V,W,$,q,Y,K,H,z,G,J,X,Q,Z,ee,te,ne,re,ie,oe,se,ae,ue,ce,le,pe,fe,he,de,me,ge,ye,ve,be,De,Ee=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=C.insert(e,t):S.is(n)?(i=n,r=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=w.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=C.replace(e,t):S.is(n)?(i=n,r=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=w.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=C.del(e):S.is(t)?(r=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=w.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(x.is(e)){var n=new Ee(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ee(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(M.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Ee(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Ee(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(A.is(t)||S.is(t)?r=t:n=t,void 0===r?i=F.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=F.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(A.is(n)||S.is(n)?i=n:r=n,void 0===i?o=_.create(e,t,r):(s=S.is(i)?i:this._changeAnnotations.manage(i),o=_.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(A.is(t)||S.is(t)?r=t:n=t,void 0===r?i=T.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=T.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Se.defined(t)&&Se.string(t.uri)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Se.defined(t)&&Se.string(t.uri)&&Se.integer(t.version)}}(k||(k={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Se.defined(t)&&Se.string(t.uri)&&(null===t.version||Se.integer(t.version))}}(M||(M={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Se.defined(t)&&Se.string(t.uri)&&Se.string(t.languageId)&&Se.integer(t.version)&&Se.string(t.text)}}(P||(P={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(L||(L={})),function(e){e.is=function(e){var t=e;return Se.objectLiteral(e)&&L.is(t.kind)&&Se.string(t.value)}}(I||(I={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(B||(B={})),function(e){e.PlainText=1,e.Snippet=2}(j||(j={})),function(e){e.Deprecated=1}(R||(R={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Se.string(t.newText)&&u.is(t.insert)&&u.is(t.replace)}}(U||(U={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.is=function(e){var t=e;return t&&(Se.string(t.detail)||void 0===t.detail)&&(Se.string(t.description)||void 0===t.description)}}(W||(W={})),function(e){e.create=function(e){return{label:e}}}($||($={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(q||(q={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Se.string(t)||Se.objectLiteral(t)&&Se.string(t.language)&&Se.string(t.value)}}(Y||(Y={})),function(e){e.is=function(e){var t=e;return!!t&&Se.objectLiteral(t)&&(I.is(t.contents)||Y.is(t.contents)||Se.typedArray(t.contents,Y.is))&&(void 0===e.range||u.is(e.range))}}(K||(K={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(H||(H={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;o--){var s=r[o],a=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=i))throw new Error("Overlapping edit");n=n.substring(0,a)+s.newText+n.substring(u,n.length),i=a}return n}}(Ae||(Ae={}));var Se,we=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return a.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return a.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{if(b)return"bypassHeatCheck";const e=null==y?void 0:y.env.VSCODE_BROWSER_CODE_LOADING})();if("object"!=typeof navigator||v)if("object"==typeof y){o="win32"===y.platform,s="darwin"===y.platform,a="linux"===y.platform,u=a&&!!y.env.SNAP&&!!y.env.SNAP_REVISION,f="en",h="en";const e=y.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];f=t.locale,h=n||"en",d=t._translationsConfigFile}catch(e){}c=!0}else console.error("Unable to resolve platform.");else m=navigator.userAgent,o=m.indexOf("Windows")>=0,s=m.indexOf("Macintosh")>=0,p=(m.indexOf("Macintosh")>=0||m.indexOf("iPad")>=0||m.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,a=m.indexOf("Linux")>=0,l=!0,f=navigator.language,h=f;let D=0;s?D=1:o?D=3:a&&(D=2);const E=o,C=s,A=l,S=function(){if(g.setImmediate)return g.setImmediate.bind(g);if("function"==typeof g.postMessage&&!g.importScripts){let e=[];g.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,r=e.length;n{const r=++t;e.push({id:r,callback:n}),g.postMessage({vscodeSetImmediateId:r},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const e=Promise.resolve();return t=>e.then(t)}()}).call(this,n(11),n(10))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9);var i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];t.Type=class{constructor(e,t){var n,s;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,s={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){s[String(t)]=e}))})),s),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(20);t.load=i.load,t.loadAll=i.loadAll,t.safeLoad=i.safeLoad,t.safeLoadAll=i.safeLoadAll;var o=n(44);t.dump=o.dump,t.safeDump=o.safeDump,t.YAMLException=n(9),r(n(6)),r(n(45))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var r=n(1);let i;if(void 0!==r.a.vscode&&void 0!==r.a.vscode.process){const e=r.a.vscode.process;i={get platform(){return e.platform},get env(){return e.env},cwd:()=>e.cwd(),nextTick:e=>Object(r.e)(e)}}else i=void 0!==e?{get platform(){return e.platform},get env(){return e.env},cwd:()=>e.env.VSCODE_CWD||e.cwd(),nextTick:t=>e.nextTick(t)}:{get platform(){return r.d?"win32":r.b?"darwin":"linux"},nextTick:e=>Object(r.e)(e),get env(){return Object.create(null)},cwd:()=>"/"};const o=i.cwd,s=i.env,a=i.platform}).call(this,n(10))},function(e,t,n){"use strict";(function(t){function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var i={resolve:function(){for(var e,i="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=t.cwd()),a=e),n(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCodeAt(0))}return i=r(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(n(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var r=1;rc){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else s>c&&(47===e.charCodeAt(r+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(r+p);if(f!==t.charCodeAt(a+p))break;47===f&&(l=p)}var h="";for(p=r+l+1;p<=o;++p)p!==o&&47!==e.charCodeAt(p)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(a+l):(a+=l,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r,i=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){i=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===o&&(s=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(o=!1,i=a+1),46===u?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){r=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,i=e.charCodeAt(0),o=47===i;o?(t.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,p=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===i?-1===s?s=l:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===p||1===p&&s===u-1&&s===a+1?-1!==u&&(t.base=t.name=0===a&&o?e.slice(1,u):e.slice(a,u)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,u)):(t.name=e.slice(a,s),t.base=e.slice(a,u)),t.ext=e.slice(s,u)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}).call(this,n(10))},function(e,t,n){"use strict";var r;function i(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:r.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(r=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var n=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:n,kind:r.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,n,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:n,kind:r.ANCHOR_REF,parent:null}},t.newScalar=function(e=""){const t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:r.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return"string"!=typeof e&&(t.valueObject=e),t},t.newItems=i,t.newSeq=function(){return i()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:r.MAP,parent:null}},t.isNodesEqual=function e(t,n){if(!t||!n)return!1;if(t.kind!==n.kind)return!1;if(t.kind===r.SCALAR)return t.value===n.value;if(t.kind===r.SEQ){const r=t,i=n;if(r.items.length!==i.items.length)return!1;for(let t=0;te(n,t.key));if(!o)return!1;if(!e(r,o.value))return!1}return!0}if(r.MAPPING===t.kind){const r=n;return e(t.key,r.key)}return!1},t.isYAMLNode=function(e){return void 0!==e.startPosition&&void 0!==e.endPosition&&void 0!==e.kind}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8),i=n(9),o=n(2);function s(e,t,n){var r=[];return e.include.forEach((function(e){n=s(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}class a{constructor(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={};function r(e){n[e.tag]=e}for(e=0,t=arguments.length;e1)for(var n=1;ne?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function a(e){const t=s(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,i){return new r(e,t,n,i)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let n=e.getText(),r=function e(t,n){if(t.length<=1)return t;const r=t.length/2|0,i=t.slice(0,r),o=t.slice(r);e(i,n),e(o,n);let s=0,a=0,u=0;for(;s{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),i=0;const o=[];for(const t of r){let r=e.offsetAt(t.range.start);if(ri&&o.push(n.substring(i,r)),t.newText.length&&o.push(t.newText),i=e.offsetAt(t.range.end)}return o.push(n.substr(i)),o.join("")}}(i||(i={}))},function(e,t,n){"use strict";const r=n(7);var i=new r.Schema({include:[n(12)],explicit:[n(42),n(43)]});r.Schema.DEFAULT=i,e.exports=i},function(e,t,n){"use strict"; /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function r(e){return null==e}n.d(t,"a",(function(){return _e}));var i={isNothing:r,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:r(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;na&&(t=r-a+(o=" ... ").length),n-r>a&&(n=r+a-(s=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function c(e,t){return i.repeat(" ",t-e.length)+e}var l=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,o=[0],s=[],a=-1;n=r.exec(e.buffer);)s.push(n.index),o.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);var l,p,f="",h=Math.min(e.line+t.linesAfter,s.length).toString().length,d=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)p=u(e.buffer,o[a-l],s[a-l],e.position-(o[a]-o[a-l]),d),f=i.repeat(" ",t.indent)+c((e.line-l+1).toString(),h)+" | "+p.str+"\n"+f;for(p=u(e.buffer,o[a],s[a],e.position,d),f+=i.repeat(" ",t.indent)+c((e.line+1).toString(),h)+" | "+p.str+"\n",f+=i.repeat("-",t.indent+h+3+p.pos)+"^\n",l=1;l<=t.linesAfter&&!(a+l>=s.length);l++)p=u(e.buffer,o[a+l],s[a+l],e.position-(o[a]-o[a+l]),d),f+=i.repeat(" ",t.indent)+c((e.line+l+1).toString(),h)+" | "+p.str+"\n";return f.replace(/\n$/,"")},p=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],f=["scalar","sequence","mapping"];var h=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===p.indexOf(t))throw new a('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===f.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function d(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function m(e){return this.extend(e)}m.prototype.extend=function(e){var t=[],n=[];if(e instanceof h)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new a("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof h))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof h))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(m.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=d(r,"implicit"),r.compiledExplicit=d(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var F=/^[-+]?[0-9]+e/;var _=new h("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!x.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||i.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(e))return"-0.0";return n=e.toString(10),F.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),T=D.extend({implicit:[E,C,w,_]}),O=T,N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),k=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var M=new h("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==N.exec(e)||null!==k.exec(e))},construct:function(e){var t,n,r,i,o,s,a,u,c=0,l=null;if(null===(t=N.exec(e))&&(t=k.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),u=new Date(Date.UTC(n,r,i,o,s,a,c)),l&&u.setTime(u.getTime()-l),u},instanceOf:Date,represent:function(e){return e.toISOString()}});var P=new h("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var I=new h("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,o=L;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=L,s=0,a=[];for(t=0;t>16&255),a.push(s>>8&255),a.push(255&s)),s=s<<6|o.indexOf(r.charAt(t));return 0===(n=i%4*6)?(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)):18===n?(a.push(s>>10&255),a.push(s>>2&255)):12===n&&a.push(s>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,o=e.length,s=L;for(t=0;t>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0===(n=o%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}}),B=Object.prototype.hasOwnProperty,j=Object.prototype.toString;var R=new h("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,s=[],a=e;for(t=0,n=a.length;t>10),56320+(e-65536&1023))}for(var oe=new Array(256),se=new Array(256),ae=0;ae<256;ae++)oe[ae]=re(ae)?1:0,se[ae]=re(ae);function ue(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||q,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ce(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=l(n),new a(t,n)}function le(e,t){throw ce(e,t)}function pe(e,t){e.onWarning&&e.onWarning.call(null,ce(e,t))}var fe={YAML:function(e,t,n){var r,i,o;null!==e.version&&le(e,"duplication of %YAML directive"),1!==n.length&&le(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&le(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&le(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&pe(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&le(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],G.test(r)||le(e,"ill-formed tag handle (first argument) of the TAG directive"),Y.call(e.tagMap,r)&&le(e,'there is a previously declared suffix for "'+r+'" tag handle'),J.test(i)||le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){le(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function he(e,t,n,r){var i,o,s,a;if(t1&&(e.result+=i.repeat("\n",t-1))}function De(e,t){var n,r,i=e.tag,o=e.anchor,s=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation")),45===r)&&ee(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,ye(e,!0,-1)&&e.lineIndent<=t)s.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,Ae(e,t,3,!1,!0),s.push(e.result),ye(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)le(e,"bad indentation of a sequence entry");else if(e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt)&&(y&&(s=e.line,a=e.lineStart,u=e.position),Ae(e,t,4,!0,i)&&(y?m=e.result:g=e.result),y||(me(e,f,h,d,m,g,s,a,u),d=m=g=null),ye(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==c)le(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?le(e,"repeat of an indentation width identifier"):(p=t+o-1,l=!0)}if(Z(s)){do{s=e.input.charCodeAt(++e.position)}while(Z(s));if(35===s)do{s=e.input.charCodeAt(++e.position)}while(!Q(s)&&0!==s)}for(;0!==s;){for(ge(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!l||e.lineIndentp&&(p=e.lineIndent),Q(s))f++;else{if(e.lineIndent0){for(i=s,o=0;i>0;i--)(s=ne(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:le(e,"expected hexadecimal character");e.result+=ie(o),e.position++}else le(e,"unknown escape sequence");n=r=e.position}else Q(a)?(he(e,n,r,!0),be(e,ye(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ve(e)?le(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}le(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ee(r)&&!te(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&le(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Y.call(e.anchorMap,n)||le(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ye(e,!0,-1),!0}(e)?function(e,t,n){var r,i,o,s,a,u,c,l,p=e.kind,f=e.result;if(ee(l=e.input.charCodeAt(e.position))||te(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(ee(r=e.input.charCodeAt(e.position+1))||n&&te(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==l;){if(58===l){if(ee(r=e.input.charCodeAt(e.position+1))||n&&te(r))break}else if(35===l){if(ee(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&ve(e)||n&&te(l))break;if(Q(l)){if(a=e.line,u=e.lineStart,c=e.lineIndent,ye(e,!1,-1),e.lineIndent>=t){s=!0,l=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=u,e.lineIndent=c;break}}s&&(he(e,i,o,!1),be(e,e.line-a),i=o=e.position,s=!1),Z(l)||(o=e.position+1),l=e.input.charCodeAt(++e.position)}return he(e,i,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,h,1===n)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||le(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=u&&De(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&le(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c"),null!==e.result&&f.kind!==e.kind&&le(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):le(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function Se(e){var t,n,r,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(ye(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!ee(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&le(e,"directive name must not be less than one character in length");0!==i;){for(;Z(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!Q(i));break}if(Q(i))break;for(t=e.position;0!==i&&!ee(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&ge(e),Y.call(fe,n)?fe[n](e,n,r):pe(e,'unknown document directive "'+n+'"')}ye(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ye(e,!0,-1)):s&&le(e,"directives end mark is expected"),Ae(e,e.lineIndent-1,4,!1,!0),ye(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(o,e.position))&&pe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ve(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,ye(e,!0,-1)):e.position=10.13.0"},i={"@angular/compiler":"9.0.5","@babel/code-frame":"7.8.0","@babel/parser":"7.9.4","@glimmer/syntax":"0.50.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.26.0","angular-estree-parser":"1.3.0","angular-html-parser":"1.4.0",camelcase:"5.3.1",chalk:"4.0.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"6.0.0",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"2.0.0",esutils:"2.0.3","fast-glob":"3.2.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.122.0","get-stream":"5.1.0",globby:"11.0.0",graphql:"15.0.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5",ignore:"4.0.6","jest-docblock":"25.2.6","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.9.0",lodash:"4.17.15",mem:"6.0.1",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.16.1",semver:"7.1.3",srcset:"2.0.1","string-width":"4.2.0",typescript:"3.8.3","unicode-regex":"3.0.0",unified:"9.0.0",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},o={"@babel/core":"7.9.0","@babel/preset-env":"7.9.0","@rollup/plugin-alias":"3.0.1","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-json":"4.0.2","@rollup/plugin-node-resolve":"7.1.1","@rollup/plugin-replace":"2.3.1","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.5","cross-env":"7.0.2",cspell:"4.0.55",eslint:"6.8.0","eslint-config-prettier":"6.10.1","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.20.2","eslint-plugin-prettier":"3.1.2","eslint-plugin-react":"7.19.0","eslint-plugin-unicorn":"18.0.1",execa:"4.0.0",jest:"25.2.7","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.5.0",prettier:"2.0.4",rimraf:"3.0.2",rollup:"2.3.2","rollup-plugin-babel":"4.4.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"5.3.0",shelljs:"0.8.3","snapshot-diff":"0.7.0","strip-ansi":"6.0.0","synchronous-promise":"2.0.10",tempy:"0.5.0","terser-webpack-plugin":"2.3.5",webpack:"4.42.1"},s={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier "**/*.{md,json,yml,html,css}" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":"cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md","lint:deps":"node ./scripts/check-deps.js",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},a={name:"prettier",version:"2.0.5",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:i,devDependencies:o,scripts:s},u=Object.freeze({__proto__:null,name:"prettier",version:"2.0.5",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:i,devDependencies:o,scripts:s,default:a});function c(){}function l(e,t,n,r,i){for(var o=0,s=t.length,a=0,u=0;oe.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(u+=c.count)}}var f=t[s-1];return s>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[s-2].value+=f.value,t.pop()),t}function p(e){return{newPos:e.newPos,components:e.components.slice(0)}}c.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function o(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,u=1,c=s+a,f=[{newPos:-1,components:[]}],h=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=s&&h+1>=a)return o([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*u;n<=u;n+=2){var r=void 0,c=f[n-1],h=f[n+1],d=(h?h.newPos:0)-n;c&&(f[n-1]=void 0);var m=c&&c.newPos+1=s&&d+1>=a)return o(l(i,r.components,t,e,i.useLongestToken));f[n]=r}else f[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>c)return r();d()||e()}),0)}();else for(;u<=c;){var m=d();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,s=e.newPos,a=s-r,u=0;s+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var e={};for(i.push(e);o2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=F(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function h(e,t){for(var n=0;n0?r[0]:" ",s=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,o[t],i,s)&&++c>l)return!1;t++}}return!0}for(var d=0;d0?w[0]:" ",T=w.length>0?w.substr(1):w,O=C.linedelimiters[S];if(" "===x)A++;else if("-"===x)o.splice(A,1),s.splice(A,1);else if("+"===x)o.splice(A,0,T),s.splice(A,0,O),A++;else if("\\"===x){var N=C.lines[S-1]?C.lines[S-1][0]:null;"+"===N?r=!0:"-"===N&&(i=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),s.pop();else i&&(o.push(""),s.push("\n"));for(var k=0;k0?u(m.lines.slice(-s.context)):[],l-=f.length,p-=f.length)}(o=f).push.apply(o,C(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?d+=i.length:h+=i.length}else{if(l)if(i.length<=2*s.context&&e=a.length-2&&i.length<=s.context){var D=/\n$/.test(n),E=/\n$/.test(r),A=0==i.length&&f.length>b.oldLines;!D&&A&&f.splice(b.oldLines,0,"\\ No newline at end of file"),(D||A)&&E||f.push("\\ No newline at end of file")}c.push(b),l=0,p=0,f=[]}h+=i.length,d+=i.length}},g=0;ge.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((i=r.value,void 0,i.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var i;return t.join("")},canonicalize:w}),G=Object.freeze({__proto__:null,default:{}});const J=/[\\/]/;function X(e){return e.split(J).pop()}var Q=Object.freeze({__proto__:null,extname:function(e){const t=X(e),n=t.lastIndexOf(".");return-1===n?"":t.slice(n)},basename:X,isAbsolute:function(){return!0}}),Z=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ee=[],te=[],ne="undefined"!=typeof Uint8Array?Uint8Array:Array,re=!1;function ie(){re=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ee[i>>12&63]+ee[i>>6&63]+ee[63&i]);return o.join("")}function se(e){var t;re||ie();for(var n=e.length,r=n%3,i="",o=[],s=0,a=n-r;sa?a:s+16383));return 1===r?(t=e[n-1],i+=ee[t>>2],i+=ee[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=ee[t>>10],i+=ee[t>>4&63],i+=ee[t<<2&63],i+="="),o.push(i),o.join("")}function ae(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)}function ue(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}var ce={}.toString,le=Array.isArray||function(e){return"[object Array]"==ce.call(e)};function pe(){return he.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fe(e,t){if(pe()=pe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+pe().toString(16)+" bytes");return 0|e}function be(e){return!(null==e||!e._isBuffer)}function De(e,t){if(be(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ye(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ke(e).length;default:if(r)return Ye(e).length;t=(""+t).toLowerCase(),r=!0}}function Ee(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Le(this,t,n);case"utf8":case"utf-8":return ke(this,t,n);case"ascii":return Me(this,t,n);case"latin1":case"binary":return Pe(this,t,n);case"base64":return Ne(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ce(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ae(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=he.from(t,r)),be(t))return 0===t.length?-1:Se(e,t,n,r,i);if("number"==typeof t)return t&=255,he.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Se(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Se(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Ne(e,t,n){return 0===t&&n===e.length?se(e):se(e.slice(t,n))}function ke(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;ri)&&(n=i);for(var o="",s=t;sn)throw new RangeError("Trying to access beyond buffer length")}function je(e,t,n,r,i,o){if(!be(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Re(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function Ue(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function Ve(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function We(e,t,n,r,i){return i||Ve(e,0,n,4),ue(e,t,n,r,23,4),n+4}function $e(e,t,n,r,i){return i||Ve(e,0,n,8),ue(e,t,n,r,52,8),n+8}he.TYPED_ARRAY_SUPPORT=void 0===Z.TYPED_ARRAY_SUPPORT||Z.TYPED_ARRAY_SUPPORT,he.poolSize=8192,he._augment=function(e){return e.__proto__=he.prototype,e},he.from=function(e,t,n){return de(null,e,t,n)},he.TYPED_ARRAY_SUPPORT&&(he.prototype.__proto__=Uint8Array.prototype,he.__proto__=Uint8Array),he.alloc=function(e,t,n){return function(e,t,n,r){return me(t),t<=0?fe(e,t):void 0!==n?"string"==typeof r?fe(e,t).fill(n,r):fe(e,t).fill(n):fe(e,t)}(null,e,t,n)},he.allocUnsafe=function(e){return ge(null,e)},he.allocUnsafeSlow=function(e){return ge(null,e)},he.isBuffer=function(e){return null!=e&&(!!e._isBuffer||ze(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ze(e.slice(0,0))}(e))},he.compare=function(e,t){if(!be(e)||!be(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},he.prototype.compare=function(e,t,n,r,i){if(!be(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return we(this,e,t,n);case"utf8":case"utf-8":return xe(this,e,t,n);case"ascii":return Fe(this,e,t,n);case"latin1":case"binary":return _e(this,e,t,n);case"base64":return Te(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},he.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},he.prototype.readUInt8=function(e,t){return t||Be(e,1,this.length),this[e]},he.prototype.readUInt16LE=function(e,t){return t||Be(e,2,this.length),this[e]|this[e+1]<<8},he.prototype.readUInt16BE=function(e,t){return t||Be(e,2,this.length),this[e]<<8|this[e+1]},he.prototype.readUInt32LE=function(e,t){return t||Be(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},he.prototype.readUInt32BE=function(e,t){return t||Be(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},he.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Be(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},he.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Be(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},he.prototype.readInt8=function(e,t){return t||Be(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},he.prototype.readInt16LE=function(e,t){t||Be(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},he.prototype.readInt16BE=function(e,t){t||Be(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},he.prototype.readInt32LE=function(e,t){return t||Be(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},he.prototype.readInt32BE=function(e,t){return t||Be(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},he.prototype.readFloatLE=function(e,t){return t||Be(e,4,this.length),ae(this,e,!0,23,4)},he.prototype.readFloatBE=function(e,t){return t||Be(e,4,this.length),ae(this,e,!1,23,4)},he.prototype.readDoubleLE=function(e,t){return t||Be(e,8,this.length),ae(this,e,!0,52,8)},he.prototype.readDoubleBE=function(e,t){return t||Be(e,8,this.length),ae(this,e,!1,52,8)},he.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||je(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},he.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,1,255,0),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},he.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Re(this,e,t,!0),t+2},he.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Re(this,e,t,!1),t+2},he.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ue(this,e,t,!0),t+4},he.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ue(this,e,t,!1),t+4},he.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);je(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},he.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);je(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},he.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,1,127,-128),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},he.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Re(this,e,t,!0),t+2},he.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Re(this,e,t,!1),t+2},he.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,4,2147483647,-2147483648),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ue(this,e,t,!0),t+4},he.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||je(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ue(this,e,t,!1),t+4},he.prototype.writeFloatLE=function(e,t,n){return We(this,e,t,!0,n)},he.prototype.writeFloatBE=function(e,t,n){return We(this,e,t,!1,n)},he.prototype.writeDoubleLE=function(e,t,n){return $e(this,e,t,!0,n)},he.prototype.writeDoubleBE=function(e,t,n){return $e(this,e,t,!1,n)},he.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!he.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ke(e){return function(e){var t,n,r,i,o,s;re||ie();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ne(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=te[e.charCodeAt(t)]<<2|te[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=te[e.charCodeAt(t)]<<10|te[e.charCodeAt(t+1)]<<4|te[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(qe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function He(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ze(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xe(e,t){return e(t={exports:{}},t.exports),t.exports}function Qe(e){return e&&e.default||e}var Ze=Qe(G),et=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:Ze.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){Ze.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,i=0;for(;;){let o=e[r++];if(o===this.newLineCharacter)t=e.slice(i,r),n.push(t),i=r;else if(!o)break}let o=e.slice(i,r);return o.length&&n.push(o),n}_readChunk(e){let t,n=0;const r=[];do{const e=new he(this.options.readChunk);t=Ze.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let i=he.concat(r);return t=0||(i[n]=e[n]);return i}function at(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ut(){throw new Error("setTimeout has not been defined")}function ct(){throw new Error("clearTimeout has not been defined")}var lt=ut,pt=ct;function ft(e){if(lt===setTimeout)return setTimeout(e,0);if((lt===ut||!lt)&&setTimeout)return lt=setTimeout,setTimeout(e,0);try{return lt(e,0)}catch(t){try{return lt.call(null,e,0)}catch(t){return lt.call(this,e,0)}}}"function"==typeof Z.setTimeout&&(lt=setTimeout),"function"==typeof Z.clearTimeout&&(pt=clearTimeout);var ht,dt=[],mt=!1,gt=-1;function yt(){mt&&ht&&(mt=!1,ht.length?dt=ht.concat(dt):gt=-1,dt.length&&vt())}function vt(){if(!mt){var e=ft(yt);mt=!0;for(var t=dt.length;t;){for(ht=dt,dt=[];++gt1)for(var n=1;nconsole.error("SEMVER",...e):()=>{},Mt={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Pt=Xe((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Mt,r=(t=e.exports={}).re=[],i=t.src=[],o=t.t={};let s=0;const a=(e,t,n)=>{const a=s++;kt(a,t),o[e]=a,i[a]=t,r[a]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(i[o.NUMERICIDENTIFIER],")\\.")+"(".concat(i[o.NUMERICIDENTIFIER],")\\.")+"(".concat(i[o.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(i[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[o.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(i[o.NUMERICIDENTIFIER],"|").concat(i[o.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[o.NUMERICIDENTIFIERLOOSE],"|").concat(i[o.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(i[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[o.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(i[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[o.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(i[o.BUILDIDENTIFIER],"(?:\\.").concat(i[o.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(i[o.MAINVERSION]).concat(i[o.PRERELEASE],"?").concat(i[o.BUILD],"?")),a("FULL","^".concat(i[o.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(i[o.MAINVERSIONLOOSE]).concat(i[o.PRERELEASELOOSE],"?").concat(i[o.BUILD],"?")),a("LOOSE","^".concat(i[o.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(i[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(i[o.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:".concat(i[o.PRERELEASE],")?").concat(i[o.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[o.PRERELEASELOOSE],")?").concat(i[o.BUILD],"?")+")?)?"),a("XRANGE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",i[o.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(i[o.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(i[o.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(i[o.GTLT],"\\s*(").concat(i[o.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],"|").concat(i[o.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(i[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*")}));Pt.re,Pt.src,Pt.t,Pt.tildeTrimReplace,Pt.caretTrimReplace,Pt.comparatorTrimReplace;const Lt=/^[0-9]+$/,It=(e,t)=>{const n=Lt.test(e),r=Lt.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eIt(t,e)};const{MAX_LENGTH:jt,MAX_SAFE_INTEGER:Rt}=Mt,{re:Ut,t:Vt}=Pt,{compareIdentifiers:Wt}=Bt;class $t{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $t){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>jt)throw new TypeError("version is longer than ".concat(jt," characters"));kt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?Ut[Vt.LOOSE]:Ut[Vt.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Rt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Rt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Rt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var qt=$t,Yt=(e,t,n)=>new qt(e,n).compare(new qt(t,n)),Kt=(e,t,n)=>Yt(e,t,n)<0,Ht=(e,t,n)=>Yt(e,t,n)>=0,zt=Xe((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:"Global",description:zt(Qt()),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:"Config"},printWidth:{since:"0.0.0",category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:zt(Xt()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:zt(Jt()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:zt(Gt()),cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."}}},nn=Qe(u);const rn={compare:Yt,lt:Kt,gte:Ht},on=nn.version,sn=tn.options;var an={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const i=on.split("-",1)[0],o=((e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n)))(Object.assign({},...e.map(({options:e})=>e),sn),"name").filter(e=>s(e)&&a(e)).sort((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(s).sort((e,t)=>rn.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>s(e)&&a(e)));const n=e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).reduce((e,n)=>(e[n.name]=n.defaultOptions[t.name],e),{});return Object.assign({},t,{pluginDefaults:n})});return{languages:e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(s),options:o};function s(e){return t||!("since"in e)||e.since&&rn.gte(i,e.since)}function a(e){return n||!("deprecated"in e)||e.deprecated&&rn.lt(i,e.deprecated)}}},un=function(e,t){return(un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},cn=function(){return(cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function pn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function fn(e){return this instanceof fn?(this.v=e,this):new fn(e)}var hn=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}un(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return cn},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof fn?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:fn(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=ln(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),dn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(e=>t.apiDescriptor.value(e)).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}}));Je(dn),dn.apiDescriptor;var mn=Qe(hn),gn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(dn,t)}));Je(gn);var yn=/[|\\{}()[\]^$+*?.]/g,vn=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(yn,"\\$&")},bn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Dn=Xe((function(e){var t={};for(var n in bn)bn.hasOwnProperty(n)&&(t[bn[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,s=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?i=o=0:(o=l/c,t=p(s),n=p(a),r=p(u),s===c?i=r-n:a===c?i=1/3+t-r:u===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i,o,s=1/0;for(var a in bn)if(bn.hasOwnProperty(a)){var u=bn[a],c=(i=e,o=u,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,s=i,a=c;break;case 1:o=i,s=n,a=c;break;case 2:o=c,s=n,a=i;break;case 3:o=c,s=i,a=n;break;case 4:o=i,s=c,a=n;break;case 5:o=n,s=c,a=i}return[255*o,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function En(e){var t=function(){for(var e={},t=Object.keys(Dn),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var wn=Sn,xn=Xe((function(e){const t=(e,t)=>function(){const n=e.apply(wn,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(wn,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(wn,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(s,10)};for(let e of Object.keys(wn)){if("object"!=typeof wn[e])continue;const o=wn[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=t(o.ansi16,0),i.bgColor.ansi[e]=t(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=n(o.ansi256,0),i.bgColor.ansi256[e]=n(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=r(o.rgb,0),i.bgColor.ansi16m[e]=r(o.rgb,10))}return i}})})),Fn={EOL:"\n"},_n=(e,t)=>{t=t||Nt.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}(function(e){if(!1===On)return 0;if(_n("color=16m")||_n("color=full")||_n("color=truecolor"))return 3;if(_n("color=256"))return 2;if(e&&!e.isTTY&&!0!==On)return 0;const t=On?1:0;if("win32"===Nt.platform){const e=Fn.release().split(".");return Number(Nt.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Tn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Tn)||"codeship"===Tn.CI_NAME?1:t;if("TEAMCITY_VERSION"in Tn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Tn.TEAMCITY_VERSION)?1:0;if("truecolor"===Tn.COLORTERM)return 3;if("TERM_PROGRAM"in Tn){const e=parseInt((Tn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Tn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Tn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Tn.TERM)||"COLORTERM"in Tn?1:(Tn.TERM,t)}(e))}_n("no-color")||_n("no-colors")||_n("color=false")?On=!1:(_n("color")||_n("colors")||_n("color=true")||_n("color=always"))&&(On=!0),"FORCE_COLOR"in Tn&&(On=0===Tn.FORCE_COLOR.length||0!==parseInt(Tn.FORCE_COLOR,10));var kn={supportsColor:Nn,stdout:Nn(Nt.stdout),stderr:Nn(Nt.stderr)};const Mn=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Pn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ln=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,In=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Bn=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function jn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Bn.get(e)||e}function Rn(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r)if(isNaN(t)){if(!(i=t.match(Ln)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(i[2].replace(In,(e,t,n)=>t?jn(t):n))}else n.push(Number(t));return n}function Un(e){Pn.lastIndex=0;const t=[];let n;for(;null!==(n=Pn.exec(e));){const e=n[1];if(n[2]){const r=Rn(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Vn(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var Wn=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Mn,(t,o,s,a,u,c)=>{if(o)i.push(jn(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Vn(e,n)(t)),n.push({inverse:s,styles:Un(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Vn(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},$n=Xe((function(e){const t=kn.stdout,n="win32"===Nt.platform&&!(Nt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(xn.blue.open="");for(const e of Object.keys(xn))xn[e].closeRe=new RegExp(vn(xn[e].close),"g"),o[e]={get(){const t=xn[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};o.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},xn.color.closeRe=new RegExp(vn(xn.color.close),"g");for(const e of Object.keys(xn.color.ansi))i.has(e)||(o[e]={get(){const t=this.level;return function(){const n=xn.color[r[t]][e].apply(null,arguments),i={open:n,close:xn.color.close,closeRe:xn.color.closeRe};return c.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});xn.bgColor.closeRe=new RegExp(vn(xn.bgColor.close),"g");for(const e of Object.keys(xn.bgColor.ansi))i.has(e)||(o["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n=xn.bgColor[r[t]][e].apply(null,arguments),i={open:n,close:xn.bgColor.close,closeRe:xn.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});const u=Object.defineProperties(()=>{},o);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{const r=["".concat($n.default.yellow("string"==typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat($n.default.blue("string"==typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}})));Je(qn),qn.commonDeprecatedHandler;var Yn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(qn,t)}));Je(Yn);var Kn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(e,t,n)=>["Invalid ".concat($n.default.red(n.descriptor.key(e))," value."),"Expected ".concat($n.default.blue(n.schemas[e].expected(n)),","),"but received ".concat($n.default.red(n.descriptor.value(t)),".")].join(" ")}));Je(Kn),Kn.commonInvalidHandler;var Hn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(Kn,t)}));Je(Hn);var zn=[],Gn=[],Jn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(e,t,{descriptor:n,logger:r,schemas:i})=>{const o=["Ignored unknown option ".concat($n.default.yellow(n.pair({key:e,value:t})),".")],s=Object.keys(i).sort().find(t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;if(0===r)return i;for(var o,s,a,u,c=0;cs?u>s?s+1:u:u>a?a+1:u;return s}(e,t)<3);s&&o.push("Did you mean ".concat($n.default.blue(n.key(s)),"?")),r.warn(o.join(" "))}}));Je(Jn),Jn.levenUnknownHandler;var Xn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(Jn,t)}));Je(Xn);var Qn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(Yn,t),mn.__exportStar(Hn,t),mn.__exportStar(Xn,t)}));Je(Qn);var Zn=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){const r=new e(t),s=Object.create(r);for(const e of n)e in t&&(s[e]=o(t[e],r,i.prototype[e].length));return s}t.createSchema=r;class i{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function o(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}t.Schema=i}));Je(Zn),Zn.createSchema,Zn.Schema;var er=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}t.AliasSchema=n}));Je(er),er.AliasSchema;var tr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=n}));Je(tr),tr.AnySchema;var nr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=mn.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){const n=[];for(const i of e){const e=t.normalizeForwardResult(this._valueSchema.forward(i,t),i);n.push(...e.map(r))}return n}redirect(e,t){const n=[],i=[];for(const o of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in e&&n.push(e.remain),i.push(...e.redirect.map(r))}return 0===n.length?{redirect:i}:{redirect:i,remain:n}}overlap(e,t){return e.concat(t)}}function r({from:e,to:t}){return{from:[e],to:t}}t.ArraySchema=n}));Je(nr),nr.ArraySchema;var rr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}t.BooleanSchema=n}));Je(rr),rr.BooleanSchema;var ir=Xe((function(e,t){function n(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>n(e,t)):[n(e,t)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},t.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},t.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},t.partition=function(e,t){const n=[],r=[];for(const i of e)t(i)?n.push(i):r.push(i);return[n,r]},t.isInt=function(e){return e===Math.floor(e)},t.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},t.normalizeDefaultResult=function(e){return void 0===e?{}:e},t.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},t.normalizeDeprecatedResult=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){const n=r("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));Je(ir),ir.recordFromArray,ir.mapFromArray,ir.createAutoChecklist,ir.partition,ir.isInt,ir.comparePrimitive,ir.normalizeDefaultResult,ir.normalizeValidateResult,ir.normalizeDeprecatedResult,ir.normalizeTransferResult,ir.normalizeForwardResult,ir.normalizeRedirectResult;var or=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{constructor(e){super(e),this._choices=ir.mapFromArray(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(ir.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}t.ChoiceSchema=n}));Je(or),or.ChoiceSchema;var sr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}t.NumberSchema=n}));Je(sr),sr.NumberSchema;var ar=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends sr.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&ir.isInt(e)}}t.IntegerSchema=n}));Je(ar),ar.IntegerSchema;var ur=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Zn.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}t.StringSchema=n}));Je(ur),ur.StringSchema;var cr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(er,t),mn.__exportStar(tr,t),mn.__exportStar(nr,t),mn.__exportStar(rr,t),mn.__exportStar(or,t),mn.__exportStar(ar,t),mn.__exportStar(sr,t),mn.__exportStar(ur,t)}));Je(cr);var lr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=dn.apiDescriptor,t.defaultUnknownHandler=Jn.levenUnknownHandler,t.defaultInvalidHandler=Hn.commonInvalidHandler,t.defaultDeprecatedHandler=qn.commonDeprecatedHandler}));Je(lr),lr.defaultDescriptor,lr.defaultUnknownHandler,lr.defaultInvalidHandler,lr.defaultDeprecatedHandler;var pr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(e,t,r)=>new n(t,r).normalize(e);class n{constructor(e,t){const{logger:n=console,descriptor:r=lr.defaultDescriptor,unknown:i=lr.defaultUnknownHandler,invalid:o=lr.defaultInvalidHandler,deprecated:s=lr.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:ir.recordFromArray(e,"name"),normalizeDefaultResult:ir.normalizeDefaultResult,normalizeDeprecatedResult:ir.normalizeDeprecatedResult,normalizeForwardResult:ir.normalizeForwardResult,normalizeRedirectResult:ir.normalizeRedirectResult,normalizeValidateResult:ir.normalizeValidateResult},this._unknownHandler=i,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=ir.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const e of Object.keys(this._utils.schemas)){const r=this._utils.schemas[e];if(!(e in t)){const t=ir.normalizeDefaultResult(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}r();for(const e of Object.keys(this._utils.schemas)){const n=this._utils.schemas[e];e in t&&(t[e]=n.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,i]=ir.partition(Object.keys(e),e=>e in this._utils.schemas);for(const i of r){const r=this._utils.schemas[i],o=r.preprocess(e[i],this._utils),s=ir.normalizeValidateResult(r.validate(o,this._utils),o);if(!0!==s){const{value:e}=s,t=this._invalidHandler(i,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},u=({value:e,redirectTo:t})=>{const n=ir.normalizeDeprecatedResult(r.deprecated(e,this._utils),o,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(const{value:e}of n){const n={key:i,value:e};if(!this._hasDeprecationWarned(n)){const r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};ir.normalizeForwardResult(r.forward(o,this._utils),o).forEach(a);const c=ir.normalizeRedirectResult(r.redirect(o,this._utils),o);if(c.redirect.forEach(a),"remain"in c){const e=c.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of c.redirect)u({value:e,redirectTo:t})}for(const r of i){const i=e[r],o=this._unknownHandler(r,i,this._utils);if(o)for(const e of Object.keys(o)){const r={[e]:o[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}t.Normalizer=n}));Je(pr),pr.normalize,pr.Normalizer;var fr=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),mn.__exportStar(gn,t),mn.__exportStar(Qn,t),mn.__exportStar(cr,t),mn.__exportStar(pr,t),mn.__exportStar(Zn,t)}));Je(fr);const hr=[],dr=[],mr=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,s,a,u,c=0;for(;cs?u>s?s+1:u:u>a?a+1:u;return s};var gr=mr,yr=mr;gr.default=yr;var vr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const br={};for(const e of Object.keys(vr))br[vr[e]]=e;const Dr={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Er=Dr;for(const e of Object.keys(Dr)){if(!("channels"in Dr[e]))throw new Error("missing channels property: "+e);if(!("labels"in Dr[e]))throw new Error("missing channel labels property: "+e);if(Dr[e].labels.length!==Dr[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Dr[e];delete Dr[e].channels,delete Dr[e].labels,Object.defineProperty(Dr[e],"channels",{value:t}),Object.defineProperty(Dr[e],"labels",{value:n})}function Cr(e){const t=function(){const e={},t=Object.keys(Er);for(let n=t.length,r=0;r1&&(i-=1)),[360*i,100*o,100*c]},Dr.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Dr.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},Dr.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},Dr.rgb.keyword=function(e){const t=br[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(vr)){const s=(o=vr[t],((i=e)[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Dr.rgb.lab=function(e){const t=Dr.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},Dr.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,u=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[e]=255*s;return u},Dr.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},Dr.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},Dr.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},Dr.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),a=1-r;o=6*t-s,0!=(1&s)&&(o=1-o);const u=n+o*(a-n);let c,l,p;switch(s){default:case 6:case 0:c=a,l=u,p=n;break;case 1:c=u,l=a,p=n;break;case 2:c=n,l=a,p=u;break;case 3:c=n,l=u,p=a;break;case 4:c=u,l=n,p=a;break;case 5:c=a,l=n,p=u}return[255*c,255*l,255*p]},Dr.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},Dr.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},Dr.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},Dr.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},Dr.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},Dr.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Dr.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=null===t?Dr.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},Dr.hsv.ansi16=function(e){return Dr.rgb.ansi16(Dr.hsv.rgb(e),e[2])},Dr.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Dr.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Dr.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Dr.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Dr.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Dr.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},Dr.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},Dr.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Dr.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},Dr.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Dr.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Dr.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Dr.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Dr.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Dr.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Dr.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Dr.gray.hsl=function(e){return[0,0,e[0]]},Dr.gray.hsv=Dr.gray.hsl,Dr.gray.hwb=function(e){return[0,100,e[0]]},Dr.gray.cmyk=function(e){return[0,0,0,e[0]]},Dr.gray.lab=function(e){return[e[0],0,0]},Dr.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Dr.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const wr={};Object.keys(Er).forEach(e=>{wr[e]={},Object.defineProperty(wr[e],"channels",{value:Er[e].channels}),Object.defineProperty(wr[e],"labels",{value:Er[e].labels});const t=function(e){const t=Cr(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i{const r=t[n];wr[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var xr=wr,Fr=Xe((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},i=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=xr);const i=r?10:0,o={};for(const[r,s]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?o[a]=e(n,i):"object"==typeof s&&(o[a]=e(s[t],i))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",s(a.color,"ansi",()=>u(t,"ansi16",i,!1)),s(a.color,"ansi256",()=>u(n,"ansi256",i,!1)),s(a.color,"ansi16m",()=>u(r,"rgb",o,!1)),s(a.bgColor,"ansi",()=>u(t,"ansi16",i,!0)),s(a.bgColor,"ansi256",()=>u(n,"ansi256",i,!0)),s(a.bgColor,"ansi16m",()=>u(r,"rgb",o,!0)),a}})})),_r={isatty:()=>!1},Tr=(e,t=Nt.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}function Mr(e,t){if(0===Nr)return 0;if(Tr("color=16m")||Tr("color=full")||Tr("color=truecolor"))return 3;if(Tr("color=256"))return 2;if(e&&!t&&void 0===Nr)return 0;const n=Nr||0;if("dumb"===Or.TERM)return n;if("win32"===Nt.platform){const e=Fn.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Or)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Or)||"codeship"===Or.CI_NAME?1:n;if("TEAMCITY_VERSION"in Or)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Or.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Or)return 1;if("truecolor"===Or.COLORTERM)return 3;if("TERM_PROGRAM"in Or){const e=parseInt((Or.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Or.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Or.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Or.TERM)||"COLORTERM"in Or?1:n}Tr("no-color")||Tr("no-colors")||Tr("color=false")||Tr("color=never")?Nr=0:(Tr("color")||Tr("colors")||Tr("color=true")||Tr("color=always"))&&(Nr=1),"FORCE_COLOR"in Or&&(Nr="true"===Or.FORCE_COLOR?1:"false"===Or.FORCE_COLOR?0:0===Or.FORCE_COLOR.length?1:Math.min(parseInt(Or.FORCE_COLOR,10),3));var Pr={supportsColor:function(e){return kr(Mr(e,e&&e.isTTY))},stdout:kr(Mr(!0,_r.isatty(1))),stderr:kr(Mr(!0,_r.isatty(2)))},Lr={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.substr(o),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,o="";do{const s="\r"===e[r-1];o+=e.substr(i,(s?r-1:r)-i)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i),o}};const Ir=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Br=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,jr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Rr=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Ur=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Vr(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Ur.get(e)||e}function Wr(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r){const r=Number(t);if(Number.isNaN(r)){if(!(i=t.match(jr)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(i[2].replace(Rr,(e,t,n)=>t?Vr(t):n))}else n.push(r)}return n}function $r(e){Br.lastIndex=0;const t=[];let n;for(;null!==(n=Br.exec(e));){const e=n[1];if(n[2]){const r=Wr(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function qr(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=t.length>0?r[e](...t):r[e]}return r}var Yr=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Ir,(t,o,s,a,u,c)=>{if(o)i.push(Vr(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:qr(e,n)(t)),n.push({inverse:s,styles:$r(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(qr(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:Kr,stderr:Hr}=Pr,{stringReplaceAll:zr,stringEncaseCRLFWithFirstIndex:Gr}=Lr,Jr=["ansi","ansi","ansi256","ansi16m"],Xr=Object.create(null);class Qr{constructor(e){return Zr(e)}}const Zr=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Kr?Kr.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>ai(t.template,...e),Object.setPrototypeOf(t,ei.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Qr,t.template};function ei(e){return Zr(e)}for(const[e,t]of Object.entries(Fr))Xr[e]={get(){const n=ii(this,ri(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};Xr.visible={get(){const e=ii(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const ti=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of ti)Xr[e]={get(){const{level:t}=this;return function(...n){const r=ri(Fr.color[Jr[t]][e](...n),Fr.color.close,this._styler);return ii(this,r,this._isEmpty)}}};for(const e of ti)Xr["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=ri(Fr.bgColor[Jr[t]][e](...n),Fr.bgColor.close,this._styler);return ii(this,r,this._isEmpty)}}};const ni=Object.defineProperties(()=>{},Object.assign({},Xr,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),ri=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},ii=(e,t,n)=>{const r=(...e)=>oi(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,ni),r._generator=e,r._styler=t,r._isEmpty=n,r},oi=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=zr(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=Gr(t,i,r,o)),r+t+i};let si;const ai=(e,...t)=>{const[n]=t;if(!Array.isArray(n))return t.join(" ");const r=t.slice(1),i=[n.raw[0]];for(let e=1;e1===e.length?"-".concat(e):"--".concat(e),value:e=>fr.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?li.key(e):""===t?"".concat(li.key(e)," without an argument"):"".concat(li.key(e),"=").concat(t)};class pi extends fr.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=t.slice().sort()}preprocess(e,t){if("string"==typeof e&&0!==e.length&&!this._flags.includes(e)){const n=this._flags.find(t=>gr(t,e)<3);if(n)return t.logger.warn(["Unknown flag ".concat(ci.yellow(t.descriptor.value(e)),","),"did you mean ".concat(ci.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let fi;function hi(e,t,{logger:n,isCLI:r=!1,passThrough:i=!1}={}){const o=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):fr.levenUnknownHandler,s=r?li:fr.apiDescriptor,a=function(e,{isCLI:t}){const n=[];t&&n.push(fr.AnySchema.create({name:"_"}));for(const r of e)n.push(di(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(fr.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),u=new fr.Normalizer(a,{logger:n,unknown:o,descriptor:s}),c=!1!==n;c&&fi&&(u._hasDeprecationWarned=fi);const l=u.normalize(e);return c&&(fi=u._hasDeprecationWarned),l}function di(e,{isCLI:t,optionInfos:n}){let r;const i={name:e.name},o={};switch(e.type){case"int":r=fr.IntegerSchema,t&&(i.preprocess=e=>Number(e));break;case"string":r=fr.StringSchema;break;case"choice":r=fr.ChoiceSchema,i.choices=e.choices.map(t=>"object"==typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":r=fr.BooleanSchema;break;case"flag":r=pi,i.flags=n.map(e=>[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])).reduce((e,t)=>e.concat(t),[]);break;case"path":r=fr.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):i.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(o.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){const e=i.preprocess||(e=>e);i.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t[t.length-1]:t),r)}return e.array?fr.ArraySchema.create(Object.assign({},t?{preprocess:e=>[].concat(e)}:{},{},o,{valueSchema:r.create(i)})):r.create(Object.assign({},i,{},o))}var mi={normalizeApiOptions:function(e,t,n){return hi(e,t,n)},normalizeCliOptions:function(e,t,n){return hi(e,t,Object.assign({isCLI:!0},n))}},gi=e=>e[e.length-1];function yi(e,t){return!(t=t||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?yi(e.declaration.decorators[0]):!t.ignoreDecorators&&e.decorators&&e.decorators.length>0?yi(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function vi(e){const t=e.nodes&&gi(e.nodes);if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const n=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(n,vi(e.typeAnnotation)):e.loc&&!n?e.loc.end:n}var bi={locStart:yi,locEnd:vi,composeLoc:function(e,t=e){const n="number"==typeof t?t:-1,r=yi(e),i=-1!==n?r+n:vi(t),o=e.loc.start;return{start:r,end:i,range:[r,i],loc:{start:o,end:-1!==n?{line:o.line,column:o.column+n}:t.loc.end}}}},Di=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));Je(Di),Di.matchToToken;var Ei=Xe((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Ci=(Ei.isExpression,Ei.isStatement,Ei.isIterationStatement,Ei.isSourceElement,Ei.isProblematicIfStatement,Ei.trailingStatement,Xe((function(e){!function(){var t,n,r,i,o,s;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(o=new Array(128),s=0;s<128;++s)o[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(a(e))}}}()}))),Ai=(Ci.isDecimalDigit,Ci.isHexDigit,Ci.isOctalDigit,Ci.isWhiteSpace,Ci.isLineTerminator,Ci.isIdentifierStartES5,Ci.isIdentifierPartES5,Ci.isIdentifierStartES6,Ci.isIdentifierPartES6,Xe((function(e){!function(){var t=Ci;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!s(i))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:i,isReservedWordES6:o,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return s(e)&&!i(e,t)},isIdentifierES6:function(e,t){return a(e)&&!o(e,t)}}}()}))),Si=(Ai.isKeywordES5,Ai.isKeywordES6,Ai.isReservedWordES5,Ai.isReservedWordES6,Ai.isRestrictedWord,Ai.isIdentifierNameES5,Ai.isIdentifierNameES6,Ai.isIdentifierES5,Ai.isIdentifierES6,Xe((function(e,t){t.ast=Ei,t.code=Ci,t.keyword=Ai}))),wi=(Si.ast,Si.code,Si.keyword,/[|\\{}()[\]^$+*?.]/g),xi=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(wi,"\\$&")},Fi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_i=Xe((function(e){var t={};for(var n in Fi)Fi.hasOwnProperty(n)&&(t[Fi[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,s=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?i=o=0:(o=l/c,t=p(s),n=p(a),r=p(u),s===c?i=r-n:a===c?i=1/3+t-r:u===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i,o,s=1/0;for(var a in Fi)if(Fi.hasOwnProperty(a)){var u=Fi[a],c=(i=e,o=u,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,s=i,a=c;break;case 1:o=i,s=n,a=c;break;case 2:o=c,s=n,a=i;break;case 3:o=c,s=i,a=n;break;case 4:o=i,s=c,a=n;break;case 5:o=n,s=c,a=i}return[255*o,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Ti(e){var t=function(){for(var e={},t=Object.keys(_i),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Mi=ki,Pi=Xe((function(e){const t=(e,t)=>function(){const n=e.apply(Mi,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(Mi,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(Mi,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(s,10)};for(let e of Object.keys(Mi)){if("object"!=typeof Mi[e])continue;const o=Mi[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=t(o.ansi16,0),i.bgColor.ansi[e]=t(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=n(o.ansi256,0),i.bgColor.ansi256[e]=n(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=r(o.rgb,0),i.bgColor.ansi16m[e]=r(o.rgb,10))}return i}})}));const Li=Nt.env;let Ii;function Bi(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===Ii)return 0;if(_n("color=16m")||_n("color=full")||_n("color=truecolor"))return 3;if(_n("color=256"))return 2;if(e&&!e.isTTY&&!0!==Ii)return 0;const t=Ii?1:0;if("win32"===Nt.platform){const e=Fn.release().split(".");return Number(Nt.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Li)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Li)||"codeship"===Li.CI_NAME?1:t;if("TEAMCITY_VERSION"in Li)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Li.TEAMCITY_VERSION)?1:0;if("truecolor"===Li.COLORTERM)return 3;if("TERM_PROGRAM"in Li){const e=parseInt((Li.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Li.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Li.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Li.TERM)||"COLORTERM"in Li?1:(Li.TERM,t)}(e))}_n("no-color")||_n("no-colors")||_n("color=false")?Ii=!1:(_n("color")||_n("colors")||_n("color=true")||_n("color=always"))&&(Ii=!0),"FORCE_COLOR"in Li&&(Ii=0===Li.FORCE_COLOR.length||0!==parseInt(Li.FORCE_COLOR,10));var ji={supportsColor:Bi,stdout:Bi(Nt.stdout),stderr:Bi(Nt.stderr)};const Ri=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ui=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Vi=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Wi=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,$i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function qi(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):$i.get(e)||e}function Yi(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r)if(isNaN(t)){if(!(i=t.match(Vi)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(i[2].replace(Wi,(e,t,n)=>t?qi(t):n))}else n.push(Number(t));return n}function Ki(e){Ui.lastIndex=0;const t=[];let n;for(;null!==(n=Ui.exec(e));){const e=n[1];if(n[2]){const r=Yi(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Hi(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var zi=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Ri,(t,o,s,a,u,c)=>{if(o)i.push(qi(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Hi(e,n)(t)),n.push({inverse:s,styles:Ki(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Hi(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},Gi=Xe((function(e){const t=ji.stdout,n="win32"===Nt.platform&&!(Nt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(Pi.blue.open="");for(const e of Object.keys(Pi))Pi[e].closeRe=new RegExp(xi(Pi[e].close),"g"),o[e]={get(){const t=Pi[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};o.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},Pi.color.closeRe=new RegExp(xi(Pi.color.close),"g");for(const e of Object.keys(Pi.color.ansi))i.has(e)||(o[e]={get(){const t=this.level;return function(){const n=Pi.color[r[t]][e].apply(null,arguments),i={open:n,close:Pi.color.close,closeRe:Pi.color.closeRe};return c.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});Pi.bgColor.closeRe=new RegExp(xi(Pi.bgColor.close),"g");for(const e of Object.keys(Pi.bgColor.ansi))i.has(e)||(o["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n=Pi.bgColor[r[t]][e].apply(null,arguments),i={open:n,close:Pi.bgColor.close,closeRe:Pi.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});const u=Object.defineProperties(()=>{},o);function c(e,t,n){const r=function e(){return l.apply(e,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;no(e)).join("\n"):t[0]}))}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(i),e)}return e};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(Di),r=o(Si),i=o(Gi);function o(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}const a=/\r\n|[\n\r\u2028\u2029]/,u=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function l(e){return i.default.supportsColor||e.forceColor}function p(e){let t=i.default;return e.forceColor&&(t=new i.default.constructor({enabled:!0,level:1})),t}})));Je(Ji),Ji.shouldHighlight,Ji.getChalk;var Xi=Xe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=s,t.default=function(e,t,n,r={}){if(!i){i=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Nt.emitWarning?Nt.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return n=Math.max(n,0),s(e,{start:{column:n,line:t}},r)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(Ji);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}let i=!1;const o=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),s=(0,n.getChalk)(r),a=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=(e,t)=>i?e(t):t,c=e.split(o),{start:l,end:p,markerLines:f}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,{},e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,u=r.column,c=i.line,l=i.column;let p=Math.max(a-(o+1),0),f=Math.min(t.length,c+s);-1===a&&(p=0),-1===c&&(f=t.length);const h=c-a,d={};if(h)for(let e=0;e<=h;e++){const n=e+a;if(u)if(0===e){const e=t[n-1].length;d[n]=[u,e-u+1]}else if(e===h)d[n]=[0,l];else{const r=t[n-e].length;d[n]=[0,r]}else d[n]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:p,end:f,markerLines:d}}(t,c,r),h=t.start&&"number"==typeof t.start.column,d=String(p).length;let m=(i?(0,n.default)(e,r):e).split(o).slice(l,p).map((e,t)=>{const n=l+1+t,i=" ".concat(n).slice(-d),o=" ".concat(i," | "),s=f[n],c=!f[n+1];if(s){let t="";if(Array.isArray(s)){const n=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),i=s[1]||1;t=["\n ",u(a.gutter,o.replace(/\d/g," ")),n,u(a.marker,"^").repeat(i)].join(""),c&&r.message&&(t+=" "+u(a.message,r.message))}return[u(a.marker,">"),u(a.gutter,o),e,t].join("")}return" ".concat(u(a.gutter,o)).concat(e)}).join("\n");return r.message&&!h&&(m="".concat(" ".repeat(d+1)).concat(r.message,"\n").concat(m)),i?s.reset(m):m}}));Je(Xi),Xi.codeFrameColumns;const{ConfigError:Qi}=ot,{locStart:Zi,locEnd:eo}=bi,to=Object.getOwnPropertyNames,no=Object.getOwnPropertyDescriptor;function ro(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of to(n.parsers))Object.defineProperty(t,e,no(n.parsers,e));return t}function io(e,t){if(t=t||ro(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Zi,locEnd:eo};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Qi("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var oo={parse:function(e,t){const n=ro(t),r=Object.keys(n).reduce((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse}),{}),i=io(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const r=Xi;throw t.codeFrame=r.codeFrameColumns(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:io};const{UndefinedParserError:so}=ot,{getSupportInfo:ao}=an,{resolveParser:uo}=oo,co={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function lo(e,t){const n=Q.basename(e).toLowerCase(),r=ao({plugins:t}).languages.filter(e=>null!==e.since);let i=r.find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.find(e=>e.toLowerCase()===n));if(!i&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=Ze.openSync(e,"r")}catch(e){return""}try{const e=new et(t).next().toString("utf8"),n=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];const r=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return r?r[1]:""}catch(e){return""}finally{try{Ze.closeSync(t)}catch(e){}}}(e);i=r.find(e=>e.interpreters&&e.interpreters.includes(t))}return i&&i.parsers[0]}var po={normalize:function(e,t){t=t||{};const n=Object.assign({},e),r=ao({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign({},co,{},tt(r.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=lo(n.filepath,n.plugins),!n.parser)throw new so("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const o=uo(mi.normalizeApiOptions(n,[r.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const s=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=s.printers[n.astFormat];const a=r.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[s.name]).reduce((e,t)=>Object.assign(e,{[t.name]:t.pluginDefaults[s.name]}),{}),u=Object.assign({},i,{},a);return Object.keys(u).forEach(e=>{null==n[e]&&(n[e]=u[e])}),"json"===n.parser&&(n.trailingComma="none"),mi.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(co)},t))},hiddenDefaults:co,inferParser:lo},fo=function e(t,n,r){if(Array.isArray(t))return t.map(t=>e(t,n,r)).filter(Boolean);if(!t||"object"!=typeof t)return t;const i={};for(const r of Object.keys(t))"function"!=typeof t[r]&&(i[r]=e(t[r],n,t));if(n.printer.massageAstNode){const e=n.printer.massageAstNode(t,i,r);if(null===e)return;if(e)return e}return i};function ho(){}function mo(e){return{type:"concat",parts:e}}function go(e){return{type:"indent",contents:e}}function yo(e,t){return{type:"align",contents:t,n:e}}function vo(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}ho.ok=function(){},ho.strictEqual=function(){};const bo={type:"break-parent"},Do=mo([{type:"line",hard:!0},bo]),Eo=mo([{type:"line",hard:!0,literal:!0},bo]);var Co={concat:mo,join:function(e,t){const n=[];for(let r=0;r0){for(let e=0;e"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const So=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var wo=So,xo=So;wo.default=xo;const Fo=e=>{if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Ao(e);let t=0;for(let n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=wo(r)?2:1)}return t};var _o=Fo,To=Fo;_o.default=To;const Oo=/[|\\{}()[\]^$+*?.-]/g;var No=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Oo,"\\$&")};const ko=/[^\x20-\x7F]/;function Mo(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let s=n;for(;s>=0&&s"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(e=>{Yo[e]=t})});const Ho={"==":!0,"!=":!0,"===":!0,"!==":!0},zo={"*":!0,"/":!0,"%":!0},Go={">>":!0,">>>":!0,"<<":!0};function Jo(e,t,n){let r=0;for(let i=n=n||0;i(n.match(s.regex)||[]).length?s.quote:o.quote),a}function Qo(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i));return t+i+t}function Zo(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>es(e)&&!e.unignore)||e.prettierIgnore)}function es(e){return"prettier-ignore"===e.value.trim()}function ts(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var ns={replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))0!==n.length&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?ko.test(e)?_o(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(No(t),")+"),"g"));return null===n?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(No(t),")+"),"g"));if(null===n)return 0;const r=new Map;let i=0;for(const e of n){const n=e.length/t.length;r.set(n,!0),n>i&&(i=n)}for(let e=1;e1?e[e.length-2]:null},getLast:gi,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:$o,getNextNonSpaceNonCommentCharacterIndex:qo,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(qo(e,t,n))},skip:Mo,skipWhitespace:Po,skipSpaces:Lo,skipToLineEnd:Io,skipEverythingButNewLine:Bo,skipInlineComment:jo,skipTrailingComment:Ro,skipNewline:Uo,isNextLineEmptyAfterIndex:Wo,isNextLineEmpty:function(e,t,n){return Wo(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=Lo(e,r,{backwards:!0}),r=Uo(e,r,{backwards:!0}),r=Lo(e,r,{backwards:!0}),r!==Uo(e,r,{backwards:!0})},hasNewline:Vo,hasNewlineInRange:function(e,t,n){for(let r=t;r=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}};const{getStringWidth:is}=ns,{convertEndOfLineToChars:os}=rs,{concat:ss,fill:as,cursor:us}=Co;let cs;function ls(e,t){return fs(e,{type:"indent"},t)}function ps(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?fs(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):fs(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function fs(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t);let i="",o=0,s=0,a=0;for(const e of r)switch(e.type){case"indent":l(),n.useTabs?u(1):c(n.tabWidth);break;case"stringAlign":l(),i+=e.n,o+=e.n.length;break;case"numberAlign":s+=1,a+=e.n;break;default:throw new Error("Unexpected type '".concat(e.type,"'"))}return p(),Object.assign({},e,{value:i,length:o,queue:r});function u(e){i+="\t".repeat(e),o+=n.tabWidth*e}function c(e){i+=" ".repeat(e),o+=e}function l(){n.useTabs?(s>0&&u(s),f()):p()}function p(){a>0&&c(a),f()}function f(){s=0,a=0}}function hs(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){const n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function ds(e,t,n,r,i){let o=t.length;const s=[e],a=[];for(;n>=0;){if(0===s.length){if(0===o)return!0;s.push(t[o-1]),o--;continue}const[e,u,c]=s.pop();if("string"==typeof c)a.push(c),n-=is(c);else switch(c.type){case"concat":for(let t=c.parts.length-1;t>=0;t--)s.push([e,u,c.parts[t]]);break;case"indent":s.push([ls(e,r),u,c.contents]);break;case"align":s.push([ps(e,c.n,r),u,c.contents]);break;case"trim":n+=hs(a);break;case"group":if(i&&c.break)return!1;s.push([e,c.break?1:u,c.contents]),c.id&&(cs[c.id]=s[s.length-1][1]);break;case"fill":for(let t=c.parts.length-1;t>=0;t--)s.push([e,u,c.parts[t]]);break;case"if-break":{const t=c.groupId?cs[c.groupId]:u;1===t&&c.breakContents&&s.push([e,u,c.breakContents]),2===t&&c.flatContents&&s.push([e,u,c.flatContents]);break}case"line":switch(u){case 2:if(!c.hard){c.soft||(a.push(" "),n-=1);break}return!0;case 1:return!0}}}return!1}const ms={};function gs(e,t,n,r){const i=[e];for(;0!==i.length;){const e=i.pop();if(e===ms){n(i.pop());continue}let o=!0;if(t&&!1===t(e)&&(o=!1),n&&(i.push(e),i.push(ms)),o)if("concat"===e.type||"fill"===e.type)for(let t=e.parts.length-1;t>=0;--t)i.push(e.parts[t]);else if("if-break"===e.type)e.flatContents&&i.push(e.flatContents),e.breakContents&&i.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)i.push(e.expandedStates[t]);else i.push(e.contents);else e.contents&&i.push(e.contents)}}function ys(e,t){if("concat"===e.type||"fill"===e.type){const n=e.parts.map(e=>ys(e,t));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&ys(e.breakContents,t),r=e.flatContents&&ys(e.flatContents,t);return t(Object.assign({},e,{breakContents:n,flatContents:r}))}if(e.contents){const n=ys(e.contents,t);return t(Object.assign({},e,{contents:n}))}return t(e)}function vs(e,t,n){let r=n,i=!1;return gs(e,(function(e){const n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1})),r}function bs(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Ds(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Es(e){if(e.length>0){const t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Cs(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function As(e){if("concat"===e.type){const t=[];for(let n=0;n=0;t--)o.push([e,c,l.parts[t]]);break;case"indent":o.push([ls(e,t),c,l.contents]);break;case"align":o.push([ps(e,l.n,t),c,l.contents]);break;case"trim":i-=hs(s);break;case"group":switch(c){case 2:if(!a){o.push([e,l.break?1:2,l.contents]);break}case 1:{a=!1;const r=[e,2,l.contents],s=n-i;if(!l.break&&ds(r,o,s,t))o.push(r);else if(l.expandedStates){const n=l.expandedStates[l.expandedStates.length-1];if(l.break){o.push([e,1,n]);break}for(let r=1;r=l.expandedStates.length){o.push([e,1,n]);break}{const n=[e,2,l.expandedStates[r]];if(ds(n,o,s,t)){o.push(n);break}}}}else o.push([e,1,l.contents]);break}}l.id&&(cs[l.id]=o[o.length-1][1]);break;case"fill":{const r=n-i,{parts:s}=l;if(0===s.length)break;const[a,u]=s,p=[e,2,a],f=[e,1,a],h=ds(p,[],r,t,!0);if(1===s.length){h?o.push(p):o.push(f);break}const d=[e,2,u],m=[e,1,u];if(2===s.length){h?(o.push(d),o.push(p)):(o.push(m),o.push(f));break}s.splice(0,2);const g=[e,c,as(s)],y=s[0];ds([e,2,ss([a,u,y])],[],r,t,!0)?(o.push(g),o.push(d),o.push(p)):h?(o.push(g),o.push(m),o.push(p)):(o.push(g),o.push(m),o.push(f));break}case"if-break":{const t=l.groupId?cs[l.groupId]:c;1===t&&l.breakContents&&o.push([e,c,l.breakContents]),2===t&&l.flatContents&&o.push([e,c,l.flatContents]);break}case"line-suffix":u.push([e,c,l.contents]);break;case"line-suffix-boundary":u.length>0&&o.push([e,c,{type:"line",hard:!0}]);break;case"line":switch(c){case 2:if(!l.hard){l.soft||(s.push(" "),i+=1);break}a=!0;case 1:if(u.length){o.push([e,c,l]),o.push(...u.reverse()),u=[];break}l.literal?e.root?(s.push(r,e.root.value),i=e.root.length):(s.push(r),i=0):(i-=hs(s),s.push(r+e.value),i=e.length)}}}const c=s.indexOf(us.placeholder);if(-1!==c){const e=s.indexOf(us.placeholder,c+1),t=s.slice(0,c).join(""),n=s.slice(c+1,e).join("");return{formatted:t+n+s.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return vs(e,Ds,!1)},isLineNext:function(e){return vs(e,bs,!1)},traverseDoc:gs,findInDoc:vs,mapDoc:ys,propagateBreaks:function(e){const t=new Set,n=[];gs(e,(function(e){if("break-parent"===e.type&&Es(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Es(n)}),!0)},removeLines:function(e){return ys(e,Cs)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){const n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:e=>Ss(As(e))}};const{getMaxContinuousCount:xs,getStringWidth:Fs,getAlignmentSize:_s,getIndentSize:Ts,skip:Os,skipWhitespace:Ns,skipSpaces:ks,skipNewline:Ms,skipToLineEnd:Ps,skipEverythingButNewLine:Ls,skipInlineComment:Is,skipTrailingComment:Bs,hasNewline:js,hasNewlineInRange:Rs,hasSpaces:Us,isNextLineEmpty:Vs,isNextLineEmptyAfterIndex:Ws,isPreviousLineEmpty:$s,getNextNonSpaceNonCommentCharacterIndex:qs,makeString:Ys,addLeadingComment:Ks,addDanglingComment:Hs,addTrailingComment:zs}=ns;var Gs={getMaxContinuousCount:xs,getStringWidth:Fs,getAlignmentSize:_s,getIndentSize:Ts,skip:Os,skipWhitespace:Ns,skipSpaces:ks,skipNewline:Ms,skipToLineEnd:Ps,skipEverythingButNewLine:Ls,skipInlineComment:Is,skipTrailingComment:Bs,hasNewline:js,hasNewlineInRange:Rs,hasSpaces:Us,isNextLineEmpty:Vs,isNextLineEmptyAfterIndex:Ws,isPreviousLineEmpty:$s,getNextNonSpaceNonCommentCharacterIndex:qs,makeString:Ys,addLeadingComment:Ks,addDanglingComment:Hs,addTrailingComment:zs};const{concat:Js,line:Xs,hardline:Qs,breakParent:Zs,indent:ea,lineSuffix:ta,join:na,cursor:ra}=ws.builders,{hasNewline:ia,skipNewline:oa,isPreviousLineEmpty:sa}=ns,{addLeadingComment:aa,addDanglingComment:ua,addTrailingComment:ca}=Gs,la=Symbol("child-nodes");function pa(e,t,n){if(!e)return;const{printer:r,locStart:i,locEnd:o}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(i(n[t])<=i(e)&&o(n[t])<=o(e));--t);return void n.splice(t+1,0,e)}}else if(e[la])return e[la];const s=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.keys(e).filter(e=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e).map(t=>e[t]);return s?(n||Object.defineProperty(e,la,{value:n=[],enumerable:!1}),s.forEach(e=>{pa(e,t,n)}),n):void 0}function fa(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:i,followingNode:o,enclosingNode:s}=e[0],a=n.printer.getGapRegex&&n.printer.getGapRegex(s)||/^[\s(]*$/;let u,c=n.locStart(o);for(u=r;u>0;--u){const r=e[u-1];ho.strictEqual(r.precedingNode,i),ho.strictEqual(r.followingNode,o);const s=t.slice(n.locEnd(r),c);if(!a.test(s))break;c=n.locStart(r)}e.forEach((e,t)=>{t{if("json"===r.parser||"json5"===r.parser||"__js_expression"===r.parser||"__vue_expression"===r.parser){if(o(a)-o(t)<=0)return void aa(t,a);if(s(a)-s(t)>=0)return void ca(t,a)}!function e(t,n,r){const{locStart:i,locEnd:o}=r,s=pa(t,r);let a,u,c=0,l=s.length;for(;c>1,p=s[t];if(i(p)-i(n)<=0&&o(n)-o(p)<=0)return n.enclosingNode=p,void e(p,n,r);if(o(p)-i(n)<=0)a=p,c=t+1;else{if(!(o(n)-i(p)<=0))throw new Error("Comment location overlaps with node location");u=p,l=t}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){const{quasis:e}=n.enclosingNode,t=da(e,n,r);a&&da(e,a,r)!==t&&(a=null),u&&da(e,u,r)!==t&&(u=null)}a&&(n.precedingNode=a),u&&(n.followingNode=u)}(t,a,r);const{precedingNode:c,enclosingNode:l,followingNode:p}=a,f=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:()=>!1,h=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:()=>!1,d=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:()=>!1,m=e.length-1===u;if(ia(n,o(a),{backwards:!0}))f(a,n,r,t,m)||(p?aa(p,a):c?ca(c,a):ua(l||t,a));else if(ia(n,s(a)))h(a,n,r,t,m)||(c?ca(c,a):p?aa(p,a):ua(l||t,a));else if(d(a,n,r,t,m));else if(c&&p){const e=i.length;e>0&&i[e-1].followingNode!==a.followingNode&&fa(i,n,r),i.push(a)}else c?ca(c,a):p?aa(p,a):ua(l||t,a)}),fa(i,n,r),e.forEach(e=>{delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})},printComments:function(e,t,n,r){const i=e.getValue(),o=t(e),s=i&&i.comments;if(!s||0===s.length)return ma(e,n,o);const a=[],u=[r?";":"",o];return e.each(e=>{const t=e.getValue(),{leading:r,trailing:i}=t;if(r){const r=function(e,t,n){const r=e.getValue(),i=ha(e,n);if(!i)return"";if(n.printer.isBlockComment&&n.printer.isBlockComment(r)){const e=ia(n.originalText,n.locEnd(r))?ia(n.originalText,n.locStart(r),{backwards:!0})?Qs:Xs:" ";return Js([i,e])}return Js([i,Qs])}(e,0,n);if(!r)return;a.push(r);const i=n.originalText,o=oa(i,n.locEnd(t));!1!==o&&ia(i,o)&&a.push(Qs)}else i&&u.push(function(e,t,n){const r=e.getValue(),i=ha(e,n);if(!i)return"";const o=n.printer.isBlockComment&&n.printer.isBlockComment(r),s=e.getNode(1),a=e.getNode(2),u=a&&("ClassDeclaration"===a.type||"ClassExpression"===a.type)&&a.superClass===s;if(ia(n.originalText,n.locStart(r),{backwards:!0})){const e=sa(n.originalText,r,n.locStart);return ta(Js([Qs,e?Qs:"",i]))}return Js(o||u?[" ",i]:[ta(Js([" ",i])),o?"":Zs])}(e,0,n))},"comments"),ma(e,n,Js(a.concat(u)))},printDanglingComments:function(e,t,n,r){const i=[],o=e.getValue();return o&&o.comments?(e.each(e=>{const n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||i.push(ha(e,t))},"comments"),0===i.length?"":n?na(Qs,i):ea(Js([Qs,na(Qs,i)]))):""},getSortedChildNodes:pa};function ya(e,t){const n=va(e.stack,t);return-1===n?null:e.stack[n]}function va(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var ba=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return gi(this.stack)}getNode(e=0){return ya(this,e)}getParentNode(e=0){return ya(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let i=gi(n);for(const e of t)i=i[e],n.push(e,i);const o=e(this);return n.length=r,o}callParent(e,t=0){const n=va(this.stack,t+1),r=this.stack.splice(n+1),i=e(this);return this.stack.push(...r),i}each(e,...t){const{stack:n}=this,{length:r}=n;let i=gi(n);for(const e of t)i=i[e],n.push(e,i);for(let t=0;tfunction(e,t,n,r){const i=Da(Object.assign({},n,{},t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),o=oo.parse(e,i),{ast:s}=o;e=o.text;const a=s.comments;return delete s.comments,ga.attach(a,s,e,i),r(s,i)}(e,t,n,r),n)}};const Ca=ws,Aa=Ca.builders,{concat:Sa,hardline:wa,addAlignmentToDoc:xa}=Aa,Fa=Ca.utils;function _a(e,t,n=0){const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const i=new Map;let o=function e(n,o){const s=n.getValue(),a=s&&"object"==typeof s&&void 0===o;if(a&&i.has(s))return i.get(s);let u;return u=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?Ta(n,t,e,o):ga.printComments(n,n=>Ta(n,t,e,o),t,o&&o.needsSemi),a&&i.set(s,u),u}(new ba(e));return n>0&&(o=xa(Sa([wa,o]),n,t.tabWidth)),Fa.propagateBreaks(o),o}function Ta(e,t,n,r){ho.ok(e instanceof ba);const i=e.getValue(),{printer:o}=t;if(o.hasPrettierIgnore&&o.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(i),t.locEnd(i));if(i)try{const r=Ea.printSubtree(e,n,t,_a);if(r)return r}catch(e){if(Ge.PRETTIER_DEBUG)throw e}return o.print(e,t,n,r)}var Oa=_a;function Na(e,t,n,r,i){r=r||(()=>!0),i=i||[];const o=n.locStart(e,n.locStart),s=n.locEnd(e,n.locEnd);if(o<=t&&t<=s){for(const o of ga.getSortedChildNodes(e,n)){const s=Na(o,t,n,r,[e].concat(i));if(s)return s}if(r(e))return{node:e,parentNodes:i}}}function ka(e,t){if(null==t)return!1;const n=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"],r=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"],i=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":return n.includes(t.type);case"json":return r.includes(t.type);case"graphql":return i.includes(t.kind);case"vue":return"root"!==t.tag}return!1}var Ma={calculateRange:function(e,t,n){const r=e.slice(t.rangeStart,t.rangeEnd),i=Math.max(t.rangeStart+r.search(/\S/),t.rangeStart);let o;for(o=t.rangeEnd;o>t.rangeStart&&!e[o-1].match(/\S/);--o);const s=Na(n,i,t,e=>ka(t,e)),a=Na(n,o,t,e=>ka(t,e));if(!s||!a)return{rangeStart:0,rangeEnd:0};const u=function(e,t,n){let r=e.node,i=t.node;if(r===i)return{startNode:r,endNode:i};for(const r of t.parentNodes){if(!("Program"!==r.type&&"File"!==r.type&&n.locStart(r)>=n.locStart(e.node)))break;i=r}for(const i of e.parentNodes){if(!("Program"!==i.type&&"File"!==i.type&&n.locEnd(i)<=n.locEnd(t.node)))break;r=i}return{startNode:r,endNode:i}}(s,a,t),{startNode:c,endNode:l}=u;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:Na},Pa=Qe(z);const La=po.normalize,{guessEndOfLine:Ia,convertEndOfLineToChars:Ba}=rs,{printer:{printDocToString:ja},debug:{printDocToDebug:Ra}}=ws,Ua=Symbol("cursor"),Va={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Wa(e,t,n){const r=t.comments;return r&&(delete t.comments,ga.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimEnd(),r}function $a(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;const r=oo.parse(e,t),{ast:i}=r;if(e=r.text,t.cursorOffset>=0){const e=Ma.findNodeAtOffset(i,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const o=Wa(e,i,t),s=Oa(i,t,n),a=ja(s,t);if(function(e){if(e){for(let t=0;t{if(!e.printed)throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed})}}(o),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+Ba(t.endOfLine)}if(t.cursorOffset>=0){let n,r,i,o,s;if(t.cursorNode&&a.cursorNodeText?(n=t.locStart(t.cursorNode),r=e.slice(n,t.locEnd(t.cursorNode)),i=t.cursorOffset-n,o=a.cursorNodeStart,s=a.cursorNodeText):(n=0,r=e,i=t.cursorOffset,o=0,s=a.formatted),r===s)return{formatted:a.formatted,cursorOffset:o+i};const u=r.split("");u.splice(i,0,Ua);const c=s.split(""),l=Pa.diffArrays(u,c);let p=o;for(const e of l)if(e.removed){if(e.value.includes(Ua))break}else p+=e.count;return{formatted:a.formatted,cursorOffset:p}}return{formatted:a.formatted}}function qa(e,t){const n=oo.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Ia(e));const i=t.cursorOffset>=0,o=t.rangeStart>0,s=t.rangeEndt[e]-t[n]);for(let r=n.length-1;r>=0;r--){const i=n[r];e=e.slice(0,t[i])+Va[i]+e.slice(t[i])}e=e.replace(/\r\n?/g,"\n");for(let r=0;r(t[i]=n,""))}}const a="\ufeff"===e.charAt(0);a&&(e=e.slice(1),i&&t.cursorOffset++,o&&t.rangeStart++,s&&t.rangeEnd++),i||(t.cursorOffset=-1),t.rangeStart<0&&(t.rangeStart=0),t.rangeEnd>e.length&&(t.rangeEnd=e.length);const u=o||s?function(e,t){const n=oo.parse(e,t),{ast:r}=n;e=n.text;const i=Ma.calculateRange(e,t,r),{rangeStart:o,rangeEnd:s}=i,a=e.slice(o,s),u=Math.min(o,e.lastIndexOf("\n",o)+1),c=e.slice(u,o),l=ns.getAlignmentSize(c,t.tabWidth),p=$a(a,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=o&&t.cursorOffset=s?g=t.cursorOffset-s+(o+f.length):void 0!==p.cursorOffset&&(g=p.cursorOffset+o),"lf"===t.endOfLine)m=h+f+d;else{const e=Ba(t.endOfLine);if(g>=0){const t=[h,f,d];let n=0,r=g;for(;n(g=t,""))}else m=h.replace(/\n/g,e)+f+d.replace(/\n/g,e)}return{formatted:m,cursorOffset:g}}(e,t):$a(t.insertPragma&&t.printer.insertPragma&&!r?t.printer.insertPragma(e):e,t);return a&&(u.formatted="\ufeff"+u.formatted,i&&u.cursorOffset++),u}var Ya={formatWithCursor:(e,t)=>qa(e,t=La(t)),parse(e,t,n){t=La(t),e.includes("\r")&&(e=e.replace(/\r\n?/g,"\n"));const r=oo.parse(e,t);return n&&(r.ast=fo(r.ast,t)),r},formatAST(e,t){t=La(t);const n=Oa(e,t);return ja(n,t)},formatDoc:(e,t)=>qa(Ra(e),t=La(Object.assign({},t,{parser:"babel"}))).formatted,printToDoc(e,t){t=La(t);const n=oo.parse(e,t),{ast:r}=n;return Wa(e=n.text,r,t),Oa(r,t)},printDocToString:(e,t)=>ja(e,La(t))},Ka=function(e,t,n){if(["raw","raws","sourceIndex","source","before","after","trailingComma"].forEach(e=>{delete t[e]}),"yaml"===e.type&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&0!==n.nodes.length&&(n.nodes[0]===e||("yaml"===n.nodes[0].type||"toml"===n.nodes[0].type)&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^a-fA-F\d])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^['"]|['"]$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d.eE+-]+)([a-zA-Z]*)/g,(e,t,n)=>{const r=Number(t);return isNaN(r)?e:r+n.toLowerCase()})),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value};const{builders:{hardline:Ha,literalline:za,concat:Ga,markAsRoot:Ja},utils:{mapDoc:Xa}}=ws;var Qa=function(e,t,n){const r=e.getValue();return"yaml"===r.type?Ja(Ga(["---",Ha,r.value.trim()?function(e){return Xa(e,e=>"string"==typeof e&&e.includes("\n")?Ga(e.split(/(\n)/g).map((e,t)=>t%2==0?e:za)):e)}(n(r.value,{parser:"yaml"})):"","---",Ha])):null};const Za=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(e=>"\r\n"===e).length;return n>t.length-n?"\r\n":"\n"};var eu=Za;eu.graceful=e=>"string"==typeof e&&Za(e)||"\n";var tu=Xe((function(e,t){function n(){const e=Fn;return n=function(){return e},e}function r(){const e=(t=eu)&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){const t=e.match(s);return t?t[0].trimLeft():""},t.strip=function(e){const t=e.match(s);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function({comments:e="",pragmas:t={}}){const i=(0,r().default)(e)||n().EOL,o=Object.keys(t),s=o.map(e=>h(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+i).join("");if(!e){if(0===o.length)return"";if(1===o.length&&!Array.isArray(t[o[0]])){const e=t[o[0]];return"".concat("/**"," ").concat(h(o[0],e)[0]).concat(" */")}}const a=e.split(i).map(e=>"".concat(" *"," ").concat(e)).join(i)+i;return"/**"+i+(e?a:"")+(e&&o.length?" *"+i:"")+s+" */"};const i=/\*\/$/,o=/^\/\*\*/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function f(e){const t=(0,r().default)(e)||n().EOL;e=e.replace(o,"").replace(i,"").replace(p,"$1");let s="";for(;s!==e;)s=e,e=e.replace(c,"".concat(t,"$1 $2").concat(t));e=e.replace(u,"").trimRight();const f=Object.create(null),h=e.replace(l,"").replace(u,"").trimRight();let d;for(;d=l.exec(e);){const e=d[2].replace(a,"");"string"==typeof f[d[1]]||Array.isArray(f[d[1]])?f[d[1]]=[].concat(f[d[1]],e):f[d[1]]=e}return{comments:h,pragmas:f}}function h(e,t){return[].concat(t).map(t=>"@".concat(e," ").concat(t).trim())}}));Je(tu),tu.extract,tu.strip,tu.parse,tu.parseWithComments,tu.print;var nu={hasPragma:function(e){const t=Object.keys(tu.parse(tu.extract(e)));return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const t=tu.parseWithComments(tu.extract(e)),n=Object.assign({format:""},t.pragmas),r=tu.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),i=tu.strip(e);return r+(i.startsWith("\n")?"\n":"\n\n")+i}};const ru={"---":"yaml","+++":"toml"};var iu=function(e){const t=Object.keys(ru).map(No).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};const[r,i,o]=n;return{frontMatter:{type:ru[i],value:o,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+e.slice(r.length)}},ou={hasPragma:function(e){return nu.hasPragma(iu(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=iu(e);return(t?t.raw+"\n\n":"")+nu.insertPragma(n)}},su=function(e,t){let n=0;for(let r=0;r","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:hu,isDivisionNode:du,isAdditionNode:mu,isSubtractionNode:gu,isModuloNode:yu,isMathOperatorNode:function(e){return hu(e)||du(e)||mu(e)||gu(e)||yu(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:vu,isKeyValuePairInParenGroupNode:bu,isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!(bu(t)||n&&bu(n)))return!1;const r=fu(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!bu(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return"value-colon"===e.type},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&lu.includes(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\r\n]/).pop())}};const{insertPragma:Eu}=ou,{printNumber:Cu,printString:Au,hasIgnoreComment:Su,hasNewline:wu}=ns,{isNextLineEmpty:xu}=Gs,{restoreQuotesInInlineComments:Fu}=cu,{builders:{concat:_u,join:Tu,line:Ou,hardline:Nu,softline:ku,group:Mu,fill:Pu,indent:Lu,dedent:Iu,ifBreak:Bu},utils:{removeLines:ju}}=ws,{getAncestorNode:Ru,getPropOfDeclNode:Uu,maybeToLowerCase:Vu,insideValueFunctionNode:Wu,insideICSSRuleNode:$u,insideAtRuleNode:qu,insideURLFunctionInImportAtRuleNode:Yu,isKeyframeAtRuleKeywords:Ku,isWideKeywords:Hu,isSCSS:zu,isLastNode:Gu,isLessParser:Ju,isSCSSControlDirectiveNode:Xu,isDetachedRulesetDeclarationNode:Qu,isRelationalOperatorNode:Zu,isEqualityOperatorNode:ec,isMultiplicationNode:tc,isDivisionNode:nc,isAdditionNode:rc,isSubtractionNode:ic,isMathOperatorNode:oc,isEachKeywordNode:sc,isForKeywordNode:ac,isURLFunctionNode:uc,isIfElseKeywordNode:cc,hasComposesNode:lc,hasParensAroundNode:pc,hasEmptyRawBefore:fc,isKeyValuePairNode:hc,isDetachedRulesetCallNode:dc,isTemplatePlaceholderNode:mc,isTemplatePropNode:gc,isPostcssSimpleVarNode:yc,isSCSSMapItemNode:vc,isInlineValueCommentNode:bc,isHashNode:Dc,isLeftCurlyBraceNode:Ec,isRightCurlyBraceNode:Cc,isWordNode:Ac,isColonNode:Sc,isMediaAndSupportsKeywords:wc,isColorAdjusterFuncNode:xc,lastLineHasInlineComment:Fc}=Du;function _c(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function Tc(e,t,n){const r=e.getValue(),i=[];let o=0;return e.map(e=>{const s=r.nodes[o-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){const n=e.getValue();i.push(t.originalText.slice(t.locStart(n),t.locEnd(n)))}else i.push(e.call(n));o!==r.nodes.length-1&&("css-comment"===r.nodes[o+1].type&&!wu(t.originalText,t.locStart(r.nodes[o+1]),{backwards:!0})&&"yaml"!==r.nodes[o].type&&"toml"!==r.nodes[o].type||"css-atrule"===r.nodes[o+1].type&&"else"===r.nodes[o+1].name&&"css-comment"!==r.nodes[o].type?i.push(" "):(i.push(t.__isHTMLStyleAttribute?Ou:Nu),xu(t.originalText,e.getValue(),t.locEnd)&&"yaml"!==r.nodes[o].type&&"toml"!==r.nodes[o].type&&i.push(Nu))),o++},"nodes"),_u(i)}const Oc=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Nc=new RegExp(Oc.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function kc(e,t){return e.replace(Oc,e=>Au(e,t))}function Mc(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Pc(e){return e.replace(Nc,(e,t,n,r,i)=>!n&&r?Lc(r)+Vu(i||""):e)}function Lc(e){return Cu(e).replace(/\.0(?=$|e)/,"")}var Ic={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"yaml":case"toml":return _u([r.raw,Nu]);case"css-root":{const r=Tc(e,t,n);return r.parts.length?_u([r,t.__isHTMLStyleAttribute?"":Nu]):r}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(t.locStart(r),t.locEnd(r));return e?n.trimEnd():n}case"css-rule":return _u([e.call(n,"selector"),r.important?" !important":"",r.nodes?_u([r.selector&&"selector-unknown"===r.selector.type&&Fc(r.selector.value)?Ou:" ","{",r.nodes.length>0?Lu(_u([Nu,Tc(e,t,n)])):"",Nu,"}",Qu(r)?";":""]):";"]);case"css-decl":{const i=e.getParentNode();return _u([r.raws.before.replace(/[\s;]/g,""),$u(e)?r.prop:Vu(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",lc(r)?ju(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?_u([" {",Lu(_u([ku,Tc(e,t,n)])),ku,"}"]):gc(r)&&!i.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"])}case"css-atrule":{const i=e.getParentNode(),o=mc(r)&&!i.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1];if(Ju(t)){if(r.mixin)return _u([e.call(n,"selector"),r.important?" !important":"",o?"":";"]);if(r.function)return _u([r.name,_u([e.call(n,"params")]),o?"":";"]);if(r.variable)return _u(["@",r.name,": ",r.value?_u([e.call(n,"value")]):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?_u(["{",Lu(_u([r.nodes.length>0?ku:"",Tc(e,t,n)])),ku,"}"]):"",o?"":";"])}return _u(["@",dc(r)||r.name.endsWith(":")?r.name:Vu(r.name),r.params?_u([dc(r)?"":mc(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?_u([Nu,Nu]):/^\s*\n/.test(r.raws.afterName)?Nu:" ":" ",e.call(n,"params")]):"",r.selector?Lu(_u([" ",e.call(n,"selector")])):"",r.value?Mu(_u([" ",e.call(n,"value"),Xu(r)?pc(r)?" ":Ou:""])):"else"===r.name?" ":"",r.nodes?_u([Xu(r)?"":" ","{",Lu(_u([r.nodes.length>0?ku:"",Tc(e,t,n)])),ku,"}"]):o?"":";"])}case"media-query-list":{const t=[];return e.each(e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(e.call(n))},"nodes"),Mu(Lu(Tu(Ou,t)))}case"media-query":return _u([Tu(" ",e.map(n,"nodes")),Gu(e,r)?"":","]);case"media-type":return Pc(kc(r.value,t));case"media-feature-expression":return r.nodes?_u(["(",_u(e.map(n,"nodes")),")"]):r.value;case"media-feature":return Vu(kc(r.value.replace(/ +/g," "),t));case"media-colon":return _u([r.value," "]);case"media-value":return Pc(kc(r.value,t));case"media-keyword":return kc(r.value,t);case"media-url":return kc(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return Mu(_u([qu(e,"custom-selector")?_u([Ru(e,"css-atrule").customSelector,Ou]):"",Tu(_u([",",qu(e,["extend","custom-selector","nest"])?Ou:Nu]),e.map(n,"nodes"))]));case"selector-selector":return Mu(Lu(_u(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return kc(r.value,t);case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),i=n&&t.nodes[n-1];return _u([r.namespace?_u([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===i.type?r.value:Pc(Ku(e,r.value)?r.value.toLowerCase():r.value)])}case"selector-id":return _u(["#",r.value]);case"selector-class":return _u([".",Pc(kc(r.value,t))]);case"selector-attribute":return _u(["[",r.namespace?_u([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?Mc(kc(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":{if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode(),n="selector-selector"===t.type&&t.nodes[0]===r?"":Ou;return _u([n,r.value,Gu(e,r)?"":" "])}const n=r.value.trim().startsWith("(")?Ou:"",i=Pc(kc(r.value.trim(),t))||Ou;return _u([n,i])}case"selector-universal":return _u([r.namespace?_u([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return _u([Vu(r.value),r.nodes&&r.nodes.length>0?_u(["(",Tu(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":{const n=Ru(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Pc(kc(Vu(r.value),t));const i=e.getParentNode();if(i.raws&&i.raws.selector){const e=t.locStart(i),n=e+i.raws.selector.length;return t.originalText.slice(e,n).trim()}return r.value}case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return _u([r.inline?"//":"/*",Fu(r.value),r.inline?"":"*/"]);case"value-comma_group":{const t=e.getParentNode(),i=e.getParentNode(1),o=Uu(e),s=o&&"value-value"===t.type&&("grid"===o||o.startsWith("grid-template")),a=Ru(e,"css-atrule"),u=a&&Xu(a),c=e.map(n,"groups"),l=[],p=Wu(e,"url");let f=!1,h=!1;for(let t=0;t0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return _u([r.open?e.call(n,"open"):"",Tu(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e{const t=e.getValue(),r=n(e);return hc(t)&&"value-comma_group"===t.type&&t.groups&&t.groups[2]&&"value-paren_group"===t.groups[2].type?(r.contents.contents.parts[1]=Mu(r.contents.contents.parts[1]),Mu(Iu(r))):r},"groups"))])),Bu(!a&&zu(t.parser,t.originalText)&&o&&_c(t)?",":""),ku,r.close?e.call(n,"close"):""]),{shouldBreak:o})}case"value-func":return _u([r.value,qu(e,"supports")&&wc(r)?" ":"",e.call(n,"group")]);case"value-paren":return r.value;case"value-number":return _u([Lc(r.value),Vu(r.unit)]);case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Hu(r.value)?r.value.toLowerCase():r.value;case"value-colon":return _u([r.value,Wu(e,"url")?"":Ou]);case"value-comma":return _u([r.value," "]);case"value-string":return Au(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return _u(["@",r.value]);case"value-unicode-range":case"value-unknown":return r.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:Qa,insertPragma:Eu,hasPrettierIgnore:Su,massageAstNode:Ka},Bc={bracketSpacing:{since:"0.0.0",category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:"Common",type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},jc={singleQuote:Bc.singleQuote},Rc=function(e,t){const{languageId:n}=e,r=st(e,["languageId"]);return Object.assign({linguistLanguageId:n},r,{},t(e))},Uc=[".css"],Vc={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Uc,languageId:50},Wc=Object.freeze({__proto__:null,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:Uc,languageId:50,default:Vc}),$c=[".pcss",".postcss"],qc={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:$c,aceMode:"text",languageId:262764437},Yc=Object.freeze({__proto__:null,name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:$c,aceMode:"text",languageId:262764437,default:qc}),Kc=[".less"],Hc={name:"Less",type:"markup",group:"CSS",extensions:Kc,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},zc=Object.freeze({__proto__:null,name:"Less",type:"markup",group:"CSS",extensions:Kc,tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198,default:Hc}),Gc=[".scss"],Jc={name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Gc,languageId:329},Xc=Object.freeze({__proto__:null,name:"SCSS",type:"markup",tmScope:"source.css.scss",group:"CSS",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:Gc,languageId:329,default:Jc}),Qc=Qe(Wc),Zc=Qe(Yc),el=Qe(zc),tl=Qe(Xc),nl={languages:[Rc(Qc,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"]})),Rc(Zc,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),Rc(el,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),Rc(tl,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:jc,printers:{postcss:Ic}},rl={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};const{concat:il,join:ol,hardline:sl,line:al,softline:ul,group:cl,indent:ll,ifBreak:pl}=ws.builders,{hasIgnoreComment:fl}=ns,{isNextLineEmpty:hl}=Gs,{insertPragma:dl}=rl;function ml(e,t,n){return 0===n.directives.length?"":il([" ",cl(ll(il([ul,ol(il([pl(""," "),ul]),e.map(t,"directives"))])))])}function gl(e,t,n){const r=e.getValue().length;return e.map((e,i)=>{const o=n(e);return hl(t.originalText,e.getValue(),t.locEnd)&&in(e),"interfaces");for(let e=0;e0&&i.push(yl(o[e-1],n,t)),i.push(s[e])}return i}var bl={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.kind){case"Document":{const i=[];return e.map((e,o)=>{i.push(il([e.call(n)])),o!==r.definitions.length-1&&(i.push(sl),hl(t.originalText,e.getValue(),t.locEnd)&&i.push(sl))},"definitions"),il([il(i),sl])}case"OperationDefinition":{const i="{"!==t.originalText[t.locStart(r)],o=!!r.name;return il([i?r.operation:"",i&&o?il([" ",e.call(n,"name")]):"",r.variableDefinitions&&r.variableDefinitions.length?cl(il(["(",ll(il([ul,ol(il([pl("",", "),ul]),e.map(n,"variableDefinitions"))])),ul,")"])):"",ml(e,n,r),r.selectionSet&&(i||o)?" ":"",e.call(n,"selectionSet")])}case"FragmentDefinition":return il(["fragment ",e.call(n,"name"),r.variableDefinitions&&r.variableDefinitions.length?cl(il(["(",ll(il([ul,ol(il([pl("",", "),ul]),e.map(n,"variableDefinitions"))])),ul,")"])):""," on ",e.call(n,"typeCondition"),ml(e,n,r)," ",e.call(n,"selectionSet")]);case"SelectionSet":return il(["{",ll(il([sl,ol(sl,e.call(e=>gl(e,t,n),"selections"))])),sl,"}"]);case"Field":return cl(il([r.alias?il([e.call(n,"alias"),": "]):"",e.call(n,"name"),r.arguments.length>0?cl(il(["(",ll(il([ul,ol(il([pl("",", "),ul]),e.call(e=>gl(e,t,n),"arguments"))])),ul,")"])):"",ml(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?il(['"""',sl,ol(sl,r.value.replace(/"""/g,"\\$&").split("\n")),sl,'"""']):il(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return il(["$",e.call(n,"name")]);case"ListValue":return cl(il(["[",ll(il([ul,ol(il([pl("",", "),ul]),e.map(n,"values"))])),ul,"]"]));case"ObjectValue":return cl(il(["{",t.bracketSpacing&&r.fields.length>0?" ":"",ll(il([ul,ol(il([pl("",", "),ul]),e.map(n,"fields"))])),ul,pl("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return il([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return il(["@",e.call(n,"name"),r.arguments.length>0?cl(il(["(",ll(il([ul,ol(il([pl("",", "),ul]),e.call(e=>gl(e,t,n),"arguments"))])),ul,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return il([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?il([" = ",e.call(n,"defaultValue")]):"",ml(e,n,r)]);case"TypeExtensionDefinition":return il(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return il([e.call(n,"description"),r.description?sl:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?il([" implements ",il(vl(e,t,n))]):"",ml(e,n,r),r.fields.length>0?il([" {",ll(il([sl,ol(sl,e.call(e=>gl(e,t,n),"fields"))])),sl,"}"]):""]);case"FieldDefinition":return il([e.call(n,"description"),r.description?sl:"",e.call(n,"name"),r.arguments.length>0?cl(il(["(",ll(il([ul,ol(il([pl("",", "),ul]),e.call(e=>gl(e,t,n),"arguments"))])),ul,")"])):"",": ",e.call(n,"type"),ml(e,n,r)]);case"DirectiveDefinition":return il([e.call(n,"description"),r.description?sl:"","directive ","@",e.call(n,"name"),r.arguments.length>0?cl(il(["(",ll(il([ul,ol(il([pl("",", "),ul]),e.call(e=>gl(e,t,n),"arguments"))])),ul,")"])):"",r.repeatable?" repeatable":"",il([" on ",ol(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return il([e.call(n,"description"),r.description?sl:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),ml(e,n,r),r.values.length>0?il([" {",ll(il([sl,ol(sl,e.call(e=>gl(e,t,n),"values"))])),sl,"}"]):""]);case"EnumValueDefinition":return il([e.call(n,"description"),r.description?sl:"",e.call(n,"name"),ml(e,n,r)]);case"InputValueDefinition":return il([e.call(n,"description"),r.description?r.description.block?sl:al:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?il([" = ",e.call(n,"defaultValue")]):"",ml(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return il([e.call(n,"description"),r.description?sl:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),ml(e,n,r),r.fields.length>0?il([" {",ll(il([sl,ol(sl,e.call(e=>gl(e,t,n),"fields"))])),sl,"}"]):""]);case"SchemaDefinition":return il(["schema",ml(e,n,r)," {",r.operationTypes.length>0?ll(il([sl,ol(sl,e.call(e=>gl(e,t,n),"operationTypes"))])):"",sl,"}"]);case"OperationTypeDefinition":return il([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return il([e.call(n,"description"),r.description?sl:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),ml(e,n,r),r.fields.length>0?il([" {",ll(il([sl,ol(sl,e.call(e=>gl(e,t,n),"fields"))])),sl,"}"]):""]);case"FragmentSpread":return il(["...",e.call(n,"name"),ml(e,n,r)]);case"InlineFragment":return il(["...",r.typeCondition?il([" on ",e.call(n,"typeCondition")]):"",ml(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return cl(il([e.call(n,"description"),r.description?sl:"",cl(il(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),ml(e,n,r),r.types.length>0?il([" =",pl(""," "),ll(il([pl(il([al," "])),ol(il([al,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return il([e.call(n,"description"),r.description?sl:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),ml(e,n,r)]);case"NonNullType":return il([e.call(n,"type"),"!"]);case"ListType":return il(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:fl,insertPragma:dl,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},Dl={bracketSpacing:Bc.bracketSpacing},El=[".graphql",".gql",".graphqls"],Cl={name:"GraphQL",type:"data",extensions:El,tmScope:"source.graphql",aceMode:"text",languageId:139},Al={languages:[Rc(Qe(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:El,tmScope:"source.graphql",aceMode:"text",languageId:139,default:Cl})),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],options:Dl,printers:{graphql:bl}};function Sl(e,t){return e&&t.some(t=>e.type===t)}function wl(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},i=r.children||r.body||[],o=i.indexOf(n);return-1!==o&&i[o+t]}function xl(e,t=1){return wl(e,-t)}function Fl(e){return wl(e,1)}function _l(e){return Sl(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var Tl={getNextNode:Fl,getPreviousNode:xl,hasPrettierIgnore:function(e){const t=e.getValue(),n=xl(e,2);return _l(t)||_l(n)},isGlimmerComponent:function(e){return Sl(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))},isNextNodeOfSomeType:function(e,t){return Sl(Fl(e),t)},isNodeOfSomeType:Sl,isParentOfSomeType:function(e,t){return Sl(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return Sl(xl(e),t)},isWhitespaceNode:function(e){return Sl(e,["TextNode"])&&!/\S/.test(e.chars)}};const{concat:Ol,join:Nl,softline:kl,hardline:Ml,line:Pl,group:Ll,indent:Il,ifBreak:Bl}=ws.builders,{getNextNode:jl,getPreviousNode:Rl,hasPrettierIgnore:Ul,isGlimmerComponent:Vl,isNextNodeOfSomeType:Wl,isParentOfSomeType:$l,isPreviousNodeOfSomeType:ql,isWhitespaceNode:Yl}=Tl,Kl=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Hl(e,t,n){return Ol(e.map((r,i)=>{const o=e.getValue(),s=0===i,a=i===e.getParentNode(0).children.length-1&&!s;return Yl(o)&&a?n(r,t,n):s?Ol([kl,n(r,t,n)]):n(r,t,n)},"children"))}function zl(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},i=t.singleQuote?r:n,o=i===r?n:r;let s=!1;(e.includes(i.quote)||e.includes(o.quote))&&(s=(e.match(i.regex)||[]).length>(e.match(o.regex)||[]).length);const a=s?o:i,u=e.replace(a.regex,"\\".concat(a.quote));return Ol([a.quote,u,a.quote])}function Gl(e,t){return e.call(t,"path")}function Jl(e,t){const n=e.getValue();let r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Xl(e,t){const n=[Gl(e,t),...Jl(e,t)];return Il(Ll(Nl(Pl,n)))}function Ql(e){const t=e.getValue();return t.program&&t.program.blockParams.length?Ol([" as |",t.program.blockParams.join(" "),"|"]):""}function Zl(e,t,{open:n=!1,close:r=!1}={}){return Ll(Ol([n?"{{~#":"{{#",Xl(e,t),Ql(e),kl,r?"~}}":"}}"]))}function ep(e,t,{open:n=!1,close:r=!1}={}){return Ol([n?"{{~/":"{{/",e.call(t,"path"),r?"~}}":"}}"])}function tp(e){return(e="string"==typeof e?e:"").split("\n").length-1}function np(e=0,t=0){return new Array(Math.min(e,t)).fill(Ml)}function rp(e,t,n){let r=0,i=0;for(;;){if(i===e.length)return null;let o=e.indexOf("\n",i);if(-1===o&&(o=e.length),r===t)return i+n>o?null:i+n;if(-1===o)return null;r+=1,i=o+1}}var ip={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(Ul(e)){const e=rp(t.originalText,r.loc.start.line-1,r.loc.start.column),n=rp(t.originalText,r.loc.end.line-1,r.loc.end.column);return t.originalText.slice(e,n)}switch(r.type){case"Block":case"Program":case"Template":return Ll(Ol(e.map(n,"body")));case"ElementNode":{const i=r.children.length>0,o=r.children.some(e=>!Yl(e)),s=Vl(r)&&(!i||!o)||Kl.includes(r.tag),a=s?Ol([" />",kl]):">",u=s?"/>":">",c=(e,t)=>Il(Ol([r.attributes.length?Pl:"",Nl(Pl,e.map(t,"attributes")),r.modifiers.length?Pl:"",Nl(Pl,e.map(t,"modifiers")),r.comments.length?Pl:"",Nl(Pl,e.map(t,"comments"))])),l=jl(e);return Ol([Ll(Ol(["<",r.tag,c(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Bl(kl,""),Bl(u,a)])),s?"":Ll(Ol([o?Il(Hl(e,t,n)):"",Bl(i?Ml:"",""),Ol([""])])),l&&"ElementNode"===l.type?Ml:""])}case"BlockStatement":{const t=e.getParentNode(1),i=t&&t.inverse&&1===t.inverse.body.length&&t.inverse.body[0]===r&&"if"===t.inverse.body[0].path.parts[0],o=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],s=o?e=>e:Il,a=(r.inverseStrip.open?"{{~":"{{")+"else"+(r.inverseStrip.close?"~}}":"}}");if(r.inverse)return Ol([i?Ol([r.openStrip.open?"{{~else ":"{{else ",Xl(e,n),r.openStrip.close?"~}}":"}}"]):Zl(e,n,r.openStrip),Il(Ol([Ml,e.call(n,"program")])),r.inverse&&!o?Ol([Ml,a]):"",r.inverse?s(Ol([Ml,e.call(n,"inverse")])):"",i?"":Ol([Ml,ep(e,n,r.closeStrip)])]);if(i)return Ol([Ol([r.openStrip.open?"{{~else":"{{else ",Xl(e,n),r.openStrip.close?"~}}":"}}"]),Il(Ol([Ml,e.call(n,"program")]))]);const u=r.program.body.some(e=>!Yl(e));return Ol([Zl(e,n,r.openStrip),Ll(Ol([Il(Ol([kl,e.call(n,"program")])),u?Ml:kl,ep(e,n,r.closeStrip)]))])}case"ElementModifierStatement":return Ll(Ol(["{{",Xl(e,n),kl,"}}"]));case"MustacheStatement":{const t=!1===r.escaped,{open:i,close:o}=r.strip,s=(t?"{{{":"{{")+(i?"~":""),a=(o?"~":"")+(t?"}}}":"}}"),u=$l(e,["AttrNode","ConcatStatement","ElementNode"])?[s,Il(kl)]:[s];return Ll(Ol([...u,Xl(e,n),kl,a]))}case"SubExpression":{const t=Jl(e,n),r=t.length>0?Il(Ol([Pl,Ll(Nl(Pl,t))])):"";return Ll(Ol(["(",Gl(e,n),r,kl,")"]))}case"AttrNode":{const i="TextNode"===r.value.type;if(i&&""===r.value.chars&&r.value.loc.start.column===r.value.loc.end.column)return Ol([r.name]);const o=e.call(n,"value"),s=i?zl(o.parts.join(),t):o;return Ol([r.name,"=",s])}case"ConcatStatement":return Ol(['"',Ol(e.map(e=>n(e),"parts").filter(e=>""!==e)),'"']);case"Hash":return Ol([Nl(Pl,e.map(n,"pairs"))]);case"HashPair":return Ol([r.key,"=",e.call(n,"value")]);case"TextNode":{const t=2,n=!Rl(e),i=!jl(e),o=!/\S/.test(r.chars),s=tp(r.chars),a="Block"===e.getParentNode(0).type,u="ElementNode"===e.getParentNode(0).type,c="Template"===e.getParentNode(0).type;let l=function(e){return tp(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),p=function(e){return tp(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((n||i)&&o&&(a||u||c))return"";o&&s?(l=Math.min(s,t),p=0):(Wl(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1)),(ql(e,["ElementNode"])||ql(e,["BlockStatement"]))&&(l=Math.max(l,1)));let f="",h="";if(e.stack.includes("attributes")){const t=e.getParentNode(0);if("ConcatStatement"===t.type){const{parts:e}=t,n=e.indexOf(r);n>0&&"MustacheStatement"===e[n-1].type&&(f=" "),n({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],printers:{glimmer:ip}},cp=Object.freeze({__proto__:null,default:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}),lp=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],pp=["title"],fp=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],hp=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],dp=["autoplay","controls","crossorigin","loop","muted","preload","src"],mp=["href","target"],gp=["color","face","size"],yp=["dir"],vp=["cite"],bp=["alink","background","bgcolor","link","text","vlink"],Dp=["clear"],Ep=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Cp=["height","width"],Ap=["align"],Sp=["align","char","charoff","span","valign","width"],wp=["align","char","charoff","span","valign","width"],xp=["value"],Fp=["cite","datetime"],_p=["open"],Tp=["title"],Op=["open"],Np=["compact"],kp=["align"],Mp=["compact"],Pp=["height","src","type","width"],Lp=["disabled","form","name"],Ip=["color","face","size"],Bp=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],jp=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Rp=["cols","rows"],Up=["align"],Vp=["align"],Wp=["align"],$p=["align"],qp=["align"],Yp=["align"],Kp=["profile"],Hp=["align","noshade","size","width"],zp=["manifest","version"],Gp=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],Jp=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Xp=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],Qp=["cite","datetime"],Zp=["prompt"],ef=["accesskey","for","form"],tf=["accesskey","align"],nf=["type","value"],rf=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],of=["name"],sf=["compact"],af=["charset","content","http-equiv","name","scheme"],uf=["high","low","max","min","optimum","value"],cf=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],lf=["compact","reversed","start","type"],pf=["disabled","label"],ff=["disabled","label","selected","value"],hf=["for","form","name"],df=["align"],mf=["name","type","value","valuetype"],gf=["width"],yf=["max","value"],vf=["cite"],bf=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Df=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Ef=["name"],Cf=["media","sizes","src","srcset","type"],Af=["media","nonce","title","type"],Sf=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],wf=["align","char","charoff","valign"],xf=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Ff=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],_f=["align","char","charoff","valign"],Tf=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Of=["align","char","charoff","valign"],Nf=["datetime"],kf=["align","bgcolor","char","charoff","valign"],Mf=["default","kind","label","src","srclang"],Pf=["compact","type"],Lf=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],If={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:lp,abbr:pp,applet:fp,area:hp,audio:dp,base:mp,basefont:gp,bdo:yp,blockquote:vp,body:bp,br:Dp,button:Ep,canvas:Cp,caption:Ap,col:Sp,colgroup:wp,data:xp,del:Fp,details:_p,dfn:Tp,dialog:Op,dir:Np,div:kp,dl:Mp,embed:Pp,fieldset:Lp,font:Ip,form:Bp,frame:jp,frameset:Rp,h1:Up,h2:Vp,h3:Wp,h4:$p,h5:qp,h6:Yp,head:Kp,hr:Hp,html:zp,iframe:Gp,img:Jp,input:Xp,ins:Qp,isindex:Zp,label:ef,legend:tf,li:nf,link:rf,map:of,menu:sf,meta:af,meter:uf,object:cf,ol:lf,optgroup:pf,option:ff,output:hf,p:df,param:mf,pre:gf,progress:yf,q:vf,script:bf,select:Df,slot:Ef,source:Cf,style:Af,table:Sf,tbody:wf,td:xf,textarea:Ff,tfoot:_f,th:Tf,thead:Of,time:Nf,tr:kf,track:Mf,ul:Pf,video:Lf},Bf=Object.freeze({__proto__:null,a:lp,abbr:pp,applet:fp,area:hp,audio:dp,base:mp,basefont:gp,bdo:yp,blockquote:vp,body:bp,br:Dp,button:Ep,canvas:Cp,caption:Ap,col:Sp,colgroup:wp,data:xp,del:Fp,details:_p,dfn:Tp,dialog:Op,dir:Np,div:kp,dl:Mp,embed:Pp,fieldset:Lp,font:Ip,form:Bp,frame:jp,frameset:Rp,h1:Up,h2:Vp,h3:Wp,h4:$p,h5:qp,h6:Yp,head:Kp,hr:Hp,html:zp,iframe:Gp,img:Jp,input:Xp,ins:Qp,isindex:Zp,label:ef,legend:tf,li:nf,link:rf,map:of,menu:sf,meta:af,meter:uf,object:cf,ol:lf,optgroup:pf,option:ff,output:hf,p:df,param:mf,pre:gf,progress:yf,q:vf,script:bf,select:Df,slot:Ef,source:Cf,style:Af,table:Sf,tbody:wf,td:xf,textarea:Ff,tfoot:_f,th:Tf,thead:Of,time:Nf,tr:kf,track:Mf,ul:Pf,video:Lf,default:If}),jf=Qe(cp),Rf=Qe(Bf);const{CSS_DISPLAY_TAGS:Uf,CSS_DISPLAY_DEFAULT:Vf,CSS_WHITE_SPACE_TAGS:Wf,CSS_WHITE_SPACE_DEFAULT:$f}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},qf=Yf(jf);function Yf(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function Kf(e,t){return!(!e.endSourceSpan||("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)&&("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)&&("ieConditionalComment"!==e.type||e.complete)&&("vue"!==t.parser||"element"!==e.type||"root"!==e.parent.type||["template","style","script","html"].includes(e.fullName))&&(!ih(e)||!e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type)))}function Hf(e){return"attribute"!==e.type&&(!!e.parent&&("number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])))}function zf(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||oh(e)&&("script"===e.name||"style"===e.name))}function Gf(e){return"yaml"===e.type||"toml"===e.type}function Jf(e){return sh(e).startsWith("pre")}function Xf(e){return"element"===e.type&&0!==e.children.length&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Qf(e){return nh(e)||"element"===e.type&&"br"===e.fullName||Zf(e)}function Zf(e){return eh(e)&&th(e)}function eh(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function nh(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function rh(e){return"block"===e||"list-item"===e||e.startsWith("table")}function ih(e){return sh(e).startsWith("pre")}function oh(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function sh(e){return"element"===e.type&&(!e.namespace||oh(e))&&Wf[e.name]||$f}var ah={HTML_ELEMENT_ATTRIBUTES:function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}(Rf,Yf),HTML_TAGS:qf,canHaveInterpolation:function(e){return e.children&&!zf(e)},countChars:function(e,t){let n=0;for(let r=0;r!0)){let n=0;for(let r=e.stack.length-1;r>=0;r--){const i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n},dedentString:function(e,t=function(e){let t=1/0;for(const n of e.split("\n")){if(0===n.length)continue;if(/\S/.test(n[0]))return 0;const e=n.match(/^\s*/)[0].length;n.length!==e&&ee.slice(t)).join("\n")},forceBreakChildren:Xf,forceBreakContent:function(e){return Xf(e)||"element"===e.type&&0!==e.children.length&&(["body","script","style"].includes(e.name)||e.children.some(e=>function(e){return e.children&&e.children.some(e=>"text"!==e.type)}(e)))||e.firstChild&&e.firstChild===e.lastChild&&eh(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||th(e.lastChild))},forceNextEmptyLine:function(e){return Gf(e)||e.next&&e.sourceSpan.end.line+1"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||oh(e))&&Uf[e.name]||Vf}},getNodeCssStyleWhiteSpace:sh,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:Hf,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type||"jsx"===e.attrMap.lang)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if(e.attrMap.type.endsWith("json")||e.attrMap.type.endsWith("importmap"))return"json";if("text/x-handlebars-template"===e.attrMap.type)return"glimmer"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang||"css"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!(rh(t=e.cssDisplay)||"inline-block"===t||zf(e));var t},isFrontMatterNode:Gf,isIndentationSensitiveNode:Jf,isLeadingSpaceSensitiveNode:function(e){const t=!(Gf(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ih(e.parent)&&(!e.prev&&("root"===e.parent.type||ih(e)&&e.parent||zf(e.parent)||(n=e.parent.cssDisplay,rh(n)||"inline-block"===n))||e.prev&&!function(e){return!rh(e)}(e.prev.cssDisplay))));var n;return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:ih,isScriptLikeTag:zf,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e){return!(Gf(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ih(e.parent)&&(!e.next&&("root"===e.parent.type||ih(e)&&e.parent||zf(e.parent)||(t=e.parent.cssDisplay,rh(t)||"inline-block"===t))||e.next&&!function(e){return!rh(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return zf(e)||"interpolation"===e.type||Jf(e)},isUnknownNamespace:oh,normalizeParts:function(e){const t=[],n=e.slice();for(;0!==n.length;){const e=n.shift();e&&("concat"!==e.type?0===t.length||"string"!=typeof t[t.length-1]||"string"!=typeof e?t.push(e):t.push(t.pop()+e):n.unshift(...e.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return nh(e)||e.prev&&Qf(e.prev)||Zf(e)},preferHardlineAsTrailingSpaces:Qf,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Hf(e)||Kf(e.parent,t))},shouldPreserveContent:Kf,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}};const{canHaveInterpolation:uh,getNodeCssStyleDisplay:ch,isDanglingSpaceSensitiveNode:lh,isIndentationSensitiveNode:ph,isLeadingSpaceSensitiveNode:fh,isTrailingSpaceSensitiveNode:hh,isWhitespaceSensitiveNode:dh}=ah,mh=[function(e){return e.map(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&0!==e.children.length&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e})},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let i=0;i"cdata"===e.type,e=>""))},function(e,t){if("html"===t.parser)return e;const n=/\{\{([\s\S]+?)\}\}/g;return e.map(e=>{if(!uh(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}const e=r.sourceSpan.constructor;let i=r.sourceSpan.start,o=null;const s=r.value.split(n);for(let n=0;n{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===e.children[0].value.trim().length)return e.clone({children:[],hasDanglingSpaces:0!==e.children.length});const t=dh(e),n=ph(e);return e.clone({isWhitespaceSensitive:t,isIndentationSensitive:n,children:e.children.reduce((e,n)=>{if("text"!==n.type||t)return e.concat(n);const r=[],[,i,o,s]=n.value.match(/^(\s*)([\s\S]*?)(\s*)$/);i&&r.push({type:"whitespace"});const a=n.sourceSpan.constructor;return o&&r.push({type:"text",value:o,sourceSpan:new a(n.sourceSpan.start.moveBy(i.length),n.sourceSpan.end.moveBy(-s.length))}),s&&r.push({type:"whitespace"}),e.concat(r)},[]).reduce((e,t,n,r)=>{if("whitespace"===t.type)return e;const i=0!==n&&"whitespace"===r[n-1].type,o=n!==r.length-1&&"whitespace"===r[n+1].type;return e.concat(Object.assign({},t,{hasLeadingSpaces:i,hasTrailingSpaces:o}))},[])})})},function(e,t){return e.map(e=>Object.assign(e,{cssDisplay:ch(e,t)}))},function(e){return e.map(e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))},function(e,t){return e.map(e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))}))},function(e){return e.map(e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:lh(e)}):e.clone({children:e.children.map(e=>Object.assign({},e,{isLeadingSpaceSensitive:fh(e),isTrailingSpaceSensitive:hh(e)})).map((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive}))}):e)},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map(e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r")+i.firstChild.value+"")+o.value,sourceSpan:new s(n.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:a,hasTrailingSpaces:u}))}else t.push(i)}return e.clone({children:t})}}return e})}];var gh=function(e,t){for(const n of mh)e=n(e,t);return e},yh={hasPragma:function(e){return/^\s*/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}};const{builders:{concat:vh,group:bh}}=ws;var Dh={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:i}=function(e){const t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,n=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(!n)return;const r={};r.for=n[3].trim();const i=n[1].trim().replace(/^\(|\)$/g,""),o=i.match(t);return o?(r.alias=i.replace(t,""),r.iterator1=o[1].trim(),o[2]&&(r.iterator2=o[2].trim())):r.alias=i,{left:"".concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(",")),operator:n[2],right:r.for}}(e);return vh([bh(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(i,{parser:"__js_expression"})])},printVueSlotScope:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})}};const Eh=/^\d+$/;var Ch=e=>function(e){return e.sort().filter((t,n)=>JSON.stringify(t)!==JSON.stringify(e[n-1]))}(e.split(",").map(e=>{const t={};return e.trim().split(/\s+/).forEach((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,e.length-1),i=e[e.length-1],o=parseInt(r,10),s=parseFloat(r);if("w"===i&&Eh.test(r))t.width=o;else if("h"===i&&Eh.test(r))t.height=o;else{if("x"!==i||Number.isNaN(s))throw new Error("Invalid srcset descriptor: ".concat(e));t.density=s}}),t}));const{builders:{concat:Ah,ifBreak:Sh,join:wh,line:xh}}=ws,Fh=Ch;var _h={printImgSrcset:function(e){const t=Fh(e),n=t.some(e=>e.width),r=t.some(e=>e.height);if(n+r+t.some(e=>e.density)>1)throw new Error("Mixed descriptor in srcset is not supported");const i=n?"width":r?"height":"density",o=n?"w":r?"h":"x",s=e=>Math.max(...e),a=t.map(e=>e.url),u=s(a.map(e=>e.length)),c=t.map(e=>e[i]).map(e=>e?e.toString():""),l=c.map(e=>{const t=e.indexOf(".");return-1===t?e.length:t}),p=s(l);return wh(Ah([",",xh]),a.map((e,t)=>{const n=[e],r=c[t];if(r){const i=u-e.length+1,s=p-l[t],a=" ".repeat(i+s);n.push(Sh(a," "),r+o)}return Ah(n)}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};const{builders:Th,utils:{stripTrailingHardline:Oh,mapDoc:Nh}}=ws,{breakParent:kh,dedentToRoot:Mh,fill:Ph,group:Lh,hardline:Ih,ifBreak:Bh,indent:jh,join:Rh,line:Uh,literalline:Vh,markAsRoot:Wh,softline:$h}=Th,{countChars:qh,countParents:Yh,dedentString:Kh,forceBreakChildren:Hh,forceBreakContent:zh,forceNextEmptyLine:Gh,getLastDescendant:Jh,getPrettierIgnoreAttributeCommentData:Xh,hasPrettierIgnore:Qh,inferScriptParser:Zh,isScriptLikeTag:ed,isTextLikeNode:td,normalizeParts:nd,preferHardlineAsLeadingSpaces:rd,shouldNotPrintClosingTag:id,shouldPreserveContent:od,unescapeQuoteEntities:sd}=ah,{replaceEndOfLineWith:ad}=ns,{insertPragma:ud}=yh,{printVueFor:cd,printVueSlotScope:ld,isVueEventBindingExpression:pd}=Dh,{printImgSrcset:fd,printClassNames:hd}=_h;function dd(e){const t=nd(e);return 0===t.length?"":1===t.length?t[0]:Th.concat(t)}function md(e,t,n){const r=e.getValue();if(Hh(r))return dd([kh,dd(e.map(e=>{const t=e.getValue(),n=t.prev?s(t.prev,t):"";return dd([n?dd([n,Gh(t.prev)?Ih:""]):"",o(e)])},"children"))]);const i=r.children.map(()=>Symbol(""));return dd(e.map((e,t)=>{const n=e.getValue();if(td(n)){if(n.prev&&td(n.prev)){const t=s(n.prev,n);if(t)return Gh(n.prev)?dd([Ih,Ih,o(e)]):dd([t,o(e)])}return o(e)}const r=[],a=[],u=[],c=[],l=n.prev?s(n.prev,n):"",p=n.next?s(n,n.next):"";return l&&(Gh(n.prev)?r.push(Ih,Ih):l===Ih?r.push(Ih):td(n.prev)?a.push(l):a.push(Bh("",$h,{groupId:i[t-1]}))),p&&(Gh(n)?td(n.next)&&c.push(Ih,Ih):p===Ih?td(n.next)&&c.push(Ih):u.push(p)),dd([].concat(r,Lh(dd([dd(a),Lh(dd([o(e),dd(u)]),{id:i[t]})])),c))},"children"));function o(e){const r=e.getValue();return Qh(r)?dd([].concat(Fd(r,t),ad(t.originalText.slice(t.locStart(r)+(r.prev&&Cd(r.prev)?Od(r).length:0),t.locEnd(r)-(r.next&&Sd(r.next)?Md(r,t).length:0)),Vh),Td(r,t))):od(r,t)?dd([].concat(Fd(r,t),Lh(gd(e,t,n)),ad(t.originalText.slice(r.startSourceSpan.end.offset+(r.firstChild&&Ad(r.firstChild)?-Nd(r).length:0),r.endSourceSpan.start.offset+(r.lastChild&&xd(r.lastChild)?kd(r,t).length:wd(r)?-Md(r.lastChild,t).length:0)),Vh),bd(r,t),Td(r,t))):n(e)}function s(e,t){return td(e)&&td(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?rd(t)?Ih:Uh:"":rd(t)?Ih:$h:Cd(e)&&(Qh(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&0!==t.attrs.length)||"element"===e.type&&e.isSelfClosing&&Sd(t)?"":!t.isLeadingSpaceSensitive||rd(t)||Sd(t)&&e.lastChild&&xd(e.lastChild)&&e.lastChild.lastChild&&xd(e.lastChild.lastChild)?Ih:t.hasLeadingSpaces?Uh:$h}}function gd(e,t,n){const r=e.getValue(),i="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length;return dd([yd(r,t),r.attrs&&0!==r.attrs.length?dd([jh(dd([i?" ":Uh,Rh(Uh,(r=>{const i="boolean"==typeof r?()=>r:Array.isArray(r)?e=>r.includes(e.rawName):()=>!1;return e.map(e=>{const r=e.getValue();return i(r)?dd(ad(t.originalText.slice(t.locStart(r),t.locEnd(r)),Vh)):n(e)},"attrs")})(r.prev&&"comment"===r.prev.type&&Xh(r.prev.value)))])),r.firstChild&&Ad(r.firstChild)||r.isSelfClosing&&wd(r.parent)?r.isSelfClosing?" ":"":r.isSelfClosing?i?" ":Uh:i?"":$h]):r.isSelfClosing?" ":"",r.isSelfClosing?"":vd(r)])}function yd(e,t){return e.prev&&Cd(e.prev)?"":dd([Fd(e,t),Od(e)])}function vd(e){return e.firstChild&&Ad(e.firstChild)?"":Nd(e)}function bd(e,t){return dd([e.isSelfClosing?"":Dd(e,t),Ed(e,t)])}function Dd(e,t){return e.lastChild&&xd(e.lastChild)?"":dd([_d(e,t),kd(e,t)])}function Ed(e,t){return(e.next?Sd(e.next):wd(e.parent))?"":dd([Md(e,t),Td(e,t)])}function Cd(e){return e.next&&!td(e.next)&&td(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Ad(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sd(e){return e.prev&&!td(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function wd(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!td(Jh(e.lastChild))}function xd(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&td(Jh(e))}function Fd(e,t){return Ad(e)?Nd(e.parent):Sd(e)?Md(e.prev,t):""}function _d(e,t){return wd(e)?Md(e.lastChild,t):""}function Td(e,t){return xd(e)?kd(e.parent,t):Cd(e)?Od(e.next):""}function Od(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function Nd(e){switch(e.isSelfClosing,e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function kd(e,t){if(e.isSelfClosing,id(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Pd(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ad(t,Vh):ad(Kh(t.replace(/^\s*?\n|\n\s*?$/g,"")),Ih):Rh(Uh,t.split(/[\t\n\f\r ]+/)).parts}var Ld={preprocess:gh,print:function(e,t,n){const r=e.getValue();switch(r.type){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),Th.concat([Lh(md(e,t,n)),Ih]);case"element":case"ieConditionalComment":{const o=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return dd([Lh(dd([Lh(gd(e,t,n),{id:s}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?Uh:"":dd([zh(r)?kh:"",(i=dd([o?Bh($h,"",{groupId:s}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?Uh:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?Mh($h):$h,md(e,t,n)]),o?Bh(jh(i),i,{groupId:s}):ed(r)&&"root"===r.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?i:jh(i)),(r.next?Sd(r.next):wd(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":o?Bh($h,"",{groupId:s}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?Uh:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Yh(e,e=>e.parent&&"root"!==e.parent.type),"}$")).test(r.lastChild.value)?"":$h])])),bd(r,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return dd([yd(r),Ed(r)]);case"interpolation":return dd([yd(r,t),dd(e.map(n,"children")),Ed(r,t)]);case"text":if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return dd([dd(ad(n,Vh)),t?Ih:""])}return Ph(nd([].concat(Fd(r,t),Pd(r),Td(r,t))));case"docType":return dd([Lh(dd([yd(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Ed(r,t)]);case"comment":return dd([Fd(r,t),dd(ad(t.originalText.slice(t.locStart(r),t.locEnd(r)),Vh)),Td(r,t)]);case"attribute":{if(null===r.value)return r.rawName;const e=sd(r.value),t=qh(e,"'")sd(e.value);let o=!1;const s=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(o=!0)},a=(e,t=!0)=>Lh(dd([jh(dd([$h,e])),t?$h:""])),u=e=>o?(e=>Lh(e))(e):a(e),c=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:s},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return a(fd(i()));if("class"===e.fullName&&!n.parentParser){const e=i();if(!e.includes("{{"))return hd(e)}if("style"===e.fullName&&!n.parentParser){const e=i();if(!e.includes("{{"))return a(c(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return cd(i(),c);if("slot-scope"===e.fullName)return ld(i(),c);const t=["^:","^v-bind:"],n=["^v-"];if(r(["^@","^v-on:"])){const e=i();return u(pd(e)?c(e,{parser:"__js_expression"}):Oh(c(e,{parser:"__vue_event_binding"})))}if(r(t))return u(c(i(),{parser:"__vue_expression"}));if(r(n))return u(c(i(),{parser:"__js_expression"}))}if("angular"===n.parser){const t=(e,t)=>c(e,Object.assign({},t,{trailingComma:"none"})),n=["^\\*"],o=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],s=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return u(t(i(),{parser:"__ng_action"}));if(r(o))return u(t(i(),{parser:"__ng_binding"}));if(r(s)){const t=i().trim();return a(Ph(Pd(e,t)),!t.includes("@@"))}if(r(n))return u(t(i(),{parser:"__ng_directive"}));const l=/\{\{([\s\S]+?)\}\}/g,p=i();if(l.test(p)){const e=[];return p.split(l).forEach((n,r)=>{if(r%2==0)e.push(dd(ad(n,Vh)));else try{e.push(Lh(dd(["{{",jh(dd([Uh,t(n,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Uh,"}}"])))}catch(t){e.push("{{",dd(ad(n,Vh)),"}}")}}),Lh(dd(e))}}return null}(i,(e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0},t)),r);if(e)return dd([i.rawName,'="',Lh(Nh(e,e=>"string"==typeof e?e.replace(/"/g,"""):e)),'"']);break}case"yaml":return Wh(dd(["---",Ih,0===i.value.trim().length?"":n(i.value,{parser:"yaml"}),"---"]))}}},Id={htmlWhitespaceSensitivity:{since:"1.15.0",category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Bd=["xhtml"],jd=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],Rd={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Bd,extensions:jd,languageId:146},Ud=Object.freeze({__proto__:null,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Bd,extensions:jd,languageId:146,default:Rd}),Vd=[".vue"],Wd={name:"Vue",type:"markup",color:"#2c3e50",extensions:Vd,tmScope:"text.html.vue",aceMode:"html",languageId:391},$d=Object.freeze({__proto__:null,name:"Vue",type:"markup",color:"#2c3e50",extensions:Vd,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:Wd}),qd=Qe(Ud),Yd=Qe($d),Kd={languages:[Rc(qd,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),Rc(qd,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),Rc(qd,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),Rc(Yd,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:Ld},options:Id};const{addLeadingComment:Hd,addTrailingComment:zd,addDanglingComment:Gd,getNextNonSpaceNonCommentCharacterIndex:Jd}=Gs;function Xd(e,t){const n=e.body.filter(e=>"EmptyStatement"!==e.type);0===n.length?Gd(e,t):Hd(n[0],t)}function Qd(e,t){"BlockStatement"===e.type?Xd(e,t):Hd(e,t)}function Zd(e,t,n,r,i,o){return!(!n||"IfStatement"!==n.type||!r)&&(")"===ns.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd)?(zd(t,i),!0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?zd(t,i):Gd(n,i),!0):"BlockStatement"===r.type?(Xd(r,i),!0):"IfStatement"===r.type?(Qd(r.consequent,i),!0):n.consequent===r&&(Hd(r,i),!0))}function em(e,t,n,r,i,o){return!(!n||"WhileStatement"!==n.type||!r)&&(")"===ns.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd)?(zd(t,i),!0):"BlockStatement"===r.type&&(Xd(r,i),!0))}function tm(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n||("CatchClause"===e.type&&t?(zd(t,r),0):"BlockStatement"===n.type?(Xd(n,r),0):"TryStatement"===n.type?(Qd(n.finalizer,r),0):"CatchClause"!==n.type||(Qd(n.body,r),0)))}function nm(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type||(e.decorators&&0!==e.decorators.length?zd(e.decorators[e.decorators.length-1],r):Hd(e,r),0))}function rm(e,t,n,r,i){return(t&&n&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==ns.getNextNonSpaceNonCommentCharacter(e,n,i.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(zd(n,r),!0)}function im(e,t,n,r,i,o){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return zd(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&cm(n)&&")"===ns.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd))return zd(t,i),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{if(0!==(n.params||n.parameters).length)return ns.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,o.locEnd(ns.getLast(n.params||n.parameters)));const t=ns.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,o.locEnd(n.id));return ns.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)})();if(o.locStart(i)>t)return Xd(r,i),!0}return!1}function om(e,t){return!(!e||"ImportSpecifier"!==e.type||(Hd(e,t),0))}function sm(e,t){return!(!e||"LabeledStatement"!==e.type||(Hd(e,t),0))}function am(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Gd(t,n):Hd(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?Gd(e,n):Hd(e,n),0))}function um(e){return"Block"===e.type||"CommentBlock"===e.type}function cm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function lm(e){return um(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var pm={handleOwnLineComment:function(e,t,n,r,i){const{precedingNode:o,enclosingNode:s,followingNode:a}=e;return im(t,o,s,a,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(Hd(e,n),!0)}(s,a,e)||Zd(t,o,s,a,e,n)||em(t,o,s,a,e,n)||tm(s,o,a,e)||nm(s,0,a,e)||om(s,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(Hd(e,n),!0)}(s,0,e)||function(e,t,n,r){return!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&ns.isNodeIgnoreComment(r)&&(n.types[0].prettierIgnore=!0,r.unignore=!0),!1):(ns.isNodeIgnoreComment(r)&&(n.prettierIgnore=!0,r.unignore=!0),!!e&&(zd(e,r),!0))}(o,s,a,e)||am(s,r,e,i)||function(e,t,n,r,i){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&ns.hasNewline(e,i.locEnd(r)))&&(zd(n,r),!0)}(t,s,o,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(Hd(e,t),!0)}(s,e)||rm(t,s,o,e,n)||sm(s,e)},handleEndOfLineComment:function(e,t,n,r,i){const{precedingNode:o,enclosingNode:s,followingNode:a}=e;return function(e,t){return!(!e||!lm(t))&&(Hd(e,t),!0)}(a,e)||im(t,o,s,a,e,n)||function(e,t,n,r,i,o){const s=t&&!ns.hasNewlineInRange(i,o.locEnd(t),o.locStart(r));return!(t&&s||!e||"ConditionalExpression"!==e.type||!n)&&(Hd(n,r),!0)}(s,o,a,e,t,n)||om(s,e)||Zd(t,o,s,a,e,n)||em(t,o,s,a,e,n)||tm(s,o,a,e)||nm(s,0,a,e)||sm(s,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(Hd(t.arguments[0],n),!0)}(o,s,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(Hd(e,t),!0)}(s,e)||am(s,r,e,i)||function(e,t,n){return!(!e||"TypeAlias"!==e.type)&&(Hd(e,n),!0)}(s,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type&&!um(n))&&(Hd(t,n),!0)}(s,a,e)},handleRemainingComment:function(e,t,n,r,i){const{precedingNode:o,enclosingNode:s,followingNode:a}=e;return!!(Zd(t,o,s,a,e,n)||em(t,o,s,a,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(zd(e.value.left,n),!0)}(s,o,e)||function(e,t,n,r){return")"===ns.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)&&(t&&(cm(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length)?(Gd(t,n),!0):!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(Gd(t.value,n),!0))}(t,s,e,n)||rm(t,s,o,e,n)||am(s,r,e,i)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=Jd(e,n,r.locEnd);return"=>"===e.slice(i,i+2)&&(Gd(t,n),!0)}(t,s,e,n)||function(e,t,n,r,i){return"("===ns.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd)&&(!(!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(zd(n,r),!0))}(t,s,o,e,n)||function(e,t,n,r,i){return!(!t||"TSMappedType"!==t.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(Hd(r.name,i),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(zd(n.constraint,i),!0))}(0,s,o,a,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(zd(e,t),!0)}(s,e)||function(e,t,n,r,i){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==ns.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd))&&(zd(t,r),!0)}(t,s,a,e,n))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))},isBlockComment:um,isTypeCastComment:lm,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s(&|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{isBlockComment:fm,hasLeadingComment:hm}=pm,{builders:{indent:dm,join:mm,line:gm,hardline:ym,softline:vm,literalline:bm,concat:Dm,group:Em,dedentToRoot:Cm},utils:{mapDoc:Am,stripTrailingHardline:Sm}}=ws;function wm(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function xm(e,t){return Am(e,e=>{if(!e.parts)return e;const n=[];return e.parts.forEach(e=>{"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):wm(e)):n.push(e)}),Object.assign({},e,{parts:n})})}function Fm(e){const t=[];let n=!1;return e.map(e=>e.trim()).forEach((e,r,i)=>{""!==e&&(""===i[r-1]&&n?t.push(Dm([ym,e])):t.push(e),n=!0)}),0===t.length?null:mm(ym,t)}function _m(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(e=>"jsx"===e.name.name)||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function Tm(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...Om)}const Om=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Nm(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return Mm(n.object)||Pm(n);case"CallExpression":return Mm(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Mm(n.callee.object.object)||Pm(n.callee.object))||"CallExpression"===n.callee.object.type&&Mm(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function km(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function Mm(e){return"Identifier"===e.type&&"styled"===e.name}function Pm(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Lm(e,t){return hm(e,e=>fm(e)&&e.value===" ".concat(t," "))}let Im=0;var Bm=function(e,t,n,r){const i=e.getValue(),o=e.getParentNode(),s=e.getParentNode(1);switch(i.type){case"TemplateLiteral":{if([_m,Nm,km,Tm].some(t=>t(e))){const r=i.quasis.map(e=>e.value.raw);let o=0;const s=r.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t,"");return function(e,t,n){const r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";const i=r.expressions?t.map(n,"expressions"):[],o=function(e,t){if(!t||!t.length)return e;const n=t.slice();let r=0;const i=Am(e,e=>{if(!e||!e.parts||!e.parts.length)return e;let{parts:t}=e;const i=t.indexOf("@"),o=i+1;if(i>-1&&"string"==typeof t[o]&&t[o].startsWith("prettier-placeholder")){const e=t[i],n=t[o],r=t.slice(o+1);t=t.slice(0,i).concat([e+n]).concat(r)}const s=t.findIndex(e=>"string"==typeof e&&e.startsWith("@prettier-placeholder"));if(s>-1){const e=t[s],i=t.slice(s+1),o=e.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),a=o[1],u=o[2],c=n[a];r++,t=t.slice(0,s).concat(["${",c,"}"+u]).concat(i)}return Object.assign({},e,{parts:t})});return n.length===r?i:null}(e,i);if(!o)throw new Error("Couldn't insert all the expressions");return Dm(["`",dm(Dm([ym,Sm(o)])),vm,"`"])}(n(s,{parser:"scss"}),e,t)}if(function(e){const t=e.getValue(),n=e.getParentNode();return Lm(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){const r=i.expressions?e.map(t,"expressions"):[],o=i.quasis.length;if(1===o&&""===i.quasis[0].value.raw.trim())return"``";const s=[];for(let e=0;e2&&""===c[0].trim()&&""===c[1].trim(),h=l>2&&""===c[l-1].trim()&&""===c[l-2].trim(),d=c.every(e=>/^\s*(?:#[^\r\n]*)?$/.test(e));if(!a&&/#[^\r\n]*$/.test(c[l-1]))return null;let m=null;m=d?Fm(c):Sm(n(u,{parser:"graphql"})),m?(m=xm(m,!1),!t&&f&&s.push(""),s.push(m),!a&&h&&s.push("")):t||a||!f||s.push(""),p&&s.push(Dm(["${",p,"}"]))}return Dm(["`",dm(Dm([ym,mm(ym,s)])),ym,"`"])}const o=function(e){return Lm(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}(e)?"html":function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...Om)}(e)?"angular":void 0;if(o)return function(e,t,n,r,i){const o=e.getValue(),s=Im;Im=Im+1>>>0;const a=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS"),u=o.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+a(t)).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";const l=new RegExp(a("(\\d+)"),"g");let p=0;const f=Am(Sm(n(u,{parser:r,__onHtmlRoot(e){p=e.children.length}})),e=>{if("string"!=typeof e)return e;const t=[],n=e.split(l);for(let e=0;e1?dm(Em(f)):Em(f),d,"`"]))}(e,t,n,o,r);break}case"TemplateElement":if(s&&"TaggedTemplateExpression"===s.type&&1===o.quasis.length&&"Identifier"===s.tag.type&&("md"===s.tag.name||"markdown"===s.tag.name)){const e=o.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`"),t=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(e);return Dm([""!==t?dm(Dm([vm,a(e.replace(new RegExp("^".concat(t),"gm"),""))])):Dm([bm,Cm(a(e))]),vm])}}function a(e){const t=n(e,{parser:"markdown",__inJsTemplate:!0});return Sm(xm(t,!0))}},jm=function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","flags","errors"].forEach(e=>{delete t[e]}),e.loc&&null===e.loc.source&&delete t.loc.source,"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};"TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"jsx"===e.name.name)&&t.children.filter(e=>"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type).map(e=>e.expression).reduce((e,t)=>e.concat(t.quasis),[]).forEach(e=>delete e.value),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach(e=>delete e.value);const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((e,t)=>{let r=null;switch(n[t].key.name){case"styles":"ArrayExpression"===e.value.type&&(r=e.value.elements[0]);break;case"template":"TemplateLiteral"===e.value.type&&(r=e.value)}r&&r.quasis.forEach(e=>delete e.value)})}"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach(e=>delete e.value),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some(e=>"CommentBlock"===e.type&&["GraphQL","HTML"].some(t=>e.value===" ".concat(t," ")))||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach(e=>delete e.value)};const{getLast:Rm,hasNewline:Um,hasNewlineInRange:Vm,hasIgnoreComment:Wm,hasNodeIgnoreComment:$m,skipWhitespace:qm}=ns,Ym=Si.keyword.isIdentifierNameES5,Km=new RegExp("^".concat("(?:(?=.)\\s)","*:")),Hm=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function zm(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some(e=>zm(e,t));const n=t(e);return"boolean"==typeof n?n:Object.keys(e).some(n=>zm(e[n],t))}function Gm(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}const Jm=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Xm(e){return e&&Jm.has(e.type)}function Qm(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function Zm(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function eg(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function tg(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function ng(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function rg(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function ig(e){return"get"===e.kind||"set"===e.kind}function og(e,t,n){return n.locStart(e)===n.locStart(t)}function sg(e,t){return ig(e)||og(e,e.value,t)}const ag=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),ug=/^(skip|[fx]?(it|describe|test))$/;function cg(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}const lg=new RegExp("([ \n\r\t]+)"),pg=new RegExp("[^ \n\r\t]");function fg(e){return Qm(e)&&(pg.test(mg(e))||!/\n/.test(mg(e)))}function hg(e,t,n){return rg(t)?$m(t):t.comments&&t.comments.some(t=>t.leading&&Um(e,n.locEnd(t)))}function dg(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function mg(e){return e.extra?e.extra.raw:e.raw}var gg={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){const t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{const t=e.value?e.value.async:e.async,n=e.value?e.value.generator:e.generator;return!(t||"get"===e.kind||"set"===e.kind||!e.computed&&!n)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){const t=e.getNode();if("ClassProperty"!==t.type)return!1;const n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){const t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(rg))},getFlowVariance:function(e){if(!e.variance)return null;const t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Xm(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(e=>!e.leading&&!e.trailing)},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Hm)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Km)},hasLeadingComment:function(e){return e.comments&&e.comments.some(e=>e.leading)},hasLeadingOwnLineComment:hg,hasNakedLeftSide:Gm,hasNewlineBetweenOrAfterDecorators:function(e,t){return Vm(t.originalText,t.locStart(e.decorators[0]),t.locEnd(Rm(e.decorators)))||Um(t.originalText,t.locEnd(Rm(e.decorators)))},hasNgSideEffect:function(e){return zm(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:zm,hasPrettierIgnore:function(e){return Wm(e)||function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&rg(t)&&rg(n)))return!1;let r=null;for(let e=n.children.indexOf(t);e>0;e--){const t=n.children[e-1];if("JSXText"!==t.type||fg(t)){r=t;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find(e=>"prettier-ignore"===e.value.trim())}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(e=>e.trailing)},identity:function(e){return e},isBinaryish:function(e){return ag.has(e.type)},isCallOrOptionalCallExpression:cg,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return Qm(t)&&!fg(t)},isExportDeclaration:Xm,isFlowAnnotationComment:function(e,t,n){const r=n.locStart(t),i=qm(e,n.locEnd(t));return"/*"===e.slice(r,r+2)&&"*/"===e.slice(i,i+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(tg(n)){if(t+=1,t>1)return!0}else if(cg(n))for(const e of n.arguments)if(tg(e))return!0;return!1},isFunctionNotation:sg,isFunctionOrArrowExpression:tg,isGetterOrSetter:ig,isJestEachTemplateLiteral:function(e,t){const n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJSXNode:rg,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&Qm(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){const t=e.getParentNode();if(!t)return!0;const n=e.getValue(),r=(t.body||t.consequent).filter(e=>"EmptyStatement"!==e.type);return r&&r[r.length-1]===n},isLiteral:Qm,isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return cg(t)&&cg(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),i="Literal"===t.type&&t.regex&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&i.length>5)&&("Literal"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"BigIntLiteral"===t.type||"PrivateName"===t.type||"ArgumentPlaceholder"===t.type||"RegExpLiteral"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every(e=>!e.computed&&(e.shorthand||e.value&&r(e.value))):"ArrayExpression"===t.type?t.elements.every(e=>null==e||r(e)):"CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type?e(t.callee,n)&&t.arguments.every(r):"MemberExpression"===t.type||"OptionalMemberExpression"===t.type?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMeaningfulJSXText:fg,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:Zm,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||sg(e,t))},isSimpleFlowType:function(e){return e&&["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].includes(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every(e=>{if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){let t=e;for(;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,t.comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:eg,isStringPropSafeToCoerceToIdentifier:function(e,t){return eg(e.key)&&Ym(e.key.value)&&"json"!==t.parser&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&dg(e)||"TaggedTemplateExpression"===e.type&&dg(e.quasi))&&!Um(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(ng(t)&&n&&e(n))return tg(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return ng(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&ug.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&ug.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||eg(t.arguments[0])))return!(t.arguments[2]&&!Zm(t.arguments[2]))&&((2===t.arguments.length?tg(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||ng(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!rg(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||og(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:lg,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;const t=Rm(e.comments.filter(e=>!e.leading&&!e.trailing));return t&&!pm.isBlockComment(t)},rawText:mg,returnArgumentHasLeadingComment:function(e,t){if(hg(e.originalText,t,e))return!0;if(Gm(t)){let r,i=t;for(;r=(n=i).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(i=r,hg(e.originalText,i,e))return!0}var n;return!1}};const{getLeftSidePathName:yg,hasFlowShorthandAnnotationComment:vg,hasNakedLeftSide:bg,hasNode:Dg}=gg;function Eg(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),i=e.getNode();if(e.getValue()!==i)return!1;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(i)&&Cg(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(i))return!1;if("flow"!==t.parser&&vg(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name));if("ParenthesizedExpression"===n.type)return!1;if(!("ClassDeclaration"!==n.type&&"ClassExpression"!==n.type||n.superClass!==i||"ArrowFunctionExpression"!==i.type&&"AssignmentExpression"!==i.type&&"AwaitExpression"!==i.type&&"BinaryExpression"!==i.type&&"ConditionalExpression"!==i.type&&"LogicalExpression"!==i.type&&"NewExpression"!==i.type&&"ObjectExpression"!==i.type&&"ParenthesizedExpression"!==i.type&&"SequenceExpression"!==i.type&&"TaggedTemplateExpression"!==i.type&&"UnaryExpression"!==i.type&&"UpdateExpression"!==i.type&&"YieldExpression"!==i.type))return!0;if("ExportDefaultDeclaration"===n.type)return function e(t,n){const r=t.getValue(),i=t.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===i.type||!Eg(t,n):!(!bg(r)||"ExportDefaultDeclaration"!==i.type&&Eg(t,n))&&t.call(t=>e(t,n),...yg(t,r))}(e,t)||"SequenceExpression"===i.type;if("Decorator"===n.type&&n.expression===i){let e=!1,t=!1,n=i;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===n.type&&n.body===i&&"SequenceExpression"!==i.type&&ns.startsWithNoLookaheadToken(i,!1)||"ExpressionStatement"===n.type&&ns.startsWithNoLookaheadToken(i,!0))return!0;switch(i.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===i;case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"**"===n.operator&&"left"===r;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if("UpdateExpression"===n.type)return!0;const t=t=>{let n=0;for(;t;){const r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1};if("in"===i.operator&&t(i))return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r&&n.superClass===i;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":return n.left===i&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return n.operator!==i.operator;case"BinaryExpression":{if(!i.operator&&"TSTypeAssertion"!==i.type)return!0;const e=n.operator,t=ns.getPrecedence(e),o=i.operator,s=ns.getPrecedence(o);return t>s||(t===s&&"right"===r?(ho.strictEqual(n.right,i),!0):t===s&&!ns.shouldFlatten(e,o)||(t"ObjectTypeAnnotation"===e.type&&Dg(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}(i)}return!1}function Cg(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(Cg);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return t.properties[t.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(Cg);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(Cg);break;case"UnaryExpression":if(n.prefix)return e.callParent(Cg)}return!1}var Ag=Eg;const{builders:{concat:Sg,join:wg,line:xg}}=ws;var Fg={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call(e=>{const{params:t}=e.getValue();return Sg([t.length>1?"(":"",wg(Sg([",",xg]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(e=>wg(Sg([",",xg]),e.map(n,"params")),"program","body",0):void 0}},_g=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{shouldFlatten:Tg,getNextNonSpaceNonCommentCharacter:Og,hasNewline:Ng,hasNewlineInRange:kg,getLast:Mg,getStringWidth:Pg,printString:Lg,printNumber:Ig,hasIgnoreComment:Bg,hasNodeIgnoreComment:jg,getPenultimate:Rg,startsWithNoLookaheadToken:Ug,getIndentSize:Vg,getPreferredQuote:Wg}=ns,{isNextLineEmpty:$g,isNextLineEmptyAfterIndex:qg,getNextNonSpaceNonCommentCharacterIndex:Yg}=Gs,{insertPragma:Kg}=nu,{printHtmlBinding:Hg,isVueEventBindingExpression:zg}=Fg,{classChildNeedsASIProtection:Gg,classPropMayCauseASIProblems:Jg,conditionalExpressionChainContainsJSX:Xg,getFlowVariance:Qg,getLeftSidePathName:Zg,getParentExportDeclaration:ey,getTypeScriptMappedTypeModifier:ty,hasDanglingComments:ny,hasFlowAnnotationComment:ry,hasFlowShorthandAnnotationComment:iy,hasLeadingComment:oy,hasLeadingOwnLineComment:sy,hasNakedLeftSide:ay,hasNewlineBetweenOrAfterDecorators:uy,hasNgSideEffect:cy,hasPrettierIgnore:ly,hasTrailingComment:py,identity:fy,isBinaryish:hy,isCallOrOptionalCallExpression:dy,isEmptyJSXElement:my,isExportDeclaration:gy,isFlowAnnotationComment:yy,isFunctionCompositionArgs:vy,isFunctionNotation:by,isFunctionOrArrowExpression:Dy,isGetterOrSetter:Ey,isJestEachTemplateLiteral:Cy,isJSXNode:Ay,isJSXWhitespaceExpression:Sy,isLastStatement:wy,isLiteral:xy,isLongCurriedCallExpression:Fy,isMeaningfulJSXText:_y,isMemberExpressionChain:Ty,isMemberish:Oy,isNgForOf:Ny,isNumericLiteral:ky,isObjectType:My,isObjectTypePropertyAFunction:Py,isSimpleCallArgument:Ly,isSimpleFlowType:Iy,isSimpleTemplateLiteral:By,isStringLiteral:jy,isStringPropSafeToCoerceToIdentifier:Ry,isTemplateOnItsOwnLine:Uy,isTestCall:Vy,isTheOnlyJSXElementInMarkdown:Wy,isTSXFile:$y,isTypeAnnotationAFunction:qy,matchJsxWhitespaceRegex:Yy,needsHardlineAfterDanglingComment:Ky,rawText:Hy,returnArgumentHasLeadingComment:zy}=gg,Gy=new WeakMap,{builders:{concat:Jy,join:Xy,line:Qy,hardline:Zy,softline:ev,literalline:tv,group:nv,indent:rv,align:iv,conditionalGroup:ov,fill:sv,ifBreak:av,breakParent:uv,lineSuffixBoundary:cv,addAlignmentToDoc:lv,dedent:pv},utils:{willBreak:fv,isLineNext:hv,isEmpty:dv,removeLines:mv},printer:{printDocToString:gv}}=ws;let yv=0;function vv(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function bv(e,t,n){const r=e.getValue();return nv(Jy([Xy(Qy,e.map(n,"decorators")),uy(r,t)?Zy:Qy]))}function Dv(e,t,n,r){const i=e.getValue(),o=i[r.consequentNodePropertyName],s=i[r.alternateNodePropertyName],a=[];let u=!1;const c=e.getParentNode(),l=c.type===r.conditionalNodeType&&r.testNodePropertyNames.some(e=>c[e]===i);let p,f,h=c.type===r.conditionalNodeType&&!l,d=0;do{f=p||i,p=e.getParentNode(d),d++}while(p&&p.type===r.conditionalNodeType&&r.testNodePropertyNames.every(e=>p[e]!==f));const m=p||c,g=f;if(r.shouldCheckJsx&&(Ay(i[r.testNodePropertyNames[0]])||Ay(o)||Ay(s)||Xg(g))){u=!0,h=!0;const t=e=>Jy([av("(",""),rv(Jy([ev,e])),ev,av(")","")]),i=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;a.push(" ? ",i(o)?e.call(n,r.consequentNodePropertyName):t(e.call(n,r.consequentNodePropertyName))," : ",s.type===r.conditionalNodeType||i(s)?e.call(n,r.alternateNodePropertyName):t(e.call(n,r.alternateNodePropertyName)))}else{const u=Jy([Qy,"? ",o.type===r.conditionalNodeType?av("","("):"",iv(2,e.call(n,r.consequentNodePropertyName)),o.type===r.conditionalNodeType?av("",")"):"",Qy,": ",s.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):iv(2,e.call(n,r.alternateNodePropertyName))]);a.push(c.type!==r.conditionalNodeType||c[r.alternateNodePropertyName]===i||l?u:t.useTabs?pv(rv(u)):iv(Math.max(0,t.tabWidth-2),u))}const y=!u&&("MemberExpression"===c.type||"OptionalMemberExpression"===c.type||"NGPipeExpression"===c.type&&c.left===i)&&!c.computed,v=(e=>c===m?nv(e):e)(Jy([].concat((b=Jy(r.beforeParts()),c.type===r.conditionalNodeType&&c[r.alternateNodePropertyName]===i?iv(2,b):b),h?Jy(a):rv(Jy(a)),r.afterParts(y))));var b;return l?nv(Jy([rv(Jy([ev,v])),ev])):v}function Ev(e,t,n){const r=[],i=e.getNode(),o="ClassBody"===i.type;return e.map((e,s)=>{const a=e.getValue();if(!a)return;if("EmptyStatement"===a.type)return;const u=n(e),c=t.originalText,l=[];if(t.semi||o||Wy(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call(e=>function e(t,n){const r=t.getValue();return!!(Ag(t,n)||"ParenthesizedExpression"===r.type||"TypeCastExpression"===r.type||"ArrowFunctionExpression"===r.type&&!Ov(t,n)||"ArrayExpression"===r.type||"ArrayPattern"===r.type||"UnaryExpression"===r.type&&r.prefix&&("+"===r.operator||"-"===r.operator)||"TemplateLiteral"===r.type||"TemplateElement"===r.type||Ay(r)||"BindExpression"===r.type&&!r.object||"RegExpLiteral"===r.type||"Literal"===r.type&&r.pattern||"Literal"===r.type&&r.regex)||!!ay(r)&&t.call(t=>e(t,n),...Zg(t,r))}(e,t),"expression")}(e,t)?l.push(u):a.comments&&a.comments.some(e=>e.leading)?l.push(n(e,{needsSemi:!0})):l.push(";",u),!t.semi&&o)if(Jg(e))l.push(";");else if("ClassProperty"===a.type){const e=i.body[s+1];Gg(e)&&l.push(";")}$g(c,a,t.locEnd)&&!wy(e)&&l.push(Zy),r.push(Jy(l))}),Xy(Zy,r)}function Cv(e,t,n){const r=e.getNode();if(r.computed)return Jy(["[",e.call(n,"key"),"]"]);const i=e.getParentNode(),{key:o}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===o.type)return Jy(["#",e.call(n,"key")]);if("consistent"===t.quoteProps&&!Gy.has(i)){const e=(i.properties||i.body||i.members).some(e=>!e.computed&&e.key&&jy(e.key)&&!Ry(e,t));Gy.set(i,e)}if("Identifier"===o.type&&("json"===t.parser||"consistent"===t.quoteProps&&Gy.get(i))){const n=Lg(JSON.stringify(o.name),t);return e.call(e=>ga.printComments(e,()=>n,t),"key")}return Ry(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Gy.get(i))?e.call(e=>ga.printComments(e,()=>o.value,t),"key"):e.call(n,"key")}function Av(e,t,n){const r=e.getNode(),{kind:i}=r,o=r.value||r,s=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(ho.ok("get"===i||"set"===i),s.push(i," ")):(o.async&&s.push("async "),o.generator&&s.push("*")),s.push(Cv(e,t,n),r.optional||r.key.optional?"?":"",r===o?Sv(e,t,n):e.call(e=>Sv(e,t,n),"value")),Jy(s)}function Sv(e,t,n){const r=[_v(e,0,n),nv(Jy([Tv(e,n,t),kv(e,n,t)]))];return e.getNode().body?r.push(" ",e.call(n,"body")):r.push(t.semi?";":""),Jy(r)}function wv(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&wv(e.expression)||"TSAsExpression"===e.type&&wv(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||Ay(e.body))}function xv(e,t,n){const r=e.getValue(),i=r.arguments;if(0===i.length)return Jy(["(",ga.printDanglingComments(e,t,!0),")"]);if(2===i.length&&"ArrowFunctionExpression"===i[0].type&&0===i[0].params.length&&"BlockStatement"===i[0].body.type&&"ArrayExpression"===i[1].type&&!i.find(e=>e.comments))return Jy(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);let o=!1,s=!1,a=!1;const u=i.length-1,c=e.map((e,r)=>{const i=e.getNode(),c=[n(e)];return r===u||($g(t.originalText,i,t.locEnd)?(0===r&&(a=!0),o=!0,c.push(",",Zy,Zy)):c.push(",",Qy)),s=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;let r=!1;return t.each(e=>{const t=Jy([n(e)]);r=r||fv(t)},"params"),r}(i,e),Jy(c)},"arguments"),l=r.callee&&"Import"===r.callee.type||!vv(t,"all")?"":",";function p(){return nv(Jy(["(",rv(Jy([Qy,Jy(c)])),l,Qy,")"]),{shouldBreak:!0})}if("Decorator"!==e.getParentNode().type&&vy(i))return p();const f=function(e){if(2!==e.length)return!1;const[t,n]=e;return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||wv(n))}(i),h=function(e){const t=Mg(e),n=Rg(e);return!oy(t)&&!py(t)&&wv(t)&&(!n||n.type!==t.type)}(i);if(f||h){const t=(f?c.slice(1).some(fv):c.slice(0,-1).some(fv))||o||s;let u,l=0;e.each(e=>{f&&0===l&&(u=[Jy([e.call(e=>n(e,{expandFirstArg:!0})),c.length>1?",":"",a?Zy:Qy,a?Zy:""])].concat(c.slice(1))),h&&l===i.length-1&&(u=c.slice(0,-1).concat(e.call(e=>n(e,{expandLastArg:!0})))),l++},"arguments");const d=c.some(fv),m=Jy(["(",Jy(u),")"]);return Jy([d?uv:"",ov([d||r.typeArguments||r.typeParameters?av(p(),m):m,Jy(f?["(",nv(u[0],{shouldBreak:!0}),Jy(u.slice(1)),")"]:["(",Jy(c.slice(0,-1)),nv(Mg(u),{shouldBreak:!0}),")"]),p()],{shouldBreak:t})])}const d=Jy(["(",rv(Jy([ev,Jy(c)])),av(l),ev,")"]);return Fy(e)?d:nv(d,{shouldBreak:c.some(fv)||o})}function Fv(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const i=e.getParentNode(),o=r.definite||i&&"VariableDeclarator"===i.type&&i.definite,s="DeclareFunction"===i.type&&i.id===r;return yy(t.originalText,r.typeAnnotation,t)?Jy([" /*: ",e.call(n,"typeAnnotation")," */"]):Jy([s?"":o?"!: ":": ",e.call(n,"typeAnnotation")])}function _v(e,t,n){const r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function Tv(e,t,n,r,i){const o=e.getValue(),s=e.getParentNode(),a=o.parameters?"parameters":"params",u=Vy(s),c=Jv(o),l=r&&!(o[a]&&o[a].some(e=>e.comments)),p=i?_v(e,0,t):"";let f=[];if(o[a]){const r=o[a].length-1;f=e.map((e,i)=>{const s=[],a=e.getValue();return s.push(t(e)),i===r?o.rest&&s.push(",",Qy):u||c||l?s.push(", "):$g(n.originalText,a,n.locEnd)?s.push(",",Zy,Zy):s.push(",",Qy),Jy(s)},a)}if(o.rest&&f.push(Jy(["...",e.call(t,"rest")])),0===f.length)return Jy([p,"(",ga.printDanglingComments(e,n,!0,e=>")"===Og(n.originalText,e,n.locEnd)),")"]);const h=Mg(o[a]);if(l)return nv(Jy([mv(p),"(",Jy(f.map(mv)),")"]));const d=o[a].every(e=>!e.decorators);if(c&&d)return Jy([p,"(",Jy(f),")"]);if(u)return Jy([p,"(",Jy(f),")"]);if((Py(s,n)||qy(s,n)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===o)&&1===o[a].length&&null===o[a][0].name&&o[a][0].typeAnnotation&&null===o.typeParameters&&Iy(o[a][0].typeAnnotation)&&!o.rest)return"always"===n.arrowParens?Jy(["(",Jy(f),")"]):Jy(f);const m=!(h&&"RestElement"===h.type||o.rest);return Jy([p,"(",rv(Jy([ev,Jy(f)])),av(m&&vv(n,"all")?",":""),ev,")"])}function Ov(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function(e){return!(1!==e.params.length||e.rest||e.typeParameters||ny(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue()))}function Nv(e,t,n){const r=e.getValue(),i=[];return r.async&&i.push("async "),r.generator?i.push("function* "):i.push("function "),r.id&&i.push(e.call(t,"id")),i.push(_v(e,0,t),nv(Jy([Tv(e,t,n),kv(e,t,n)])),r.body?" ":"",e.call(t,"body")),Jy(i)}function kv(e,t,n){const r=e.getValue(),i=e.call(t,"returnType");if(r.returnType&&yy(n.originalText,r.returnType,n))return Jy([" /*: ",i," */"]);const o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",e.call(t,"predicate")),Jy(o)}function Mv(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=["export "],s=r.default||"ExportDefaultDeclaration"===r.type;if(s&&o.push("default "),o.push(ga.printDanglingComments(e,t,!0)),Ky(r)&&o.push(Zy),r.declaration)o.push(e.call(n,"declaration")),s&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&o.push(i);else{if(r.specifiers&&r.specifiers.length>0){const i=[],s=[],a=[];e.each(t=>{const r=e.getValue().type;"ExportSpecifier"===r?i.push(n(t)):"ExportDefaultSpecifier"===r?s.push(n(t)):"ExportNamespaceSpecifier"===r&&a.push(Jy(["* as ",n(t)]))},"specifiers");const u=0!==a.length&&0!==i.length,c=0!==s.length&&(0!==a.length||0!==i.length),l=i.length>1||s.length>0||r.specifiers&&r.specifiers.some(e=>e.comments);let p="";0!==i.length&&(p=l?nv(Jy(["{",rv(Jy([t.bracketSpacing?Qy:ev,Xy(Jy([",",Qy]),i)])),av(vv(t)?",":""),t.bracketSpacing?Qy:ev,"}"])):Jy(["{",t.bracketSpacing?" ":"",Jy(i),t.bracketSpacing?" ":"","}"])),o.push("type"===r.exportKind?"type ":"",Jy(s),Jy([c?", ":""]),Jy(a),Jy([u?", ":""]),p)}else o.push("{}");r.source&&o.push(" from ",e.call(n,"source")),o.push(i)}return Jy(o)}function Pv(e,t){const n=ey(e);return n?ho.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Jy(t)}function Lv(e,t,n){const r=e.getValue();return r.modifiers&&r.modifiers.length?Jy([Xy(" ",e.map(n,"modifiers"))," "]):""}function Iv(e,t,n,r){const i=e.getValue();if(!i[r])return"";if(!Array.isArray(i[r]))return e.call(n,r);const o=e.getNode(2),s=e.getNode(3),a=e.getNode(4);return null!=o&&Vy(o)||0===i[r].length||1===i[r].length&&(Gv(i[r][0])||"GenericTypeAnnotation"===i[r][0].type&&Gv(i[r][0].id)||"TSTypeReference"===i[r][0].type&&Gv(i[r][0].typeName)||"NullableTypeAnnotation"===i[r][0].type||a&&"VariableDeclarator"===a.type&&"TSTypeAnnotation"===o.type&&"ArrowFunctionExpression"!==s.type&&"TSUnionType"!==i[r][0].type&&"UnionTypeAnnotation"!==i[r][0].type&&"TSIntersectionType"!==i[r][0].type&&"IntersectionTypeAnnotation"!==i[r][0].type&&"TSConditionalType"!==i[r][0].type&&"TSMappedType"!==i[r][0].type&&"TSTypeOperator"!==i[r][0].type&&"TSIndexedAccessType"!==i[r][0].type&&"TSArrayType"!==i[r][0].type)?Jy(["<",Xy(", ",e.map(n,r)),function(n){if(!ny(n))return"";const r=n.comments.every(pm.isBlockComment),i=ga.printDanglingComments(e,t,r);return r?i:Jy([i,Zy])}(i),">"]):nv(Jy(["<",rv(Jy([ev,Xy(Jy([",",Qy]),e.map(n,r))])),av("typescript"!==t.parser&&"babel-ts"!==t.parser&&vv(t,"all")?",":""),ev,">"]))}function Bv(e,t,n){const r=e.getValue(),i=[];r.abstract&&i.push("abstract "),i.push("class"),r.id&&i.push(" ",e.call(n,"id")),i.push(e.call(n,"typeParameters"));const o=[];if(r.superClass){const s=Jy(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?o.push(nv(Jy([Qy,e.call(e=>ga.printComments(e,()=>s,t),"superClass")]))):i.push(Jy([" ",e.call(e=>ga.printComments(e,()=>s,t),"superClass")]))}else r.extends&&r.extends.length>0&&i.push(" extends ",Xy(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&o.push(Qy,"mixins ",nv(rv(Xy(Jy([",",Qy]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&o.push(Qy,"implements",nv(rv(Jy([Qy,Xy(Jy([",",Qy]),e.map(n,"implements"))])))),o.length>0&&i.push(nv(rv(Jy(o)))),r.body&&r.body.comments&&sy(t.originalText,r.body,t)?i.push(Zy):i.push(" "),i.push(e.call(n,"body")),i}function jv(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function Rv(e,t,n){const r=e.call(n,"property"),i=e.getValue(),o=jv(e);return i.computed?!i.property||ky(i.property)?Jy([o,"[",r,"]"]):nv(Jy([o,"[",rv(Jy([ev,r])),ev,"]"])):Jy([o,".",r])}function Uv(e,t,n){return Jy(["::",e.call(n,"callee")])}function Vv(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?ev:Zy:ev}function Wv(e,t,n,r){return e?Zy:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?Zy:ev:Zy}function $v(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Ay(e.right))}function qv(e,t,n,r){return sy(r.originalText,t,r)?rv(Jy([Qy,n])):hy(t)&&!$v(t)||"ConditionalExpression"===t.type&&hy(t.test)&&!$v(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||jy(e)||"MemberExpression"===e.type)&&(jy(t)||Ty(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?nv(rv(Jy([Qy,n]))):Jy([" ",n])}function Yv(e,t,n,r,i,o){if(!r)return t;const s=qv(e,r,i,o);return nv(Jy([t,n,s]))}function Kv(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Jy([" ",t]):rv(Jy([Qy,t]))}function Hv(e,t,n){const r=Hy(e),i=n||"DirectiveLiteral"===e.type;return Lg(r,t,i)}function zv(e){const t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Gv(e){if(Iy(e)||My(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,n=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&n)return!0}return!1}function Jv(e){if(!e||e.rest)return!1;const t=e.params||e.parameters;if(!t||1!==t.length)return!1;const n=t[0];return!n.comments&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&My(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&My(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function Xv(e,t,n,r){const i=[];let o=[];return e.each(e=>{i.push(Jy(o)),i.push(nv(r(e))),o=[",",Qy],e.getValue()&&$g(t.originalText,e.getValue(),t.locEnd)&&o.push(ev)},n),Jy(i)}function Qv(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[];r.argument&&(zy(t,r.argument)?o.push(Jy([" (",rv(Jy([Zy,e.call(n,"argument")])),Zy,")"])):hy(r.argument)||"SequenceExpression"===r.argument.type?o.push(nv(Jy([av(" ("," "),rv(Jy([ev,e.call(n,"argument")])),ev,av(")")]))):o.push(" ",e.call(n,"argument")));const s=Array.isArray(r.comments)&&r.comments[r.comments.length-1],a=s&&("CommentLine"===s.type||"Line"===s.type);return a&&o.push(i),ny(r)&&o.push(" ",ga.printDanglingComments(e,t,!0)),a||o.push(i),Jy(o)}var Zv={preprocess:_g,print:function(e,t,n,r){const i=e.getValue();let o=!1;const s=function(e,t,n,r){const i=e.getValue(),o=t.semi?";":"";if(!i)return"";if("string"==typeof i)return i;const s=Hg(e,t,n);if(s)return s;let a=[];switch(i.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return Jy([e.call(n,"node"),Zy]);case"File":return i.program&&i.program.interpreter&&a.push(e.call(e=>e.call(n,"interpreter"),"program")),a.push(e.call(n,"program")),Jy(a);case"Program":return i.directives&&e.each(e=>{a.push(n(e),o,Zy),$g(t.originalText,e.getValue(),t.locEnd)&&a.push(Zy)},"directives"),a.push(e.call(e=>Ev(e,t,n),"body")),a.push(ga.printDanglingComments(e,t,!0)),i.body.every(({type:e})=>"EmptyStatement"===e)&&!i.comments||a.push(Zy),Jy(a);case"EmptyStatement":return"";case"ExpressionStatement":if(i.directive)return Jy([Hv(i.expression,t,!0),o]);if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===i)return Jy([e.call(n,"expression"),zg(i.expression)?";":""])}return Jy([e.call(n,"expression"),Wy(t,e)?"":o]);case"ParenthesizedExpression":return i.expression.comments?nv(Jy(["(",rv(Jy([ev,e.call(n,"expression")])),ev,")"])):Jy(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Yv(i.left,e.call(n,"left"),Jy([" ",i.operator]),i.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":{const r=e.getParentNode(),o=e.getParentNode(1),s=i!==r.body&&("IfStatement"===r.type||"WhileStatement"===r.type||"SwitchStatement"===r.type||"DoWhileStatement"===r.type),a=function e(t,n,r,i,o){let s=[];const a=t.getValue();if(hy(a)){Tg(a.operator,a.left.operator)?s=s.concat(t.call(t=>e(t,n,r,!0,o),"left")):s.push(t.call(n,"left"));const u=$v(a),c=("|>"===a.operator||"NGPipeExpression"===a.type||"|"===a.operator&&"__vue_expression"===r.parser)&&!sy(r.originalText,a.right,r),l="NGPipeExpression"===a.type?"|":a.operator,p="NGPipeExpression"===a.type&&0!==a.arguments.length?nv(rv(Jy([ev,": ",Xy(Jy([ev,":",av(" ")]),t.map(n,"arguments").map(e=>iv(2,nv(e))))]))):"",f=Jy(u?[l," ",t.call(n,"right"),p]:[c?ev:"",l,c?" ":Qy,t.call(n,"right"),p]),h=t.getParentNode(),d=!(o&&"LogicalExpression"===a.type)&&h.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type;s.push(" ",d?nv(f):f),i&&a.comments&&(s=ga.printComments(t,()=>Jy(s),r))}else s.push(t.call(n));return s}(e,n,t,!1,s);if(s)return Jy(a);if(("CallExpression"===r.type||"OptionalCallExpression"===r.type)&&r.callee===i||"UnaryExpression"===r.type||("MemberExpression"===r.type||"OptionalMemberExpression"===r.type)&&!r.computed)return nv(Jy([rv(Jy([ev,Jy(a)])),ev]));const u="ReturnStatement"===r.type||"ThrowStatement"===r.type||"JSXExpressionContainer"===r.type&&"JSXAttribute"===o.type||"|"!==i.operator&&"JsExpressionRoot"===r.type||"NGPipeExpression"!==i.type&&("NGRoot"===r.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===r.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||i===r.body&&"ArrowFunctionExpression"===r.type||i!==r.body&&"ForStatement"===r.type||"ConditionalExpression"===r.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&"CallExpression"!==o.type&&"OptionalCallExpression"!==o.type||"TemplateLiteral"===r.type,c="AssignmentExpression"===r.type||"VariableDeclarator"===r.type||"ClassProperty"===r.type||"TSAbstractClassProperty"===r.type||"ClassPrivateProperty"===r.type||"ObjectProperty"===r.type||"Property"===r.type,l=hy(i.left)&&Tg(i.operator,i.left.operator);if(u||$v(i)&&!l||!$v(i)&&c)return nv(Jy(a));if(0===a.length)return"";const p=Ay(i.right),f=Jy(p?a.slice(1,-1):a.slice(1)),h=Symbol("logicalChain-"+ ++yv),d=nv(Jy([a.length>0?a[0]:"",rv(f)]),{id:h});if(!p)return d;const m=Mg(a);return nv(Jy([d,av(rv(m),m,{groupId:h})]))}case"AssignmentPattern":return Jy([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":{const t=!("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type),r=nv(Jy(["<",rv(Jy([ev,e.call(n,"typeAnnotation")])),ev,">"])),o=Jy([av("("),rv(Jy([ev,e.call(n,"expression")])),ev,av(")")]);return t?ov([Jy([r,e.call(n,"expression")]),Jy([r,nv(o,{shouldBreak:!0})]),Jy([r,e.call(n,"expression")])]):nv(Jy([r,e.call(n,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":{const t=e.getParentNode();let r,o=0;do{r=e.getParentNode(o),o++}while(r&&("MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"TSNonNullExpression"===r.type));const s=r&&("NewExpression"===r.type||"BindExpression"===r.type||"VariableDeclarator"===r.type&&"Identifier"!==r.id.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||i.computed||"Identifier"===i.object.type&&"Identifier"===i.property.type&&"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type;return Jy([e.call(n,"object"),s?Rv(e,0,n):nv(rv(Jy([ev,Rv(e,0,n)])))])}case"MetaProperty":return Jy([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return i.object&&a.push(e.call(n,"object")),a.push(nv(rv(Jy([ev,Uv(e,0,n)])))),Jy(a);case"Identifier":return Jy([i.name,jv(e),Fv(e,t,n)]);case"V8IntrinsicIdentifier":return Jy(["%",i.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Jy(["...",e.call(n,"argument"),Fv(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return a.push(Nv(e,n,t)),i.body||a.push(o),Jy(a);case"ArrowFunctionExpression":{i.async&&a.push("async "),Ov(e,t)?a.push(e.call(n,"params",0)):a.push(nv(Jy([Tv(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),kv(e,n,t)])));const o=ga.printDanglingComments(e,t,!0,e=>{const n=Yg(t.originalText,e,t.locEnd);return"=>"===t.originalText.slice(n,n+2)});o&&a.push(" ",o),a.push(" =>");const s=e.call(e=>n(e,r),"body");if(!sy(t.originalText,i.body,t)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||Ay(i.body)||Uy(i.body,t.originalText,t)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return nv(Jy([Jy(a)," ",s]));if("SequenceExpression"===i.body.type)return nv(Jy([Jy(a),nv(Jy([" (",rv(Jy([ev,s])),ev,")"]))]));const u=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(i.comments&&i.comments.length),c=r&&r.expandLastArg&&vv(t,"all"),l="ConditionalExpression"===i.body.type&&!Ug(i.body,!1);return nv(Jy([Jy(a),nv(Jy([rv(Jy([Qy,l?av("","("):"",s,l?av("",")"):""])),u?Jy([av(c?",":""),ev]):""]))]))}case"YieldExpression":return a.push("yield"),i.delegate&&a.push("*"),i.argument&&a.push(" ",e.call(n,"argument")),Jy(a);case"AwaitExpression":{a.push("await ",e.call(n,"argument"));const t=e.getParentNode();return("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&t.callee===i||("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&t.object===i?nv(Jy([rv(Jy([ev,Jy(a)])),ev])):Jy(a)}case"ImportSpecifier":return i.importKind&&a.push(e.call(n,"importKind")," "),a.push(e.call(n,"imported")),i.local&&i.local.name!==i.imported.name&&a.push(" as ",e.call(n,"local")),Jy(a);case"ExportSpecifier":return a.push(e.call(n,"local")),i.exported&&i.exported.name!==i.local.name&&a.push(" as ",e.call(n,"exported")),Jy(a);case"ImportNamespaceSpecifier":return a.push("* as "),a.push(e.call(n,"local")),Jy(a);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return Jy(["export = ",e.call(n,"expression"),o]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Mv(e,t,n);case"ExportAllDeclaration":return a.push("export "),"type"===i.exportKind&&a.push("type "),a.push("* "),i.exported&&a.push("as ",e.call(n,"exported")," "),a.push("from ",e.call(n,"source"),o),Jy(a);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":{a.push("import "),i.importKind&&"value"!==i.importKind&&a.push(i.importKind+" ");const r=[],s=[];return i.specifiers&&i.specifiers.length>0?(e.each(e=>{const t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?r.push(n(e)):s.push(n(e))},"specifiers"),r.length>0&&a.push(Xy(", ",r)),r.length>0&&s.length>0&&a.push(", "),1===s.length&&0===r.length&&i.specifiers&&!i.specifiers.some(e=>e.comments)?a.push(Jy(["{",t.bracketSpacing?" ":"",Jy(s),t.bracketSpacing?" ":"","}"])):s.length>=1&&a.push(nv(Jy(["{",rv(Jy([t.bracketSpacing?Qy:ev,Xy(Jy([",",Qy]),s)])),av(vv(t)?",":""),t.bracketSpacing?Qy:ev,"}"]))),a.push(" from ")):(i.importKind&&"type"===i.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(i),t.locStart(i.source))))&&a.push("{} from "),a.push(e.call(n,"source"),o),Jy(a)}case"Import":return"import";case"TSModuleBlock":case"BlockStatement":{const r=e.call(e=>Ev(e,t,n),"body"),s=i.body.find(e=>"EmptyStatement"!==e.type),u=i.directives&&i.directives.length>0,c=e.getParentNode(),l=e.getParentNode(1);return s||u||ny(i)||"ArrowFunctionExpression"!==c.type&&"FunctionExpression"!==c.type&&"FunctionDeclaration"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"ForStatement"!==c.type&&"WhileStatement"!==c.type&&"DoWhileStatement"!==c.type&&"DoExpression"!==c.type&&("CatchClause"!==c.type||l.finalizer)&&"TSModuleDeclaration"!==c.type?(a.push("{"),u&&e.each(e=>{a.push(rv(Jy([Zy,n(e),o]))),$g(t.originalText,e.getValue(),t.locEnd)&&a.push(Zy)},"directives"),s&&a.push(rv(Jy([Zy,r]))),a.push(ga.printDanglingComments(e,t)),a.push(Zy,"}"),Jy(a)):"{}"}case"ReturnStatement":return Jy(["return",Qv(e,t,n)]);case"NewExpression":case"OptionalCallExpression":case"CallExpression":{const r="NewExpression"===i.type,o=jv(e);if(!r&&"Identifier"===i.callee.type&&("require"===i.callee.name||"define"===i.callee.name)||1===i.arguments.length&&Uy(i.arguments[0],t.originalText,t)||!r&&Vy(i,e.getParentNode()))return Jy([r?"new ":"",e.call(n,"callee"),o,_v(e,0,n),Jy(["(",Xy(", ",e.map(n,"arguments")),")"])]);const s="Identifier"===i.callee.type&&ry(i.callee.trailingComments);if(s&&(i.callee.trailingComments[0].printed=!0),!r&&Oy(i.callee)&&!e.call(e=>Ag(e,t),"callee"))return function(e,t,n){const r=[];function i(e){const{originalText:n}=t,r=Yg(n,e,t.locEnd);return")"===n.charAt(r)?qg(n,r+1,t.locEnd):$g(n,e,t.locEnd)}const o=e.getValue();r.unshift({node:o,printed:Jy([jv(e),_v(e,0,n),xv(e,t,n)])}),e.call(e=>function e(o){const s=o.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!Oy(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?Oy(s)?(r.unshift({node:s,needsParens:Ag(o,t),printed:ga.printComments(o,()=>"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?Rv(o,0,n):Uv(o,0,n),t)}),o.call(t=>e(t),"object")):"TSNonNullExpression"===s.type?(r.unshift({node:s,printed:ga.printComments(o,()=>"!",t)}),o.call(t=>e(t),"expression")):r.unshift({node:s,printed:o.call(n)}):(r.unshift({node:s,printed:Jy([ga.printComments(o,()=>Jy([jv(o),_v(o,0,n),xv(o,t,n)]),t),i(s)?Zy:""])}),o.call(t=>e(t),"callee"))}(e),"callee");const s=[];let a=[r[0]],u=1;for(;ue.trailing)&&(s.push(a),a=[],c=!1)}function l(e){return/^[A-Z]|^[_$]+$/.test(e)}a.length>0&&s.push(a);const p=s.length>=2&&!s[1][0].node.comments&&function(n){const r=e.getParentNode(),i=r&&"ExpressionStatement"===r.type,o=n[1].length&&n[1][0].node.computed;if(1===n[0].length){const e=n[0][0].node;return"ThisExpression"===e.type||"Identifier"===e.type&&(l(e.name)||i&&function(e){return e.length<=t.tabWidth}(e.name)||o)}const s=Mg(n[0]).node;return("MemberExpression"===s.type||"OptionalMemberExpression"===s.type)&&"Identifier"===s.property.type&&(l(s.property.name)||o)}(s);function f(e){const t=e.map(e=>e.printed);return e.length>0&&e[e.length-1].needsParens?Jy(["(",...t,")"]):Jy(t)}const h=s.map(f),d=Jy(h),m=p?3:2,g=s.reduce((e,t)=>e.concat(t),[]),y=g.slice(1,-1).some(e=>oy(e.node))||g.slice(0,-1).some(e=>py(e.node))||s[m]&&oy(s[m][0].node);if(s.length<=m&&!y)return Fy(e)?d:nv(d);const v=Mg(p?s.slice(1,2)[0]:s[0]).node,b="CallExpression"!==v.type&&"OptionalCallExpression"!==v.type&&i(v),D=Jy([f(s[0]),p?Jy(s.slice(1,2).map(f)):"",b?Zy:"",function(e){return 0===e.length?"":rv(nv(Jy([Zy,Xy(Zy,e.map(f))])))}(s.slice(p?2:1))]),E=r.map(({node:e})=>e).filter(dy);return y||E.length>2&&E.some(e=>!e.arguments.every(e=>Ly(e,0)))||h.slice(0,-1).some(fv)||(C=Mg(h),A=Mg(Mg(s)).node,dy(A)&&fv(C)&&E.slice(0,-1).some(e=>e.arguments.some(Dy)))?nv(D):Jy([fv(d)||b?uv:"",ov([d,D])]);var C,A}(e,t,n);const a=Jy([r?"new ":"",e.call(n,"callee"),o,s?"/*:: ".concat(i.callee.trailingComments[0].value.slice(2).trim()," */"):"",_v(e,0,n),xv(e,t,n)]);return dy(i.callee)?nv(a):a}case"TSInterfaceDeclaration":return i.declare&&a.push("declare "),a.push(i.abstract?"abstract ":"",Lv(e,0,n),"interface ",e.call(n,"id"),i.typeParameters?e.call(n,"typeParameters"):""," "),i.extends&&i.extends.length&&a.push(nv(rv(Jy([ev,"extends ",(1===i.extends.length?fy:rv)(Xy(Jy([",",Qy]),e.map(n,"extends")))," "])))),a.push(e.call(n,"body")),Jy(a);case"ObjectTypeInternalSlot":return Jy([i.static?"static ":"","[[",e.call(n,"id"),"]]",jv(e),i.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{let r;r="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties";const s="ObjectTypeAnnotation"===i.type,a=[];s&&a.push("indexers","callProperties","internalSlots"),a.push(r);const u=a.map(e=>i[e][0]).sort((e,n)=>t.locStart(e)-t.locStart(n))[0],c=e.getParentNode(0),l=s&&c&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type)&&"body"===e.getName(),p="TSInterfaceBody"===i.type||l||"ObjectPattern"===i.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&i.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==i.type&&u&&kg(t.originalText,t.locStart(i),t.locStart(u)),f=l?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?av(o,";"):",",h=i.exact?"{|":"{",d=i.exact?"|}":"}",m=[];a.forEach(r=>{e.each(e=>{const r=e.getValue();m.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});let g=[];const y=m.sort((e,t)=>e.loc-t.loc).map(e=>{const n=Jy(g.concat(nv(e.printed)));return g=[f,Qy],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!jg(e.node)||g.shift(),$g(t.originalText,e.node,t.locEnd)&&g.push(Zy),n});if(i.inexact){let n;if(ny(i)){const r=!i.comments.every(pm.isBlockComment),o=ga.printDanglingComments(e,t,!0);n=Jy([o,r||Ng(t.originalText,t.locEnd(i.comments[i.comments.length-1]))?Zy:Qy,"..."])}else n="...";y.push(Jy(g.concat(n)))}const v=Mg(i[r]),b=!(i.inexact||v&&("RestElement"===v.type||jg(v)));let D;if(0===y.length){if(!ny(i))return Jy([h,d,Fv(e,t,n)]);D=nv(Jy([h,ga.printDanglingComments(e,t),ev,d,jv(e),Fv(e,t,n)]))}else D=Jy([h,rv(Jy([t.bracketSpacing?Qy:ev,Jy(y)])),av(b&&(","!==f||vv(t))?f:""),Jy([t.bracketSpacing?Qy:ev,d]),jv(e),Fv(e,t,n)]);return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,n)=>Jv(e)&&("params"===t||"parameters"===t)&&0===n)||e.match(Gv,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,n)=>Jv(e)&&("params"===t||"parameters"===t)&&0===n)?D:nv(D,{shouldBreak:p})}case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?Av(e,t,n):(i.shorthand?a.push(e.call(n,"value")):a.push(Yv(i.key,Cv(e,t,n),":",i.value,e.call(n,"value"),t)),Jy(a));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return i.decorators&&0!==i.decorators.length&&a.push(bv(e,t,n)),i.accessibility&&a.push(i.accessibility+" "),i.static&&a.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&a.push("abstract "),a.push(Av(e,t,n)),Jy(a);case"ObjectMethod":return Av(e,t,n);case"Decorator":return Jy(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===i.elements.length)ny(i)?a.push(nv(Jy(["[",ga.printDanglingComments(e,t),ev,"]"]))):a.push("[]");else{const r=Mg(i.elements),o=!(r&&"RestElement"===r.type),s=o&&null===r,u=i.elements.length>1&&i.elements.every((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const i=n[t+1];if(i&&r!==i.type)return!1;const o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1});a.push(nv(Jy(["[",rv(Jy([ev,Xv(e,t,"elements",n)])),s?",":"",av(o&&!s&&vv(t)?",":""),ga.printDanglingComments(e,t,!0),ev,"]"]),{shouldBreak:u}))}return a.push(jv(e),Fv(e,t,n)),Jy(a);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each(e=>{0===e.getName()?t.push(n(e)):t.push(",",rv(Jy([Qy,n(e)])))},"expressions"),nv(Jy(t))}return nv(Jy([Xy(Jy([",",Qy]),e.map(n,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return zv(i);case"NumericLiteral":return Ig(i.extra.raw);case"BigIntLiteral":return(i.bigint||(i.extra?i.extra.raw:i.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":{if(i.regex)return zv(i.regex);if("number"==typeof i.value)return Ig(i.raw);if("string"!=typeof i.value)return""+i.value;const n=e.getParentNode(1),r="typescript"===t.parser&&"string"==typeof i.value&&n&&("Program"===n.type||"BlockStatement"===n.type);return Hv(i,t,r)}case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Hv(i,t);case"UnaryExpression":return a.push(i.operator),/[a-z]$/.test(i.operator)&&a.push(" "),i.argument.comments&&i.argument.comments.length>0?a.push(nv(Jy(["(",rv(Jy([ev,e.call(n,"argument")])),ev,")"]))):a.push(e.call(n,"argument")),Jy(a);case"UpdateExpression":return a.push(e.call(n,"argument"),i.operator),i.prefix&&a.reverse(),Jy(a);case"ConditionalExpression":return Dv(e,t,n,{beforeParts:()=>[e.call(n,"test")],afterParts:e=>[e?ev:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{const t=e.map(e=>n(e),"declarations"),r=e.getParentNode(),s="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,u=i.declarations.some(e=>e.init);let c;return 1!==t.length||i.declarations[0].comments?t.length>0&&(c=rv(t[0])):c=t[0],a=[i.declare?"declare ":"",i.kind,c?Jy([" ",c]):"",rv(Jy(t.slice(1).map(e=>Jy([",",u&&!s?Zy:Qy,e]))))],s&&r.body!==i||a.push(o),nv(Jy(a))}case"TSTypeAliasDeclaration":{i.declare&&a.push("declare ");const r=qv(i.id,i.typeAnnotation,i.typeAnnotation&&e.call(n,"typeAnnotation"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,o),nv(Jy(a))}case"VariableDeclarator":return Yv(i.id,e.call(n,"id")," =",i.init,i.init&&e.call(n,"init"),t);case"WithStatement":return nv(Jy(["with (",e.call(n,"object"),")",Kv(i.body,e.call(n,"body"))]));case"IfStatement":{const r=Kv(i.consequent,e.call(n,"consequent")),o=nv(Jy(["if (",nv(Jy([rv(Jy([ev,e.call(n,"test")])),ev])),")",r]));if(a.push(o),i.alternate){const r=py(i.consequent)&&i.consequent.comments.some(e=>e.trailing&&!pm.isBlockComment(e))||Ky(i),o="BlockStatement"===i.consequent.type&&!r;a.push(o?" ":Zy),ny(i)&&a.push(ga.printDanglingComments(e,t,!0),r?Zy:" "),a.push("else",nv(Kv(i.alternate,e.call(n,"alternate"),"IfStatement"===i.alternate.type)))}return Jy(a)}case"ForStatement":{const r=Kv(i.body,e.call(n,"body")),o=ga.printDanglingComments(e,t,!0),s=o?Jy([o,ev]):"";return i.init||i.test||i.update?Jy([s,nv(Jy(["for (",nv(Jy([rv(Jy([ev,e.call(n,"init"),";",Qy,e.call(n,"test"),";",Qy,e.call(n,"update")])),ev])),")",r]))]):Jy([s,nv(Jy(["for (;;)",r]))])}case"WhileStatement":return nv(Jy(["while (",nv(Jy([rv(Jy([ev,e.call(n,"test")])),ev])),")",Kv(i.body,e.call(n,"body"))]));case"ForInStatement":return nv(Jy([i.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Kv(i.body,e.call(n,"body"))]));case"ForOfStatement":return nv(Jy(["for",i.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Kv(i.body,e.call(n,"body"))]));case"DoWhileStatement":{const t=Kv(i.body,e.call(n,"body")),r=nv(Jy(["do",t]));return a=[r],"BlockStatement"===i.body.type?a.push(" "):a.push(Zy),a.push("while ("),a.push(nv(Jy([rv(Jy([ev,e.call(n,"test")])),ev])),")",o),Jy(a)}case"DoExpression":return Jy(["do ",e.call(n,"body")]);case"BreakStatement":return a.push("break"),i.label&&a.push(" ",e.call(n,"label")),a.push(o),Jy(a);case"ContinueStatement":return a.push("continue"),i.label&&a.push(" ",e.call(n,"label")),a.push(o),Jy(a);case"LabeledStatement":return"EmptyStatement"===i.body.type?Jy([e.call(n,"label"),":;"]):Jy([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Jy(["try ",e.call(n,"block"),i.handler?Jy([" ",e.call(n,"handler")]):"",i.finalizer?Jy([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(i.param){const r=i.param.comments&&i.param.comments.some(e=>!pm.isBlockComment(e)||e.leading&&Ng(t.originalText,t.locEnd(e))||e.trailing&&Ng(t.originalText,t.locStart(e),{backwards:!0})),o=e.call(n,"param");return Jy(["catch ",Jy(r?["(",rv(Jy([ev,o])),ev,") "]:["(",o,") "]),e.call(n,"body")])}return Jy(["catch ",e.call(n,"body")]);case"ThrowStatement":return Jy(["throw",Qv(e,t,n)]);case"SwitchStatement":return Jy([nv(Jy(["switch (",rv(Jy([ev,e.call(n,"discriminant")])),ev,")"]))," {",i.cases.length>0?rv(Jy([Zy,Xy(Zy,e.map(e=>{const r=e.getValue();return Jy([e.call(n),i.cases.indexOf(r)!==i.cases.length-1&&$g(t.originalText,r,t.locEnd)?Zy:""])},"cases"))])):"",Zy,"}"]);case"SwitchCase":{i.test?a.push("case ",e.call(n,"test"),":"):a.push("default:");const r=i.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){const i=e.call(e=>Ev(e,t,n),"consequent");a.push(1===r.length&&"BlockStatement"===r[0].type?Jy([" ",i]):rv(Jy([Zy,i])))}return Jy(a)}case"DebuggerStatement":return Jy(["debugger",o]);case"JSXAttribute":if(a.push(e.call(n,"name")),i.value){let r;if(jy(i.value)){let e=Hy(i.value).replace(/'/g,"'").replace(/"/g,'"');const n=Wg(e,t.jsxSingleQuote?"'":'"'),o="'"===n?"'":""";e=e.slice(1,-1).replace(new RegExp(n,"g"),o),r=Jy([n,e,n])}else r=e.call(n,"value");a.push("=",r)}return Jy(a);case"JSXIdentifier":return""+i.name;case"JSXNamespacedName":return Xy(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return Xy(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return Xy(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Jy(["{",e.call(e=>{const r=Jy(["...",n(e)]),i=e.getValue();return i.comments&&i.comments.length?Jy([rv(Jy([ev,ga.printComments(e,()=>r,t)])),ev]):r},"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":{const t=e.getParentNode(0),r=i.expression.comments&&i.expression.comments.length>0,o="JSXEmptyExpression"===i.expression.type||!r&&("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type||"ArrowFunctionExpression"===i.expression.type||"CallExpression"===i.expression.type||"OptionalCallExpression"===i.expression.type||"FunctionExpression"===i.expression.type||"TemplateLiteral"===i.expression.type||"TaggedTemplateExpression"===i.expression.type||"DoExpression"===i.expression.type||Ay(t)&&("ConditionalExpression"===i.expression.type||hy(i.expression)));return nv(Jy(o?["{",e.call(n,"expression"),cv,"}"]:["{",rv(Jy([ev,e.call(n,"expression")])),ev,cv,"}"]))}case"JSXFragment":case"JSXElement":{const r=ga.printComments(e,()=>function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&my(r))return Jy([e.call(n,"openingElement"),e.call(n,"closingElement")]);const i="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),o="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return Jy([i,Jy(e.map(n,"children")),o]);r.children=r.children.map(e=>Sy(e)?{type:"JSXText",value:" ",raw:" "}:e);const s=r.children.filter(Ay).length>0,a=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let c=fv(i)||s||u||a;const l="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=l?Jy([" "]):av(Jy([p,ev])," "),h=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,d=function(e,t,n,r,i){const o=e.getValue(),s=[];return e.map((e,t)=>{const a=e.getValue();if(xy(a)){const e=Hy(a);if(_y(a)){const n=e.split(Yy);if(""===n[0]){if(s.push(""),n.shift(),/\n/.test(n[0])){const e=o.children[t+1];s.push(Wv(i,n[1],a,e))}else s.push(r);n.shift()}let u;if(""===Mg(n)&&(n.pop(),u=n.pop()),0===n.length)return;if(n.forEach((e,t)=>{t%2==1?s.push(Qy):s.push(e)}),void 0!==u)if(/\n/.test(u)){const e=o.children[t+1];s.push(Wv(i,Mg(s),a,e))}else s.push(r);else{const e=o.children[t+1];s.push(Vv(i,Mg(s),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&(s.push(""),s.push(Zy)):(s.push(""),s.push(r))}else{const r=n(e);s.push(r);const u=o.children[t+1];if(u&&_y(u)){const e=Hy(u).trim().split(Yy)[0];s.push(Vv(i,e,a,u))}else s.push(Zy)}},"children"),s}(e,0,n,f,h),m=r.children.some(e=>_y(e));for(let e=d.length-2;e>=0;e--){const t=""===d[e]&&""===d[e+1],n=d[e]===Zy&&""===d[e+1]&&d[e+2]===Zy,r=(d[e]===ev||d[e]===Zy)&&""===d[e+1]&&d[e+2]===f,i=d[e]===f&&""===d[e+1]&&(d[e+2]===ev||d[e+2]===Zy),o=d[e]===f&&""===d[e+1]&&d[e+2]===f,s=d[e]===ev&&""===d[e+1]&&d[e+2]===Zy||d[e]===Zy&&""===d[e+1]&&d[e+2]===ev;n&&m||t||r||o||s?d.splice(e,2):i&&d.splice(e+1,2)}for(;d.length&&(hv(Mg(d))||dv(Mg(d)));)d.pop();for(;d.length&&(hv(d[0])||dv(d[0]))&&(hv(d[1])||dv(d[1]));)d.shift(),d.shift();const g=[];d.forEach((e,t)=>{if(e===f){if(1===t&&""===d[t-1])return 2===d.length?void g.push(p):void g.push(Jy([p,Zy]));if(t===d.length-1)return void g.push(p);if(""===d[t-1]&&d[t-2]===Zy)return void g.push(p)}g.push(e),fv(e)&&(c=!0)});const y=m?sv(g):nv(Jy(g),{shouldBreak:!0});if(l)return y;const v=nv(Jy([i,rv(Jy([Zy,y])),Zy,o]));return c?v:ov([nv(Jy([i,Jy(d),o])),v])}(e,t,n),t);return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const i=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,dy,e=>"JSXExpressionContainer"===e.type),o=Ag(e,n);return nv(Jy([o?"":av("("),rv(Jy([ev,t])),ev,o?"":av(")")]),{shouldBreak:i})}(e,r,t)}case"JSXOpeningElement":{const r=e.getValue(),i=r.name&&r.name.comments&&r.name.comments.length>0||r.typeParameters&&r.typeParameters.comments&&r.typeParameters.comments.length>0;if(r.selfClosing&&!r.attributes.length&&!i)return Jy(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&jy(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&(!r.attributes[0].comments||!r.attributes[0].comments.length))return nv(Jy(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Jy(e.map(n,"attributes")),r.selfClosing?" />":">"]));const o=r.attributes.length&&py(Mg(r.attributes)),s=!r.attributes.length&&!i||t.jsxBracketSameLine&&(!i||r.attributes.length)&&!o,a=r.attributes&&r.attributes.some(e=>e.value&&jy(e.value)&&e.value.value.includes("\n"));return nv(Jy(["<",e.call(n,"name"),e.call(n,"typeParameters"),Jy([rv(Jy(e.map(e=>Jy([Qy,n(e)]),"attributes"))),r.selfClosing?Qy:s?">":ev]),r.selfClosing?"/>":s?"":">"]),{shouldBreak:a})}case"JSXClosingElement":return Jy([""]);case"JSXOpeningFragment":case"JSXClosingFragment":{const n=i.comments&&i.comments.length,r=n&&!i.comments.every(pm.isBlockComment),o="JSXOpeningFragment"===i.type;return Jy([o?"<":""])}case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{const n=i.comments&&!i.comments.every(pm.isBlockComment);return Jy([ga.printDanglingComments(e,t,!n),n?Zy:""])}case"ClassBody":return i.comments||0!==i.body.length?Jy(["{",i.body.length>0?rv(Jy([Zy,e.call(e=>Ev(e,t,n),"body")])):ga.printDanglingComments(e,t),Zy,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{i.decorators&&0!==i.decorators.length&&a.push(bv(e,t,n)),i.accessibility&&a.push(i.accessibility+" "),i.declare&&a.push("declare "),i.static&&a.push("static "),("TSAbstractClassProperty"===i.type||i.abstract)&&a.push("abstract "),i.readonly&&a.push("readonly ");const r=Qg(i);return r&&a.push(r),a.push(Cv(e,t,n),jv(e),Fv(e,t,n)),i.value&&a.push(" =",qv(i.key,i.value,e.call(n,"value"),t)),a.push(o),nv(Jy(a))}case"ClassDeclaration":case"ClassExpression":return i.declare&&a.push("declare "),a.push(Jy(Bv(e,t,n))),Jy(a);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return a.push(e.call(n,"expression")),i.typeParameters&&a.push(e.call(n,"typeParameters")),Jy(a);case"TemplateElement":return Xy(tv,i.value.raw.split(/\r?\n/g));case"TemplateLiteral":{let r=e.map(n,"expressions");const o=e.getParentNode();if(Cy(i,o)){const e=function(e,t,n){const r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(e=>0!==e.length)){const i=[],o=t.map(e=>"${"+gv(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),s=[{hasLineBreak:!1,cells:[]}];for(let t=1;te.cells.length)),u=Array.from({length:a}).fill(0),c=[{cells:r},...s.filter(e=>0!==e.cells.length)];for(const{cells:e}of c.filter(e=>!e.hasLineBreak))e.forEach((e,t)=>{u[t]=Math.max(u[t],Pg(e))});return i.push(cv,"`",rv(Jy([Zy,Xy(Zy,c.map(e=>Xy(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(u[n]-Pg(t))))))])),Zy,"`"),Jy(i)}}(i,r,t);if(e)return e}const s=By(i);return s&&(r=r.map(e=>gv(e,Object.assign({},t,{printWidth:1/0})).formatted)),a.push(cv,"`"),e.each(e=>{const o=e.getName();if(a.push(n(e)),o0&&"TSRestType"===Mg(i[r]).type;return nv(Jy(["[",rv(Jy([ev,Xv(e,t,r,n)])),av(vv(t,"all")&&!o?",":""),ga.printDanglingComments(e,t,!0),ev,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"AnyTypeAnnotation":return"any";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return Jy([e.call(n,"elementType"),"[]"]);case"BooleanTypeAnnotation":return"boolean";case"BooleanLiteralTypeAnnotation":return""+i.value;case"DeclareClass":return Pv(e,Bv(e,t,n));case"TSDeclareFunction":return Jy([i.declare?"declare ":"",Nv(e,n,t),o]);case"DeclareFunction":return Pv(e,["function ",e.call(n,"id"),i.predicate?" ":"",e.call(n,"predicate"),o]);case"DeclareModule":return Pv(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return Pv(e,["module.exports",": ",e.call(n,"typeAnnotation"),o]);case"DeclareVariable":return Pv(e,["var ",e.call(n,"id"),o]);case"DeclareExportAllDeclaration":return Jy(["declare export * from ",e.call(n,"source")]);case"DeclareExportDeclaration":return Jy(["declare ",Mv(e,t,n)]);case"DeclareOpaqueType":case"OpaqueType":return a.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),i.supertype&&a.push(": ",e.call(n,"supertype")),i.impltype&&a.push(" = ",e.call(n,"impltype")),a.push(o),"DeclareOpaqueType"===i.type?Pv(e,a):Jy(a);case"EnumDeclaration":return Jy(["enum ",e.call(n,"id")," ",e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===i.type||i.explicitType){let e=null;switch(i.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}a.push("of ",e," ")}return 0===i.members.length?a.push(nv(Jy(["{",ga.printDanglingComments(e,t),ev,"}"]))):a.push(nv(Jy(["{",rv(Jy([Zy,Xv(e,t,"members",n),vv(t)?",":""])),ga.printDanglingComments(e,t,!0),Zy,"}"]))),Jy(a);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return Jy([e.call(n,"id")," = ","object"==typeof i.init?e.call(n,"init"):String(i.init)]);case"EnumDefaultedMember":return e.call(n,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{const r=e.getParentNode(0),o=e.getParentNode(1),s=e.getParentNode(2);let u="TSFunctionType"===i.type||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!Qg(r)&&!r.optional&&t.locStart(r)===t.locStart(i)||"ObjectTypeCallProperty"===r.type||s&&"DeclareFunction"===s.type),c=u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type);const l=c&&u&&("TypeAnnotation"===r.type||"TSTypeAnnotation"===r.type)&&"ArrowFunctionExpression"===o.type;return Py(r,t)&&(u=!0,c=!0),l&&a.push("("),a.push(Tv(e,n,t,!1,!0)),(i.returnType||i.predicate||i.typeAnnotation)&&a.push(u?" => ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),l&&a.push(")"),nv(Jy(a))}case"TSRestType":return Jy(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Jy([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Jy([e.call(n,"name"),jv(e),i.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Jy([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===i.type||i.declare)&&a.push("declare "),a.push("interface"),"DeclareInterface"!==i.type&&"InterfaceDeclaration"!==i.type||a.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),i.extends.length>0&&a.push(nv(rv(Jy([Qy,"extends ",(1===i.extends.length?fy:rv)(Xy(Jy([",",Qy]),e.map(n,"extends")))])))),a.push(" ",e.call(n,"body")),nv(Jy(a));case"ClassImplements":case"InterfaceExtends":return Jy([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return Jy([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{const t=e.map(n,"types"),r=[];let o=!1;for(let e=0;e1&&(o=!0),r.push(" & ",e>1?rv(t[e]):t[e])):r.push(rv(Jy([" &",Qy,t[e]])));return nv(Jy(r))}case"TSUnionType":case"UnionTypeAnnotation":{const r=e.getParentNode(),o=!("TypeParameterInstantiation"===r.type||"TSTypeParameterInstantiation"===r.type||"GenericTypeAnnotation"===r.type||"TSTypeReference"===r.type||"TSTypeAssertion"===r.type||"TupleTypeAnnotation"===r.type||"TSTupleType"===r.type||"FunctionTypeParam"===r.type&&!r.name||("TypeAlias"===r.type||"VariableDeclarator"===r.type||"TSTypeAliasDeclaration"===r.type)&&sy(t.originalText,i,t)),s=Gv(i),a=e.map(e=>{let r=e.call(n);return s||(r=iv(2,r)),ga.printComments(e,()=>r,t)},"types");if(s)return Xy(" | ",a);const u=o&&!sy(t.originalText,i,t),c=Jy([av(Jy([u?Qy:"","| "])),Xy(Jy([Qy,"| "]),a)]);return Ag(e,t)?nv(Jy([rv(c),ev])):"TupleTypeAnnotation"===r.type&&r.types.length>1||"TSTupleType"===r.type&&r.elementTypes.length>1?nv(Jy([rv(Jy([av(Jy(["(",ev])),c])),ev,av(")")])):nv(o?rv(c):c)}case"NullableTypeAnnotation":return Jy(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"ObjectTypeCallProperty":return i.static&&a.push("static "),a.push(e.call(n,"value")),Jy(a);case"ObjectTypeIndexer":{const t=Qg(i);return Jy([t||"","[",e.call(n,"id"),i.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")])}case"ObjectTypeProperty":{const r=Qg(i);let o="";return i.proto?o="proto ":i.static&&(o="static "),Jy([o,Ey(i)?i.kind+" ":"",r||"",Cv(e,t,n),jv(e),by(i,t)?"":": ",e.call(n,"value")])}case"QualifiedTypeIdentifier":return Jy([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Hv(i,t);case"NumberLiteralTypeAnnotation":return ho.strictEqual(typeof i.value,"number"),null!=i.extra?Ig(i.extra.raw):Ig(i.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":{("DeclareTypeAlias"===i.type||i.declare)&&a.push("declare ");const r=qv(i.id,i.right,e.call(n,"right"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",r,o),nv(Jy(a))}case"TypeCastExpression":return Jy(["(",e.call(n,"expression"),Fv(e,t,n),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=e.getValue(),i=r.range?t.originalText.slice(0,r.range[0]).lastIndexOf("/*"):-1;return i>=0&&t.originalText.slice(i).match(/^\/\*\s*::/)?Jy(["/*:: ",Iv(e,t,n,"params")," */"]):Iv(e,t,n,"params")}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Iv(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":{const r=e.getParentNode();if("TSMappedType"===r.type)return a.push("[",e.call(n,"name")),i.constraint&&a.push(" in ",e.call(n,"constraint")),a.push("]"),Jy(a);const o=Qg(i);o&&a.push(o),a.push(e.call(n,"name")),i.bound&&(a.push(": "),a.push(e.call(n,"bound"))),i.constraint&&a.push(" extends ",e.call(n,"constraint")),i.default&&a.push(" = ",e.call(n,"default"));const s=e.getNode(2);return r.params&&1===r.params.length&&$y(t)&&!i.constraint&&"ArrowFunctionExpression"===s.type&&a.push(","),Jy(a)}case"TypeofTypeAnnotation":return Jy(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Jy(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return Jy([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Jy([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return i.export&&a.push("export "),i.accessibility&&a.push(i.accessibility+" "),i.static&&a.push("static "),i.readonly&&a.push("readonly "),a.push(Cv(e,t,n),jv(e)),i.typeAnnotation&&(a.push(": "),a.push(e.call(n,"typeAnnotation"))),i.initializer&&a.push(" = ",e.call(n,"initializer")),Jy(a);case"TSParameterProperty":return i.accessibility&&a.push(i.accessibility+" "),i.export&&a.push("export "),i.static&&a.push("static "),i.readonly&&a.push("readonly "),a.push(e.call(n,"parameter")),Jy(a);case"TSTypeReference":return Jy([e.call(n,"typeName"),Iv(e,t,n,"typeParameters")]);case"TSTypeQuery":return Jy(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":{const r=e.getParentNode(),s=i.parameters.length>1?av(vv(t)?",":""):"",a=nv(Jy([rv(Jy([ev,Xy(Jy([", ",ev]),e.map(n,"parameters"))])),s,ev]));return Jy([i.export?"export ":"",i.accessibility?Jy([i.accessibility," "]):"",i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?a:"",i.typeAnnotation?"]: ":"]",i.typeAnnotation?e.call(n,"typeAnnotation"):"","ClassBody"===r.type?o:""])}case"TSTypePredicate":return Jy([i.asserts?"asserts ":"",e.call(n,"parameterName"),i.typeAnnotation?Jy([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return Jy([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Jy([i.isTypeOf?"typeof ":"","import(",e.call(n,i.parameter?"parameter":"argument"),")",i.qualifier?Jy([".",e.call(n,"qualifier")]):"",Iv(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Jy([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==i.type&&a.push("new "),a.push(nv(Tv(e,n,t,!1,!0))),i.returnType||i.typeAnnotation){const t="TSConstructorType"===i.type;a.push(t?" => ":": ",e.call(n,"returnType"),e.call(n,"typeAnnotation"))}return Jy(a);case"TSTypeOperator":return Jy([i.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":{const r=kg(t.originalText,t.locStart(i),t.locEnd(i));return nv(Jy(["{",rv(Jy([t.bracketSpacing?Qy:ev,i.readonly?Jy([ty(i.readonly,"readonly")," "]):"",Lv(e,0,n),e.call(n,"typeParameter"),i.optional?ty(i.optional,"?"):"",i.typeAnnotation?": ":"",e.call(n,"typeAnnotation"),av(o,"")])),ga.printDanglingComments(e,t,!0),t.bracketSpacing?Qy:ev,"}"]),{shouldBreak:r})}case"TSMethodSignature":return a.push(i.accessibility?Jy([i.accessibility," "]):"",i.export?"export ":"",i.static?"static ":"",i.readonly?"readonly ":"",i.computed?"[":"",e.call(n,"key"),i.computed?"]":"",jv(e),Tv(e,n,t,!1,!0)),(i.returnType||i.typeAnnotation)&&a.push(": ",e.call(n,"returnType"),e.call(n,"typeAnnotation")),nv(Jy(a));case"TSNamespaceExportDeclaration":return a.push("export as namespace ",e.call(n,"id")),t.semi&&a.push(";"),nv(Jy(a));case"TSEnumDeclaration":return i.declare&&a.push("declare "),i.modifiers&&a.push(Lv(e,0,n)),i.const&&a.push("const "),a.push("enum ",e.call(n,"id")," "),0===i.members.length?a.push(nv(Jy(["{",ga.printDanglingComments(e,t),ev,"}"]))):a.push(nv(Jy(["{",rv(Jy([Zy,Xv(e,t,"members",n),vv(t,"es5")?",":""])),ga.printDanglingComments(e,t,!0),Zy,"}"]))),Jy(a);case"TSEnumMember":return a.push(e.call(n,"id")),i.initializer&&a.push(" = ",e.call(n,"initializer")),Jy(a);case"TSImportEqualsDeclaration":return i.isExport&&a.push("export "),a.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&a.push(";"),nv(Jy(a));case"TSExternalModuleReference":return Jy(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{const r=e.getParentNode(),s=xy(i.id),u="TSModuleDeclaration"===r.type,c=i.body&&"TSModuleDeclaration"===i.body.type;if(u)a.push(".");else{i.declare&&a.push("declare "),a.push(Lv(e,0,n));const r=t.originalText.slice(t.locStart(i),t.locStart(i.id));"Identifier"===i.id.type&&"global"===i.id.name&&!/namespace|module/.test(r)||a.push(s||/(^|\s)module(\s|$)/.test(r)?"module ":"namespace ")}return a.push(e.call(n,"id")),c?a.push(e.call(n,"body")):i.body?a.push(" ",nv(e.call(n,"body"))):a.push(o),Jy(a)}case"PrivateName":return Jy(["#",e.call(n,"id")]);case"TSPrivateIdentifier":return i.escapedText;case"TSConditionalType":return Dv(e,t,n,{beforeParts:()=>[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return Jy(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return a.push("#!",i.value,Zy),$g(t.originalText,i,t.locEnd)&&a.push(Zy),Jy(a);case"NGRoot":return Jy([].concat(e.call(n,"node"),i.node.comments&&0!==i.node.comments.length?Jy([" //",i.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return nv(Xy(Jy([";",Qy]),e.map(e=>cy(e)?n(e):Jy(["(",n(e),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Jy([i.prefix,": ",i.value.trim()]);case"NGMicrosyntax":return Jy(e.map((e,t)=>Jy([0===t?"":Ny(e.getValue(),t,i)?" ":Jy([";",Qy]),n(e)]),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(i.name)?i.name:JSON.stringify(i.name);case"NGMicrosyntaxExpression":return Jy([e.call(n,"expression"),null===i.alias?"":Jy([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),r=e.getParentNode(),o=Ny(i,t,r)||(1===t&&("then"===i.key.name||"else"===i.key.name)||2===t&&"else"===i.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return Jy([e.call(n,"key"),o?" ":": ",e.call(n,"expression")])}case"NGMicrosyntaxLet":return Jy(["let ",e.call(n,"key"),null===i.value?"":Jy([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return Jy([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Jy(["?",e.call(n,"typeAnnotation")]);case"TSJSDocNonNullableType":return Jy(["!",e.call(n,"typeAnnotation")]);case"TSJSDocFunctionType":return Jy(["function(","): ",e.call(n,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,n,r);if(!i||dv(s))return s;const a=ey(e),u=[];if("ClassMethod"===i.type||"ClassPrivateMethod"===i.type||"ClassProperty"===i.type||"TSAbstractClassProperty"===i.type||"ClassPrivateProperty"===i.type||"MethodDefinition"===i.type||"TSAbstractMethodDefinition"===i.type||"TSDeclareMethod"===i.type);else if(i.decorators&&i.decorators.length>0&&!(a&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(i.decorators[0]))){const r="ClassExpression"===i.type||"ClassDeclaration"===i.type||uy(i,t)?Zy:Qy;e.each(e=>{let t=e.getValue();t=t.expression?t.expression:t.callee,u.push(n(e),r)},"decorators"),a&&u.unshift(Zy)}else gy(i)&&i.declaration&&i.declaration.decorators&&i.declaration.decorators.length>0&&t.locStart(i,{ignoreDecorators:!0})>t.locStart(i.declaration.decorators[0])?e.each(e=>{const t="Decorator"===e.getValue().type?"":"@";u.push(t,n(e),Zy)},"declaration","decorators"):o=Ag(e,t);const c=[];if(o&&c.unshift("("),c.push(s),o){const t=e.getValue();iy(t)&&(c.push(" /*"),c.push(t.trailingComments[0].value.trimStart()),c.push("*/"),t.trailingComments[0].printed=!0),c.push(")")}return u.length>0?nv(Jy(u.concat(c))):Jy(c)},embed:Bm,insertPragma:Kg,massageAstNode:jm,hasPrettierIgnore:ly,willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(Ay(t)||iy(t)||n&&("CallExpression"===n.type||"OptionalCallExpression"===n.type)&&(ry(t.leadingComments)||ry(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!Bg(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){const n=e.getValue();switch(n.type){case"CommentBlock":case"Block":{if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}(n)){const e=function(e){const t=e.value.split("\n");return Jy(["/*",Xy(Zy,t.map((e,n)=>0===n?e.trimEnd():" "+(n x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Bc.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Bc.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},sb=["js","node"],ab=[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],ub=["Jakefile"],cb=["chakra","d8","gjs","js","node","qjs","rhino","v8","v8-shell"],lb={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:sb,extensions:ab,filenames:ub,interpreters:cb,languageId:183},pb=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:sb,extensions:ab,filenames:ub,interpreters:cb,languageId:183,default:lb}),fb=[".jsx"],hb={name:"JSX",type:"programming",group:"JavaScript",extensions:fb,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},db=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:fb,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:hb}),mb=["ts"],gb=["deno","ts-node"],yb=[".ts"],vb={name:"TypeScript",type:"programming",color:"#2b7489",aliases:mb,interpreters:gb,extensions:yb,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},bb=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:mb,interpreters:gb,extensions:yb,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:vb}),Db=[".tsx"],Eb={name:"TSX",type:"programming",group:"TypeScript",extensions:Db,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},Cb=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:Db,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:Eb}),Ab=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],Sb=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],wb={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Ab,filenames:Sb,languageId:174},xb=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Ab,filenames:Sb,languageId:174,default:wb}),Fb=["jsonc"],_b=[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],Tb=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],Ob={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Fb,extensions:_b,filenames:Tb,languageId:423},Nb=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:Fb,extensions:_b,filenames:Tb,languageId:423,default:Ob}),kb=[".json5"],Mb={name:"JSON5",type:"data",extensions:kb,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},Pb=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:kb,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:Mb}),Lb=Qe(pb),Ib=Qe(db),Bb=Qe(bb),jb=Qe(Cb),Rb=Qe(xb),Ub=Qe(Nb),Vb=Qe(Pb),Wb={languages:[Rc(Lb,e=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})),Rc(Lb,()=>({name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),Rc(Ib,()=>({since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})),Rc(Bb,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),Rc(jb,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),Rc(Rb,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),Rc(Rb,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})),Rc(Ub,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})),Rc(Vb,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:ob,printers:{estree:Zv,"estree-json":ib}};const{cjkPattern:$b,kPattern:qb,punctuationPattern:Yb}={cjkPattern:"[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},{getLast:Kb}=ns,Hb=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],zb=Hb.concat(["tableCell","paragraph","heading"]),Gb=new RegExp(qb),Jb=new RegExp(Yb);function Xb(e,t){const[,n,r,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:i}}var Qb={mapAst:function(e,t){return function e(n,r,i){i=i||[];const o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map((t,n)=>e(t,n,[o].concat(i)))),o}(e,null,null)},splitText:function(e,t){const n=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat($b,")\n(").concat($b,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((e,t,i)=>{t%2!=1?(0!==t&&t!==i.length-1||""!==e)&&e.split(new RegExp("(".concat($b,")"))).forEach((e,t,n)=>{(0!==t&&t!==n.length-1||""!==e)&&(t%2!=0?r(Jb.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:Gb.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&r({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:Jb.test(e[0]),hasTrailingPunctuation:Jb.test(Kb(e))}))}):n.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),n;function r(e){const t=Kb(n);var r,i;t&&"word"===t.type&&("non-cjk"===t.kind&&"cj-letter"===e.kind&&!t.hasTrailingPunctuation||"cj-letter"===t.kind&&"non-cjk"===e.kind&&!e.hasLeadingPunctuation?n.push({type:"whitespace",value:" "}):(r="non-cjk",i="cjk-punctuation",t.kind===r&&e.kind===i||t.kind===i&&e.kind===r||[t.value,e.value].some(e=>/\u3000/.test(e))||n.push({type:"whitespace",value:""}))),n.push(e)}},punctuationPattern:Yb,getFencedCodeBlockValue:function(e,t){const n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,i=new RegExp("^\\s{0,".concat(r,"}")),o=n.split("\n"),s=n[r],a=n.slice(r).match(new RegExp("^[".concat(s,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(a)).test(o[o.length-1].slice(c(o.length-1)));return o.slice(1,u?-1:void 0).map((e,t)=>e.slice(c(t+1)).replace(i,"")).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:Xb,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(Xb(e.children[0],t.originalText).numberText),r=Number(Xb(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(Xb(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:Hb,INLINE_NODE_WRAPPER_TYPES:zb};const{builders:{hardline:Zb,literalline:eD,concat:tD,markAsRoot:nD},utils:{mapDoc:rD}}=ws,{getFencedCodeBlockValue:iD}=Qb;var oD=function(e,t,n,r){const i=e.getValue();if("code"===i.type&&null!==i.lang){const e=i.lang.match(/^[A-Za-z0-9_-]+/),t=function(e){const t=an.getSupportInfo({plugins:r.plugins}).languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.find(t=>t===".".concat(e)));return t?t.parsers[0]:null}(e?e[0]:"");if(t){const e=r.__inJsTemplate?"~":"`",s=e.repeat(Math.max(3,ns.getMaxContinuousCount(i.value,e)+1)),a=n(iD(i,r.originalText),{parser:t});return nD(tD([s,i.lang,Zb,o(a),s]))}}if("yaml"===i.type)return nD(tD(["---",Zb,i.value&&i.value.trim()?o(n(i.value,{parser:"yaml"})):"","---"]));switch(i.type){case"importExport":return n(i.value,{parser:"babel"});case"jsx":return n("<$>".concat(i.value,""),{parser:"__js_expression",rootMarker:"mdx"})}return null;function o(e){return rD(e,e=>"string"==typeof e&&e.includes("\n")?tD(e.split(/(\n)/g).map((e,t)=>t%2==0?e:eD)):e)}};const sD=["format","prettier"];function aD(e){const t="@(".concat(sD.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var uD={startWithPragma:aD,hasPragma:e=>aD(iu(e).content.trimStart()),insertPragma:e=>{const t=iu(e),n="\x3c!-- @".concat(sD[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:cD,mapAst:lD,splitText:pD}=Qb,fD=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function hD(e,t,n){return lD(e,e=>{if(!e.children)return e;const r=e.children.reduce((e,r)=>{const i=e[e.length-1];return i&&t(i,r)?e.splice(-1,1,n(i,r)):e.push(r),e},[]);return Object.assign({},e,{children:r})})}var dD=function(e,t){return e=function(e){return hD(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e){return lD(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"}))}(e=function(e,t){return lD(e,(e,n,[r])=>{if("text"!==e.type)return e;let{value:i}=e;return"paragraph"===r.type&&(0===n&&(i=i.trimStart()),n===r.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:e.position,children:pD(i,t)}})}(e=function(e,t){return lD(e,(e,r,i)=>{if("list"===e.type&&0!==e.children.length){for(let t=0;t1)return!0;const o=n(r);if(-1===o)return!1;if(1===e.children.length)return o%t.tabWidth==0;const s=n(i);return o===s&&(o%t.tabWidth==0||cD(i,t.originalText).leadingSpaces.length>1)}(e)}return e});function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return lD(e,(e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")}))}(e=function(e){return hD(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e,t){return lD(e,e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&"$"!==e.value&&fD.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?t.originalText.slice(e.position.start.offset,e.position.end.offset):e.value}))}(e,t))),t),t),t)))};const{builders:{breakParent:mD,concat:gD,join:yD,line:vD,literalline:bD,markAsRoot:DD,hardline:ED,softline:CD,ifBreak:AD,fill:SD,align:wD,indent:xD,group:FD},utils:{mapDoc:_D},printer:{printDocToString:TD}}=ws,{getFencedCodeBlockValue:OD,hasGitDiffFriendlyOrderedList:ND,splitText:kD,punctuationPattern:MD,INLINE_NODE_TYPES:PD,INLINE_NODE_WRAPPER_TYPES:LD}=Qb,{replaceEndOfLineWith:ID}=ns,BD=["importExport"],jD=["heading","tableCell","link"],RD=["listItem","definition","footnoteDefinition"];function UD(e,t,n,r){const i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return gD([o,KD(e,t,n,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return wD(" ".repeat(o.length),e.call(n));const s=" ".repeat((a=t.tabWidth-r.length,c=3,a<(u=0)?u:a>c?c:a));var a,u,c;return gD([s,wD(s,e.call(n))])}})])}function VD(e,t){return function(e,t,n){n=n||(()=>!0);let r=-1;for(const i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}(e,t,t=>t.ordered===e.ordered)}function WD(e,t){const n=[].concat(t);let r,i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function $D(e,t){const n=WD(e,t);return-1===n?null:e.getParentNode(n)}function qD(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return ED;const r="always"===n.proseWrap&&!$D(e,jD);return""!==t?r?vD:" ":r?CD:""}function YD(e,t,n){const r=[];let i=null;const{children:o}=e.getValue();return o.forEach((e,t)=>{switch(zD(e)){case"start":null===i&&(i={index:t,offset:e.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:t,offset:e.position.start.offset}}),i=null)}}),KD(e,t,n,{processor:(e,i)=>{if(0!==r.length){const e=r[0];if(i===e.start.index)return gD([o[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),o[e.end.index].value]);if(e.start.indexe.call(n)),s=e.getValue(),a=[];let u;return e.map((e,n)=>{const r=e.getValue(),i=o(e,n);if(!1!==i){const e={parts:a,prevNode:u,parentNode:s,options:t};(function(e,t){const n=0===t.parts.length,r=PD.includes(e.type),i="html"===e.type&&LD.includes(t.parentNode.type);return n||r||i})(r,e)||(a.push(ED),u&&BD.includes(u.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&RD.includes(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,i=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,o="next"===zD(t.prevNode),s="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,a="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return i||!(n||r||o||s||a)}(r,e)||GD(r,e))&&a.push(ED),GD(r,e)&&a.push(ED)),a.push(i),u=r}},"children"),i(a)}function HD(e){let t=e;for(;t.children&&0!==t.children.length;)t=t.children[t.children.length-1];return t}function zD(e){if("html"!==e.type)return!1;const t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function GD(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function JD(e){return _D(e,e=>{if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];const t=e.parts.reduce((e,t)=>("concat"===t.type?e.push(...t.parts):""!==t&&e.push(t),e),[]);return Object.assign({},e,{parts:ZD(t)})})}function XD(e,t){const n=[" "].concat(t||[]);return new RegExp(n.map(e=>"\\".concat(e)).join("|")).test(e)?"<".concat(e,">"):e}function QD(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+QD(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,i=e.split('"').length-1,o=r>i?'"':i>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(o,")"),"g"),"\\$1"),"".concat(o).concat(e).concat(o)}function ZD(e){return e.reduce((e,t)=>{const n=ns.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}var eE={preprocess:dD,print:function(e,t,n){const r=e.getValue();if(function(e){const t=$D(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return gD(kD(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map(n=>"word"===n.type?n.value:""===n.value?"":qD(e,n.value,t)));switch(r.type){case"root":return 0===r.children.length?"":gD([JD(YD(e,t,n)),BD.includes(HD(r).type)?"":ED]);case"paragraph":return KD(e,t,n,{postprocessor:SD});case"sentence":return KD(e,t,n);case"word":return r.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(MD,")(_+)"),"(_+)(".concat(MD,"|$)")].join("|"),"g"),(e,t,n,r,i)=>(n?"".concat(t).concat(n):"".concat(r).concat(i)).replace(/_/g,"\\_"));case"whitespace":{const n=e.getParentNode(),i=n.children.indexOf(r),o=n.children[i+1],s=o&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(o.value)?"never":t.proseWrap;return qD(e,r.value,{proseWrap:s})}case"emphasis":{const i=e.getParentNode(),o=i.children.indexOf(r),s=i.children[o-1],a=i.children[o+1],u=s&&"sentence"===s.type&&s.children.length>0&&"word"===ns.getLast(s.children).type&&!ns.getLast(s.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||$D(e,"emphasis")?"*":"_";return gD([u,KD(e,t,n),u])}case"strong":return gD(["**",KD(e,t,n),"**"]);case"delete":return gD(["~~",KD(e,t,n),"~~"]);case"inlineCode":{const e=ns.getMinNotPresentContinuousCount(r.value,"`"),t="`".repeat(e||1),n=e?" ":"";return gD([t,n,r.value,n,t])}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:",n=r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url;return gD(["<",n,">"])}case"[":return gD(["[",KD(e,t,n),"](",XD(r.url,")"),QD(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return gD(["![",r.alt||"","](",XD(r.url,")"),QD(r.title,t),")"]);case"blockquote":return gD(["> ",wD("> ",KD(e,t,n))]);case"heading":return gD(["#".repeat(r.depth)+" ",KD(e,t,n)]);case"code":{if(r.isIndented){const e=" ".repeat(4);return wD(e,gD([e,gD(ID(r.value,ED))]))}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,ns.getMaxContinuousCount(r.value,e)+1));return gD([n,r.lang||"",ED,gD(ID(OD(r,t.originalText),ED)),ED,n])}case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":{const t=e.getParentNode(),n="root"===t.type&&ns.getLast(t.children)===r?r.value.trimEnd():r.value,i=/^$/.test(n);return gD(ID(n,i?ED:DD(bD)))}case"list":{const i=VD(r,e.getParentNode()),o=ND(r,t);return KD(e,t,n,{processor:(e,s)=>{const a=function(){const e=r.ordered?(0===s?r.start:o?1:r.start+s)+(i%2==0?". ":") "):i%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=function(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}();return e+" ".repeat(n>=4?0:n)}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?gD([a,UD(e,t,n,a)]):gD([a,wD(" ".repeat(a.length),UD(e,t,n,a))])}})}case"thematicBreak":{const t=WD(e,"list");return-1===t?"---":VD(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return gD(["[",KD(e,t,n),"]","full"===r.referenceType?gD(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return gD(["![",r.alt||"","][",r.identifier,"]"]);default:return gD(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":{const e="always"===t.proseWrap?vD:" ";return FD(gD([gD(["[",r.identifier,"]:"]),xD(gD([e,XD(r.url),null===r.title?"":gD([e,QD(r.title,t,!1)])]))]))}case"footnote":return gD(["[^",KD(e,t,n),"]"]);case"footnoteReference":return gD(["[^",r.identifier,"]"]);case"footnoteDefinition":{const i=e.getParentNode().children[e.getName()+1],o=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return gD(["[^",r.identifier,"]: ",o?KD(e,t,n):FD(gD([wD(" ".repeat(t.tabWidth),KD(e,t,n,{processor:(e,t)=>0===t?FD(gD([CD,e.call(n)])):e.call(n)})),i&&"footnoteDefinition"===i.type?CD:""]))])}case"table":return function(e,t,n){const r=ED.parts[0],i=e.getValue(),o=[];e.map(e=>{const r=[];e.map(e=>{r.push(TD(e.call(n),t).formatted)},"children"),o.push(r)},"children");const s=o.reduce((e,t)=>e.map((e,n)=>Math.max(e,ns.getStringWidth(t[n]))),o[0].map(()=>3)),a=yD(r,[l(o[0]),c(),yD(r,o.slice(1).map(e=>l(e)))]);if("never"!==t.proseWrap)return gD([mD,a]);const u=yD(r,[l(o[0],!0),c(!0),yD(r,o.slice(1).map(e=>l(e,!0)))]);return gD([mD,FD(AD(u,a))]);function c(e){return gD(["| ",yD(" | ",s.map((t,n)=>{const r=e?3:t;switch(i.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}}))," |"])}function l(e,t){return gD(["| ",yD(" | ",t?e:e.map((e,t)=>{switch(i.align[t]){case"right":return function(e,t){const n=t-ns.getStringWidth(e);return gD([" ".repeat(n),e])}(e,s[t]);case"center":return function(e,t){const n=t-ns.getStringWidth(e),r=Math.floor(n/2),i=n-r;return gD([" ".repeat(r),e," ".repeat(i)])}(e,s[t]);default:return function(e,t){const n=t-ns.getStringWidth(e);return gD([e," ".repeat(n)])}(e,s[t])}}))," |"])}}(e,t,n);case"tableCell":return KD(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?gD([" ",DD(bD)]):gD(["\\",ED]);case"liquidNode":return gD(ID(r.value,ED));case"importExport":case"jsx":return r.value;case"math":return gD(["$$",ED,r.value?gD([gD(ID(r.value,ED)),ED]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:oD,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&uD.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){const t=+e.getName();return 0!==t&&"next"===zD(e.getParentNode().children[t-1])},insertPragma:uD.insertPragma},tE={proseWrap:Bc.proseWrap,singleQuote:Bc.singleQuote},nE=["pandoc"],rE=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],iE=["contents.lr"],oE={name:"Markdown",type:"prose",aliases:nE,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:rE,filenames:iE,tmScope:"source.gfm",languageId:222},sE=Qe(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:nE,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:rE,filenames:iE,tmScope:"source.gfm",languageId:222,default:oE})),aE={languages:[Rc(sE,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(e=>".mdx"!==e)})),Rc(sE,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],options:tE,printers:{mdast:eE}},uE={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};const{getLast:cE}=ns;function lE(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function pE(e){return"prettier-ignore"===e.value.trim()}function fE(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function hE(e){return e&&e.middleComments&&0!==e.middleComments.length}function dE(e){return e&&e.indicatorComment}function mE(e){return e&&e.trailingComment}function gE(e){return e&&e.endComments&&0!==e.endComments.length}function yE(e){const t=[];let n=void 0;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var vE={getLast:cE,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let i=0;ie(r,n,t))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let i=e.position.end.offset-1;ie.slice(o));return"preserve"===r.proseWrap||"blockLiteral"===e.type?u(a.map(e=>0===e.length?[]:[e])):u(a.map(e=>0===e.length?[]:yE(e)).reduce((e,t,n)=>0===n||0===a[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(cE(e))?e.concat([t]):e.concat([e.pop().concat(t)]),[]).map(e=>e.reduce((e,t)=>0!==e.length&&/\s$/.test(cE(e))?e.concat(e.pop()+" "+t):e.concat(t),[])).map(e=>"never"===r.proseWrap?[e.join(" ")]:e));function u(t){if("keep"===e.chomping)return 0===cE(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?r.map(e=>0===e.length?[]:[e]):r.map(e=>0===e.length?[]:yE(e)).reduce((t,n,i)=>0===i||0===r[i-1].length||0===n.length||"quoteDouble"===e&&cE(cE(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)]),[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e)},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(cE(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return gE(t.head)&&pE(cE(t.head.endComments))}return fE(t)&&pE(cE(t.leadingComments))},hasLeadingComments:fE,hasMiddleComments:hE,hasIndicatorComment:dE,hasTrailingComment:mE,hasEndComments:gE};const{insertPragma:bE,isPragma:DE}=uE,{getAncestorCount:EE,getBlockValueLineContents:CE,getFlowScalarLineContents:AE,getLast:SE,getLastDescendantNode:wE,hasLeadingComments:xE,hasMiddleComments:FE,hasIndicatorComment:_E,hasTrailingComment:TE,hasEndComments:OE,hasPrettierIgnore:NE,isLastDescendantNode:kE,isNextLineEmpty:ME,isNode:PE,isEmptyNode:LE,defineShortcut:IE,mapNode:BE}=vE,jE=ws.builders,{conditionalGroup:RE,breakParent:UE,concat:VE,dedent:WE,dedentToRoot:$E,fill:qE,group:YE,hardline:KE,ifBreak:HE,join:zE,line:GE,lineSuffix:JE,literalline:XE,markAsRoot:QE,softline:ZE}=jE,{replaceEndOfLineWith:eC}=ns;function tC(e){switch(e.type){case"document":IE(e,"head",()=>e.children[0]),IE(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":IE(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":IE(e,"key",()=>e.children[0]),IE(e,"value",()=>e.children[1])}return e}function nC(e,t,n,r,i){switch(e.type){case"root":return VE([zE(KE,n.map((t,r)=>{const o=e.children[r],s=e.children[r+1];return VE([i(t),sC(o,s)?VE([KE,"...",TE(o)?VE([" ",n.call(i,"trailingComment")]):""]):!s||TE(s.head)?"":VE([KE,"---"])])},"children")),0===e.children.length||(s=wE(e),PE(s,["blockLiteral","blockFolded"])&&"keep"===s.chomping)?"":KE]);case"document":{const o=t.children[n.getName()+1];return zE(KE,["head"===aC(e,o,t,r)?zE(KE,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(i,"head"),VE(["---",TE(e.head)?VE([" ",n.call(i,"head","trailingComment")]):""])].filter(Boolean)):"",oC(e)?n.call(i,"body"):""].filter(Boolean))}case"documentHead":return zE(KE,[].concat(n.map(i,"children"),n.map(i,"endComments")));case"documentBody":{const t=zE(KE,n.map(i,"children")).parts,r=zE(KE,n.map(i,"endComments")).parts,o=0===t.length||0===r.length?"":(e=>PE(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":VE([KE,KE]):KE)(wE(e));return VE([].concat(t,o,r))}case"directive":return VE(["%",zE(" ",[e.name].concat(e.parameters))]);case"comment":return VE(["#",e.value]);case"alias":return VE(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return VE(["&",e.value]);case"plain":return pC(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',i=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&i.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(i)){const o="quoteDouble"===e.type?n:t;return VE([o,pC(e.type,i,r),o])}if(i.includes(n))return VE([t,pC(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):i,r),t]);if(i.includes(t))return VE([n,pC(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,r),n]);const o=r.singleQuote?t:n;return VE([o,pC(e.type,i,r),o])}case"blockFolded":case"blockLiteral":{const t=EE(n,e=>PE(e,["sequence","mapping"])),o=kE(n);return VE(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",_E(e)?VE([" ",n.call(i,"indicatorComment")]):"",(null===e.indent?WE:$E)(rC(null===e.indent?r.tabWidth:e.indent-1+t,VE(CE(e,{parentIndent:t,isLastDescendant:o,options:r}).reduce((t,n,r,i)=>t.concat(0===r?KE:"",qE(zE(GE,n).parts),r!==i.length-1?0===n.length?KE:QE(XE):"keep"===e.chomping&&o?0===n.length?$E(KE):$E(XE):""),[]))))])}case"sequence":return zE(KE,n.map(i,"children"));case"sequenceItem":return VE(["- ",rC(2,e.content?n.call(i,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(i,"content"):"";case"mapping":return zE(KE,n.map(i,"children"));case"mappingItem":case"flowMappingItem":{const o=LE(e.key),s=LE(e.value);if(o&&s)return VE([": "]);const u=n.call(i,"key"),c=n.call(i,"value");if(s)return"flowMappingItem"===e.type&&"flowMapping"===t.type?u:"mappingItem"!==e.type||!uC(e.key.content,r)||TE(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?VE(["? ",rC(2,u)]):VE([u,cC(e)?" ":"",":"]);if(o)return VE([": ",rC(2,c)]);const l=Symbol("mappingKey");return xE(e.value)||!iC(e.key.content)?VE(["? ",rC(2,u),KE,zE("",n.map(i,"value","leadingComments").map(e=>VE([e,KE]))),": ",rC(2,c)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||xE(e.key.content)||FE(e.key.content)||TE(e.key.content)||OE(e.key)||xE(e.value.content)||FE(e.value.content)||OE(e.value)||!uC(e.value.content,r)?RE([VE([YE(VE([HE("? "),YE(rC(2,u),{id:l})])),HE(VE([KE,": ",rC(2,c)]),a(VE([cC(e)?" ":"",":",xE(e.value.content)||OE(e.value)&&e.value.content&&!PE(e.value.content,["mapping","sequence"])||"mapping"===t.type&&TE(e.key.content)&&iC(e.value.content)||PE(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?KE:e.value.content?GE:"",c])),{groupId:l})])]):VE([u,cC(e)?" ":"",": ",c])}case"flowMapping":case"flowSequence":{const t="flowMapping"===e.type?"{":"[",s="flowMapping"===e.type?"}":"]",u="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?GE:ZE,c=0!==e.children.length&&"flowMappingItem"===(o=SE(e.children)).type&&LE(o.key)&&LE(o.value);return VE([t,a(VE([u,VE(n.map((t,n)=>VE([i(t),n===e.children.length-1?"":VE([",",GE,e.children[n].position.start.line!==e.children[n+1].position.start.line?lC(t,r.originalText):""])]),"children")),HE(",","")])),c?"":u,s])}case"flowSequenceItem":return n.call(i,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var o,s;function a(e){return jE.align(" ".repeat(r.tabWidth),e)}}function rC(e,t){return"number"==typeof e&&e>0?jE.align(" ".repeat(e),t):jE.align(e,t)}function iC(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function oC(e){return 0!==e.body.children.length||OE(e.body)}function sC(e,t){return TE(e)||t&&(0!==t.head.children.length||OE(t.head))}function aC(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||OE(e.head)||TE(e.head)?"head":!sC(e,t)&&!!t&&"root"}function uC(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function cC(e){return e.key.content&&"alias"===e.key.content.type}function lC(e,t){const n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&ME(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,ZE):""}function pC(e,t,n){const r=AE(e,t,n);return zE(KE,r.map(e=>qE(zE(GE,e).parts)))}var fC={preprocess:function(e){return BE(e,tC)},print:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=r.tag?e.call(n,"tag"):"",s=r.anchor?e.call(n,"anchor"):"",a=PE(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!kE(e)?lC(e,t.originalText):"";return VE(["mappingValue"!==r.type&&xE(r)?VE([zE(KE,e.map(n,"leadingComments")),KE]):"",o,o&&s?" ":"",s,o||s?PE(r,["sequence","mapping"])&&!FE(r)?KE:" ":"",FE(r)?VE([1===r.middleComments.length?"":KE,zE(KE,e.map(n,"middleComments")),KE]):"",NE(e)?VE(eC(t.originalText.slice(r.position.start.offset,r.position.end.offset),XE)):YE(nC(r,i,e,t,n)),TE(r)&&!PE(r,["document","documentHead"])?JE(VE(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===i.type&&"mapping"===e.getParentNode(2).type&&iC(r)?"":UE,e.call(n,"trailingComment")])):"",a,OE(r)&&!PE(r,["documentHead","documentBody"])?rC("sequenceItem"===r.type?2:0,VE([KE,zE(KE,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(PE(t))switch(delete t.position,t.type){case"comment":if(DE(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:bE},hC={bracketSpacing:Bc.bracketSpacing,singleQuote:Bc.singleQuote,proseWrap:Bc.proseWrap},dC=["yml"],mC=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],gC=[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],yC={name:"YAML",type:"data",tmScope:"source.yaml",aliases:dC,extensions:mC,filenames:gC,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},vC={languages:[Rc(Qe(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:dC,extensions:mC,filenames:gC,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:yC})),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"],filenames:e.filenames.filter(e=>"yarn.lock"!==e)}))],printers:{yaml:fC},options:hC};const{version:bC}=nn,{getSupportInfo:DC}=an,EC=[nl,Al,up,Kd,Wb,aE,vC];function CC(e,t=1){return(...n)=>{const r=n[t]||{},i=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...EC,...Array.isArray(i)?i:Object.values(i)]}),e(...n)}}const AC=CC(Ya.formatWithCursor);return{formatWithCursor:AC,format:(e,t)=>AC(e,t).formatted,check(e,t){const{formatted:n}=AC(e,t);return n===e},doc:ws,getSupportInfo:CC(DC,0),version:bC,util:Gs,__debug:{parse:CC(Ya.parse),formatAST:CC(Ya.formatAST),formatDoc:CC(Ya.formatDoc),printToDoc:CC(Ya.printToDoc),printDocToString:CC(Ya.printDocToString)}}},e.exports=n()}).call(this,n(11))},function(e,t,n){(function(e){!function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function c(e){return this instanceof c?(this.v=e,this):new c(e)}var l=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return s},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof c?Promise.resolve(n.value.v).then(u,l):p(o[0][2],n)}catch(e){p(o[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function p(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:c(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),p=i((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;nthis.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));r(p);var f=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0,t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},t.Type={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"}}));r(f),f.Type,f.Char;var h=i((function(e,t){function n(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function r(e){let t,r;return"string"==typeof e?(t=n(e),r=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=n(e.context.src)),t=e.lineStarts,r=e.context.src)),{lineStarts:t,src:r}}function i(e,t){const{lineStarts:n,src:i}=r(t);if(!n||!(e>=1)||e>n.length)return null;const o=n[e-1];let s=n[e];for(;s&&s>o&&"\n"===i[s-1];)--s;return i.slice(o,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePos=function(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:i}=r(t);if(!n||!i||e>i.length)return null;for(let t=0;tr)if(s<=r-10)o=o.substr(0,r-1)+"…";else{const e=Math.round(r/2);o.length>s+e&&(o=o.substr(0,s+e-1)+"…"),s-=o.length-r,o="…"+o.substr(1-r)}let a=1,u="";t&&(t.line===e.line&&s+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(o.length+1,r)-s,u="…"));const c=s>1?" ".repeat(s-1):"",l="^".repeat(a);return"".concat(o,"\n").concat(c).concat(l).concat(u)}}));r(h),h.getLinePos,h.getLine,h.getPrettyContext;var d=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{static copy(e){return new n(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;in);)++i;this.origStart=n+i;const o=i;for(;i=r);)++i;return this.origEnd=r+i,o}}t.default=n}));r(d);var m=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=d)&&n.__esModule?n:{default:n};class i{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=i.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if(r!==f.Char.DIRECTIVES_END&&r!==f.Char.DOCUMENT_END)return!1;const o=e[t+1],s=e[t+2];if(o!==r||s!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=i.endOfIndent(e,n);if(r>n+t)return r;{const t=i.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:i.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,o=!1,s="",a=e[t+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":r=0,t+=1,s+="\n";break;case"\t":r<=n&&(o=!0),t=i.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}a=e[t+1]}return s||(s=" "),a&&r<=n&&(o=!0),{fold:s,offset:t,error:o}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||i.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t)),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return i.addStringTerminator(e,t.end,r)}}t.default=i}));r(m);var g=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends Error{constructor(e,t,r){if(!(r&&t instanceof n.default))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=r,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new r.default(this.offset,this.offset+1);const t=e&&(0,h.getLinePos)(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&(0,h.getPrettyContext)(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}t.YAMLError=o,t.YAMLReferenceError=class extends o{constructor(e,t){super("YAMLReferenceError",e,t)}},t.YAMLSemanticError=class extends o{constructor(e,t){super("YAMLSemanticError",e,t)}},t.YAMLSyntaxError=class extends o{constructor(e,t){super("YAMLSyntaxError",e,t)}},t.YAMLWarning=class extends o{constructor(e,t){super("YAMLWarning",e,t)}}}));r(g),g.YAMLWarning,g.YAMLSyntaxError,g.YAMLSemanticError,g.YAMLReferenceError,g.YAMLError;var y=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends n.default{constructor(){super(f.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){this.context=e;const{src:i}=e;let o=t+1;for(;n.default.atBlank(i,o);){const e=n.default.endOfWhiteSpace(i,o);if("\n"!==e)break;o=e+1}return this.range=new r.default(t,o),o}}t.default=o}));r(y);var v=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(y),r=o(m),i=o(d);function o(e){return e&&e.__esModule?e:{default:e}}class s extends r.default{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:o,src:s}=e;let{atLineStart:a,lineStart:u}=e;a||this.type!==f.Type.SEQ_ITEM||(this.error=new g.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=a?t-u:e.indent;let l=r.default.endOfWhiteSpace(s,t+1),p=s[l];const h="#"===p,d=[];let m=null;for(;"\n"===p||"#"===p;){if("#"===p){const e=r.default.endOfLine(s,l+1);d.push(new i.default(l,e)),l=e}else a=!0,u=l+1,"\n"===s[r.default.endOfWhiteSpace(s,u)]&&0===d.length&&(m=new n.default,u=m.parse({src:s},u)),l=r.default.endOfIndent(s,u);p=s[l]}if(r.default.nextNodeIsIndented(p,l-(u+c),this.type!==f.Type.SEQ_ITEM)?this.node=o({atLineStart:a,inCollection:!1,indent:c,lineStart:u,parent:this},l):p&&u>t+1&&(l=u-1),this.node){if(m){const t=e.parent.items||e.parent.contents;t&&t.push(m)}d.length&&Array.prototype.push.apply(this.props,d),l=this.node.range.end}else if(h){const e=d[0];this.props.push(e),l=e.end}else l=r.default.endOfLine(s,t+1);const y=this.node?this.node.valueRange.end:l;return this.valueRange=new i.default(t,y),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:i}=this;if(null!=i)return i;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,o)}}t.default=s}));r(v);var b=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends n.default{constructor(){super(f.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new r.default(t,n),n}}t.default=o}));r(b);var D=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.grabCollectionEndComments=u,t.default=void 0;var n=a(y),r=a(v),i=a(b),o=a(m),s=a(d);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){let t=e;for(;t instanceof r.default;)t=t.node;if(!(t instanceof c))return null;const n=t.items.length;let i=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===f.Type.COMMENT){const{indent:t,lineStart:r}=n.context;if(t>0&&n.range.start>=r+t)break;i=e}else{if(n.type!==f.Type.BLANK_LINE)break;i=e}}if(-1===i)return null;const o=t.items.splice(i,n-i),s=o[0].range.start;for(;t.range.end=s,t.valueRange&&t.valueRange.end>s&&(t.valueRange.end=s),t!==e;)t=t.context.parent;return o}class c extends o.default{static nextContentHasIndent(e,t,n){const r=o.default.endOfLine(e,t)+1,i=e[t=o.default.endOfWhiteSpace(e,r)];return!!i&&(t>=r+n||("#"===i||"\n"===i)&&c.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===f.Type.SEQ_ITEM?f.Type.SEQ:f.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:r,src:a}=e;let l=o.default.startOfLine(a,t);const p=this.items[0];p.context.parent=this,this.valueRange=s.default.copy(p.valueRange);const h=p.range.start-p.context.lineStart;let d=t;d=o.default.normalizeOffset(a,d);let m=a[d],g=o.default.endOfWhiteSpace(a,l)===d,y=!1;for(;m;){for(;"\n"===m||"#"===m;){if(g&&"\n"===m&&!y){const e=new n.default;if(d=e.parse({src:a},d),this.valueRange.end=d,d>=a.length){m=null;break}this.items.push(e),d-=1}else if("#"===m){if(d=a.length){m=null;break}}if(l=d+1,d=o.default.endOfIndent(a,l),o.default.atBlank(a,d)){const e=o.default.endOfWhiteSpace(a,d),t=a[e];t&&"\n"!==t&&"#"!==t||(d=e)}m=a[d],g=!0}if(!m)break;if(d!==l+h&&(g||":"!==m)){l>t&&(d=l);break}if(p.type===f.Type.SEQ_ITEM!=("-"===m)){let e=!0;if("-"===m){const t=a[d+1];e=!t||"\n"===t||"\t"===t||" "===t}if(e){l>t&&(d=l);break}}const e=r({atLineStart:g,inCollection:!0,indent:h,lineStart:l,parent:this},d);if(!e)return d;if(this.items.push(e),this.valueRange.end=e.valueRange.end,d=o.default.normalizeOffset(a,e.range.end),m=a[d],g=!1,y=e.includesTrailingLines,m){let e=d-1,t=a[e];for(;" "===t||"\t"===t;)t=a[--e];"\n"===t&&(l=e+1,g=!0)}const s=u(e);s&&Array.prototype.push.apply(this.items,s)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(n=>{t=n.setOrigRanges(e,t)}),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let i=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new s.default(l,l+3),l+3):(c?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){const{parseNode:t,src:i}=this.context;this.contents||(this.contents=[]);let a=e;for(;"-"===i[a-1];)a-=1;let c=o.default.endOfWhiteSpace(i,e),l=a===e;for(this.valueRange=new s.default(c);!o.default.atDocumentBoundary(i,c,f.Char.DOCUMENT_END);){switch(i[c]){case"\n":if(l){const e=new n.default;c=e.parse({src:i},c),c{t=n.setOrigRanges(e,t)}),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach(n=>{t=n.setOrigRanges(e,t)}),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===f.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}t.default=u}));r(C);var A=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends n.default{parse(e,t){this.context=e;const{src:i}=e;let o=n.default.endOfIdentifier(i,t+1);return this.valueRange=new r.default(t+1,o),o=n.default.endOfWhiteSpace(i,o),o=this.parseComment(o),o}}t.default=o}));r(A);var S=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}const o={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=o;class s extends n.default{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=o.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===o.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return"";let s=null,a=i[t-1];for(;"\n"===a||"\t"===a||" "===a;){if(t-=1,t<=e){if(this.chomping===o.KEEP)break;return""}"\n"===a&&(s=t),a=i[t-1]}let u=t+1;s&&(this.chomping===o.KEEP?(u=s,t=this.valueRange.end):t=s);const c=r+this.blockIndent,l=this.type===f.Type.BLOCK_FOLDED;let p=!0,h="",d="",m=!1;for(let r=e;rc&&(c=n)}s="\n"===i[e]?e:a=n.default.endOfLine(i,e)}return this.chomping!==o.KEEP&&(s=i[a]?a+1:a),this.valueRange=new r.default(e+1,s),s}parse(e,t){this.context=e;const{src:r}=e;let i=this.parseBlockHeader(t);return i=n.default.endOfWhiteSpace(r,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}t.default=s}));r(S),S.Chomp;var w=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(y),r=s(b),i=s(m),o=s(d);function s(e){return e&&e.__esModule?e:{default:e}}class a extends i.default{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===f.Type.COMMENT&&this.nodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:s,src:a}=e;let{indent:u,lineStart:c}=e,l=a[t];this.items=[{char:l,offset:t}];let p=i.default.endOfWhiteSpace(a,t+1);for(l=a[p];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(c=p+1,"\n"===a[i.default.endOfWhiteSpace(a,c)]){const e=new n.default;c=e.parse({src:a},c),this.items.push(e)}if(p=i.default.endOfIndent(a,c),p<=c+u&&(l=a[p],p{if(n instanceof i.default)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;rn.offset);)++r;n.origOffset=n.offset+r,t=r}}),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const o=t.filter(e=>e instanceof i.default);let s="",a=n.start;return o.forEach(t=>{const n=e.slice(a,t.range.start);a=t.range.end,s+=n+String(t),"\n"===s[s.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),s+=e.slice(a,n.end),i.default.addStringTerminator(e,n.end,s)}}t.default=a}));r(w);var x=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends n.default{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:r}=this.context;let i=r[t-1];for(;en?r.slice(n,i+1):e)}else o+=e}return o}parseBlockValue(e){const{indent:t,inFlow:r,src:i}=this.context;let s=e,a=e;for(let e=i[s];"\n"===e&&!n.default.atDocumentBoundary(i,s+1);e=i[s]){const e=n.default.endOfBlockIndent(i,t,s+1);if(null===e||"#"===i[e])break;"\n"===i[e]?s=e:(a=o.endOfLine(i,e,r),s=a)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=a,a}parse(e,t){this.context=e;const{inFlow:i,src:s}=e;let a=t;const u=s[a];return u&&"#"!==u&&"\n"!==u&&(a=o.endOfLine(s,t,i)),this.valueRange=new r.default(t,a),a=n.default.endOfWhiteSpace(s,a),a=this.parseComment(a),this.hasComment&&!this.valueRange.isEmpty()||(a=this.parseBlockValue(a)),a}}t.default=o}));r(x);var F=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends n.default{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:i,src:o}=this.context;'"'!==o[r-1]&&e.push(new g.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=t+1;ae?o.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parseCharCode(e,t,n){const{src:r}=this.context,i=r.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(n.push(new g.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:i}=e;let s=o.endOfQuote(i,t+1);return this.valueRange=new r.default(t,s),s=n.default.endOfWhiteSpace(i,s),s=this.parseComment(s),s}}t.default=o}));r(F);var _=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(m),r=i(d);function i(e){return e&&e.__esModule?e:{default:e}}class o extends n.default{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:r}=this.valueRange,{indent:i,src:o}=this.context;"'"!==o[r-1]&&e.push(new g.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=t+1;ae?o.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parse(e,t){this.context=e;const{src:i}=e;let s=o.endOfQuote(i,t+1);return this.valueRange=new r.default(t,s),s=n.default.endOfWhiteSpace(i,s),s=this.parseComment(s),s}}t.default=o}));r(_);var T=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(A),r=h(S),i=h(D),o=h(v),s=h(w),a=h(m),u=h(x),c=h(F),l=h(_),p=h(d);function h(e){return e&&e.__esModule?e:{default:e}}class y{static parseType(e,t,n){switch(e[t]){case"*":return f.Type.ALIAS;case">":return f.Type.BLOCK_FOLDED;case"|":return f.Type.BLOCK_LITERAL;case"{":return f.Type.FLOW_MAP;case"[":return f.Type.FLOW_SEQ;case"?":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.MAP_KEY:f.Type.PLAIN;case":":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.MAP_VALUE:f.Type.PLAIN;case"-":return!n&&a.default.atBlank(e,t+1,!0)?f.Type.SEQ_ITEM:f.Type.PLAIN;case'"':return f.Type.QUOTE_DOUBLE;case"'":return f.Type.QUOTE_SINGLE;default:return f.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:h,inFlow:d,indent:m,lineStart:v,parent:b}={}){var D,E;E=(e,t)=>{if(a.default.atDocumentBoundary(this.src,t))return null;const h=new y(this,e),{props:d,type:m,valueStart:v}=h.parseProps(t),b=function(e,t){switch(e){case f.Type.ALIAS:return new n.default(e,t);case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:return new r.default(e,t);case f.Type.FLOW_MAP:case f.Type.FLOW_SEQ:return new s.default(e,t);case f.Type.MAP_KEY:case f.Type.MAP_VALUE:case f.Type.SEQ_ITEM:return new o.default(e,t);case f.Type.COMMENT:case f.Type.PLAIN:return new u.default(e,t);case f.Type.QUOTE_DOUBLE:return new c.default(e,t);case f.Type.QUOTE_SINGLE:return new l.default(e,t);default:return null}}(m,d);let D=b.parse(h,v);if(b.range=new p.default(t,D),D<=t&&(b.error=new Error("Node#parse consumed no characters"),b.error.parseEnd=D,b.error.source=b,b.range.end=t+1),h.nodeStartsCollection(b)){b.error||h.atLineStart||h.parent.type!==f.Type.DOCUMENT||(b.error=new g.YAMLSyntaxError(b,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new i.default(b);return D=e.parse(new y(h),D),e.range=new p.default(t,D),e}return b},(D="parseNode")in this?Object.defineProperty(this,D,{value:E,enumerable:!0,configurable:!0,writable:!0}):this[D]=E,this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=h?h:e.inCollection||!1,this.inFlow=null!=d?d:e.inFlow||!1,this.indent=null!=m?m:e.indent,this.lineStart=null!=v?v:e.lineStart,this.parent=null!=b?b:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof o.default)return!0;let i=e.range.end;return"\n"!==r[i]&&"\n"!==r[i-1]&&(i=a.default.endOfWhiteSpace(r,i),":"===r[i])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,i=[];let o=!1,s=r[e=a.default.endOfWhiteSpace(r,e)];for(;s===f.Char.ANCHOR||s===f.Char.COMMENT||s===f.Char.TAG||"\n"===s;){if("\n"===s){const t=e+1,i=a.default.endOfIndent(r,t),s=i-(t+this.indent),u=n.type===f.Type.SEQ_ITEM&&n.context.atLineStart;if(!a.default.nextNodeIsIndented(r[i],s,!u))break;this.atLineStart=!0,this.lineStart=t,o=!1,e=i}else if(s===f.Char.COMMENT){const t=a.default.endOfLine(r,e+1);i.push(new p.default(e,t)),e=t}else{let t=a.default.endOfIdentifier(r,e+1);s===f.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=a.default.endOfIdentifier(r,t+5)),i.push(new p.default(e,t)),o=!0,e=a.default.endOfWhiteSpace(r,t)}s=r[e]}return o&&":"===s&&a.default.atBlank(r,e+1,!0)&&(e-=1),{props:i,type:y.parseType(r,e,t),valueStart:e}}}t.default=y}));r(T);var O=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(e,n)=>(e.length>1&&t.push(n),"\n")));const i=[];let o=0;do{const t=new n.default,s=new r.default({src:e});o=t.parse(s,o),i.push(t)}while(o{if(0===t.length)return!1;for(let e=1;ei.join("...\n"),i};var n=i(C),r=i(T);function i(e){return e&&e.__esModule?e:{default:e}}}));r(O);var N=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;const r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}}));r(N),N.addCommentBefore;var k=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map((t,n)=>e(t,String(n),r));if(t&&"function"==typeof t.toJSON){const e=r&&r.anchors&&r.anchors.find(e=>e.node===t);e&&(r.onCreate=t=>{e.res=t,delete r.onCreate});const i=t.toJSON(n,r);return e&&r.onCreate&&r.onCreate(i),i}return t}}));r(k);var M=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{}}));r(M);var P=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(k),r=i(M);function i(e){return e&&e.__esModule?e:{default:e}}class o extends r.default{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:(0,n.default)(this.value,e,t)}toString(){return String(this.value)}}t.default=o}));r(P);var L=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(N),r=a(k),i=a(I),o=a(M),s=a(P);function a(e){return e&&e.__esModule?e:{default:e}}class u extends o.default{constructor(e,t=null){super(),this.key=e,this.value=t,this.type="PAIR"}get commentBefore(){return this.key&&this.key.commentBefore}set commentBefore(e){null==this.key&&(this.key=new s.default(null)),this.key.commentBefore=e}addToJSMap(e,t){const n=(0,r.default)(this.key,"",e);if(t instanceof Map){const i=(0,r.default)(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{const i=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof o.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t))(this.key,n,e);t[i]=(0,r.default)(this.value,i,e)}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);const{simpleKeys:a}=e.doc.options;let{key:u,value:c}=this,l=u instanceof o.default&&u.comment;if(a){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(u instanceof i.default)throw new Error("With simple keys, collection cannot be used as a key value")}const p=!a&&(!u||l||u instanceof i.default||u.type===f.Type.BLOCK_FOLDED||u.type===f.Type.BLOCK_LITERAL),{doc:h,indent:d}=e;e=Object.assign({},e,{implicitKey:!p,indent:d+" "});let m=!1,g=h.schema.stringify(u,e,()=>l=null,()=>m=!0);if(g=(0,n.default)(g,e.indent,l),e.allNullValues&&!a)return this.comment?(g=(0,n.default)(g,e.indent,this.comment),t&&t()):m&&!l&&r&&r(),e.inFlow?g:"? ".concat(g);g=p?"? ".concat(g,"\n").concat(d,":"):"".concat(g,":"),this.comment&&(g=(0,n.default)(g,e.indent,this.comment),t&&t());let y="",v=null;if(c instanceof o.default){if(c.spaceBefore&&(y="\n"),c.commentBefore){const t=c.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));y+="\n".concat(t)}v=c.comment}else c&&"object"==typeof c&&(c=h.schema.createNode(c,!0));e.implicitKey=!1,!p&&!this.comment&&c instanceof s.default&&(e.indentAtStart=g.length+1),m=!1;const b=h.schema.stringify(c,e,()=>v=null,()=>m=!0);let D=" ";return y||this.comment?D="".concat(y,"\n").concat(e.indent):!p&&c instanceof i.default&&(("["===b[0]||"{"===b[0])&&!b.includes("\n")||(D="\n".concat(e.indent))),m&&!v&&r&&r(),(0,n.default)(g+D+b,e.indent,v)}}t.default=u}));r(L);var I=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var n=s(N),r=s(M),i=s(L),o=s(P);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e],i=Number.isInteger(n)&&n>=0?[]:{};i[n]=r,r=i}return e.createNode(r,!1)}const c=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;t.isEmptyPath=c;class l extends r.default{constructor(e){super(),a(this,"items",[]),this.schema=e}addIn(e,t){if(c(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(i instanceof l)i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,u(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t))}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof o.default?r.value:r:r instanceof l?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every(e=>{if(!(e instanceof i.default))return!1;const t=e.value;return null==t||t instanceof o.default&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof l)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t));this.set(e,u(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:i,itemIndent:o},s,a){const{doc:u,indent:c}=e,p=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;p&&(o+=" ");const f=i&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:f,indent:o,inFlow:p,type:null});let h=!1,d=!1;const m=this.items.reduce((t,r,i)=>{let s;r&&(!h&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:"#".concat(e)})}),r.comment&&(s=r.comment),p&&(!h&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(d=!0)),h=!1;let a=u.schema.stringify(r,e,()=>s=null,()=>h=!0);return p&&!d&&a.includes("\n")&&(d=!0),p&&ie.str);if(d||n.reduce((e,t)=>e+t.length+2,2)>l.maxFlowStringSingleLineLength){g=e;for(const e of n)g+=e?"\n ".concat(c).concat(e):"\n";g+="\n".concat(c).concat(t)}else g="".concat(e," ").concat(n.join(" ")," ").concat(t)}else{const e=m.map(t);g=e.shift();for(const t of e)g+=t?"\n".concat(c).concat(t):"\n"}return this.comment?(g+="\n"+this.comment.replace(/^/gm,"".concat(c,"#")),s&&s()):h&&a&&a(),g}}t.default=l,a(l,"maxFlowStringSingleLineLength",60)}));r(I),I.isEmptyPath;var B=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(k),r=s(I),i=s(M),o=s(L);function s(e){return e&&e.__esModule?e:{default:e}}const a=(e,t)=>{if(e instanceof u){const n=t.find(t=>t.node===e.source);return n.count*n.aliasCount}if(e instanceof r.default){let n=0;for(const r of e.items){const e=a(r,t);e>n&&(n=e)}return n}if(e instanceof o.default){const n=a(e.key,t),r=a(e.value,t);return Math.max(n,r)}return 1};class u extends i.default{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:o}){let s=Object.keys(n).find(e=>n[e]===t);if(!s&&o&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return"*".concat(s).concat(i?" ":"");const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(a," [").concat(e,"]"))}constructor(e){super(),this.source=e,this.type=f.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return(0,n.default)(this.source,e,t);const{anchors:r,maxAliasCount:i}=t,o=r.find(e=>e.node===this.source);if(!o||void 0===o.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=a(this.source,r)),o.count*o.aliasCount>i)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return u.stringify(this,e)}}var c,l;t.default=u,(l="default")in(c=u)?Object.defineProperty(c,l,{value:!0,enumerable:!0,configurable:!0,writable:!0}):c[l]=!0}));r(B);var j=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=s,t.default=void 0;var n=o(I),r=o(L),i=o(P);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){const n=t instanceof i.default?t.value:t;for(const i of e)if(i instanceof r.default){if(i.key===t||i.key===n)return i;if(i.key&&i.key.value===n)return i}}class a extends n.default{add(e,t){e?e instanceof r.default||(e=new r.default(e.key||e,e.value)):e=new r.default(e);const n=s(this.items,e.key),i=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(i){const t=this.items.findIndex(t=>i(e,t)<0);-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=s(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=s(this.items,e),r=n&&n.value;return!t&&r instanceof i.default?r.value:r}has(e){return!!s(this.items,e)}set(e,t){this.add(new r.default(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof r.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}t.default=a}));r(j),j.findPair;var R=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(k),r=o(I),i=o(P);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){let t=e instanceof i.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}class a extends r.default{add(e){this.items.push(e)}delete(e){const t=s(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=s(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof i.default?r.value:r}has(e){const t=s(e);return"number"==typeof t&&t"comment"===e.type?e.str:"- ".concat(e.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}t.default=a}));r(R);var U=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=s(j),r=s(L),i=s(P),o=s(R);function s(e){return e&&e.__esModule?e:{default:e}}t.MERGE_KEY="<<";class a extends r.default{constructor(e){if(e instanceof r.default){let t=e.value;t instanceof o.default||(t=new o.default,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new i.default("<<"),new o.default);this.type="MERGE_PAIR"}addToJSMap(e,t){for(const{source:r}of this.value.items){if(!(r instanceof n.default))throw new Error("Merge sources must be maps");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n)}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}t.default=a}));r(U),U.MERGE_KEY;var V=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(B),r=a(j),i=a(U),o=a(P),s=a(R);function a(e){return e&&e.__esModule?e:{default:e}}class u{static validAnchorNode(e){return e instanceof o.default||e instanceof s.default||e instanceof r.default}constructor(e){var t;t={},"map"in this?Object.defineProperty(this,"map",{value:t,enumerable:!0,configurable:!0,writable:!0}):this.map=t,this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.default(e)}createMergePair(...e){const t=new i.default;return t.value.items=e.map(e=>{if(e instanceof n.default){if(e.source instanceof r.default)return e}else if(e instanceof r.default)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}getName(e){const{map:t}=this;return Object.keys(t).find(n=>t[n]===e)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved}),t.forEach(e=>{e.source=e.source.resolved}),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!u.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find(t=>n[t]===e);if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}t.default=u}));r(V);var W=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(I),r=o(L),i=o(P);function o(e){return e&&e.__esModule?e:{default:e}}const s=(e,t)=>{if(e&&"object"==typeof e){const{tag:o}=e;e instanceof n.default?(o&&(t[o]=!0),e.items.forEach(e=>s(e,t))):e instanceof r.default?(s(e.key,t),s(e.value,t)):e instanceof i.default&&o&&(t[o]=!0)}return t};t.default=e=>Object.keys(s(e,{}))}));r(W);var $=i((function(e,t){function r(e,t){if(n&&n._YAML_SILENCE_WARNINGS)return;const{emitWarning:r}=n&&n.process;r?r(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=r,t.warnFileDeprecation=function(e){if(n&&n._YAML_SILENCE_DEPRECATION_WARNINGS)return;const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");r("The endpoint 'yaml/".concat(t,"' will be removed in a future release."),"DeprecationWarning")},t.warnOptionDeprecation=function(e,t){if(n&&n._YAML_SILENCE_DEPRECATION_WARNINGS)return;if(i[e])return;i[e]=!0;let o="The option '".concat(e,"' will be removed in a future release");o+=t?", use '".concat(t,"' instead."):".",r(o,"DeprecationWarning")};const i={}}));r($),$.warn,$.warnFileDeprecation,$.warnOptionDeprecation;var q=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,{indentAtStart:i,lineWidth:o=80,minContentWidth:s=20,onFold:a,onOverflow:u}){if(!o||o<0)return e;const c=Math.max(1+s,1+o-t.length);if(e.length<=c)return e;const l=[],p={};let f,h=o-("number"==typeof i?i:t.length),d=void 0,m=void 0,g=!1,y=-1;for("block"===r&&(y=n(e,y),-1!==y&&(h=y+c));f=e[y+=1];){if("quoted"===r&&"\\"===f)switch(e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}if("\n"===f)"block"===r&&(y=n(e,y)),h=y+c,d=void 0;else{if(" "===f&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[y+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=y)}if(y>=h)if(d)l.push(d),h=d+c,d=void 0;else if("quoted"===r){for(;" "===m||"\t"===m;)m=f,f=e[y+=1],g=!0;l.push(y-2),p[y-2]=!0,h=y-2+c,d=void 0}else g=!0}m=f}if(g&&u&&u(),0===l.length)return e;a&&a();let v=e.slice(0,l[0]);for(let n=0;n{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}}));r(q),q.FOLD_QUOTED,q.FOLD_BLOCK,q.FOLD_FLOW;var Y=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.strOptions=t.nullOptions=t.boolOptions=t.binaryOptions=void 0;const n={defaultType:f.Type.BLOCK_LITERAL,lineWidth:76};t.binaryOptions=n,t.boolOptions={trueStr:"true",falseStr:"false"},t.nullOptions={nullStr:"null"};const r={defaultType:f.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r}));r(Y),Y.strOptions,Y.nullOptions,Y.boolOptions,Y.binaryOptions;var K=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},t.stringifyString=function(e,t,a,u){const{defaultType:c}=Y.strOptions,{implicitKey:l,inFlow:p}=t;let{type:h,value:d}=e;"string"!=typeof d&&(d=String(d),e=Object.assign({},e,{value:d}));const m=c=>{switch(c){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:return s(e,t,a,u);case f.Type.QUOTE_DOUBLE:return i(d,t);case f.Type.QUOTE_SINGLE:return o(d,t);case f.Type.PLAIN:return function(e,t,a,u){const{comment:c,type:l,value:p}=e,{actualString:h,implicitKey:d,indent:m,inFlow:g,tags:y}=t;if(d&&/[\n[\]{},]/.test(p)||g&&/[[\]{},]/.test(p))return i(p,t);if(!p||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(p))return d||g||-1===p.indexOf("\n")?-1!==p.indexOf('"')&&-1===p.indexOf("'")?o(p,t):i(p,t):s(e,t,a,u);if(!d&&!g&&l!==f.Type.PLAIN&&-1!==p.indexOf("\n"))return s(e,t,a,u);const v=p.replace(/\n+/g,"$&\n".concat(m));if(h&&"string"!=typeof y.resolveScalar(v).value)return i(p,t);const b=d?v:(0,n.default)(v,m,n.FOLD_FLOW,r(t));return!c||g||-1===b.indexOf("\n")&&-1===c.indexOf("\n")?b:(a&&a(),(0,N.addCommentBefore)(b,m,c))}(e,t,a,u);default:return null}};h!==f.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(d)?h=f.Type.QUOTE_DOUBLE:!l&&!p||h!==f.Type.BLOCK_FOLDED&&h!==f.Type.BLOCK_LITERAL||(h=f.Type.QUOTE_DOUBLE);let g=m(h);if(null===g&&(g=m(c),null===g))throw new Error("Unsupported default string type ".concat(c));return g};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return e}();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(q);const r=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},Y.strOptions.fold):Y.strOptions.fold;function i(e,t){const{implicitKey:i,indent:o}=t,{jsonEncoding:s,minMultiLineLength:a}=Y.strOptions.doubleQuoted,u=JSON.stringify(e);if(s)return u;let c="",l=0;for(let e=0,t=u[e];t;t=u[++e])if(" "===t&&"\\"===u[e+1]&&"n"===u[e+2]&&(c+=u.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(u[e+1]){case"u":{c+=u.slice(l,e);const t=u.substr(e+2,4);switch(t){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:"00"===t.substr(0,2)?c+="\\x"+t.substr(2):c+=u.substr(e,6)}e+=5,l=e+1}break;case"n":if(i||'"'===u[e+2]||u.lengtht)return!0;if(i=r+1,n-i<=t)return!1}return!0}(r,Y.strOptions.fold.lineWidth-u.length));let p=l?"|":">";if(!r)return p+"\n";let h="",d="";if(r=r.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");return-1===t?p+="-":r!==e&&t===e.length-1||(p+="+",a&&a()),d=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,e=>{-1!==e.indexOf(" ")&&(p+=c);const t=e.match(/ +$/);return t?(h=e.slice(0,-t[0].length),t[0]):(h=e,"")}),d&&(d=d.replace(/\n+(?!\n|$)/g,"$&".concat(u))),h&&(h=h.replace(/\n+/g,"$&".concat(u))),e&&(p+=" #"+e.replace(/ ?[\r\n]+/g," "),s&&s()),!r)return"".concat(p).concat(c,"\n").concat(u).concat(d);if(l)return r=r.replace(/\n+/g,"$&".concat(u)),"".concat(p,"\n").concat(u).concat(h).concat(r).concat(d);r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(u));const m=(0,n.default)("".concat(h).concat(r).concat(d),u,n.FOLD_BLOCK,Y.strOptions.fold);return"".concat(p,"\n").concat(u).concat(m)}}));r(K),K.stringifyNumber,K.stringifyString;var H=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkFlowCollectionEnd=function(e,t){let n,r,i;switch(t.type){case f.Type.FLOW_MAP:n="}",r="flow map";break;case f.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new g.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==f.Type.COMMENT){i=n;break}}if(i&&i.char!==n){const o="Expected ".concat(r," to end with ").concat(n);let s;"number"==typeof i.offset?(s=new g.YAMLSemanticError(t,o),s.offset=i.offset+1):(s=new g.YAMLSemanticError(i,o),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),e.push(s)}},t.checkKeyLength=function(e,t,n,r,i){if(!r||"number"!=typeof i)return;const o=t.items[n];let s=o&&o.range&&o.range.start;if(!s)for(let e=n-1;e>=0;--e){const r=t.items[e];if(r&&r.range){s=r.range.end+2*(n-e);break}}if(s>i+1024){const n=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new g.YAMLSemanticError(t,'The "'.concat(n,'" key is too long')))}},t.resolveComments=function(e,t){for(const{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}}));r(H),H.checkFlowCollectionEnd,H.checkKeyLength,H.resolveComments;var z=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==f.Type.MAP&&t.type!==f.Type.FLOW_MAP){const n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new g.YAMLSyntaxError(t,n)),null}const{comments:u,items:l}=t.type===f.Type.FLOW_MAP?function(e,t){const n=[],r=[];let i=void 0,s=null,a=!1,u="{";for(let c=0;c0){r=new n.default(f.Type.PLAIN,[]),r.context={parent:l,src:l.context.src};const e=l.range.start+1;if(r.range={start:e,end:e},r.valueRange={start:e,end:e},"number"==typeof l.range.origStart){const e=l.range.origStart+1;r.range.origStart=r.range.origEnd=e,r.valueRange.origStart=r.valueRange.origEnd=e}}const p=new o.default(s,e.resolveNode(r));c(l,p),i.push(p),(0,H.checkKeyLength)(e.errors,t,u,s,a),s=void 0,a=null}break;default:void 0!==s&&i.push(new o.default(s)),s=e.resolveNode(l),a=l.range.start,l.error&&e.errors.push(l.error);e:for(let n=u+1;;++n){const r=t.items[n];switch(r&&r.type){case f.Type.BLANK_LINE:case f.Type.COMMENT:continue e;case f.Type.MAP_VALUE:break e;default:e.errors.push(new g.YAMLSemanticError(l,"Implicit map keys need to be followed by map values"));break e}}if(l.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new g.YAMLSemanticError(l,t))}}}return void 0!==s&&i.push(new o.default(s)),{comments:r,items:i}}(e,t),p=new r.default;p.items=l,(0,H.resolveComments)(p,u);let h=!1;for(let n=0;n{if(e instanceof s.default){const{type:t}=e.source;return t!==f.Type.MAP&&t!==f.Type.FLOW_MAP&&(o="Merge nodes aliases can only point to maps")}return o="Merge nodes can only have Alias nodes as values"}),o&&e.errors.push(new g.YAMLSemanticError(t,o))}else for(let i=n+1;i{if(0===r.length)return!1;const{start:i}=r[0];if(t&&i>t.valueRange.start)return!1;if(n[i]!==f.Char.COMMENT)return!1;for(let t=e;te instanceof n.default&&e.key instanceof i.default)){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new g.YAMLWarning(t,n))}return t.resolved=a,a};var n=o(L),r=o(R),i=o(I);function o(e){return e&&e.__esModule?e:{default:e}}}));r(J);var X=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(J),r=i(R);function i(e){return e&&e.__esModule?e:{default:e}}var o={createNode:function(e,t,n){const i=new r.default(e);if(t&&t[Symbol.iterator])for(const r of t){const t=e.createNode(r,n.wrapScalars,null,n);i.items.push(t)}return i},default:!0,nodeClass:r.default,tag:"tag:yaml.org,2002:seq",resolve:n.default};t.default=o}));r(X);var Q=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;const n=(e,t)=>{const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(n=>{n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.resolveString=n;var r={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),(0,K.stringifyString)(e,t,n,r)),options:Y.strOptions};t.default=r}));r(Q),Q.resolveString;var Z=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(G),r=o(X),i=o(Q);function o(e){return e&&e.__esModule?e:{default:e}}var s=[n.default,r.default,i.default];t.default=s}));r(Z);var ee=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.floatObj=t.expObj=t.nanObj=t.hexObj=t.intObj=t.octObj=t.boolObj=t.nullObj=void 0;var n=i(P),r=i(Z);function i(e){return e&&e.__esModule?e:{default:e}}const o={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Y.nullOptions,stringify:()=>Y.nullOptions.nullStr};t.nullObj=o;const s={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:Y.boolOptions,stringify:({value:e})=>e?Y.boolOptions.trueStr:Y.boolOptions.falseStr};t.boolObj=s;const a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>parseInt(t,8),stringify:({value:e})=>"0o"+e.toString(8)};t.octObj=a;const u={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>parseInt(e,10),stringify:K.stringifyNumber};t.intObj=u;const c={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>parseInt(t,16),stringify:({value:e})=>"0x"+e.toString(16)};t.hexObj=c;const l={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K.stringifyNumber};t.nanObj=l;const p={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:0|[1-9][0-9]*)(\.[0-9]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};t.expObj=p;const f={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:0|[1-9][0-9]*)\.([0-9]*)$/,resolve(e,t){const r=new n.default(parseFloat(e));return t&&"0"===t[t.length-1]&&(r.minFractionDigits=t.length),r},stringify:K.stringifyNumber};t.floatObj=f;var h=r.default.concat([o,s,a,u,c,l,p,f]);t.default=h}));r(ee),ee.floatObj,ee.expObj,ee.nanObj,ee.hexObj,ee.intObj,ee.octObj,ee.boolObj,ee.nullObj;var te=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(G),r=o(X),i=o(P);function o(e){return e&&e.__esModule?e:{default:e}}const s=[n.default,r.default,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Q.resolveString,stringify:e=>JSON.stringify(e)},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:e=>JSON.stringify(e)},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>parseInt(e,10),stringify:e=>JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:e=>JSON.stringify(e)}];s.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var a=s;t.default=a}));r(te);var ne=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},re=[],ie=[],oe="undefined"!=typeof Uint8Array?Uint8Array:Array,se=!1;function ae(){se=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+re[i>>12&63]+re[i>>6&63]+re[63&i]);return o.join("")}function ce(e){var t;se||ae();for(var n=e.length,r=n%3,i="",o=[],s=0,a=n-r;sa?a:s+16383));return 1===r?(t=e[n-1],i+=re[t>>2],i+=re[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=re[t>>10],i+=re[t>>4&63],i+=re[t<<2&63],i+="="),o.push(i),o.join("")}function le(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)}function pe(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}var fe={}.toString,he=Array.isArray||function(e){return"[object Array]"==fe.call(e)};function de(){return ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function me(e,t){if(de()=de())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de().toString(16)+" bytes");return 0|e}function Ce(e){return!(null==e||!e._isBuffer)}function Ae(e,t){if(Ce(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ge(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Je(e).length;default:if(r)return Ge(e).length;t=(""+t).toLowerCase(),r=!0}}function Se(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return je(this,t,n);case"utf8":case"utf-8":return Le(this,t,n);case"ascii":return Ie(this,t,n);case"latin1":case"binary":return Be(this,t,n);case"base64":return Pe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function we(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function xe(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=ge.from(t,r)),Ce(t))return 0===t.length?-1:Fe(e,t,n,r,i);if("number"==typeof t)return t&=255,ge.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Fe(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Fe(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Pe(e,t,n){return 0===t&&n===e.length?ce(e):ce(e.slice(t,n))}function Le(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Ve(e,t,n,r,i,o){if(!Ce(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function We(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function $e(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function qe(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ye(e,t,n,r,i){return i||qe(e,0,n,4),pe(e,t,n,r,23,4),n+4}function Ke(e,t,n,r,i){return i||qe(e,0,n,8),pe(e,t,n,r,52,8),n+8}ge.TYPED_ARRAY_SUPPORT=void 0===ne.TYPED_ARRAY_SUPPORT||ne.TYPED_ARRAY_SUPPORT,ge.poolSize=8192,ge._augment=function(e){return e.__proto__=ge.prototype,e},ge.from=function(e,t,n){return ye(null,e,t,n)},ge.TYPED_ARRAY_SUPPORT&&(ge.prototype.__proto__=Uint8Array.prototype,ge.__proto__=Uint8Array),ge.alloc=function(e,t,n){return function(e,t,n,r){return ve(t),t<=0?me(e,t):void 0!==n?"string"==typeof r?me(e,t).fill(n,r):me(e,t).fill(n):me(e,t)}(null,e,t,n)},ge.allocUnsafe=function(e){return be(null,e)},ge.allocUnsafeSlow=function(e){return be(null,e)},ge.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Qe(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Qe(e.slice(0,0))}(e))},ge.compare=function(e,t){if(!Ce(e)||!Ce(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ge.prototype.compare=function(e,t,n,r,i){if(!Ce(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),l=0;li)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _e(this,e,t,n);case"utf8":case"utf-8":return Te(this,e,t,n);case"ascii":return Oe(this,e,t,n);case"latin1":case"binary":return Ne(this,e,t,n);case"base64":return ke(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ge.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},ge.prototype.readUInt8=function(e,t){return t||Ue(e,1,this.length),this[e]},ge.prototype.readUInt16LE=function(e,t){return t||Ue(e,2,this.length),this[e]|this[e+1]<<8},ge.prototype.readUInt16BE=function(e,t){return t||Ue(e,2,this.length),this[e]<<8|this[e+1]},ge.prototype.readUInt32LE=function(e,t){return t||Ue(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ge.prototype.readUInt32BE=function(e,t){return t||Ue(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ge.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},ge.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ue(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},ge.prototype.readInt8=function(e,t){return t||Ue(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ge.prototype.readInt16LE=function(e,t){t||Ue(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ge.prototype.readInt16BE=function(e,t){t||Ue(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ge.prototype.readInt32LE=function(e,t){return t||Ue(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ge.prototype.readInt32BE=function(e,t){return t||Ue(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ge.prototype.readFloatLE=function(e,t){return t||Ue(e,4,this.length),le(this,e,!0,23,4)},ge.prototype.readFloatBE=function(e,t){return t||Ue(e,4,this.length),le(this,e,!1,23,4)},ge.prototype.readDoubleLE=function(e,t){return t||Ue(e,8,this.length),le(this,e,!0,52,8)},ge.prototype.readDoubleBE=function(e,t){return t||Ue(e,8,this.length),le(this,e,!1,52,8)},ge.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Ve(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},ge.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,1,255,0),ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ge.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):We(this,e,t,!0),t+2},ge.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):We(this,e,t,!1),t+2},ge.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$e(this,e,t,!0),t+4},ge.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$e(this,e,t,!1),t+4},ge.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ve(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},ge.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Ve(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},ge.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,1,127,-128),ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ge.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):We(this,e,t,!0),t+2},ge.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):We(this,e,t,!1),t+2},ge.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,4,2147483647,-2147483648),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$e(this,e,t,!0),t+4},ge.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ve(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$e(this,e,t,!1),t+4},ge.prototype.writeFloatLE=function(e,t,n){return Ye(this,e,t,!0,n)},ge.prototype.writeFloatBE=function(e,t,n){return Ye(this,e,t,!1,n)},ge.prototype.writeDoubleLE=function(e,t,n){return Ke(this,e,t,!0,n)},ge.prototype.writeDoubleBE=function(e,t,n){return Ke(this,e,t,!1,n)},ge.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!ge.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Je(e){return function(e){var t,n,r,i,o,s;se||ae();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new oe(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=ie[e.charCodeAt(t)]<<2|ie[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=ie[e.charCodeAt(t)]<<10|ie[e.charCodeAt(t+1)]<<4|ie[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(He,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Xe(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ze=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{{const n=(0,Q.resolveString)(e,t);return ge.from(n,"base64")}},options:Y.binaryOptions,stringify:({comment:e,type:t,value:n},r,i,o)=>{let s;if(s=n instanceof ge?n.toString("base64"):ge.from(n.buffer).toString("base64"),t||(t=Y.binaryOptions.defaultType),t===f.Type.QUOTE_DOUBLE)n=s;else{const{lineWidth:e}=Y.binaryOptions,r=Math.ceil(s.length/e),i=new Array(r);for(let t=0,n=0;t1){const e="Each pair must have its own sequence indicator";throw new g.YAMLSemanticError(t,e)}const e=i.items[0]||new r.default;i.commentBefore&&(e.commentBefore=e.commentBefore?"".concat(i.commentBefore,"\n").concat(e.commentBefore):i.commentBefore),i.comment&&(e.comment=e.comment?"".concat(i.comment,"\n").concat(e.comment):i.comment),i=e}o.items[e]=i instanceof r.default?i:new r.default(i)}}return o}function u(e,t,n){const r=new o.default(e);r.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,o;if(Array.isArray(i)){if(2!==i.length)throw new TypeError("Expected [key, value] tuple: ".concat(i));t=i[0],o=i[1]}else if(i&&i instanceof Object){const e=Object.keys(i);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(i));t=e[0],o=i[t]}else t=i;const s=e.createPair(t,o,n);r.items.push(s)}return r}var c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:u};t.default=c}));r(et),et.parsePairs,et.createPairs;var tt=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLOMap=void 0;var n=a(k),r=a(j),i=a(L),o=a(P),s=a(R);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends s.default{constructor(){super(),u(this,"add",r.default.prototype.add.bind(this)),u(this,"delete",r.default.prototype.delete.bind(this)),u(this,"get",r.default.prototype.get.bind(this)),u(this,"has",r.default.prototype.has.bind(this)),u(this,"set",r.default.prototype.set.bind(this)),this.tag=c.tag}toJSON(e,t){const r=new Map;t&&t.onCreate&&t.onCreate(r);for(const e of this.items){let o,s;if(e instanceof i.default?(o=(0,n.default)(e.key,"",t),s=(0,n.default)(e.value,o,t)):o=(0,n.default)(e,"",t),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,s)}return r}}t.YAMLOMap=c,u(c,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=(0,et.parsePairs)(e,t),r=[];for(const{key:e}of n.items)if(e instanceof o.default){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new g.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new c,n)},createNode:function(e,t,n){const r=(0,et.createPairs)(e,t,n),i=new c;return i.items=r.items,i}};t.default=l}));r(tt),tt.YAMLOMap;var nt=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.YAMLSet=void 0;var n,r,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return e}();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(j),o=u(L),s=u(z),a=u(P);function u(e){return e&&e.__esModule?e:{default:e}}class c extends i.default{constructor(){super(),this.tag=c.tag}add(e){const t=e instanceof o.default?e:new o.default(e);(0,i.findPair)(this.items,t.key)||this.items.push(t)}get(e,t){const n=(0,i.findPair)(this.items,e);return!t&&n instanceof o.default?n.key instanceof a.default?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof t));const n=(0,i.findPair)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new o.default(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}t.YAMLSet=c,r="tag:yaml.org,2002:set","tag"in(n=c)?Object.defineProperty(n,"tag",{value:r,enumerable:!0,configurable:!0,writable:!0}):n.tag=r;var l={identify:e=>e instanceof Set,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=(0,s.default)(e,t);if(!n.hasAllNullValues())throw new g.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new c,n)},createNode:function(e,t,n){const r=new c;for(const i of t)r.items.push(e.createPair(i,null,n));return r}};t.default=l}));r(nt),nt.YAMLSet;var rt=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=t.floatTime=t.intTime=void 0;const n=(e,t)=>{const n=t.split(":").reduce((e,t)=>60*e+Number(t),0);return"-"===e?-n:n},r=({value:e})=>{if(isNaN(e)||!isFinite(e))return(0,K.stringifyNumber)(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.intTime=i;const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>n(t,r.replace(/_/g,"")),stringify:r};t.floatTime=o;const s={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,r,i,o,s,a,u,c)=>{u&&(u=(u+"00").substr(1,3));let l=Date.UTC(t,r-1,i,o||0,s||0,a||0,u||0);if(c&&"Z"!==c){let e=n(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.timestamp=s}));r(rt),rt.timestamp,rt.floatTime,rt.intTime;var it=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(P),r=u(Z),i=u(Ze),o=u(tt),s=u(et),a=u(nt);function u(e){return e&&e.__esModule?e:{default:e}}const c=({value:e})=>e?Y.boolOptions.trueStr:Y.boolOptions.falseStr;var l=r.default.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.default(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Y.nullOptions,stringify:()=>Y.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:Y.boolOptions,stringify:c},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:Y.boolOptions,stringify:c},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),2),stringify:({value:e})=>"0b"+e.toString(2)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),8),stringify:({value:e})=>(e<0?"-0":"0")+e.toString(8)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:e=>parseInt(e.replace(/_/g,""),10),stringify:K.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:(e,t)=>parseInt(t.replace(/_/g,""),16),stringify:({value:e})=>(e<0?"-0x":"0x")+e.toString(16)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:K.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const r=new n.default(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:K.stringifyNumber}],i.default,o.default,s.default,a.default,rt.intTime,rt.floatTime,rt.timestamp);t.default=l}));r(it);var ot=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.schemas=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return e}();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(ee),r=f(Z),i=f(te),o=f(it),s=f(G),a=f(X),u=f(Ze),c=f(tt),l=f(et),p=f(nt);function f(e){return e&&e.__esModule?e:{default:e}}const h={core:n.default,failsafe:r.default,json:i.default,yaml11:o.default};t.schemas=h;const d={binary:u.default,bool:n.boolObj,float:n.floatObj,floatExp:n.expObj,floatNaN:n.nanObj,floatTime:rt.floatTime,int:n.intObj,intHex:n.hexObj,intOct:n.octObj,intTime:rt.intTime,map:s.default,null:n.nullObj,omap:c.default,pairs:l.default,seq:a.default,set:p.default,timestamp:rt.timestamp};t.tags=d}));r(ot),ot.tags,ot.schemas;var st=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(B),r=a(I),i=a(M),o=a(L),s=a(P);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:i}){if(this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?(e,t)=>e.keyt.key?1:0:r||null,this.tags=ot.schemas[n.replace(/\W/g,"")],!this.tags){const e=Object.keys(ot.schemas).map(e=>JSON.stringify(e)).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(e))}if(!e&&i&&(e=i,(0,$.warnOptionDeprecation)("tags","customTags")),Array.isArray(e))for(const t of e)this.tags=this.tags.concat(t);else"function"==typeof e&&(this.tags=e(this.tags.slice()));for(let e=0;eJSON.stringify(e)).join(", ");throw new Error('Unknown custom tag "'.concat(t,'"; use one of ').concat(e))}this.tags[e]=n}}}createNode(e,t,r,o){if(e instanceof i.default)return e;let a;if(r){r.startsWith("!!")&&(r=c.defaultPrefix+r.slice(2));const e=this.tags.filter(e=>e.tag===r);if(a=e.find(e=>!e.format)||e[0],!a)throw new Error("Tag ".concat(r," not found"))}else if(a=this.tags.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format),!a){if("function"==typeof e.toJSON&&(e=e.toJSON()),"object"!=typeof e)return t?new s.default(e):e;a=e instanceof Map?ot.tags.map:e[Symbol.iterator]?ot.tags.seq:ot.tags.map}o?o.wrapScalars=t:o={wrapScalars:t},o.onTagObj&&(o.onTagObj(a),delete o.onTagObj);const u={};if(e&&"object"==typeof e&&o.prevObjects){const t=o.prevObjects.get(e);if(t){const e=new n.default(t);return o.aliasNodes.push(e),e}u.value=e,o.prevObjects.set(e,u)}return u.node=a.createNode?a.createNode(this,e,o):t?new s.default(e):e,r&&u.node instanceof i.default&&(u.node.tag=r),u.node}createPair(e,t,n){const r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new o.default(r,i)}resolveScalar(e,t){t||(t=this.tags);for(let n=0;ne===n),o=i.find(({test:e})=>!e);t.error&&e.errors.push(t.error);try{if(o){let n=o.resolve(e,t);n instanceof r.default||(n=new s.default(n)),t.resolved=n}else{const n=(0,Q.resolveString)(e,t);"string"==typeof n&&i.length>0&&(t.resolved=this.resolveScalar(n,i))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}resolveNodeWithFallback(e,t,n){const r=this.resolveNode(e,t,n);if(Object.prototype.hasOwnProperty.call(t,"resolved"))return r;const i=(({type:e})=>e===f.Type.FLOW_MAP||e===f.Type.MAP)(t)?c.defaultTags.MAP:(({type:e})=>e===f.Type.FLOW_SEQ||e===f.Type.SEQ)(t)?c.defaultTags.SEQ:c.defaultTags.STR;if(i){e.warnings.push(new g.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(i)));const r=this.resolveNode(e,t,i);return r.tag=n,r}return e.errors.push(new g.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}getTagObject(e){if(e instanceof n.default)return n.default;if(e.tag){const t=this.tags.filter(t=>t.tag===e.tag);if(t.length>0)return t.find(t=>t.format===e.format)||t[0]}let t,r;if(e instanceof s.default){r=e.value;const n=this.tags.filter(e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class);t=n.find(t=>t.format===e.format)||n.find(e=>!e.format)}else r=e,t=this.tags.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!t){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error("Tag not resolved for ".concat(e," value"))}return t}stringifyProps(e,t,{anchors:n,doc:r}){const i=[],o=r.anchors.getName(e);return o&&(n[o]=e,i.push("&".concat(o))),e.tag?i.push(r.stringifyTag(e.tag)):t.default||i.push(r.stringifyTag(t.tag)),i.join(" ")}stringify(e,t,n,s){let a;if(!(e instanceof i.default)){const n={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=this.createNode(e,!0,null,n);const{anchors:r}=t.doc;for(const e of n.aliasNodes){e.source=e.source.node;let t=r.getName(e.source);t||(t=r.newName(),r.map[t]=e.source)}}if(t.tags=this,e instanceof o.default)return e.toString(t,n,s);a||(a=this.getTagObject(e));const u=this.stringifyProps(e,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);const c="function"==typeof a.stringify?a.stringify(e,t,n,s):e instanceof r.default?e.toString(t,n,s):(0,K.stringifyString)(e,t,n,s);return u?e instanceof r.default&&"{"!==c[0]&&"["!==c[0]?"".concat(u,"\n").concat(t.indent).concat(c):"".concat(u," ").concat(c):c}}t.default=c,u(c,"defaultPrefix","tag:yaml.org,2002:"),u(c,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})}));r(st);var at=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r,i,o=m(N),s=m(V),a=m(W),u=m(st),c=m(B),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return e}();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(I),p=m(M),h=m(P),d=m(k);function m(e){return e&&e.__esModule?e:{default:e}}class y{constructor(e){this.anchors=new s.default(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}assertCollectionContents(){if(this.contents instanceof l.default)return!0;throw new Error("Expected a YAML collection as document contents")}add(e){return this.assertCollectionContents(),this.contents.add(e)}addIn(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}delete(e){return this.assertCollectionContents(),this.contents.delete(e)}deleteIn(e){return(0,l.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}getDefaults(){return y.defaults[this.version]||y.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof l.default?this.contents.get(e,t):void 0}getIn(e,t){return(0,l.isEmptyPath)(e)?!t&&this.contents instanceof h.default?this.contents.value:this.contents:this.contents instanceof l.default?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof l.default&&this.contents.has(e)}hasIn(e){return(0,l.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof l.default&&this.contents.hasIn(e)}set(e,t){this.assertCollectionContents(),this.contents.set(e,t)}setIn(e,t){(0,l.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new u.default(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:i,error:o,valueRange:s}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),this.parseDirectives(n,t),i&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof g.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof g.YAMLError&&e.makePretty()}return this}parseDirectives(e,t){const n=[];let r=!1;if(e.forEach(e=>{const{comment:t,name:i}=e;switch(i){case"TAG":this.resolveTagDirective(e),r=!0;break;case"YAML":case"YAML:1.0":this.resolveYamlDirective(e),r=!0;break;default:if(i){const t="YAML only supports %TAG and %YAML directives, and not %".concat(i);this.warnings.push(new g.YAMLWarning(e,t))}}t&&n.push(t)}),t&&!r&&"1.1"===(this.version||t.version||this.options.version)){const e=({handle:e,prefix:t})=>({handle:e,prefix:t});this.tagPrefixes=t.tagPrefixes.map(e),this.version=t.version}this.commentBefore=n.join("\n")||null}parseContents(e){const t={before:[],after:[]},n=[];let r=!1;switch(e.forEach(e=>{if(e.valueRange){if(1===n.length){const t="Document is not valid YAML (bad indentation?)";this.errors.push(new g.YAMLSyntaxError(e,t))}const t=this.resolveNode(e);r&&(t.spaceBefore=!0,r=!1),n.push(t)}else null!==e.comment?(0===n.length?t.before:t.after).push(e.comment):e.type===f.Type.BLANK_LINE&&(r=!0,0===n.length&&t.before.length>0&&!this.commentBefore&&(this.commentBefore=t.before.join("\n"),t.before=[]))}),n.length){case 0:this.contents=null,t.after=t.before;break;case 1:if(this.contents=n[0],this.contents){const e=t.before.join("\n")||null;if(e){const t=this.contents instanceof l.default&&this.contents.items[0]?this.contents.items[0]:this.contents;t.commentBefore=t.commentBefore?"".concat(e,"\n").concat(t.commentBefore):e}}else t.after=t.before.concat(t.after);break;default:this.contents=n,this.contents[0]?this.contents[0].commentBefore=t.before.join("\n")||null:t.after=t.before.concat(t.after)}this.comment=t.after.join("\n")||null}resolveTagDirective(e){const[t,n]=e.parameters;if(t&&n)if(this.tagPrefixes.every(e=>e.handle!==t))this.tagPrefixes.push({handle:t,prefix:n});else{const t="The %TAG directive must only be given at most once per handle in the same document.";this.errors.push(new g.YAMLSemanticError(e,t))}else{const t="Insufficient parameters given for %TAG directive";this.errors.push(new g.YAMLSemanticError(e,t))}}resolveYamlDirective(e){let[t]=e.parameters;if("YAML:1.0"===e.name&&(t="1.0"),this.version){const t="The %YAML directive must only be given at most once per document.";this.errors.push(new g.YAMLSemanticError(e,t))}if(t){if(!y.defaults[t]){const n=this.version||this.options.version,r="Document will be parsed as YAML ".concat(n," rather than YAML ").concat(t);this.warnings.push(new g.YAMLWarning(e,r))}this.version=t}else{const t="Insufficient parameters given for %YAML directive";this.errors.push(new g.YAMLSemanticError(e,t))}}resolveTagName(e){const{tag:t,type:n}=e;let r=!1;if(t){const{handle:n,suffix:i,verbatim:o}=t;if(o){if("!"!==o&&"!!"!==o)return o;const t="Verbatim tags aren't resolved, so ".concat(o," is invalid.");this.errors.push(new g.YAMLSemanticError(e,t))}else if("!"!==n||i){let t=this.tagPrefixes.find(e=>e.handle===n);if(!t){const e=this.getDefaults().tagPrefixes;e&&(t=e.find(e=>e.handle===n))}if(t){if(i){if("!"===n&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:/]/.test(i)){const e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(i)}}return t.prefix+decodeURIComponent(i)}this.errors.push(new g.YAMLSemanticError(e,"The ".concat(n," tag has no suffix.")))}else{const t="The ".concat(n," tag handle is non-default and was not declared.");this.errors.push(new g.YAMLSemanticError(e,t))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return u.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return u.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return u.default.defaultTags.SEQ;case f.Type.PLAIN:return r?u.default.defaultTags.STR:null;default:return null}}resolveNode(e){if(!e)return null;const{anchors:t,errors:n,schema:r}=this;let i=!1,o=!1;const s={before:[],after:[]},a=(e=>e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type))(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(const{start:t,end:r}of a)switch(e.context.src[t]){case f.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(t)){const t="Comments must be separated from other tokens by white space characters";n.push(new g.YAMLSemanticError(e,t))}const i=e.context.src.slice(t+1,r),{header:o,valueRange:a}=e;a&&(t>a.start||o&&t>o.start)?s.after.push(i):s.before.push(i)}break;case f.Char.ANCHOR:if(i){const t="A node can have at most one anchor";n.push(new g.YAMLSemanticError(e,t))}i=!0;break;case f.Char.TAG:if(o){const t="A node can have at most one tag";n.push(new g.YAMLSemanticError(e,t))}o=!0}if(i){const n=e.anchor,r=t.getNode(n);r&&(t.map[t.newName(n)]=r),t.map[n]=e}let u;if(e.type===f.Type.ALIAS){if(i||o){const t="An alias node must not specify any properties";n.push(new g.YAMLSemanticError(e,t))}const r=e.rawValue,s=t.getNode(r);if(!s){const t="Aliased anchor not found: ".concat(r);return n.push(new g.YAMLReferenceError(e,t)),null}u=new c.default(s),t._cstAliases.push(u)}else{const i=this.resolveTagName(e);if(i)u=r.resolveNodeWithFallback(this,e,i);else{if(e.type!==f.Type.PLAIN){const t="Failed to resolve ".concat(e.type," node here");return n.push(new g.YAMLSyntaxError(e,t)),null}try{u=r.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),n.push(t),null}}}if(u){u.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(u.cstNode=e),this.options.keepNodeTypes&&(u.type=e.type);const t=s.before.join("\n");t&&(u.commentBefore=u.commentBefore?"".concat(u.commentBefore,"\n").concat(t):t);const n=s.after.join("\n");n&&(u.comment=u.comment?"".concat(u.comment,"\n").concat(n):n)}return e.resolved=u}listNonDefaultTags(){return(0,a.default)(this.contents).filter(e=>0!==e.indexOf(u.default.defaultPrefix))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find(t=>t.handle===e);n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}stringifyTag(e){if("1.0"===(this.version||this.options.version)){const t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];const n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}{let t=this.tagPrefixes.find(t=>0===e.indexOf(t.prefix));if(!t){const n=this.getDefaults().tagPrefixes;t=n&&n.find(t=>0===e.indexOf(t.prefix))}if(!t)return"!"===e[0]?e:"!<".concat(e,">");const n=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]));return t.handle+n}}toJSON(e){const{keepBlobsInJSON:t,mapAsMap:n,maxAliasCount:r}=this.options,i=t&&("string"!=typeof e||!(this.contents instanceof h.default)),o={doc:this,keep:i,mapAsMap:i&&!!n,maxAliasCount:r},s=Object.keys(this.anchors.map);return s.length>0&&(o.anchors=s.map(e=>({alias:[],aliasCount:0,count:1,node:this.anchors.map[e]}))),(0,d.default)(this.contents,e,o)}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();const e=[];let t=!1;if(this.version){let n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}const n=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:r,prefix:i})=>{n.some(e=>0===e.indexOf(i))&&(e.push("%TAG ".concat(r," ").concat(i)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));const r={anchors:{},doc:this,indent:""};let i=!1,s=null;if(this.contents){this.contents instanceof p.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),r.forceBlockIndent=!!this.comment,s=this.contents.comment);const n=s?null:()=>i=!0,a=this.schema.stringify(this.contents,r,()=>s=null,n);e.push((0,o.default)(a,"",s))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,r));return this.comment&&(i&&!s||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}t.default=y,n=y,r="defaults",i={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:u.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:u.default.defaultPrefix}]}},r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i}));r(at);var ut=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(O),r=o(at),i=o(st);function o(e){return e&&e.__esModule?e:{default:e}}const s={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};class a extends r.default{constructor(e){super(Object.assign({},s,e))}}function u(e,t){const r=(0,n.default)(e),i=new a(t).parse(r[0]);if(r.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";i.errors.unshift(new g.YAMLSemanticError(r[1],e))}return i}var c={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const o=Object.assign({},r.default.defaults[s.version],s);return new i.default(o).createNode(e,t,n)},defaultOptions:s,Document:a,parse:function(e,t){const n=u(e,t);if(n.warnings.forEach(e=>(0,$.warn)(e)),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const r=[];let i;for(const o of(0,n.default)(e)){const e=new a(t);e.parse(o,i),r.push(e),i=e}return r},parseCST:n.default,parseDocument:u,stringify:function(e,t){const n=new a(t);return n.contents=e,String(n)}};t.default=c}));r(ut);var ct=ut.default,lt=i((function(e,t){t.__esModule=!0,t.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}));r(lt),lt.defineParents;var pt=i((function(e,t){t.__esModule=!0,t.getPointText=function(e){return e.line+":"+e.column}}));r(pt),pt.getPointText;var ft=i((function(e,t){function n(e,t){if(t.position.end.offsete.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type&&("mappingValue"===e.type||e.position.start.offset!==e.children[0].position.start.offset));default:return!1}}t.__esModule=!0,t.attachComments=function(e){lt.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n1&&"document"!==n.type&&"documentHead"!==n.type){var o=n.position.end,s=t[o.line-1].trailingAttachableNode;(!s||o.column>=s.position.end.column)&&(t[o.line-1].trailingAttachableNode=n)}if("root"!==n.type&&"document"!==n.type&&"documentHead"!==n.type&&"documentBody"!==n.type)for(var a=n.position,u=0,c=(r=a.start,[(o=a.end).line].concat(r.line===o.line?[]:r.line));u=p.position.end.column)&&(t[l-1].trailingNode=n)}"children"in n&&n.children.forEach((function(n){e(t,n)}))}}(t,e),t}(e),r=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,r){var i=e.position.start.line,o=t[i-1].trailingAttachableNode;if(o){if(o.trailingComment)throw new Error("Unexpected multiple trailing comment at "+pt.getPointText(e.position.start));return lt.defineParents(e,o),void(o.trailingComment=e)}for(var s=i;s>=r.position.start.line;s--){var a=t[s-1].trailingNode,u=void 0;if(a)u=a;else{if(s===i||!t[s-1].comment)continue;u=t[s-1].comment._parent}for(;;){if(n(u,e))return lt.defineParents(e,u),void u.endComments.push(e);if(!u._parent)break;u=u._parent}break}for(s=i+1;s<=r.position.end.line;s++){var c=t[s-1].leadingAttachableNode;if(c)return lt.defineParents(e,c),void c.leadingComments.push(e)}var l=r.children[1];lt.defineParents(e,l),l.endComments.push(e)}(e,t,r[0])}))}}));r(ft),ft.attachComments;var ht=i((function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}}));r(ht),ht.createNode;var dt,mt=(dt=l)&&dt.default||dt,gt=i((function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return mt.__assign(mt.__assign({},ht.createNode("root",e)),{children:t,comments:n})}}));r(gt),gt.createRoot;var yt=i((function(e,t){t.__esModule=!0,t.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}}}));r(yt),yt.removeCstBlankLine;var vt=i((function(e,t){t.__esModule=!0,t.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}));r(vt),vt.createLeadingCommentAttachable;var bt=i((function(e,t){t.__esModule=!0,t.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}));r(bt),bt.createTrailingCommentAttachable;var Dt=i((function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return mt.__assign(mt.__assign({},vt.createLeadingCommentAttachable()),bt.createTrailingCommentAttachable())}}));r(Dt),Dt.createCommentAttachable;var Et=i((function(e,t){t.__esModule=!0,t.createAlias=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("alias",e)),Dt.createCommentAttachable()),t),{value:n})}}));r(Et),Et.createAlias;var Ct=i((function(e,t){t.__esModule=!0,t.transformAlias=function(e,t){var n=e.cstNode;return Et.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}}));r(Ct),Ct.transformAlias;var At=i((function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return mt.__assign(mt.__assign({},e),{type:"blockFolded"})}}));r(At),At.createBlockFolded;var St=i((function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r,i,o){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("blockValue",e)),vt.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:i,indicatorComment:o})}}));r(St),St.createBlockValue;var wt=i((function(e,t){t.__esModule=!0,function(e){e.Tag="!",e.Anchor="&",e.Comment="#"}(t.PropLeadingCharacter||(t.PropLeadingCharacter={}))}));r(wt),wt.PropLeadingCharacter;var xt=i((function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("anchor",e)),{value:t})}}));r(xt),xt.createAnchor;var Ft=i((function(e,t){t.__esModule=!0,t.createComment=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("comment",e)),{value:t})}}));r(Ft),Ft.createComment;var _t=i((function(e,t){t.__esModule=!0,t.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}));r(_t),_t.createContent;var Tt=i((function(e,t){t.__esModule=!0,t.createTag=function(e,t){return mt.__assign(mt.__assign({},ht.createNode("tag",e)),{value:t})}}));r(Tt),Tt.createTag;var Ot=i((function(e,t){t.__esModule=!0,t.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,i=[],o=null,s=null,a=null,u=0,c=r.props;u=0;a--){var u=e.contents[a];if("COMMENT"===u.type){var c=t.transformNode(u);n&&n.line===c.position.start.line?o.unshift(c):s?r.unshift(c):c.position.start.offset>=e.valueRange.origEnd?i.unshift(c):r.unshift(c)}else s=!0}if(i.length>1)throw new Error("Unexpected multiple document trailing comments at "+pt.getPointText(i[1].position.start));if(o.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+pt.getPointText(o[1].position.start));return{comments:r,endComments:[],documentTrailingComment:$t.getLast(i)||null,documentHeadTrailingComment:$t.getLast(o)||null}}(i,t,n),s=o.comments,a=o.endComments,u=o.documentTrailingComment,c=o.documentHeadTrailingComment,l=t.transformNode(e.contents),p=function(e,t,n){var r=qt.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),i=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[i-1]&&i--;var o=n.transformRange({origStart:null!==t?t.position.start.offset:i,origEnd:i});return{position:o,documentEndPoint:-1===r?o.end:n.transformOffset(e.valueRange.origEnd+3)}}(i,l,t),f=p.position,h=p.documentEndPoint;return(r=t.comments).push.apply(r,mt.__spreadArrays(s,a)),{documentBody:Wt.createDocumentBody(f,l,a),documentEndPoint:h,documentTrailingComment:u,documentHeadTrailingComment:c}}}));r(Yt),Yt.transformDocumentBody;var Kt=i((function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t,n,r){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("documentHead",e)),Vt.createEndCommentAttachable(n)),bt.createTrailingCommentAttachable(r)),{children:t})}}));r(Kt),Kt.createDocumentHead;var Ht=i((function(e,t){t.__esModule=!0,t.transformDocumentHead=function(e,t){var n,r=e.cstNode,i=function(e,t){for(var n=[],r=[],i=[],o=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?o?r.unshift(a):i.unshift(a):(o=!0,n.unshift(a))}return{directives:n,comments:r,endComments:i}}(r,t),o=i.directives,s=i.comments,a=i.endComments,u=function(e,t,n){var r=qt.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/),i=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(i.origStart=t[0].position.start.offset),{position:n.transformRange(i),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,o,t),c=u.position,l=u.endMarkerPoint;return(n=t.comments).push.apply(n,mt.__spreadArrays(s,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),Kt.createDocumentHead(c,o,a,e)},documentHeadEndMarkerPoint:l}}}));r(Ht),Ht.transformDocumentHead;var zt=i((function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){var n=Ht.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,i=n.documentHeadEndMarkerPoint,o=Yt.transformDocumentBody(e,t,i),s=o.documentBody,a=o.documentEndPoint,u=o.documentTrailingComment,c=r(o.documentHeadTrailingComment);return u&&t.comments.push(u),Rt.createDocument(Ut.createPosition(c.position.start,a),c,s,u)}}));r(zt),zt.transformDocument;var Gt=i((function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("flowCollection",e)),Dt.createCommentAttachable()),t),{children:n})}}));r(Gt),Gt.createFlowCollection;var Jt=i((function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t,n){return mt.__assign(mt.__assign({},Gt.createFlowCollection(e,t,n)),{type:"flowMapping"})}}));r(Jt),Jt.createFlowMapping;var Xt=i((function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign({},ht.createNode("flowMappingItem",e)),vt.createLeadingCommentAttachable()),{children:[t,n]})}}));r(Xt),Xt.createFlowMappingItem;var Qt=i((function(e,t){t.__esModule=!0,t.extractComments=function(e,t){for(var n=[],r=0,i=e;r=0;r--)if(n.test(e[r]))return r;return-1}}));r(dn),dn.findLastCharIndex;var mn=i((function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){var n=e.cstNode;return hn.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:dn.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}}));r(mn),mn.transformPlain;var gn=i((function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return mt.__assign(mt.__assign({},e),{type:"quoteDouble"})}}));r(gn),gn.createQuoteDouble;var yn=i((function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("quoteValue",e)),t),Dt.createCommentAttachable()),{value:n})}}));r(yn),yn.createQuoteValue;var vn=i((function(e,t){t.__esModule=!0,t.transformAstQuoteValue=function(e,t){var n=e.cstNode;return yn.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}}));r(vn),vn.transformAstQuoteValue;var bn=i((function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return gn.createQuoteDouble(vn.transformAstQuoteValue(e,t))}}));r(bn),bn.transformQuoteDouble;var Dn=i((function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return mt.__assign(mt.__assign({},e),{type:"quoteSingle"})}}));r(Dn),Dn.createQuoteSingle;var En=i((function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return Dn.createQuoteSingle(vn.transformAstQuoteValue(e,t))}}));r(En),En.transformQuoteSingle;var Cn=i((function(e,t){t.__esModule=!0,t.createSequence=function(e,t,n){return mt.__assign(mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("sequence",e)),vt.createLeadingCommentAttachable()),Vt.createEndCommentAttachable()),t),{children:n})}}));r(Cn),Cn.createSequence;var An=i((function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return mt.__assign(mt.__assign(mt.__assign(mt.__assign({},ht.createNode("sequenceItem",e)),Dt.createCommentAttachable()),Vt.createEndCommentAttachable()),{children:t?[t]:[]})}}));r(An),An.createSequenceItem;var Sn=i((function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=Qt.extractComments(e.cstNode.items,t).map((function(n,r){Bt.extractPropComments(n,t);var i=t.transformNode(e.items[r]);return An.createSequenceItem(Ut.createPosition(t.transformOffset(n.valueRange.origStart),null===i?t.transformOffset(n.valueRange.origStart+1):i.position.end),i)}));return Cn.createSequence(Ut.createPosition(n[0].position.start,$t.getLast(n).position.end),t.transformContent(e),n)}}));r(Sn),Sn.transformSeq;var wn=i((function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return null;switch(e.type){case"ALIAS":return Ct.transformAlias(e,t);case"BLOCK_FOLDED":return kt.transformBlockFolded(e,t);case"BLOCK_LITERAL":return Pt.transformBlockLiteral(e,t);case"COMMENT":return Lt.transformComment(e,t);case"DIRECTIVE":return jt.transformDirective(e,t);case"DOCUMENT":return zt.transformDocument(e,t);case"FLOW_MAP":return sn.transformFlowMap(e,t);case"FLOW_SEQ":return cn.transformFlowSeq(e,t);case"MAP":return fn.transformMap(e,t);case"PLAIN":return mn.transformPlain(e,t);case"QUOTE_DOUBLE":return bn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return En.transformQuoteSingle(e,t);case"SEQ":return Sn.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}}));r(wn),wn.transformNode;var xn=i((function(e,t){t.__esModule=!0,t.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}));r(xn),xn.createError;var Fn=i((function(e,t){t.__esModule=!0,t.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return xn.createError(e.message,t.text,t.transformRange(n))}}));r(Fn),Fn.transformError;var _n=i((function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}));r(_n),_n.createPoint;var Tn=i((function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return _n.createPoint(e,n.line+1,n.column+1)}}));r(Tn),Tn.transformOffset;var On=i((function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return Ut.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}}));r(On),On.transformRange;var Nn=i((function(e,t){t.__esModule=!0,t.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,!0):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,!0):void 0};e.forEach((function(e){return function e(t,n){if(t&&"object"==typeof t&&!0!==n(t))for(var r=0,i=Object.keys(t);re.offset}t.__esModule=!0,t.updatePositions=function e(t){if(null!==t&&"children"in t){var u=t.children;if(u.forEach(e),"document"===t.type){var c=t.children,l=c[0],p=c[1];l.position.start.offset===l.position.end.offset?l.position.start=l.position.end=p.position.start:p.position.start.offset===p.position.end.offset&&(p.position.start=p.position.end=l.position.end)}var f=Mn.createUpdater(t.position,n,r,s),h=Mn.createUpdater(t.position,i,o,a);"endComments"in t&&0!==t.endComments.length&&(f(t.endComments[0].position.start),h($t.getLast(t.endComments).position.end));var d=u.filter((function(e){return null!==e}));if(0!==d.length){var m=d[0],g=$t.getLast(d);f(m.position.start),h(g.position.end),"leadingComments"in m&&0!==m.leadingComments.length&&f(m.leadingComments[0].position.start),"tag"in m&&m.tag&&f(m.tag.position.start),"anchor"in m&&m.anchor&&f(m.anchor.position.start),"trailingComment"in g&&g.trailingComment&&h(g.trailingComment.position.end)}}}}));r(Pn),Pn.updatePositions;var Ln=i((function(e,t){t.__esModule=!0,t.parse=function(e){var t=ct.parseCST(e);Nn.addOrigRange(t);var n=t.map((function(e){return new ct.Document({merge:!0,keepCstNodes:!0}).parse(e)})),r=[],i={text:e,locator:new p.default(e),comments:r,transformOffset:function(e){return Tn.transformOffset(e,i)},transformRange:function(e){return On.transformRange(e,i)},transformNode:function(e){return wn.transformNode(e,i)},transformContent:function(e){return Ot.transformContent(e,i)}},o=n.find((function(e){return 0!==e.errors.length}));if(o)throw Fn.transformError(o.errors[0],i);n.forEach((function(e){return yt.removeCstBlankLine(e.cstNode)}));var s=gt.createRoot(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),r);return ft.attachComments(s),Pn.updatePositions(s),kn.removeFakeNodes(s),s}}));r(Ln),Ln.parse;var In=i((function(e,t){t.__esModule=!0,mt.__exportStar(Ln,t)}));r(In);const{hasPragma:Bn}={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};var jn={parsers:{yaml:{astFormat:"yaml",parse:function(e){try{const t=In.parse(e);return delete t.comments,t}catch(e){throw e&&e.position?function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}(e.message,e.position):e}},hasPragma:Bn,locStart:e=>e.position.start.offset,locEnd:e=>e.position.end.offset}}},Rn=jn.parsers;t.default=jn,t.parsers=Rn,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,n(11))},function(e,t,n){"use strict";n.d(t,"a",(function(){return jt}));const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){s(e)||r.onUnexpectedError(e)}function o(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}function s(e){return e instanceof Error&&"Canceled"===e.name&&"Canceled"===e.message}var a;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){for(const n of e)yield t(n)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);ti}]},e.equals=function(e,t,n=((e,t)=>e===t)){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=r.next(),t=i.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(a||(a={}));let u=null;function c(e){u&&u.markTracked(e)}function l(e){return u?(u.trackDisposable(e),e):e}class p extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function f(e){if(a.is(e)){let t=[];for(const n of e)if(n){c(n);try{n.dispose()}catch(e){t.push(e)}}if(1===t.length)throw t[0];if(t.length>1)throw new p(t);return Array.isArray(e)?[]:e}if(e)return c(e),e.dispose(),e}function h(...e){return e.forEach(c),function(e){const t=l({dispose:()=>{c(t),e()}});return t}(()=>f(e))}class d{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}d.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new d,l(this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});var g=n(1);function y(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function v(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let r={};for(const t of e)r[t]=n(t);return r}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&(e=new Error,e.name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req;this._handler.handleMessage(t.method,t.args).then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=o(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:o(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=v(r,(e,t)=>this._protocol.sendMessage(e,t));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(y(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,self.require.config(t)),new Promise((e,t)=>{self.require([n],n=>{this._requestHandler=n.create(i),this._requestHandler?e(y(this._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}}class E{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function C(e){return 55296<=e&&e<=56319}function A(e){return 56320<=e&&e<=57343}function S(e,t){return t-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class w{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return w._INSTANCE||(w._INSTANCE=new w),w._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(et[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}function x(e,t){return(t<<5)-t+e|0}function F(e,t){t=x(149417,t);for(let n=0,r=e.length;n>>r)>>>0}function T(e,t=0,n=e.byteLength,r=0){for(let i=0;ie.toString(16).padStart(2,"0")).join(""):function(e,t,n="0"){for(;e.length>>0).toString(16),t/4)}w._INSTANCE=null;class N{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,i,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(r=s,i=-1,s=0):(r=e.charCodeAt(0),i=0);;){let a=r;if(C(r)){if(!(i+1>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),O(this._h0)+O(this._h1)+O(this._h2)+O(this._h3)+O(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,T(this._buff,this._buffLen),this._buffLen>56&&(this._step(),T(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=N._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,_(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,r,i,o=this._h0,s=this._h1,a=this._h2,u=this._h3,c=this._h4;for(let t=0;t<80;t++)t<20?(n=s&a|~s&u,r=1518500249):t<40?(n=s^a^u,r=1859775393):t<60?(n=s&a|s&u|a&u,r=2400959708):(n=s^a^u,r=3395469782),i=_(o,5)+n+c+r+e.getUint32(4*t,!1)&4294967295,c=u,u=a,a=_(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+c&4294967295}}N._bigBlock32=new DataView(new ArrayBuffer(320));class k{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new E(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class B{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[r,i,o]=B._getElements(e),[s,a,u]=B._getElements(t);this._hasStrings=o&&u,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(B._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(P.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new E(e,0,n,r-n+1)]):e<=t?(P.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new E(e,t-e+1,n,0)]):(P.Assert(e===t+1,"originalStart should only be one more than originalEnd"),P.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,o,s,i),u=o[0],c=s[0];if(null!==a)return a;if(!i[0]){const o=this.ComputeDiffRecursive(e,u,n,c,i);let s=[];return s=i[0]?[new E(u+1,t-(u+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(u+1,t,c+1,r,i),this.ConcatenateChanges(o,s)}return[new E(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,m,g,y){let v=null,b=null,D=new I,C=t,A=n,S=f[0]-m[0]-r,w=-1073741824,x=this.m_forwardHistory.length-1;do{const t=S+e;t===C||t=0&&(e=(u=this.m_forwardHistory[x])[0],C=1,A=u.length-1)}while(--x>=-1);if(v=D.getReverseChanges(),y[0]){let e=f[0]+1,t=m[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}b=[new E(e,p-e+1,t,d-t+1)]}else{D=new I,C=o,A=s,S=f[0]-m[0]-a,w=1073741824,x=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+i;e===C||e=c[e+1]?(h=(l=c[e+1]-1)-S-a,l>w&&D.MarkNextChange(),w=l+1,D.AddOriginalElement(l+1,h+1),S=e+1-i):(h=(l=c[e-1])-S-a,l>w&&D.MarkNextChange(),w=l,D.AddModifiedElement(l+1,h+1),S=e-1-i),x>=0&&(i=(c=this.m_reverseHistory[x])[0],C=1,A=c.length-1)}while(--x>=-1);b=D.getChanges()}return this.ConcatenateChanges(v,b)}ComputeRecursionPoint(e,t,n,r,i,o,s){let a=0,u=0,c=0,l=0,p=0,f=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const h=t-e+(r-n),d=h+1,m=new Int32Array(d),g=new Int32Array(d),y=r-n,v=t-e,b=e-n,D=t-r,C=(v-y)%2==0;m[y]=e,g[v]=t,s[0]=!1;for(let A=1;A<=h/2+1;A++){let h=0,S=0;c=this.ClipDiagonalBound(y-A,A,y,d),l=this.ClipDiagonalBound(y+A,A,y,d);for(let e=c;e<=l;e+=2){a=e===c||eh+S&&(h=a,S=u),!C&&Math.abs(e-v)<=A-1&&a>=g[e])return i[0]=a,o[0]=u,n<=g[e]&&A<=1448?this.WALKTRACE(y,c,l,b,v,p,f,D,m,g,a,t,i,u,r,o,C,s):null}const w=(h-e+(S-n)-A)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(h,w))return s[0]=!0,i[0]=h,o[0]=S,w>0&&A<=1448?this.WALKTRACE(y,c,l,b,v,p,f,D,m,g,a,t,i,u,r,o,C,s):(e++,n++,[new E(e,t-e+1,n,r-n+1)]);p=this.ClipDiagonalBound(v-A,A,v,d),f=this.ClipDiagonalBound(v+A,A,v,d);for(let h=p;h<=f;h+=2){a=h===p||h=g[h+1]?g[h+1]-1:g[h-1],u=a-(h-v)-D;const d=a;for(;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(g[h]=a,C&&Math.abs(h-y)<=A&&a<=m[h])return i[0]=a,o[0]=u,d>=m[h]&&A<=1448?this.WALKTRACE(y,c,l,b,v,p,f,D,m,g,a,t,i,u,r,o,C,s):null}if(A<=1447){let e=new Int32Array(l-c+2);e[0]=y-c+1,L.Copy2(m,c,e,1,l-c+1),this.m_forwardHistory.push(e),e=new Int32Array(f-p+2),e[0]=v-p+1,L.Copy2(g,p,e,1,f-p+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,c,l,b,v,p,f,D,m,g,a,t,i,u,r,o,C,s)}PrettifyChanges(e){for(let t=0;t0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,u=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(tu&&(u=l,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>a&&(a=n,u=t,c=e)}return a>0?[u,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return L.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],L.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return L.Copy(e,0,n,0,e.length),L.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(P.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),P.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new E(r,i,o,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e=65&&e<=90||e>=97&&e<=122}function q(e,t,n,r){let i="",o=0,s=-1,a=0,u=0;for(let c=0;c<=e.length;++c){if(c2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):(i=i.slice(0,e),o=i.length-1-i.lastIndexOf(n)),s=c,a=0;continue}if(0!==i.length){i="",o=0,s=c,a=0;continue}}t&&(i+=i.length>0?n+"..":"..",o=2)}else i.length>0?i+=`${n}${e.slice(s+1,c)}`:i=e.slice(s+1,c),o=c-s-1;s=c,a=0}else 46===u&&-1!==a?++a:a=-1}return i}function Y(e,t){if(null===t||"object"!=typeof t)throw new R("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const K={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],U(o,"path"),0===o.length)continue}else 0===t.length?o=j.a():(o=j.b["="+t]||j.a(),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=t+"\\"));const s=o.length;let a=0,u="",c=!1;const l=o.charCodeAt(0);if(1===s)V(l)&&(a=1,c=!0);else if(V(l))if(c=!0,V(o.charCodeAt(1))){let e=2,t=e;for(;e2&&V(o.charCodeAt(2))&&(c=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,r=c,c&&t.length>0)break}return n=q(n,!r,"\\",V),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){U(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const o=e.charCodeAt(0);if(1===t)return W(o)?"\\":e;if(V(o))if(i=!0,V(e.charCodeAt(1))){let i=2,o=i;for(;i2&&V(e.charCodeAt(2))&&(i=!0,r=3));let s=r0&&V(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?i?"\\"+s:s:i?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){U(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return V(n)||t>2&&$(n)&&58===e.charCodeAt(1)&&V(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r0&&(void 0===t?t=n=i:t+="\\"+i)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&V(n.charCodeAt(0))){++i;const e=n.length;e>1&&V(n.charCodeAt(1))&&(++i,e>2&&(V(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t="\\"+t.slice(i))}return K.normalize(t)},relative(e,t){if(U(e,"from"),U(t,"to"),e===t)return"";const n=K.resolve(e),r=K.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;ii&&92===e.charCodeAt(o-1);)o--;const s=o-i;let a=0;for(;aa&&92===t.charCodeAt(u-1);)u--;const c=u-a,l=sl){if(92===t.charCodeAt(a+f))return r.slice(a+f+1);if(2===f)return r.slice(a+f)}s>l&&(92===e.charCodeAt(i+f)?p=f:2===f&&(p=3)),-1===p&&(p=0)}let h="";for(f=i+p+1;f<=o;++f)f!==o&&92!==e.charCodeAt(f)||(h+=0===h.length?"..":"\\..");return a+=p,h.length>0?`${h}${r.slice(a,u)}`:(92===r.charCodeAt(a)&&++a,r.slice(a,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=K.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){const e=t.charCodeAt(2);if(63!==e&&46!==e)return"\\\\?\\UNC\\"+t.slice(2)}}else if($(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return"\\\\?\\"+t;return e},dirname(e){U(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return V(i)?e:".";if(V(i)){if(n=r=1,V(e.charCodeAt(1))){let i=2,o=i;for(;i2&&V(e.charCodeAt(2))?3:2,r=n);let o=-1,s=!0;for(let n=t-1;n>=r;--n)if(V(e.charCodeAt(n))){if(!s){o=n;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&U(t,"ext"),U(e,"path");let n,r=0,i=-1,o=!0;if(e.length>=2&&$(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const u=e.charCodeAt(n);if(V(u)){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(V(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){U(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&$(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(V(t)){if(!o){r=a+1;break}}else-1===i&&(o=!1,i=a+1),46===t?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Y.bind(null,"\\"),parse(e){U(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return V(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(V(i)){if(r=1,V(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,r));let o=-1,s=r,a=-1,u=!0,c=e.length-1,l=0;for(;c>=r;--c)if(i=e.charCodeAt(c),V(i)){if(!u){s=c+1;break}}else-1===a&&(u=!1,a=c+1),46===i?-1===o?o=c:1!==l&&(l=1):-1!==o&&(l=-1);return-1!==a&&(-1===o||0===l||1===l&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==r?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},H={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:j.a();U(i,"path"),0!==i.length&&(t=`${i}/${t}`,n=47===i.charCodeAt(0))}return t=q(t,!n,"/",W),n?"/"+t:t.length>0?t:"."},normalize(e){if(U(e,"path"),0===e.length)return".";const t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0===(e=q(e,!t,"/",W)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/"+e:e)},isAbsolute:e=>(U(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":H.normalize(t)},relative(e,t){if(U(e,"from"),U(t,"to"),e===t)return"";if((e=H.resolve(e))===(t=H.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,o=ro){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0));let u="";for(a=1+s+1;a<=n;++a)a!==n&&47!==e.charCodeAt(a)||(u+=0===u.length?"..":"/..");return`${u}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(U(e,"path"),0===e.length)return".";const t=47===e.charCodeAt(0);let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&U(t,"ext"),U(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(47===u){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){U(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Y.bind(null,"/"),parse(e){U(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=47===e.charCodeAt(0);let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,s=-1,a=!0,u=e.length-1,c=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(47!==t)-1===s&&(a=!1,s=u+1),46===t?-1===i?i=u:1!==c&&(c=1):-1!==i&&(c=-1);else if(!a){o=u+1;break}}if(-1!==s){const r=0===o&&n?1:o;-1===i||0===c||1===c&&i===s-1&&i===o+1?t.base=t.name=e.slice(r,s):(t.name=e.slice(r,i),t.base=e.slice(r,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};H.win32=K.win32=K,H.posix=K.posix=H;"win32"===j.c?K.normalize:H.normalize,"win32"===j.c?K.resolve:H.resolve,"win32"===j.c?K.relative:H.relative,"win32"===j.c?K.dirname:H.dirname,"win32"===j.c?K.basename:H.basename,"win32"===j.c?K.extname:H.extname,"win32"===j.c?K.sep:H.sep;const z=/^\w[\w\d+.-]*$/,G=/^\//,J=/^\/\//;const X="/",Q=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Z{constructor(e,t,n,r,i,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==X&&(t=X+t):t=X}return t}(this.scheme,n||""),this.query=r||"",this.fragment=i||"",function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!z.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!G.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(J.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}static isUri(e){return e instanceof Z||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return oe(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===r?r=this.path:null===r&&(r=""),void 0===i?i=this.query:null===i&&(i=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new te(t,n,r,i,o)}static parse(e,t=!1){const n=Q.exec(e);return n?new te(n[2]||"",ue(n[4]||""),ue(n[5]||""),ue(n[7]||""),ue(n[9]||""),t):new te("","","","","")}static file(e){let t="";if(g.d&&(e=e.replace(/\\/g,X)),e[0]===X&&e[1]===X){const n=e.indexOf(X,2);-1===n?(t=e.substring(2),e=X):(t=e.substring(2,n),e=e.substring(n)||X)}return new te("file",t,e,"","")}static from(e){return new te(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=g.d&&"file"===e.scheme?Z.file(K.join(oe(e,!0),...t)).path:H.join(e.path,...t),e.with({path:n})}toString(e=!1){return se(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Z)return e;{const t=new te(e);return t._formatted=e.external,t._fsPath=e._sep===ee?e.fsPath:null,t}}return e}}const ee=g.d?1:void 0;class te extends Z{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=oe(this,!1)),this._fsPath}toString(e=!1){return e?se(this,!0):(this._formatted||(this._formatted=se(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ee),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ne={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function re(e,t){let n=void 0,r=-1;for(let i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=ne[o];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function ie(e){let t=void 0;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,g.d&&(n=n.replace(/\//g,"\\")),n}function se(e,t){const n=t?ie:re;let r="",{scheme:i,authority:o,path:s,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=X,r+=X),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.indexOf(":"),-1===e?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}o=o.toLowerCase(),e=o.indexOf(":"),-1===e?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:re(u,!1)),r}const ae=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ue(e){return e.match(ae)?e.replace(ae,e=>function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)):e}class ce{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ce(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ce.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ce.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return le.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return le.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))}containsRange(e){return le.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))}strictContainsRange(e){return le.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return le.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;return t.startLineNumbere.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new le(n,r,i,o)}intersectRanges(e){return le.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,c=t.endColumn;return nu?(i=u,o=c):i===u&&(o=Math.min(o,c)),n>i||n===i&&r>o?null:new le(n,r,i,o)}equalsRange(e){return le.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return le.getEndPosition(this)}static getEndPosition(e){return new ce(e.endLineNumber,e.endColumn)}getStartPosition(){return le.getStartPosition(this)}static getStartPosition(e){return new ce(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new le(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new le(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return le.collapseToStart(this)}static collapseToStart(e){return new le(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new le(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new le(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}function pe(e,t,n,r){return new B(e,t,n).ComputeDiff(r)}class fe{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let u=pe(o,a,i,!0).changes;s&&(u=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r1&&s>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(s-2))break;n--,s--}(n>1||s>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,o+1,1,s)}{let n=ve(e,1),s=ve(t,1);const a=e.length+1,u=t.length+1;for(;n=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function be(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t255?255:0|e}function Ee(e){return e<0?0:e>4294967295?4294967295:0|e}class Ce{constructor(e,t){this.index=e,this.remainder=t}}class Ae{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Ee(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Ee(e),t=Ee(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=Ee(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,n=this.values.length-1,r=0,i=0,o=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],o=i-this.values[r],e=i))break;t=r+1}return new Ce(r,e-o)}}const Se=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();const we={maxLen:1e3,windowSize:15,timeBudget:150};function xe(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}class Fe{constructor(e){let t=De(e);this._defaultValue=t,this._asciiMap=Fe._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=De(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class _e{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;it&&(t=o),i>n&&(n=i),s>n&&(n=s)}t++,n++;let r=new _e(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let Oe=null;let Ne=null;class ke{static _createLink(e,t,n,r,i){let o=i-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=function(){return null===Oe&&(Oe=new Te([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Oe}()){const n=function(){if(null===Ne){Ne=new Fe(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}Me.INSTANCE=new Me;class Pe{constructor(e){this.element=e,this.next=Pe.Undefined,this.prev=Pe.Undefined}}Pe.Undefined=new Pe(void 0);class Le{constructor(){this._first=Pe.Undefined,this._last=Pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Pe.Undefined}clear(){this._first=Pe.Undefined,this._last=Pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Pe(e);if(this._first===Pe.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==Pe.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Pe.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Pe.Undefined&&e.next!==Pe.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Pe.Undefined&&e.next===Pe.Undefined?(this._first=Pe.Undefined,this._last=Pe.Undefined):e.next===Pe.Undefined?(this._last=this._last.prev,this._last.next=Pe.Undefined):e.prev===Pe.Undefined&&(this._first=this._first.next,this._first.prev=Pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Pe.Undefined;)yield e.element,e=e.next}}const Ie=g.a.performance&&"function"==typeof g.a.performance.now;class Be{constructor(e){this._highResolution=Ie&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Be(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?g.a.performance.now():Date.now()}}var je;!function(e){function t(e){return(t,n=null,r)=>{let i,o=!1;return i=e(e=>{if(!o)return i?i.dispose():o=!0,t.call(n,e)},null,r),o&&i.dispose(),i}}function n(e,t){return s((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function r(e,t){return s((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function i(e,t){return s((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i))}function o(e,t,r){let i=r;return n(e,e=>(i=t(i,e),i))}function s(e){let t;const n=new Ue({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function a(e,t,n=100,r=!1,i){let o,s=void 0,a=void 0,u=0;const c=new Ue({leakWarningThreshold:i,onFirstListenerAdd(){o=e(e=>{u++,s=t(s,e),r&&!a&&(c.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{const e=s;s=void 0,a=void 0,(!r||u>1)&&c.fire(e),u=0},n)})},onLastListenerRemove(){o.dispose()}});return c.event}function u(e){let t,n=!0;return i(e,e=>{const r=n||e!==t;return n=!1,t=e,r})}e.None=()=>m.None,e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>h(...e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=s,e.debounce=a,e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=u,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):s.fire(e)});const o=()=>{r&&r.forEach(e=>s.fire(e)),r=null},s=new Ue({onFirstListenerAdd(){i||(i=e(e=>s.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){i&&i.dispose(),i=null}});return s.event};class c{constructor(e){this.event=e}map(e){return new c(n(this.event,e))}forEach(e){return new c(r(this.event,e))}filter(e){return new c(i(this.event,e))}reduce(e,t){return new c(o(this.event,e,t))}latch(){return new c(u(this.event))}debounce(e,t=100,n=!1,r){return new c(a(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new Ue({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new Ue({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},e.fromPromise=function(e){const t=new Ue;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(je||(je={}));class Re{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Re._idPool++}`}start(e){this._stopWatch=new Be(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Re._idPool=0;class Ue{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new Re(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var r;this._listeners||(this._listeners=new Le);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const s=null===(r=this._leakageMon)||void 0===r?void 0:r.check(this._listeners.size);let a;return a={dispose:()=>{if(s&&s(),a.dispose=Ue._noop,!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},n instanceof d?n.add(a):Array.isArray(n)&&n.push(a),a}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Le);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){i(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n;null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(n=this._leakageMon)||void 0===n||n.dispose(),this._disposed=!0}}Ue._noop=function(){};const Ve=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var We,$e;($e=We||(We={})).isCancellationToken=function(e){return e===$e.None||e===$e.Cancelled||e instanceof qe||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},$e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:je.None}),$e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ve});class qe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Ve:(this._emitter||(this._emitter=new Ue),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ye{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new qe),this._token}cancel(){this._token?this._token instanceof qe&&this._token.cancel():this._token=We.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof qe&&this._token.dispose():this._token=We.None}}class Ke{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const He=new Ke,ze=new Ke,Ge=new Ke;var Je,Xe,Qe,Ze,et,tt,nt,rt,it,ot,st,at,ut,ct,lt,pt,ft,ht,dt,mt,gt,yt,vt,bt,Dt,Et,Ct,At,St,wt,xt,Ft,_t,Tt,Ot;!function(){function e(e,t,n=t,r=n){He.define(e,t),ze.define(e,n),Ge.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return He.keyCodeToStr(e)},e.fromString=function(e){return He.strToKeyCode(e)},e.toUserSettingsUS=function(e){return ze.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Ge.keyCodeToStr(e)},e.fromUserSettings=function(e){return ze.strToKeyCode(e)||Ge.strToKeyCode(e)}}(Je||(Je={}));class Nt extends le{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Nt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new Nt(this.startLineNumber,this.startColumn,e,t):new Nt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ce(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new Nt(e,t,this.endLineNumber,this.endColumn):new Nt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Nt(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new Nt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n>>0)>>>0}(e,t)}}Mt.CtrlCmd=2048,Mt.Shift=1024,Mt.Alt=512,Mt.WinCtrl=256;var Pt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class Lt extends class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new ce(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;ro.maxLen){let s=t-o.maxLen/2;return s<0?s=0:i+=s,e(t,n,r=r.substring(s,t+o.maxLen/2),i,o)}const s=Date.now(),a=t-1-i;let u=-1,c=null;for(let e=1;!(Date.now()-s>=o.timeBudget);e++){const t=a-o.windowSize*e;n.lastIndex=Math.max(0,t);const i=xe(n,r,a,u);if(!i&&c)break;if(c=i,t<=0)break;u=t}if(c){let e={word:c[0],startColumn:i+1+c.index,endColumn:i+1+c.index+c[0].length};return n.lastIndex=0,e}return null}(e.column,function(e){let t=Se;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new le(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(othis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class It{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new Lt(Z.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,r){return Pt(this,void 0,void 0,(function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const s=i.getLinesContent(),a=o.getLinesContent(),u=new ge(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),c=!(u.changes.length>0)&&this._modelsAreIdentical(i,o);return{quitEarly:u.quitEarly,identical:c,changes:u.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}computeMoreMinimalEdits(e,t){return Pt(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i=void 0;t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return le.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)});for(let{range:e,text:o,eol:s}of t){if("number"==typeof s&&(i=s),le.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>It._diffLimit){r.push({range:e,text:o});continue}const a=M(t,o,!1),u=n.offsetAt(le.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(u+e.originalStart),i=n.positionAt(u+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return Pt(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?ke.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return Pt(this,void 0,void 0,(function*(){const i=new Be(!0),o=new RegExp(n,r),s=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(o))if(n!==t&&isNaN(Number(n))&&(s.add(n),s.size>It._suggestionsLimit))break e}return{words:Array.from(s),duration:i.elapsed()}}))}computeWordRanges(e,t,n,r){return Pt(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(n,r),s=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(y(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}It._diffLimit=1e5,It._suggestionsLimit=1e4,"function"==typeof importScripts&&(g.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Ye,Emitter:Ue,KeyCode:ft,KeyMod:Mt,Position:ce,Range:le,Selection:Nt,SelectionDirection:At,MarkerSeverity:ht,MarkerTag:dt,Uri:Z,Token:kt});let Bt=!1;function jt(e){if(Bt)return;Bt=!0;const t=new D(e=>{self.postMessage(e)},t=>new It(t,e));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{Bt||jt(null)}},function(e,t,n){"use strict";n.r(t),function(e){var t,r=n(18),i=n(13),o=n(0),s=n(3),a=n(7),u=n(2),c=n(15),l=n(5),p=n(16),f=n(17);function h(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,a=0,u=0,c=0,l=0,p=0;function f(t,n){for(var i=0,o=0;i=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}r++,i++}return i=n)return o=n,s=17;var t=e.charCodeAt(r);if(d(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(d(t));return s=15}if(m(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),p=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(m(o)){t+=e.substring(i,r),p=2;break}p=6}r++}else{if(t+=e.substring(i,r),++r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=f(4,!0);s>=0?t+=String.fromCharCode(s):p=4;break;default:p=5}i=r}}return t}(),s=10;case 47:var h=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:h,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return o-l},getTokenError:function(){return p}}}function d(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}(t||(t={})).DEFAULT={allowTrailingComma:!1};var y,v=h,b=function(e,n,r){void 0===n&&(n=[]),void 0===r&&(r=t.DEFAULT);var i=null,o=[],s=[];function a(e){Array.isArray(o)?o.push(e):null!==i&&(o[i]=e)}return function(e,n,r){void 0===r&&(r=t.DEFAULT);var i=h(e,!1);function o(e){return e?function(){return e(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function s(e){return e?function(t){return e(t,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var a=o(n.onObjectBegin),u=s(n.onObjectProperty),c=o(n.onObjectEnd),l=o(n.onArrayBegin),p=o(n.onArrayEnd),f=s(n.onLiteralValue),d=s(n.onSeparator),m=o(n.onComment),g=s(n.onError),y=r&&r.disallowComments,v=r&&r.allowTrailingComma;function b(){for(;;){var e=i.scan();switch(i.getTokenError()){case 4:D(14);break;case 5:D(15);break;case 3:D(13);break;case 1:y||D(11);break;case 2:D(12);break;case 6:D(16)}switch(e){case 12:case 13:y?D(10):m();break;case 16:D(1);break;case 15:case 14:break;default:return e}}}function D(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),g(e),t.length+n.length>0)for(var r=i.getToken();17!==r;){if(-1!==t.indexOf(r)){b();break}if(-1!==n.indexOf(r))break;r=b()}}function E(e){var t=i.getTokenValue();return e?f(t):u(t),b(),!0}function C(){switch(i.getToken()){case 3:return function(){l(),b();for(var e=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||D(4,[],[]),d(","),b(),4===i.getToken()&&v)break}else e&&D(6,[],[]);C()||D(4,[],[4,5]),e=!0}return p(),4!==i.getToken()?D(8,[4],[]):b(),!0}();case 1:return function(){a(),b();for(var e=!1;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||D(4,[],[]),d(","),b(),2===i.getToken()&&v)break}else e&&D(6,[],[]);(10!==i.getToken()?(D(3,[],[2,5]),0):(E(!1),6===i.getToken()?(d(":"),b(),C()||D(4,[],[2,5])):D(5,[],[2,5]),1))||D(4,[],[2,5]),e=!0}return c(),2!==i.getToken()?D(7,[2],[]):b(),!0}();case 10:return E(!0);default:return function(){switch(i.getToken()){case 11:var e=i.getTokenValue(),t=Number(e);isNaN(t)&&(D(2),t=0),f(t);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return b(),!0}()}}if(b(),17===i.getToken())return!!r.allowEmptyContent||(D(4,[],[]),!1);if(!C())return D(4,[],[]),!1;17!==i.getToken()&&D(9,[],[])}(e,{onObjectBegin:function(){var e={};a(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];a(e),s.push(o),o=e,i=null},onArrayEnd:function(){o=s.pop()},onLiteralValue:a,onError:function(e,t,r){n.push({error:e,offset:t,length:r})}},r),o[0]},D=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t{var t={470:t=>{function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var i={resolve:function(){for(var t,i="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var a;s>=0?a=arguments[s]:(void 0===t&&(t=e.cwd()),a=t),n(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCodeAt(0))}return i=r(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(n(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var r=1;rc){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else s>c&&(47===e.charCodeAt(r+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(r+p);if(f!==t.charCodeAt(a+p))break;47===f&&(l=p)}var h="";for(p=r+l+1;p<=o;++p)p!==o&&47!==e.charCodeAt(p)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(a+l):(a+=l,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r,i=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){i=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===o&&(s=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(o=!1,i=a+1),46===u?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){r=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n=(t=e).dir||t.root,r=t.base||(t.name||"")+(t.ext||""),n?n===t.root?n+r:n+"/"+r:r;var t,n,r},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,i=e.charCodeAt(0),o=47===i;o?(t.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,p=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===i?-1===s?s=l:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===p||1===p&&s===u-1&&s===a+1?-1!==u&&(t.base=t.name=0===a&&o?e.slice(1,u):e.slice(a,u)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,u)):(t.name=e.slice(a,s),t.base=e.slice(a,u)),t.ext=e.slice(s,u)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i},447:(t,n,r)=>{var i;if(r.r(n),r.d(n,{URI:()=>m,Utils:()=>w}),"object"==typeof e)i="win32"===e.platform;else if("object"==typeof navigator){var o=navigator.userAgent;i=o.indexOf("Windows")>=0}var s,a,u=(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=/^\w[\w\d+.-]*$/,l=/^\//,p=/^\/\//,f="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,n,r,i,o){var s,a;void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=(a=o,(s=e)||a?s:"file"),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||f),this.query=r||f,this.fragment=i||f,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(p.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return E(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===i?i=this.query:null===i&&(i=f),void 0===o?o=this.fragment:null===o&&(o=f),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new y(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new y(n[2]||f,S(n[4]||f),S(n[5]||f),S(n[7]||f),S(n[9]||f),t):new y(f,f,f,f,f)},e.file=function(e){var t=f;if(i&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new y("file",t,e,f,f)},e.from=function(e){return new y(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),C(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new y(t);return n._formatted=t.external,n._fsPath=t._sep===g?t.fsPath:null,n}return t},e}(),g=i?1:void 0,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return u(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=E(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(m),v=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function b(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=v[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function D(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,"\\")),n}function C(e,t){var n=t?D:b,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=h,r+=h),o){var c=o.indexOf("@");if(-1!==c){var l=o.substr(0,c);o=o.substr(c+1),-1===(c=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,c),!1),r+=":",r+=n(l.substr(c+1),!1)),r+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(p=s.charCodeAt(1))>=65&&p<=90&&(s="/"+String.fromCharCode(p+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var p;(p=s.charCodeAt(0))>=65&&p<=90&&(s=String.fromCharCode(p+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:b(u,!1)),r}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(A)?e.replace(A,(function(e){return function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)})):e}var w,x,F=r(470),_=function(){for(var e=0,t=0,n=arguments.length;t{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(447)})();var A,S,w,{URI:x,Utils:F}=y;function _(e,t){if(e.length0?e.lastIndexOf(t)===n:0===n&&e===t}function O(e){return _(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function N(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n{const[r]=n;return void 0===t[r]?e:t[r]})}(t,n)}function I(){return L}(S=A||(A={}))[S.Undefined=0]="Undefined",S[S.EnumValueMismatch=1]="EnumValueMismatch",S[S.Deprecated=2]="Deprecated",S[S.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",S[S.UnexpectedEndOfString=258]="UnexpectedEndOfString",S[S.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",S[S.InvalidUnicode=260]="InvalidUnicode",S[S.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",S[S.InvalidCharacter=262]="InvalidCharacter",S[S.PropertyExpected=513]="PropertyExpected",S[S.CommaExpected=514]="CommaExpected",S[S.ColonExpected=515]="ColonExpected",S[S.ValueExpected=516]="ValueExpected",S[S.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",S[S.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",S[S.TrailingComma=519]="TrailingComma",S[S.DuplicateKey=520]="DuplicateKey",S[S.CommentNotPermitted=521]="CommentNotPermitted",S[S.SchemaResolveError=768]="SchemaResolveError",(w||(w={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[o.l.Markdown,o.l.PlainText],commitCharactersSupport:!0}}}};var B,j,R,U=(B=function(e,t){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),V=I(),W={"color-hex":{errorMessage:V("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:V("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:V("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:V("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:V("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},$=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();(function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}U(t,e)})($),function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}U(t,e)}($),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}U(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}($),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}U(t,e)}($),function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}U(t,e)}($),function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.type="property",i.colonOffset=-1,i.keyNode=r,i}U(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}($),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}U(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}($);function q(e){return P(e)?e?{}:{not:{}}:e}(R=j||(j={}))[R.Key=0]="Key",R[R.Enum=1]="Enum";var Y=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||J(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),K=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),H=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t=e.offset&&t=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var m=0,g=Object.keys(t.properties);m0)for(var _=0,T=o;_t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:V("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)});k(t.minProperties)&&e.properties.length=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var u=i.length;ut.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:V("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){var d=z(e);d.some((function(e,t){return t!==d.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:V("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n,r){k(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:V("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)});if(i=t.pattern,"string"==typeof i){O(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||V("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}var i;if(t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);s?s[2]||"uri"!==t.format||(o=V("uriSchemeMissing","URI with a scheme is expected.")):o=V("uriMissing","URI is expected.")}else o=V("uriEmpty","URI expected.");o&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||V("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=W[t.format];e.value&&a.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n,r){var i=e.value;function o(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(k(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=i%t.multipleOf;else{var a=o(t.multipleOf),u=o(i);if(a&&u){var c=Math.pow(10,Math.abs(u.multiplier-a.multiplier));u.multiplier=h&&n.problems.push({location:{offset:e.offset,length:e.length},message:V("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",h)});var d=p(t.minimum,t.exclusiveMinimum);k(d)&&im&&n.problems.push({location:{offset:e.offset,length:e.length},message:V("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return X(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||V("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||V("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(var s=0,a=t.allOf;s0?s={schema:c,validationResult:l,matchingSchemas:p}:0===f&&(s.matchingSchemas.merge(p),s.validationResult.mergeEnumValues(l))}else s.matchingSchemas.merge(p),s.validationResult.propertiesMatches+=l.propertiesMatches,s.validationResult.propertiesValueMatches+=l.propertiesValueMatches;else s={schema:c,validationResult:l,matchingSchemas:p}}return o.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:V("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(n.merge(s.validationResult),n.propertiesMatches+=s.validationResult.propertiesMatches,n.propertiesValueMatches+=s.validationResult.propertiesValueMatches,r.merge(s.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1);Array.isArray(t.oneOf)&&m(t.oneOf,!0);var g=function(e){var t=new H,o=r.newSub();X(i,q(e),t,o),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(o)},y=q(t.if);y&&(v=y,b=q(t.then),D=q(t.else),E=q(v),C=new H,S=r.newSub(),X(i,E,C,S),r.merge(S),C.hasProblems()?D&&g(D):b&&g(b));var v,b,D,E,C,S;if(Array.isArray(t.enum)){for(var w=z(i),x=!1,F=0,_=t.enum;F<_.length;F++){var T=_[F];if(N(w,T)){x=!0;break}}n.enumValues=t.enum,n.enumValueMatch=x,x||n.problems.push({location:{offset:i.offset,length:i.length},code:A.EnumValueMismatch,message:t.errorMessage||V("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}if(M(t.const)){N(w=z(i),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:A.EnumValueMismatch,message:t.errorMessage||V("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:o.h.Warning,message:t.deprecationMessage,code:A.Deprecated})}(),r.add({node:i,schema:t})}}function Q(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,u=t&&"string"==typeof t.flags?t.flags:"",c=0,l=r.length;c1&&("/"===p||void 0===p||"{"===p||","===p)&&("/"===h||void 0===h||","===h||"}"===h)?("/"===h?c++:"/"===p&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+="([^/]*)";else i+=".*";break;default:i+=n}return u&&~u.indexOf("g")||(i="^"+i+"$"),new RegExp(i,u)}var Z=I(),ee=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:Q("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){for(var t=this,n=!1,r=[e=se(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),s=0;s1&&(n=r[1]),T(n,".")&&(n=n.substr(0,n.length-1)),new ne({},[Z("json.schema.nocontent","Unable to load schema from '{0}': {1}.",ae(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var s=se(o.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new re({},[Z("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&i.push(Z("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,u=function(e,t,n,r){var o=r?decodeURIComponent(r):void 0,s=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,o);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else i.push(Z("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,n))},c=function(e,t,n,o,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,o)),t=se(t);var c=r.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((function(r){if(s[t]=!0,r.errors.length){var o=n?t+"#"+n:t;i.push(Z("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,r.errors[0]))}return u(e,r.schema,t,n),l(e,r.schema,t,c.dependencies)}))},l=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],s=[],a=[],l=function(e){for(var r=[];e.$ref;){var s=e.$ref,l=s.split("#",2);if(delete e.$ref,l[0].length>0)return void a.push(c(e,l[0],l[1],n,i));-1===r.indexOf(s)&&(u(e,t,n,l[1]),r.push(s))}!function(){for(var e=[],t=0;t=0||(s.push(p),l(p))}return r.promise.all(a)};return l(o,o,t,n).then((function(e){return new re(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var i=z(r);if(i&&_(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=se(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],u=function(e){try{return x.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),c=0,l=this.filePatternAssociations;c0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:m},m},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+oe++;return this.resolveSchemaContent(new ne(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),oe=0;function se(e){try{return x.parse(e).toString()}catch(t){return e}}function ae(e){try{var t=x.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var ue,ce,le,pe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"object"==typeof e?ce="win32"===e.platform:"object"==typeof navigator&&(le=navigator.userAgent,ce=le.indexOf("Windows")>=0);var fe=/^\w[\w\d+.-]*$/,he=/^\//,de=/^\/\//;var me="/",ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ye=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==me&&(t=me+t):t=me}return t}(this.scheme,n||""),this.query=r||"",this.fragment=i||"",function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!fe.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!he.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(de.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Ae(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===r?r=this.path:null===r&&(r=""),void 0===i?i=this.query:null===i&&(i=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new be(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=ge.exec(e);return n?new be(n[2]||"",xe(n[4]||""),xe(n[5]||""),xe(n[7]||""),xe(n[9]||""),t):new be("","","","","")},e.file=function(e){var t="";if(ce&&(e=e.replace(/\\/g,me)),e[0]===me&&e[1]===me){var n=e.indexOf(me,2);-1===n?(t=e.substring(2),e=me):(t=e.substring(2,n),e=e.substring(n)||me)}return new be("file",t,e,"","")},e.from=function(e){return new be(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),Se(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new be(t);return n._formatted=t.external,n._fsPath=t._sep===ve?t.fsPath:null,n}return t},e}(),ve=ce?1:void 0,be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return pe(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Ae(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?Se(this,!0):(this._formatted||(this._formatted=Se(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ve),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(ye),De=((ue={})[58]="%3A",ue[47]="%2F",ue[63]="%3F",ue[35]="%23",ue[91]="%5B",ue[93]="%5D",ue[64]="%40",ue[33]="%21",ue[36]="%24",ue[38]="%26",ue[39]="%27",ue[40]="%28",ue[41]="%29",ue[42]="%2A",ue[43]="%2B",ue[44]="%2C",ue[59]="%3B",ue[61]="%3D",ue[32]="%20",ue);function Ee(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=De[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function Ce(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,ce&&(n=n.replace(/\//g,"\\")),n}function Se(e,t){var n=t?Ce:Ee,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=me,r+=me),o){var c=o.indexOf("@");if(-1!==c){var l=o.substr(0,c);o=o.substr(c+1),-1===(c=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,c),!1),r+=":",r+=n(l.substr(c+1),!1)),r+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(p=s.charCodeAt(1))>=65&&p<=90&&(s="/"+String.fromCharCode(p+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var p;(p=s.charCodeAt(0))>=65&&p<=90&&(s=String.fromCharCode(p+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:Ee(u,!1)),r}var we=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xe(e){return e.match(we)?e.replace(we,(function(e){return function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)})):e}function Fe(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,i={items:[],isIncomplete:!1},s=e.getText(),a=e.offsetAt(t),u=n.getNodeFromOffset(a,!0);if(this.isInComment(e,u?u.offset:0,a))return Promise.resolve(i);if(u&&a===u.offset+u.length&&a>0){var c=s[a-1];("object"===u.type&&"}"===c||"array"===u.type&&"]"===c)&&(u=u.parent)}var l,p=this.getCurrentWord(e,a);if(!u||"string"!==u.type&&"number"!==u.type&&"boolean"!==u.type&&"null"!==u.type){var f=a-p.length;f>0&&'"'===s[f-1]&&f--,l=o.n.create(e.positionAt(f),t)}else l=o.n.create(e.positionAt(u.offset),e.positionAt(u.offset+u.length));var h={},d={add:function(e){var t=e.label,n=h[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";h[r]||(t=r)}l&&void 0!==e.insertText&&(e.textEdit=o.p.replace(l,e.insertText)),e.label=t,h[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var c=[],f=!0,m="",g=void 0;if(u&&"string"===u.type){var y=u.parent;y&&"property"===y.type&&y.keyNode===u&&(f=!y.valueNode,g=y,m=s.substr(u.offset+1,u.length-2),y&&(u=y.parent))}if(u&&"object"===u.type){if(u.offset===a)return i;u.properties.forEach((function(e){g&&g===e||(h[e.keyNode.value]=o.e.create("__"))}));var v="";f&&(v=r.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?r.getPropertyCompletions(t,n,u,f,v,d):r.getSchemaLessPropertyCompletions(n,u,m,d);var b=G(u);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,b,p,f,""===v,d);n&&c.push(n)})),!t&&p.length>0&&'"'!==s.charAt(a-p.length-1)&&(d.add({kind:o.f.Property,label:r.getLabelForValue(p),insertText:r.getInsertTextForProperty(p,void 0,!1,v),insertTextFormat:o.j.Snippet,documentation:""}),d.setAsIncomplete())}var D={};return t?r.getValueCompletions(t,n,u,a,e,d,D):r.getSchemaLessValueCompletions(n,u,a,e,d),r.contributions.length>0&&r.getContributedValueCompletions(n,u,a,e,d,c),r.promiseConstructor.all(c).then((function(){if(0===d.getNumberOfProposals()){var t=a;!u||"string"!==u.type&&"number"!==u.type&&"boolean"!==u.type&&"null"!==u.type||(t=u.offset+u.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(D,n,d)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,s){var a=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"==typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var u={kind:o.f.Property,label:e,insertText:a.getInsertTextForProperty(e,n,r,i),insertTextFormat:o.j.Snippet,filterText:a.getFilterTextForValue(e),documentation:a.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(u.sortText=n.suggestSortText),u.insertText&&T(u.insertText,"$1"+i)&&(u.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(u)}}));var u=e.schema.propertyNames;if("object"==typeof u&&!u.deprecationMessage&&!u.doNotSuggest){var c=function(e,t){void 0===t&&(t=void 0);var n={kind:o.f.Property,label:e,insertText:a.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:o.j.Snippet,filterText:a.getFilterTextForValue(e),documentation:t||a.fromMarkup(u.markdownDescription)||u.description||""};void 0!==u.suggestSortText&&(n.sortText=u.suggestSortText),n.insertText&&T(n.insertText,"$1"+i)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(n)};if(u.enum)for(var l=0;l(t.colonOffset||0)){var l=t.valueNode;if(l&&(n>l.offset+l.length||"object"===l.type||"array"===l.type))return;var p=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===p&&e.valueNode&&c(e.valueNode),!0})),"$schema"===p&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(u,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var f=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===f&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(c),!0}))}else t.items.forEach(c)},e.prototype.getValueCompletions=function(e,t,n,r,i,o,s){var a=r,u=void 0,c=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,c=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var l=n.valueNode;if(l&&r>l.offset+l.length)return;u=n.keyNode.value,n=n.parent}if(n&&(void 0!==u||"array"===n.type)){for(var p=this.evaluateSeparatorAfter(i,a),f=0,h=t.getMatchingSchemas(e.schema,n.offset,c);f(t.colonOffset||0)){var s=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var u=G(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,u,s,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this;void 0===r&&(r=0);var s=!1;if(M(e.default)){for(var a=e.type,u=e.default,c=r;c>0;c--)u=[u],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(u),insertText:this.getInsertTextForValue(u,t),insertTextFormat:o.j.Snippet,detail:Ne("json.suggest.default","Default value")}),s=!0}Array.isArray(e.examples)&&e.examples.forEach((function(a){for(var u=e.type,c=a,l=r;l>0;l--)c=[c],u="array";n.add({kind:i.getSuggestionKind(u),label:i.getLabelForValue(c),insertText:i.getInsertTextForValue(c,t),insertTextFormat:o.j.Snippet}),s=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(a){var u,c,l=e.type,p=a.body,f=a.label;if(M(p)){e.type;for(var h=r;h>0;h--)p=[p],"array";u=i.getInsertTextForSnippetValue(p,t),c=i.getFilterTextForSnippetValue(p),f=f||i.getLabelForSnippetValue(p)}else{if("string"!=typeof a.bodyText)return;var d="",m="",g="";for(h=r;h>0;h--)d=d+g+"[\n",m=m+"\n"+g+"]",g+="\t",l="array";u=d+g+a.bodyText.split("\n").join("\n"+g)+m+t,f=f||u,c=u.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(l),label:f,documentation:i.fromMarkup(a.markdownDescription)||a.description,insertText:u,insertTextFormat:o.j.Snippet,filterText:c}),s=!0})),!s&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(M(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:o.j.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r0?t[0]:void 0}if(!e)return o.f.Value;switch(e){case"string":return o.f.Value;case"object":return o.f.Module;case"property":return o.f.Property;default:return o.f.Value}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var i=this.getInsertTextForValue(e,"");if(!n)return i;var o,s=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var u=t.defaultSnippets[0].body;M(u)&&(o=this.getInsertTextForSnippetValue(u,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),M(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var c=Array.isArray(t.type)?t.type[0]:t.type;switch(c||(t.properties?c="object":t.items&&(c="array")),c){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=v(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var r=v(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var s=i[o];if(n>s.offset+s.length)return r.setPosition(s.offset+s.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?o+1:o;if(n>=s.offset)return o}return 0},e.prototype.isInComment=function(e,t,n){var r=v(e.getText(),!1);r.setPosition(t);for(var i=r.scan();17!==i&&r.getTokenOffset()+r.getTokenLength()i.offset+1&&r=0;p--){var f=this.contributions[p].getInfoContribution(e.uri,l);if(f)return f.then((function(e){return c(e)}))}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){if(e&&i){var t=n.getMatchingSchemas(e.schema,i.offset),r=void 0,o=void 0,s=void 0,a=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,o=o||e.schema.markdownDescription||Me(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(z(i));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=Me(e.schema.enumDescriptions[t])),s&&"string"!=typeof(a=e.schema.enum[t])&&(a=JSON.stringify(a))}return!0}));var u="";return r&&(u=Me(r)),o&&(u.length>0&&(u+="\n\n"),u+=o),s&&(u.length>0&&(u+="\n\n"),u+="`"+function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(a)+"`: "+s),c([u])}return null}))}}();function Me(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Pe=I(),Le=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:o.h.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],a={},u=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;a[t]||(a[t]=!0,s.push(e))},c=function(r){var a=(null==n?void 0:n.trailingCommas)?Be(n.trailingCommas):o.h.Error,c=(null==n?void 0:n.comments)?Be(n.comments):i.commentSeverity,l=(null==n?void 0:n.schemaValidation)?Be(n.schemaValidation):o.h.Warning,p=(null==n?void 0:n.schemaRequest)?Be(n.schemaRequest):o.h.Warning;if(r){if(r.errors.length&&t.root&&p){var f=t.root,h="object"===f.type?f.properties[0]:void 0;if(h&&"$schema"===h.keyNode.value){var d=h.valueNode||h,m=o.n.create(e.positionAt(d.offset),e.positionAt(d.offset+d.length));u(o.g.create(m,r.errors[0],p,A.SchemaResolveError))}else{m=o.n.create(e.positionAt(f.offset),e.positionAt(f.offset+1));u(o.g.create(m,r.errors[0],p,A.SchemaResolveError))}}else if(l){var g=t.validate(e,r.schema,l);g&&g.forEach(u)}(function e(t){if(t&&"object"==typeof t){if(P(t.allowComments))return t.allowComments;if(t.allOf)for(var n=0,r=t.allOf;n=97&&e<=102?e-97+10:0)}function Re(e){if("#"===e[0])switch(e.length){case 4:return{red:17*je(e.charCodeAt(1))/255,green:17*je(e.charCodeAt(2))/255,blue:17*je(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*je(e.charCodeAt(1))/255,green:17*je(e.charCodeAt(2))/255,blue:17*je(e.charCodeAt(3))/255,alpha:17*je(e.charCodeAt(4))/255};case 7:return{red:(16*je(e.charCodeAt(1))+je(e.charCodeAt(2)))/255,green:(16*je(e.charCodeAt(3))+je(e.charCodeAt(4)))/255,blue:(16*je(e.charCodeAt(5))+je(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*je(e.charCodeAt(1))+je(e.charCodeAt(2)))/255,green:(16*je(e.charCodeAt(3))+je(e.charCodeAt(4)))/255,blue:(16*je(e.charCodeAt(5))+je(e.charCodeAt(6)))/255,alpha:(16*je(e.charCodeAt(7))+je(e.charCodeAt(8)))/255}}}var Ue=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var s=n.resultLimit||Number.MAX_VALUE,a=e.uri;if(("vscode://defaultsettings/keybindings.json"===a||T(a.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var u=[],c=0,l=i.items;c0){s--;var a=o.k.create(e.uri,Ve(e,t)),u=n?n+"."+t.keyNode.value:t.keyNode.value;b.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:a,containerName:n}),g.push({node:i,containerName:u})}else v=!0}))};y0){s--;var o=Ve(e,t),a=o,u={name:String(i),kind:r.getSymbolKind(t.type),range:o,selectionRange:a,children:[]};n.push(u),v.push({result:u.children,node:t})}else D=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=Ve(e,t),a=Ve(e,t.keyNode),u=[],c={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:o,selectionRange:a,children:u,detail:r.getDetail(i)};n.push(c),v.push({result:u,node:i})}else D=!0}))};b=e)return n;return null}function et(e){const t=["mapping","scalar","sequence"];return e.filter(e=>{if("string"==typeof e){const n=e.split(" "),r=n[1]&&n[1].toLowerCase()||"scalar";return"map"!==r&&-1!==t.indexOf(r)}return!1})}function tt(e,t){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}var nt,rt,it=I(),ot={"color-hex":{errorMessage:it("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:it("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:it("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:it("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:it("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}};(rt=nt||(nt={})).missingRequiredPropWarning="missingRequiredPropWarning",rt.typeMismatchWarning="typeMismatchWarning",rt.constWarning="constWarning";var st,at={[nt.missingRequiredPropWarning]:'Missing property "{0}".',[nt.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[nt.constWarning]:"Value must be {0}."},ut=class{constructor(e,t,n){this.offset=t,this.length=n,this.parent=e}getNodeFromOffsetEndInclusive(e){const t=[],n=r=>{if(e>=r.offset&&e<=r.offset+r.length){const i=r.children;for(let r=0;r=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}(e,this.focusOffset))&&e!==this.exclude}newSub(){return new yt(-1,this.exclude)}},vt=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};vt.instance=new vt;var bt=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=e?[]:null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===A.EnumValueMismatch&&(e.message=it("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map(e=>JSON.stringify(e)).join(", ")))}}mergeWarningGeneric(e,t){var n,r;if(null===(n=this.problems)||void 0===n?void 0:n.length)for(const n of t){const t=this.problems.filter(e=>e.problemType===n);for(const i of t){const t=null===(r=e.problems)||void 0===r?void 0:r.find(e=>e.problemType===n&&i.location.offset===e.location.offset&&(n!==nt.missingRequiredPropWarning||tt(e.problemArgs,i.problemArgs)));t&&(t.problemArgs.length&&(t.problemArgs.filter(e=>!i.problemArgs.includes(e)).forEach(e=>i.problemArgs.push(e)),i.message=St(i.problemType,i.problemArgs)),this.mergeSources(t,i))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace("yaml-schema: ","");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Dt(e){return C(e)}function Et(e,t,n,r,i,s){const{isKubernetes:a}=s;if(e&&i.include(e)){switch(t.url||(t.url=n.url),t.title||(t.title=n.title),e.type){case"object":!function(e,t,r,i){var u;const c=Object.create(null),l=[],p=[...e.properties];for(;p.length>0;){const e=p.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":p.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach(e=>{var t;e&&(t=e.properties,Symbol.iterator in Object(t))&&p.push(...e.properties)})}else c[t]=e.valueNode,l.push(t)}if(Array.isArray(t.required))for(const i of t.required)if(!c[i]){const s=e.parent&&"property"===e.parent.type&&e.parent.keyNode,a=s?{offset:s.offset,length:s.length}:{offset:e.offset,length:1};r.problems.push({location:a,severity:o.h.Warning,message:St(nt.missingRequiredPropWarning,[i]),source:Ct(t,n),schemaUri:At(t,n),problemArgs:[i],problemType:nt.missingRequiredPropWarning})}const f=e=>{let t=l.indexOf(e);for(;t>=0;)l.splice(t,1),t=l.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){f(e);const l=t.properties[e],p=c[e];if(p)if(Te(l))if(l)r.propertiesMatches++,r.propertiesValueMatches++;else{const i=p.parent;r.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:o.h.Warning,message:t.errorMessage||it("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Ct(t,n),schemaUri:At(t,n)})}else{l.url=null!==(u=t.url)&&void 0!==u?u:n.url;const e=new bt(a);Et(p,l,t,e,i,s),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const u=new RegExp(e);for(const p of l.slice(0))if(u.test(p)){f(p);const u=c[p];if(u){const c=t.patternProperties[e];if(Te(c))if(c)r.propertiesMatches++,r.propertiesValueMatches++;else{const e=u.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:o.h.Warning,message:t.errorMessage||it("DisallowedExtraPropWarning","Property {0} is not allowed.",p),source:Ct(t,n),schemaUri:At(t,n)})}else{const e=new bt(a);Et(u,c,t,e,i,s),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of l){const n=c[e];if(n){const e=new bt(a);Et(n,t.additionalProperties,t,e,i,s),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===s.disableAdditionalProperties)&&l.length>0)for(const e of l){const i=c[e];if(i){let s=null;"property"!==i.type?(s=i.parent,"object"===s.type&&(s=s.properties[0])):s=i,r.problems.push({location:{offset:s.keyNode.offset,length:s.keyNode.length},severity:o.h.Warning,message:t.errorMessage||it("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:Ct(t,n),schemaUri:At(t,n)})}}_e(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:Ct(t,n),schemaUri:At(t,n)});_e(t.minProperties)&&e.properties.length=u.length&&r.propertiesValueMatches++}if(e.items.length>u.length)if("object"==typeof t.additionalItems)for(let n=u.length;n{const n=new bt(a);return Et(e,u,t,n,vt.instance,s),!n.hasProblems()})||r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:t.errorMessage||it("requiredItemMissingWarning","Array does not contain required item."),source:Ct(t,n),schemaUri:At(t,n)})}_e(t.minItems)&&e.items.lengtht.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:Ct(t,n),schemaUri:At(t,n)});if(!0===t.uniqueItems){const i=Dt(e);i.some((e,t)=>t!==i.lastIndexOf(e))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("uniqueItemsWarning","Array has duplicate items."),source:Ct(t,n),schemaUri:At(t,n)})}}(e,t,r,i);break;case"string":!function(e,t,r){_e(t.minLength)&&e.value.lengtht.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:Ct(t,n),schemaUri:At(t,n)});if(i=t.pattern,"string"==typeof i){new RegExp(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:t.patternErrorMessage||t.errorMessage||it("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:Ct(t,n),schemaUri:At(t,n)})}var i;if(t.format)switch(t.format){case"uri":case"uri-reference":{let i;if(e.value)try{ye.parse(e.value).scheme||"uri"!==t.format||(i=it("uriSchemeMissing","URI with a scheme is expected."))}catch(e){i=e.message}else i=it("uriEmpty","URI expected.");i&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:t.patternErrorMessage||t.errorMessage||it("uriFormatWarning","String is not a URI: {0}",i),source:Ct(t,n),schemaUri:At(t,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const i=ot[t.format];e.value&&i.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:t.patternErrorMessage||t.errorMessage||i.errorMessage,source:Ct(t,n),schemaUri:At(t,n)})}}}(e,t,r);break;case"number":!function(e,t,r){const i=e.value;_e(t.multipleOf)&&i%t.multipleOf!=0&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:Ct(t,n),schemaUri:At(t,n)});function s(e,t){return _e(t)?t:Te(t)&&t?e:void 0}function a(e,t){if(!Te(t)||!t)return e}const u=s(t.minimum,t.exclusiveMinimum);_e(u)&&i<=u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",u),source:Ct(t,n),schemaUri:At(t,n)});const c=s(t.maximum,t.exclusiveMaximum);_e(c)&&i>=c&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",c),source:Ct(t,n),schemaUri:At(t,n)});const l=a(t.minimum,t.exclusiveMinimum);_e(l)&&ip&&r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("maximumWarning","Value is above the maximum of {0}.",p),source:Ct(t,n),schemaUri:At(t,n)})}(e,t,r);break;case"property":return Et(e.valueNode,t,t,r,i,s)}!function(){function l(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(t.type))t.type.some(l)||r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:t.errorMessage||it("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Ct(t,n),schemaUri:At(t,n)});else if(t.type&&!l(t.type)){const i="object"===t.type?function(e){if(e.$id){return Oe(e.$id)}if(e.$ref||e._$ref){return Oe(e.$ref||e._$ref)}return e.title||(Array.isArray(e.type)?e.type.join(" | "):e.type)}(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:t.errorMessage||St(nt.typeMismatchWarning,[i]),source:Ct(t,n),schemaUri:At(t,n),problemType:nt.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(const n of t.allOf)Et(e,gt(n),t,r,i,s);const p=gt(t.not);if(p){const u=new bt(a),c=i.newSub();Et(e,p,t,u,c,s),u.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,message:it("notSchemaWarning","Matches a schema that is not allowed."),source:Ct(t,n),schemaUri:At(t,n)});for(const e of c.schemas)e.inverted=!e.inverted,i.add(e)}const f=(l,p)=>{const f=[];let h=null;for(const n of l){const r=gt(n),o=new bt(a),l=i.newSub();Et(e,r,t,o,l,s),o.hasProblems()||f.push(r),h=h?a?u(o,h,r,l):c(p,o,h,r,l):{schema:r,validationResult:o,matchingSchemas:l}}return f.length>1&&p&&r.problems.push({location:{offset:e.offset,length:1},severity:o.h.Warning,message:it("oneOfWarning","Matches multiple schemas when only one must validate."),source:Ct(t,n),schemaUri:At(t,n)}),null!==h&&(r.merge(h.validationResult),r.propertiesMatches+=h.validationResult.propertiesMatches,r.propertiesValueMatches+=h.validationResult.propertiesValueMatches,i.merge(h.matchingSchemas)),f.length};Array.isArray(t.anyOf)&&f(t.anyOf,!1);Array.isArray(t.oneOf)&&f(t.oneOf,!0);const h=(t,n)=>{const o=new bt(a),u=i.newSub();Et(e,gt(t),n,o,u,s),r.merge(o),r.propertiesMatches+=o.propertiesMatches,r.propertiesValueMatches+=o.propertiesValueMatches,i.merge(u)},d=gt(t.if);d&&((t,n,r,o)=>{const u=gt(t),c=new bt(a),l=i.newSub();Et(e,u,n,c,l,s),i.merge(l),c.hasProblems()?o&&h(o,n):r&&h(r,n)})(d,t,gt(t.then),gt(t.else));if(Array.isArray(t.enum)){const i=Dt(e);let s=!1;for(const e of t.enum)if(Fe(i,e)){s=!0;break}r.enumValues=t.enum,r.enumValueMatch=s,s||r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,code:A.EnumValueMismatch,message:t.errorMessage||it("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(e=>JSON.stringify(e)).join(", ")),source:Ct(t,n),schemaUri:At(t,n)})}if(m=t.const,void 0!==m){Fe(Dt(e),t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:o.h.Warning,code:A.EnumValueMismatch,problemType:nt.constWarning,message:t.errorMessage||St(nt.constWarning,[JSON.stringify(t.const)]),source:Ct(t,n),schemaUri:At(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1),r.enumValues=[t.const]}var m;t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:o.h.Warning,message:t.deprecationMessage,source:Ct(t,n),schemaUri:At(t,n)})}(),i.add({node:e,schema:t})}function u(e,t,n,r){const i=e.compareKubernetes(t.validationResult);return i>0?t={schema:n,validationResult:e,matchingSchemas:r}:0===i&&(t.matchingSchemas.merge(r),t.validationResult.mergeEnumValues(e)),t}function c(e,t,n,r,i){if(e||t.hasProblems()||n.validationResult.hasProblems()){const e=t.compareGeneric(n.validationResult);e>0?n={schema:r,validationResult:t,matchingSchemas:i}:0===e&&(n.matchingSchemas.merge(i),n.validationResult.mergeEnumValues(t),n.validationResult.mergeWarningGeneric(t,[nt.missingRequiredPropWarning,nt.typeMismatchWarning,nt.constWarning]))}else n.matchingSchemas.merge(i),n.validationResult.propertiesMatches+=t.propertiesMatches,n.validationResult.propertiesValueMatches+=t.propertiesValueMatches;return n}}function Ct(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(t.title)r=t.title;else{const i=null!==(n=e.url)&&void 0!==n?n:t.url;if(i){const e=ye.parse(i);"file"===e.scheme&&(r=e.fsPath),r=e.toString()}}if(r)return"yaml-schema: "+r}return"YAML"}function At(e,t){var n;const r=null!==(n=e.url)&&void 0!==n?n:t.url;return r?[r]:[]}function St(e,t){return it(e,at[e],t.join(" | "))}function wt(e){return{message:""+e.reason,location:{start:e.mark.position,end:e.mark.position+1,toLineEnd:e.mark.toLineEnd},severity:2,code:A.Undefined}}var xt=0;var Ft=I(),_t=class extends class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return D(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let e=0;e{const n=o.n.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),r=o.g.create(n,t.message,t.severity,t.code?t.code:A.Undefined,t.source);return r.data={schemaUri:t.schemaUri},r})}return null}getMatchingSchemas(e,t=-1,n=null){const r=new yt(t,n);return this.root&&e&&Et(this.root,e,e,new bt(this.isKubernetes),r,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),r.schemas}}{constructor(e){super(null,[]),this.lines=e,this.root=null,this.errors=[],this.warnings=[],this.lineComments=[]}getSchemas(e,t,n){const r=[];return t.validate(e,r,n.start),r}};function Tt(e,t,n){const r=new _t(t);r.root=function e(t,n){if(n&&(t||(xt=0),!(xt>1e3&&n.kind===s.Kind.ANCHOR_REF)))switch(n.kind){case s.Kind.MAP:{const r=n,i=new mt(t,n.startPosition,n.endPosition-n.startPosition);for(const t of r.mappings)i.properties.push(e(i,t));return i}case s.Kind.MAPPING:{const r=n,i=r.key,o=new dt(t,r.startPosition,r.endPosition-r.startPosition),s=new ht(o,i.startPosition,i.endPosition-i.startPosition);s.value=i.value;const a=r.value?e(o,r.value):new ct(t,r.endPosition,0);return a.location=i.value,o.keyNode=s,o.valueNode=a,o}case s.Kind.SEQ:{const r=n,i=new pt(t,r.startPosition,r.endPosition-r.startPosition),o=0;for(const n of r.items){if(null===n&&o===r.items.length-1)break;const s=null===n?new ct(t,r.endPosition,0):e(i,n);i.children.push(s)}return i}case s.Kind.SCALAR:{const e=n,r=Object(s.determineScalarType)(e),i=e.value,o=["y","Y","yes","Yes","YES","n","N","no","No","NO","on","On","ON","off","Off","OFF"];if(e.plainScalar&&-1!==o.indexOf(i.toString()))return new lt(t,function(e){if(["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}(i),n.startPosition,n.endPosition-n.startPosition);switch(r){case s.ScalarType.null:return new ct(t,n.startPosition,n.endPosition-n.startPosition);case s.ScalarType.bool:return new lt(t,Object(s.parseYamlBoolean)(i),n.startPosition,n.endPosition-n.startPosition);case s.ScalarType.int:{const e=new ft(t,n.startPosition,n.endPosition-n.startPosition);return e.value=Object(s.parseYamlInteger)(i),e.isInteger=!0,e}case s.ScalarType.float:{const e=new ft(t,n.startPosition,n.endPosition-n.startPosition);return e.value=Object(s.parseYamlFloat)(i),e.isInteger=!1,e}case s.ScalarType.string:{const e=new ht(t,n.startPosition,n.endPosition-n.startPosition);return e.value=n.value,e}}break}case s.Kind.ANCHOR_REF:{const r=n.value;return xt++,e(t,r)||new ct(t,n.startPosition,n.endPosition-n.startPosition)}case s.Kind.INCLUDE_REF:{const e=new ht(t,n.startPosition,n.endPosition-n.startPosition);return e.value=n.value,e}}}(null,e),r.root||r.errors.push({message:Ft("Invalid symbol","Expected a YAML object, array or literal"),code:A.Undefined,location:{start:e.startPosition,end:e.endPosition}});const i=e.errors.filter(e=>"duplicate key"!==e.reason&&!e.isWarning).map(e=>wt(e));const o=function(e,t){return e.filter(e=>"duplicate key"===e.reason&&function(e,t){const n=e.mark.position,r=e.mark.position+e.mark.column;return"duplicate key"!==e.reason||!t.substring(n,r).startsWith("<<")}(e,t)||e.isWarning).map(e=>wt(e))}(e.errors,n);return i.forEach(e=>r.errors.push(e)),o.forEach(e=>r.warnings.push(e)),r}var Ot=class{constructor(e){this.documents=e,this.errors=[],this.warnings=[]}};function Nt(e,t=[]){const n=function(e){const t=et(e),n=a.Schema.create(t.map(e=>{const t=e.split(" ");return new u.Type(t[0],{kind:t[1]&&t[1].toLowerCase()||"scalar"})})),r=new Map;return t.forEach(e=>{const t=e.split(" "),n=t[0],i=t[1]&&t[1].toLowerCase()||"scalar";r.has(n)?r.set(n,r.get(n).concat([i])):r.set(n,[i])}),r.forEach((e,t)=>{const r=new u.Type(t,{kind:e[0]||"scalar"});r.additionalKinds=e,n.compiledTypeMap[t]=r}),{schema:n}}(t),r=[];Object(s.loadAll)(e,e=>r.push(e),n);const i=function(e){const t=[0];for(let n=0;nTt(t,i,e));return function(e,t){const n=e.split(/[\r\n]+/g);let r=0,i=!1;n.forEach(e=>{"---"===e&&i?r++:"---"===e&&(i=!0),e.startsWith("#")&&r{const o=((e,t)=>{if(!t)return e;let n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some(e=>(n=n[e],!n)),n})(t,i);if(o)for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=o[t]);else r.push(Lt("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},a=(e,t,n,i,a)=>{o&&!/^\w+:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i)),t=this.normalizeId(t);const c=this.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then(i=>{if(a[t]=!0,i.errors.length){const e=n?t+"#"+n:t;r.push(Lt("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,i.errors[0]))}return s(e,i.schema,t,n),e.url=t,u(e,i.schema,t,c.dependencies)})},u=(e,t,n,r)=>{if(!e||"object"!=typeof e)return Promise.resolve(null);const i=[e],o=[],u=[],c=e=>{const o=[];for(;e.$ref;){const i=e.$ref,c=i.split("#",2);if(e._$ref=e.$ref,delete e.$ref,c[0].length>0)return void u.push(a(e,c[0],c[1],n,r));-1===o.indexOf(i)&&(s(e,t,n,c[1]),o.push(i))}((...e)=>{for(const t of e)"object"==typeof t&&i.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const n=t[e];"object"==typeof n&&i.push(n)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&i.push(e)})(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(n.indexOf("#")>0){const t=n.split("#",2);t[0].length>0&&t[1].length>0&&u.push(a(e,t[0],t[1],n,r))}for(;i.length;){const e=i.pop();o.indexOf(e)>=0||(o.push(e),c(e))}return Promise.all(u)};return u(i,i,t,n).then(()=>new re(i,r))}getSchemaForResource(e,t){const n=()=>{const n=Object.create(null),r=[];let i=this.getSchemaFromModeline(t);if(void 0!==i){if(!i.startsWith("file:")&&!i.startsWith("http"))if(Object(l.isAbsolute)(i))i=ye.file(i).toString();else{const t=ye.parse(e);i=ye.file(Object(l.resolve)(Object(l.parse)(t.fsPath).dir,i)).toString()}this.addSchemaPriority(i,pn.Modeline),r.push(i),n[i]=!0}for(const t of this.filePatternAssociations)if(t.matchesPattern(e))for(const e of t.getURIs())n[e]||(r.push(e),n[e]=!0);const o=this.normalizeId(e);if(this.schemasById[o]&&r.push(o),r.length>0){const n=this.highestPrioritySchemas(r),i=super.createCombinedSchema(e,n);return i.getResolvedSchema().then(e=>(e.schema&&"string"!=typeof e.schema&&(e.schema.url=i.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new re(e.schema.schemaSequence[t.currentDocIndex]):e))}return Promise.resolve(null)};return this.customSchemaProvider?this.customSchemaProvider(e).then(e=>Array.isArray(e)?0===e.length?n():Promise.all(e.map(e=>this.resolveCustomSchema(e,t))).then(e=>({errors:[],schema:{anyOf:e.map(e=>e.schema)}}),()=>n()):e?this.resolveCustomSchema(e,t):n()).then(e=>e,()=>n()):n()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,(new Set).add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach(e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach(r=>{r>t&&(t=r);let i=n.get(r);i?(i=i.concat(e),n.set(r,i)):n.set(r,[e])})}),n.get(t)||[]}getSchemaFromModeline(e){if(e instanceof _t){const t=e.lineComments.find(e=>{const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length});if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring("$schema=".length)}}}resolveCustomSchema(e,t){return Pt(this,void 0,void 0,(function*(){const n=yield this.loadSchema(e),r=yield this.resolveSchemaContent(n,e,[]);return r.schema&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new re(r.schema.schemaSequence[t.currentDocIndex]):r}))}saveSchema(e,t){return Pt(this,void 0,void 0,(function*(){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,(new Set).add(pn.Settings)),Promise.resolve(void 0)}))}deleteSchemas(e){return Pt(this,void 0,void 0,(function*(){return e.schemas.forEach(e=>{this.deleteSchema(e)}),Promise.resolve(void 0)}))}deleteSchema(e){return Pt(this,void 0,void 0,(function*(){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}))}addContent(e){return Pt(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&(n[e.key]=e.content),yield this.saveSchema(e.schema,t.schema)}}))}deleteContent(e){return Pt(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&delete n[e.key],yield this.saveSchema(e.schema,t.schema)}}))}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const e of n)""!==e&&(this.resolveNext(r,e),r=r[e]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return ye.parse(e).toString()}catch(t){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then(n=>n.errors&&void 0===n.schema?t(e).then(t=>{if(!t){const t=Lt("json.schema.nocontent","Unable to load schema from '{0}': No content.",Bt(e));return new ne({},[t])}try{const e=Object(c.a)(t);return new ne(e,[])}catch(t){const n=Lt("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",Bt(e),t);return new ne({},[n])}},e=>{let t=e.toString();const n=e.toString().split("Error: ");return n.length>1&&(t=n[1]),new ne({},[t])}):(n.uri=e,n))}registerExternalSchema(e,t,n){return super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function Bt(e){try{const t=ye.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var jt=new class{constructor(){this.cache=new Map}getYamlDocument(e,t=[],n=!1){return this.ensureCache(e,t,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){const r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new Ot([]),customTags:[]});const i=this.cache.get(r);if(i.version!==e.version||t&&!tt(i.customTags,t)){let r=e.getText();n&&!/\S/.test(r)&&(r=`{${r}}`);const o=Nt(r,t);i.document=o,i.version=e.version,i.customTags=t}}};function Rt(e,t){const n={};for(let r=0;r0&&a>0)return;if(u>0&&c>0)return;const l=Math.abs(a-c),p=Math.abs(s-u);if(0===l)return i.spacesDiff=p,void(p>0&&0<=u-1&&u-1=t.length)return this.doc.getText().length;if(e<0)return 0;return(e+1=t.length)return this.doc.getText();if(e<0)return"";const n=e+10?i++:m>1&&o++,Ut(s,a,p,d,l),l.looksLikeAlignment&&(!n||t!==l.spacesDiff))continue;const y=l.spacesDiff;y<=8&&c[y]++,s=p,a=d}let p=n;i!==o&&(p=i{const n=c[t];n>e&&(e=n,f=t)}),4===f&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(f=2)}return{insertSpaces:p,tabSize:f}}(a,2,!0);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}Wt(s.documents,n);const u=e.offsetAt(t);if(":"===e.getText()[u])return Promise.resolve(r);const c=Ze(u,s);if(null===c)return Promise.resolve(r);const l=s.documents.indexOf(c);let p=c.getNodeFromOffsetEndInclusive(u);const f=super.getCurrentWord(e,u);let h=null;if(p&&"null"===p.type){const t=e.positionAt(p.offset);t.character+=1;const n=e.positionAt(p.offset+p.length);n.character+=1,h=o.n.create(t,n)}else if(!p||"string"!==p.type&&"number"!==p.type&&"boolean"!==p.type){let t=e.offsetAt(i)-f.length;t>0&&'"'===e.getText()[t-1]&&t--,h=o.n.create(e.positionAt(t),i)}else h=o.n.create(e.positionAt(p.offset),e.positionAt(p.offset+p.length));const d={},m={add:e=>{let t=e.label;const n=d[t];if(n)n.documentation||(n.documentation=e.documentation);else{if(t=t.replace(/[\n]/g,"↵"),t.length>60){const e=t.substr(0,57).trim()+"...";d[e]||(t=e)}h&&h.start.line===h.end.line&&(e.textEdit=o.p.replace(h,e.insertText)),e.label=t,d[t]=e,r.items.push(e)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:e=>{console.error(e),this.telemetry.sendError("yaml.completion.error",{error:e})},log:e=>{console.log(e)},getNumberOfProposals:()=>r.items.length};return this.customTags.length>0&&this.getCustomTagValueCompletions(m),c.currentDocIndex=l,this.schemaService.getSchemaForResource(e.uri,c).then(t=>{if(!t||t.errors.length)return Promise.resolve(r);const n=t;let i=!0,s=null;if(p){if("string"===p.type){const e=p.parent;e&&"property"===e.type&&e.keyNode===p&&(i=!e.valueNode,s=e,e&&(p=e.parent))}if("null"===p.type){const e=p.parent;e&&"property"===e.type&&e.valueNode===p&&(i=!e.valueNode,s=e,e&&(p=e))}}if(p&&"object"===p.type){p.properties.forEach(e=>{s&&s===e||(d[e.keyNode.value]=o.e.create("__"))});const r="";n&&this.getPropertyCompletions(n,c,p,i,r,m,a,h),!t&&f.length>0&&'"'!==e.getText().charAt(u-f.length-1)&&m.add({kind:o.f.Property,label:f,insertText:this.getInsertTextForProperty(f,null,!1,r),insertTextFormat:o.j.Snippet,documentation:""})}const l={};return n&&this.getValueCompletions(n,c,p,u,e,m,l),Promise.all([]).then(()=>r)})}getPropertyCompletions(e,t,n,r,i,s,a,u){const c=t.getMatchingSchemas(e.schema),l=a.getText(u),p=-1===a.getLineContent(u.start.line).indexOf(":");c.forEach(e=>{if(e.node===n&&!e.inverted){this.collectDefaultSnippets(e.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1});const t=e.schema.properties;if(t){const u=e.schema.maxProperties;(void 0===u||void 0===n.properties||n.properties.length<=u)&&Object.keys(t).forEach(e=>{const u=t[e];if("object"==typeof u&&!u.deprecationMessage&&!u.doNotSuggest){let t="";if(n.parent&&"array"===n.parent.type&&n.properties.length<=1){const e=a.getText(),r=e.lastIndexOf("-",n.offset-1);r>=0&&(t=" "+e.slice(r+1,n.offset))}let c=e;e.startsWith(l)&&!p||(c=this.getInsertTextForProperty(e,u,r,i,t+this.indentation)),s.add({kind:o.f.Property,label:e,insertText:c,insertTextFormat:o.j.Snippet,documentation:super.fromMarkup(u.markdownDescription)||u.description||""})}})}"object"===n.type&&n.parent&&"array"===n.parent.type&&"object"!==e.schema.type&&this.addSchemaValueCompletions(e.schema,i,s,{})}n.parent&&e.node===n.parent&&"object"===n.type&&e.schema.defaultSnippets&&(1===n.properties.length?this.collectDefaultSnippets(e.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,i,s,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))})}getValueCompletions(e,t,n,r,i,s,a){let u=null;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type||(n=n.parent),n&&"null"===n.type){const e=n.parent;if(e&&"object"===e.type)for(const t in e.properties){const r=e.properties[t];r.keyNode&&r.keyNode.value===n.location&&(n=r)}}if(n){if("property"===n.type&&r>n.colonOffset){const e=n.valueNode;if(e&&r>e.offset+e.length)return;u=n.keyNode.value,n=n.parent}if(n&&(null!==u||"array"===n.type)){const c="";t.getMatchingSchemas(e.schema).forEach(e=>{if(e.node===n&&!e.inverted&&e.schema){if(e.schema.items)if(this.collectDefaultSnippets(e.schema,c,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Array.isArray(e.schema.items)){const t=super.findItemAtOffset(n,i,r);t"object"==typeof e).forEach((t,n)=>{const r="- "+this.getInsertTextForObject(t,c).insertText.trimLeft(),i=this.getDocumentationWithMarkdownText("Create an item of an array"+(void 0===e.schema.description?"":"("+e.schema.description+")"),r);s.add({kind:super.getSuggestionKind(t.type),label:"- (array item) "+(n+1),documentation:i,insertText:r,insertTextFormat:o.j.Snippet})}),this.addSchemaValueCompletions(e.schema.items,c,s,a)):this.addSchemaValueCompletions(e.schema.items,c,s,a);if(e.schema.properties){const t=e.schema.properties[u];t&&this.addSchemaValueCompletions(t,c,s,a)}}}),a.boolean&&(this.addBooleanValueCompletion(!0,c,s),this.addBooleanValueCompletion(!1,c,s)),a.null&&this.addNullValueCompletion(c,s)}}else this.addSchemaValueCompletions(e.schema,"",s,a)}getCustomTagValueCompletions(e){et(this.customTags).forEach(t=>{const n=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",n)})}addSchemaValueCompletions(e,t,n,r){super.addSchemaValueCompletions(e,t,n,r)}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(zt(e.default)){let s,a=e.type,u=e.default;for(let e=r;e>0;e--)u=[u],a="array";s="object"==typeof u?"Default value":u.toString().replace(qt,'"'),n.add({kind:this.getSuggestionKind(a),label:s,insertText:this.getInsertTextForValue(u,t,a),insertTextFormat:o.j.Snippet,detail:$t("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach(s=>{let a=e.type,u=s;for(let e=r;e>0;e--)u=[u],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(u),insertText:this.getInsertTextForValue(u,t,a),insertTextFormat:o.j.Snippet}),i=!0}),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),i||"object"!=typeof e.items||Array.isArray(e.items)||this.addDefaultValueCompletions(e.items,t,n,r+1)}collectDefaultSnippets(e,t,n,r,i=0){Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach(s=>{let a,u,c=e.type,l=s.body,p=s.label;if(zt(l)){const n=s.type||e.type;if(0===i&&"array"===n){const e={};Object.keys(l).forEach((t,n)=>{0!==n||t.startsWith("-")?e[" "+t]=l[t]:e["- "+t]=l[t]}),l=e}a=this.getInsertTextForSnippetValue(l,t,r),p=p||this.getLabelForSnippetValue(l)}else if("string"==typeof s.bodyText){let e="",n="",r="";for(let t=i;t>0;t--)e=e+r+"[\n",n=n+"\n"+r+"]",r+=this.indentation,c="array";a=e+r+s.bodyText.split("\n").join("\n"+r)+n+t,p=p||a,u=a.replace(/[\n]/g,"")}n.add({kind:s.suggestionKind||this.getSuggestionKind(c),label:p,documentation:super.fromMarkup(s.markdownDescription)||s.description,insertText:a,insertTextFormat:o.j.Snippet,filterText:u})})}getInsertTextForSnippetValue(e,t,n,r){return function e(t,n,r,i,o=0,s=0){if(null!==t&&"object"==typeof t){const a=0===o&&i.shouldIndentWithTab||o>0?n+" ":"";if(Array.isArray(t)){if(s+=1,0===t.length)return"";let u="";for(let c=0;c0?"\n":"";for(let c=0;c{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e},n,r)+t}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}addCustomTagValueCompletion(e,t,n){e.add({kind:super.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:o.j.Snippet,documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:o.j.Snippet,documentation:""})}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return o.f.Value;switch(e){case"string":return o.f.Value;case"object":return o.f.Module;case"property":return o.f.Property;default:return o.f.Value}}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:o.j.Snippet,documentation:""})}getInsertTextForValue(e,t,n){switch(null===e&&(e="null"),typeof e){case"object":{const n=this.indentation;return this.getInsertTemplateForValue(e,n,{index:1},t)}}return"string"===(n=Array.isArray(n)?n[0]:n)&&(e=Ht(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let r="\n";for(const i of e)r+=`${t}- \${${n.index++}:${i}}\n`;return r}if("object"==typeof e){let i="\n";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=e[o];let a;i+=`${t}\${${n.index++}:${o}}:`,a="object"==typeof s?""+this.getInsertTemplateForValue(s,t+this.indentation,n,r):` \${${n.index++}:${this.getInsertTextForPlainText(s+r)}}\n`,i+=""+a}return i}return this.getInsertTextForPlainText(e+r)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForObject(e,t,n=this.indentation,r=1){let i="";return e.properties?(Object.keys(e.properties).forEach(o=>{const s=e.properties[o];let a=Array.isArray(s.type)?s.type[0]:s.type;if(a||(s.properties&&(a="object"),s.items&&(a="array")),e.required&&e.required.indexOf(o)>-1)switch(a){case"boolean":case"string":case"number":case"integer":i+=`${n}${o}: $${r++}\n`;break;case"array":{const e=this.getInsertTextForArray(s.items,t,r++),a=e.insertText.split("\n");let u=e.insertText;if(a.length>1){for(let e=1;e1)&&(a=" $1"),s+a+r}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case"string":{let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),"string"===n&&(r=Ht(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getLabelForValue(e){return null===e?"null":Array.isArray(e)?JSON.stringify(e):e}completionHelper(e,t){const n=t.line,r=t,i=function(e){const t=[],n=e;let r=!0;for(let e=0;e0&&t.push(n.length),t}(e.getText()),o=i[n];let s=0;for(s=i[n+1]?i[n+1]:e.getText().length;s-1>=0&&this.is_EOL(e.getText().charCodeAt(s-1));)s--;const a=e.getText().substring(o,s);if(0===e.getText().trim().length)return{newText:`{${e.getText()}}\n`,newPosition:t};if(-1===a.indexOf(":")){let r="";const s=a.trim();if(0===s.length||1===s.length&&"-"===s[0]){const t=a.includes(" ")?a.length:0;r=e.getText().substring(0,o+t)+("-"!==s[0]||a.endsWith(" ")?"":" ")+"holder:\r\n"+e.getText().substr(i[n+1]||e.getText().length)}else-1===s.indexOf("[")&&(r=e.getText().substring(0,o+a.length)+":\r\n"+e.getText().substr(i[n+1]||e.getText().length));return 0===r.length&&(r=e.getText()),{newText:r,newPosition:t}}return r.character=r.character-1,{newText:e.getText(),newPosition:r}}is_EOL(e){return 10===e||13===e}getDocumentationWithMarkdownText(e,t){let n=e;return super.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,(e,t)=>t).replace(/\$([0-9]+)/g,""),n=super.fromMarkup(`${e}\n \`\`\`\n${t}\n\`\`\``)),n}},Kt=/^\d+$/;function Ht(e){return"true"===e||"false"===e||"null"===e||Kt.test(e)?`"${e}"`:(-1!==e.indexOf('"')&&(e=e.replace(qt,'"')),(e.length>0&&"@"===e.charAt(0)||e.includes(":"))&&(e=`"${e}"`),e)}function zt(e){return void 0!==e}function Gt(e){if(e){return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}var Jt,Xt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},Qt=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?o.m.create(n.line,new Vt(t).getLineLength(e.location.start)):t.positionAt(e.location.end)};return o.g.create(r,e.message,e.severity,e.code,"YAML")};function Zt(e){const t=jt.getYamlDocument(e),n=[];for(const r of t.documents)n.push(Je(e,r));return Promise.all(n).then(e=>[].concat(...e))}function en(e,t){if(!e)return;const n=[],r=jt.getYamlDocument(e);for(const t of r.documents)t.visit(t=>{var r;return("property"===t.type&&"array"===t.valueNode.type||"object"===t.type&&"array"===(null===(r=t.parent)||void 0===r?void 0:r.type))&&n.push(tn(e,t)),"property"===t.type&&"object"===t.valueNode.type&&n.push(tn(e,t)),!0});const i=t&&t.rangeLimit;return"number"!=typeof i||n.length<=i?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function tn(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText(o.n.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=e.positionAt(t.offset+t.length-s)),o.i.create(n.line,r.line,n.character,r.character)}(Jt||(Jt={})).JUMP_TO_SCHEMA="jumpToSchema";function nn(e,t){const n={};n[e]=t;return{changes:n}}var rn=new class{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command)){return this.commands.get(e.command)(...e.arguments)}throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}};function on(e,t){const{position:n}=t,r=new Vt(e);if("\n"===t.ch){const e=r.getLineContent(n.line-1);if(e.trimRight().endsWith(":")){const i=r.getLineContent(n.line),s=i.substring(n.character,i.length),a=-1!==e.indexOf(" - ");if(0===s.trimRight().length){const r=n.character-(e.length-e.trimLeft().length);if(r===t.options.tabSize&&!a)return;const s=[];return i.length>0&&s.push(o.p.del(o.n.create(n,o.m.create(n.line,i.length-1)))),s.push(o.p.insert(n," ".repeat(t.options.tabSize+(a?2-r:0)))),s}if(a)return[o.p.insert(n," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[o.p.insert(n," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[o.p.insert(n,"- ")];if(e.includes(" - ")&&e.includes(": "))return[o.p.insert(n," ")]}}var sn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function an(e,t){const n=ye.parse(e);let r=Object(l.basename)(n.fsPath);return Object(l.extname)(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(t,"name")?Object.getOwnPropertyDescriptor(t,"name").value+` (${r})`:t.title?t.title+` (${r})`:r}function un(e){const t=new Map;if(!e)return t;const n=e.url;return n?n.startsWith("schemaservice://combinedSchema/")?cn(e,t):t.set(e.url,e):cn(e,t),t}function cn(e,t){e.allOf&&ln(e.allOf,t),e.anyOf&&ln(e.anyOf,t),e.oneOf&&ln(e.oneOf,t)}function ln(e,t){for(const n of e)Te(n)||n.url&&!t.has(n.url)&&t.set(n.url,n)}var pn,fn,hn,dn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};function mn(e,t,n,r,i){const s=new It(e,t),a=new Yt(s,i,r),u=new class{constructor(e){this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover)}doHover(e,t,n=!1){if(!this.shouldHover||!e)return Promise.resolve(void 0);const r=jt.getYamlDocument(e),i=Ze(e.offsetAt(t),r);if(null===i)return Promise.resolve(void 0);Wt(r.documents,n);const o=r.documents.indexOf(i);return i.currentDocIndex=o,this.getHover(e,t,i)}getHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r{if(e&&i&&!e.errors.length){const t=n.getMatchingSchemas(e.schema,i.offset);let r=void 0,o=void 0,s=void 0,u=void 0;t.every(e=>{if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,o=o||e.schema.markdownDescription||Gt(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(Dt(i));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=Gt(e.schema.enumDescriptions[t])),s&&(u=e.schema.enum[t],"string"!=typeof u&&(u=JSON.stringify(u)))}return!0});let c="";return r&&(c="#### "+Gt(r)),o&&(c.length>0&&(c+="\n\n"),c+=o),s&&(c.length>0&&(c+="\n\n"),c+=`\`${function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(u)}\`: ${s}`),c.length>0&&e.schema.url&&(c+=`\n\nSource: [${function(e){let t="JSON Schema";const n=e.url;if(n){const e=ye.parse(n);t=Object(l.basename)(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),{contents:{kind:"markdown",value:c},range:a}}return null})}}(s),c=new class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new Ue(e);const n=this.jsonDocumentSymbols.getKeyLabel;this.jsonDocumentSymbols.getKeyLabel=e=>"object"==typeof e.keyNode.value?e.keyNode.value.value:n.call(this.jsonDocumentSymbols,e)}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=jt.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(t){this.telemetry.sendError("yaml.documentSymbols.error",{error:t,documentUri:e.uri})}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=jt.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(t){this.telemetry.sendError("yaml.hierarchicalDocumentSymbols.error",{error:t,documentUri:e.uri})}return n}}(s,r),h=new class{constructor(e){this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new Le(e,Promise)}configure(e){e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties)}doValidation(e,t=!1){return Xt(this,void 0,void 0,(function*(){if(!this.validationEnabled)return Promise.resolve([]);const n=jt.getYamlDocument(e,this.customTags,!0),r=[];let i,o=0;for(const i of n.documents){i.isKubernetes=t,i.currentDocIndex=o,i.disableAdditionalProperties=this.disableAdditionalProperties;const n=yield this.jsonValidation.doValidation(e,i),s=i;s.errors.length>0&&r.push(...s.errors),s.warnings.length>0&&r.push(...s.warnings),r.push(...n),o++}const s=new Set,a=[];for(let n of r){if(t&&n.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(n,"location")&&(n=Qt(n,e)),n.source||(n.source="YAML"),i&&i.message===n.message&&i.range.end.line===n.range.start.line&&Math.abs(i.range.end.character-n.range.end.character)>=1){i.range.end=n.range.end;continue}i=n;const r=n.range.start.line+" "+n.range.start.character+" "+n.message;s.has(r)||(a.push(n),s.add(r))}return a}))}}(s),d=new class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[f],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:"always"===t.proseWrap?"always":"never"===t.proseWrap?"never":"preserve",printWidth:t.printWidth},i=Object(p.format)(n,r);return[o.p.replace(o.n.create(o.m.create(0,0),e.positionAt(n.length)),i)]}catch(e){return[]}}},m=new class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,i,s;if(!(null!==(i=null===(r=null===(n=null===(t=this.clientCapabilities)||void 0===t?void 0:t.window)||void 0===n?void 0:n.showDocument)||void 0===r?void 0:r.support)&&void 0!==i&&i))return[];const a=new Map;for(const t of e){const e=(null===(s=t.data)||void 0===s?void 0:s.schemaUri)||[];for(const n of e)n&&(a.has(n)||a.set(n,[]),a.get(n).push(t))}const u=[];for(const e of a.keys()){const t=o.a.create(`Jump to schema location (${Object(l.basename)(e)})`,o.d.create("JumpToSchema",Jt.JUMP_TO_SCHEMA,e));t.diagnostics=a.get(e),u.push(t)}return u}getTabToSpaceConverting(e,t){const n=[],r=new Vt(t),i=[];for(const s of e)if("Using tabs can lead to unpredictable results"===s.message){if(i.includes(s.range.start.line))continue;const e=r.getLineContent(s.range.start.line);let a=0,u="";for(let t=s.range.start.character;t<=s.range.end.character;t++){if("\t"!==e.charAt(t))break;a++,u+=this.indentation}i.push(s.range.start.line);let c=s.range;a!==s.range.end.character-s.range.start.character&&(c=o.n.create(s.range.start,o.m.create(s.range.end.line,s.range.start.character+a))),n.push(o.a.create("Convert Tab to Spaces",nn(t.uri,[o.p.replace(c,u)]),o.b.QuickFix))}if(0!==n.length){const e=[];for(let t=0;t<=r.getLineCount();t++){const n=r.getLineContent(t);let i=0,s="";for(let r=0;r0&&n.push(o.a.create("Convert all Tabs to Spaces",nn(t.uri,e),o.b.QuickFix))}return n}}(i),g=new class{constructor(e,t){this.schemaService=e,this.telemetry=t}getCodeLens(e,t){return sn(this,void 0,void 0,(function*(){const t=jt.getYamlDocument(e),n=[];try{for(const r of t.documents){const t=yield this.schemaService.getSchemaForResource(e.uri,r);if(null==t?void 0:t.schema){const e=un(null==t?void 0:t.schema);if(0===e.size)continue;for(const t of e){const e=o.c.create(o.n.create(0,0,0,0));e.command={title:an(t[0],t[1]),command:Jt.JUMP_TO_SCHEMA,arguments:[t[0]]},n.push(e)}}}}catch(t){this.telemetry.sendError("yaml.codeLens.error",{error:t,documentUri:e.uri})}return n}))}resolveCodeLens(e){return e}}(s,r);return function(e,t){e.registerCommand(Jt.JUMP_TO_SCHEMA,e=>dn(this,void 0,void 0,(function*(){if(!e)return;if(!e.startsWith("file")&&!/^[a-z]:[\\/]/i.test(e)){const t=ye.parse(e),n=ye.from({scheme:"json-schema",authority:t.authority,path:t.path.endsWith(".json")?t.path:t.path+".json",fragment:e});e=n.toString()}if(/^[a-z]:[\\/]/i.test(e)){const t=ye.file(e);e=t.toString()}(yield t.window.showDocument({uri:e,external:!1,takeFocus:!0}))||t.window.showErrorMessage("Cannot open "+e)})))}(rn,n),{configure:e=>{s.clearExternalSchemas(),e.schemas&&(s.schemaPriorityMapping=new Map,e.schemas.forEach(e=>{const t=e.priority?e.priority:0;s.addSchemaPriority(e.uri,t),s.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),h.configure(e),u.configure(e);const t=e&&e.customTags?e.customTags:[];a.configure(e,t),d.configure(e),m.configure(e)},registerCustomSchemaProvider:e=>{s.registerCustomSchemaProvider(e)},findDefinition:()=>Promise.resolve([]),findLinks:Zt,doComplete:a.doComplete.bind(a),doValidation:h.doValidation.bind(h),doHover:u.doHover.bind(u),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findHierarchicalDocumentSymbols.bind(c),resetSchema:e=>s.onResourceChange(e),doFormat:d.format.bind(d),doDocumentOnTypeFormatting:on,addSchema:(e,t)=>s.saveSchema(e,t),deleteSchema:e=>s.deleteSchema(e),modifySchemaContent:e=>s.addContent(e),deleteSchemaContent:e=>s.deleteContent(e),deleteSchemasWhole:e=>s.deleteSchemas(e),getFoldingRanges:en,getCodeAction:(e,t)=>m.getCodeAction(e,t),getCodeLens:(e,t)=>g.getCodeLens(e,t),resolveCodeLens:e=>g.resolveCodeLens(e)}}(fn=pn||(pn={}))[fn.SchemaStore=1]="SchemaStore",fn[fn.SchemaAssociation=2]="SchemaAssociation",fn[fn.Settings=3]="Settings",fn[fn.Modeline=4]="Modeline","undefined"!=typeof fetch&&(hn=e=>fetch(e).then(e=>e.text())),self.onmessage=()=>{Object(r.a)((e,t)=>Object.create(function(e,{enableSchemaRequest:t,isKubernetes:n=!1,languageId:r,languageSettings:o,prefix:s=""}){const a=mn(t&&(e=>hn(`${s}${e}`)),null,null,null);a.configure({...o,hover:!0,isKubernetes:n});const u=t=>{const n=e.getMirrorModels();for(const e of n)if(String(e.uri)===t)return i.a.create(t,r,e.version,e.getValue());return null};return{doValidation(e){const t=u(e);return t?a.doValidation(t,n):[]},doComplete(e,t){const r=u(e);return a.doComplete(r,t,n)},doHover(e,t){const n=u(e);return a.doHover(n,t)},format(e,t){const n=u(e);return a.doFormat(n,t)},resetSchema:e=>a.resetSchema(e),findDocumentSymbols(e){const t=u(e);return a.findDocumentSymbols2(t,{})},findLinks(e){const t=u(e);return Promise.resolve(a.findLinks(t))}}}(e,t)))}}.call(this,n(10))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6),i=n(8),o=n(9),s=n(21),a=n(12),u=n(14);var c=Object.prototype.hasOwnProperty,l=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,f=/[,\[\]\{\}]/,h=/^(?:!|!!|![a-z\-]+!)$/i,d=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function m(e){return 10===e||13===e}function g(e){return 9===e||32===e}function y(e){return 9===e||32===e||10===e||13===e}function v(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function D(e){return 120===e?2:117===e?4:85===e?8:0}function E(e){return 48<=e&&e<=57?e-48:-1}function C(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var A,S=new Array(256),w=new Array(256),x=new Array(256),F=new Array(256),_=0;_<256;_++)F[_]=w[_]=48===(A=_)?"\0":97===A?"":98===A?"\b":116===A||9===A?"\t":110===A?"\n":118===A?"\v":102===A?"\f":114===A?"\r":101===A?"":32===A?" ":34===A?'"':47===A?"/":92===A?"\\":78===A?"…":95===A?" ":76===A?"\u2028":80===A?"\u2029":"",S[_]=w[_]?1:0,x[_]=1,S[_]||(F[_]="\\"+String.fromCharCode(_));class T{constructor(e,t){this.errorMap={},this.errors=[],this.lines=[],this.input=e,this.filename=t.filename||null,this.schema=t.schema||u,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.allowAnyEscape=t.allowAnyEscape||!1,this.ignoreDuplicateKeys=t.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}function O(e,t,n=!1){return new o(t,new s(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function N(e,t,n,r=!1,i=!1){var a=function(e,t){for(var n,r=0;rt);r++)n=e.lines[r];if(!n)return{start:0,line:0};return n}(e,t);if(a){var u=n+t;if(!e.errorMap[u]){var c=new s(e.filename,e.input,t,a.line,t-a.start);i&&(c.toLineEnd=!0);var l=new o(n,c,r);e.errors.push(l)}}}function k(e,t){var n=O(e,t),r=n.message+n.mark.position;if(!e.errorMap[r]){e.errors.push(n),e.errorMap[r]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if("\n"==o)return e.position--,void(e.position==i&&(e.position+=1));if("\r"==o)return e.position--,void(e.position==i&&(e.position+=1));e.position++}}}function M(e,t){var n=O(e,t);e.onWarning&&e.onWarning.call(null,n)}var P={YAML:function(e,t,n){var r,i,o;null!==e.version&&k(e,"duplication of %YAML directive"),1!==n.length&&k(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&k(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&k(e,"found incompatible YAML document (version 1.2 is required)"),e.version=n[0],e.checkLineBreaks=o<2,2!==o&&k(e,"found incompatible YAML document (version 1.2 is required)")},TAG:function(e,t,n){var r,i;2!==n.length&&k(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],h.test(r)||k(e,"ill-formed tag handle (first argument) of the TAG directive"),c.call(e.tagMap,r)&&k(e,'there is a previously declared suffix for "'+r+'" tag handle'),d.test(i)||k(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function L(e,t,n,r){var i,o,s,a,u=e.result;if(-1==u.startPosition&&(u.startPosition=t),t<=n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i{r.isNodesEqual(t,s)&&(N(e,s.key.startPosition,"duplicate key"),N(e,t.key.startPosition,"duplicate key"))}),t.mappings.push(s),t.endPosition=o?o.endPosition:i.endPosition+1,t}}function B(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):k(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function j(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;g(i);)9===i&&e.errors.push(O(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!m(i))break;for(B(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent1&&(t.value+=i.repeat("\n",n-1))}function V(e,t){var n,i,o=e.tag,s=e.anchor,a=r.newItems(),u=!1;for(null!==e.anchor&&(a.anchorId=e.anchor,e.anchorMap[e.anchor]=a),a.startPosition=e.position,i=e.input.charCodeAt(e.position);0!==i&&45===i&&y(e.input.charCodeAt(e.position+1));)if(u=!0,e.position++,j(e,!0,-1)&&e.lineIndent<=t)a.items.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,q(e,t,3,!1,!0),e.result&&(e.result.parent=a,a.items.push(e.result)),j(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)k(e,"bad indentation of a sequence entry");else if(e.lineIndentt?_=1:e.lineIndent===t?_=0:e.lineIndentt?_=1:e.lineIndent===t?_=0:e.lineIndent0;)if(m(a=e.input.charCodeAt(--e.position))){e.position++;break}}}else 63===a?(h&&(I(e,l,0,p,null),p=f=null),d=!0,h=!0,o=!0):h?(h=!1,o=!0):k(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,a=i;if((e.line===s||e.lineIndent>t)&&(q(e,t,4,!0,o)&&(h?p=e.result:f=e.result),h||(I(e,l,0,p,f),p=f=null),j(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)k(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===s?k(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?k(e,"repeat of an indentation width identifier"):(l=t+s-1,c=!0)}if(g(a)){do{a=e.input.charCodeAt(++e.position)}while(g(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!m(a)&&0!==a)}for(;0!==a;){for(B(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndentl&&(l=e.lineIndent),m(a))p++;else{if(e.lineIndent0){for(o=a,s=0;o>0;o--)(a=b(u=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+a:k(e,"expected hexadecimal character");c.value+=C(s),e.position++}else k(e,"unknown escape sequence");n=i=e.position}else m(u)?(L(e,n,i,!0),U(0,c,j(e,!1,t)),n=i=e.position):e.position===e.lineStart&&R(e)?k(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}k(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?O=!0:!function(e){var t,n,i;if(e.length,e.input,42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!y(i)&&!v(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(k(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(k(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=r.newAnchorRef(n,t,e.position,e.anchorMap[n]),j(e,!0,-1),!0}(e)?function(e,t,n){var i,o,s,a,u,c,l,p,f=e.kind,h=e.result,d=r.newScalar();if(d.plainScalar=!0,e.result=d,y(p=e.input.charCodeAt(e.position))||v(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((63===p||45===p)&&(y(i=e.input.charCodeAt(e.position+1))||n&&v(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;0!==p;){if(58===p){if(y(i=e.input.charCodeAt(e.position+1))||n&&v(i))break}else if(35===p){if(y(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&R(e)||n&&v(p))break;if(m(p)){if(u=e.line,c=e.lineStart,l=e.lineIndent,j(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}e.position=s,e.line=u,e.lineStart=c,e.lineIndent=l;break}}if(a&&(L(e,o,s,!1),U(0,d,e.line-u),o=s=e.position,a=!1),g(p)||(s=e.position+1),p=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return L(e,o,s,!1),-1!=e.result.startPosition?(d.rawValue=e.input.substring(d.startPosition,d.endPosition),!0):(e.kind=f,e.result=h,!1)}(e,d,1===n)&&(O=!0,null===e.tag&&(e.tag="?")):(O=!0,null===e.tag&&null===e.anchor||k(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):0===_&&(O=l&&V(e,A))),null!==e.tag&&"!"!==e.tag)if("!include"==e.tag)e.result||(e.result=r.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,k(e,"!include without value")),e.result.kind=r.Kind.INCLUDE_REF;else if("?"===e.tag)for(p=0,f=e.implicitTypes.length;p tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),null!==e.anchor&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):k(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):N(e,M,"unknown tag <"+e.tag+">",!1,!0);return null!==e.tag||null!==e.anchor||O}function Y(e){var t,n,r,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(j(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!y(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&k(e,"directive name must not be less than one character in length");0!==i;){for(;g(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!m(i));break}if(m(i))break;for(t=e.position;0!==i&&!y(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&B(e),c.call(P,n)?P[n](e,n,r):(M(e,'unknown document directive "'+n+'"'),e.position++)}j(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,j(e,!0,-1)):s&&k(e,"directives end mark is expected"),q(e,e.lineIndent-1,4,!1,!0),j(e,!0,-1),e.checkLineBreaks&&p.test(e.input.slice(o,e.position))&&M(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&R(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,j(e,!0,-1)):e.position0&&(o[s-1].endPosition=n);for(let e of o)e.errors=r.errors,e.startPosition>e.endPosition&&(e.startPosition=e.endPosition);return o}function H(e,t,n={}){var r,i,o=K(e,n);for(r=0,i=o.length;r0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;st/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),r.repeat(" ",e)+n+a+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"}toString(e=!0){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n}}},function(e,t,n){"use strict";const r=n(7);e.exports=new r.Schema({include:[n(23)]})},function(e,t,n){"use strict";const r=n(7);e.exports=new r.Schema({include:[n(24)],implicit:[n(28),n(29),n(30),n(31)]})},function(e,t,n){"use strict";const r=n(7);e.exports=new r.Schema({explicit:[n(25),n(26),n(27)]})},function(e,t,n){"use strict";const r=n(2);e.exports=new r.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";const r=n(2);e.exports=new r.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";const r=n(2);e.exports=new r.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";const r=n(2),i=n(6);e.exports=new r.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){const t=i.isYAMLNode(e)?e.value:e;if(null===t)return!0;var n=t.length;return 1===n&&"~"===t||4===n&&("null"===t||"Null"===t||"NULL"===t)},construct:function(e){return i.isYAMLNode(e)?e:null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";const r=n(2),i=n(6);e.exports=new r.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){const t=i.isYAMLNode(e)?e.value:e;if(null===t)return!1;var n=t.length;return 4===n&&("true"===t||"True"===t||"TRUE"===t)||5===n&&("false"===t||"False"===t||"FALSE"===t)},construct:function(e){return i.isYAMLNode(e)?e:"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";const r=n(8),i=n(2),o=n(6);function s(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new i.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){const t=o.isYAMLNode(e)?e.value:e;if(null===t)return!1;var n,r,i=t.length,u=0,c=!1;if(!i)return!1;if("-"!==(n=t[u])&&"+"!==n||(n=t[++u]),"0"===n){if(u+1===i)return!0;if("b"===(n=t[++u])){for(u++;u64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){if(o.isYAMLNode(e))return e;var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,u=s,c=0,l=[];for(t=0;t>16&255),l.push(c>>8&255),l.push(255&c)),c=c<<6|u.indexOf(i.charAt(t));return 0===(n=a%4*6)?(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)):18===n?(l.push(c>>10&255),l.push(c>>2&255)):12===n&&l.push(c>>4&255),r?new r(l):l},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,o=e.length,a=s;for(t=0;t>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]),i=(i<<8)+e[t];return 0===(n=o%3)?(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]):2===n?(r+=a[i>>10&63],r+=a[i>>4&63],r+=a[i<<2&63],r+=a[64]):1===n&&(r+=a[i>>2&63],r+=a[i<<4&63],r+=a[64],r+=a[64]),r}})},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n(36),i=n(37),o=n(38);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return F(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function w(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),p=0;pi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return D(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||k(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(11))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),s=r[0],a=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),l=0,p=a>0?s-4:s;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;sa?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,s=[],a=t;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";const r=n(2);var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,s,a,u=[],c=e;for(t=0,n=c.length;t3)return!1;if("/"!==t[t.length-r.length-1])return!1;t=t.slice(1,t.length-r.length-1)}try{new RegExp(t,r);return!0}catch(e){return!1}},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=n(9),o=n(14),s=n(12),a=Object.prototype.toString,u=Object.prototype.hasOwnProperty,c={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},l=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function p(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,s,a,c;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i0&&32===t.charCodeAt(C-1)&&(s=!1,o=!1),o&&(w=C-h,h=C,w>m&&(m=w))),34!==E&&(a=!1),u.takeUpTo(C),u.escapeChar())}if(r&&function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;no||-1===n?(r&&(r+="\n\n"),r+=g(e.slice(i,o),t),i=o):(r&&(r+="\n\n"),r+=g(e.slice(i,n),t),i=n+1);s&&"\n"!==s[0]&&(r+=s[0]);return r}(t,D),e.dump=">"+x+"\n"+f(_,b);else if(s)x||(t=t.replace(/\n$/,"")),e.dump="|"+x+"\n"+f(t,b);else{if(!u)throw new Error("Failed to dump scalar value");u.finish(),e.dump='"'+u.result+'"'}}else e.dump="'"+t+"'";else e.dump="";else e.dump=""+t;else e.dump="''"}function g(e,t){if(""===e)return e;for(var n,r,i=/[^\s] [^\s]/g,o="",s=0,a=0,u=i.exec(e);u;)(n=u.index)-a>t&&(r=s!==a?s:n,o&&(o+="\n"),o+=e.slice(a,r),a=r+1),s=n+1,u=i.exec(e);return o&&(o+="\n"),a!==s&&e.length-a>t?o+=e.slice(a,s)+"\n"+e.slice(s+1):o+=e.slice(a),o}function y(e){return 9!==e&&10!==e&&13!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&62!==e&&39!==e&&34!==e&&37!==e&&58!==e&&!c[e]&&!v(e)}function v(e){return!(32<=e&&e<=126||133===e||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function b(e,t,n){var r,o,s,c,l,p;for(s=0,c=(o=n?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+p+'" style');r=l.represent[p](t,p)}e.dump=r}return!0}return!1}function D(e,t,n,r,o){e.tag=null,e.dump=n,b(e,n,!1)||b(e,n,!0);var s=a.call(e.dump);r&&(r=0>e.flowLevel||e.flowLevel>t),(null!==e.tag&&"?"!==e.tag||2!==e.indent&&t>0)&&(o=!1);var u,c,l="[object Object]"===s||"[object Array]"===s;if(l&&(c=-1!==(u=e.duplicates.indexOf(n))),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(l&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===s)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,o,s,a,u,c,l="",p=e.tag,f=Object.keys(n);for(i=0,o=f.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=h(e,t)),D(e,t+1,a,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",l+=c+=e.dump));e.tag=p,e.dump=l||"{}"}(e,t,e.dump,o),c&&(e.dump="&ref_"+u+(0===t?"\n":"")+e.dump)):(!function(e,t,n){var r,i,o,s,a,u="",c=e.tag,l=Object.keys(n);for(r=0,i=l.length;r1024&&(a+="? "),a+=e.dump+": ",D(e,t,s,!1,!1)&&(u+=a+=e.dump));e.tag=c,e.dump="{"+u+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===s)r&&0!==e.dump.length?(!function(e,t,n,r){var i,o,s="",a=e.tag;for(i=0,o=n.length;i "+e.dump)}return!0}function E(e,t){var n,r,i=[],o=[];for(function e(t,n,r){var i,o,s;a.call(t);if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(n.push(t),Array.isArray(t))for(o=0,s=t.length;o checkpoint")).position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this},d.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=c[e]||function(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+r.repeat("0",o-t.length)+t}(e),this.result+=t,this.checkpoint+=1,this},d.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},t.dump=C,t.safeDump=function(e,t){return C(e,r.extend({schema:s},t))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.parseYamlBoolean=function(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`},t.parseYamlInteger=function(e){const t=function(e){return 0===e.lastIndexOf("0o",0)?parseInt(e.substring(2),8):parseInt(e)}(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t},t.parseYamlFloat=function(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;const t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(t)return"-"===t[1]?-1/0:1/0;const n=parseFloat(e);if(!isNaN(n))return n;throw`Invalid float "${e}"`},function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"}(r=t.ScalarType||(t.ScalarType={})),t.determineScalarType=function(e){if(void 0===e)return r.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return r.string;const t=e.value;return["null","Null","NULL","~",""].indexOf(t)>=0||null==t?r.null:["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0?r.bool:/^[-+]?[0-9]+$/.test(t)||/^0o[0-7]+$/.test(t)||/^0x[0-9a-fA-F]+$/.test(t)?r.int:/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/.test(t)||/^[-+]?(\.inf|\.Inf|\.INF)$/.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?r.float:r.string}}]);