@chillicream/nitro-embedded 20.0.0 → 20.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/asset-manifest.json +35 -35
- package/index.html +1 -1
- package/package.json +1 -1
- package/service-worker.js +1 -1
- package/static/css/{styles.3e5f6824.css → styles.15b5693c.css} +1 -1
- package/static/js/110.e1d98b63.js +2 -0
- package/static/js/177.dbf43818.chunk.js +2 -0
- package/static/js/{762.76d2e08a.chunk.js.LICENSE.txt → 177.dbf43818.chunk.js.LICENSE.txt} +2 -0
- package/static/js/195.3c312188.chunk.js +1 -0
- package/static/js/224.08af227a.chunk.js +1 -0
- package/static/js/264.e1d98b63.js +1 -0
- package/static/js/522.3742b331.chunk.js +1 -0
- package/static/js/596.ffc50c59.chunk.js +1 -0
- package/static/js/81.3a5e0fef.chunk.js +1 -0
- package/static/js/86.e8257075.chunk.js +1 -0
- package/static/js/887.e1d98b63.js +2 -0
- package/static/js/{459.bb82ca7b.js.LICENSE.txt → 887.e1d98b63.js.LICENSE.txt} +1 -1
- package/static/js/907.e1d98b63.js +1 -0
- package/static/js/927.e1d98b63.js +1 -0
- package/static/js/936.e1d98b63.js +1 -0
- package/static/js/940.e1d98b63.js +1 -0
- package/static/js/996.99877939.chunk.js +1 -0
- package/static/js/editor.e1d98b63.js +1 -0
- package/static/js/graphql-engine.d7ab7d09.chunk.js +1 -0
- package/static/js/graphql-indexer.47a1123c.chunk.js +1 -0
- package/static/js/graphql.worker.e1d98b63.js +2 -0
- package/static/js/json.e1d98b63.js +2 -0
- package/static/js/main.e1d98b63.js +2 -0
- package/static/js/polyfills.e1d98b63.js +1 -0
- package/static/js/session.e85eaf27.chunk.js +1 -0
- package/static/js/yaml.worker.e1d98b63.js +1 -0
- package/static/js/110.bb82ca7b.js +0 -2
- package/static/js/195.6d82bb33.chunk.js +0 -1
- package/static/js/264.bb82ca7b.js +0 -1
- package/static/js/435.bb82ca7b.js +0 -1
- package/static/js/459.bb82ca7b.js +0 -102
- package/static/js/522.0da62492.chunk.js +0 -1
- package/static/js/692.94345d72.chunk.js +0 -1
- package/static/js/762.76d2e08a.chunk.js +0 -111
- package/static/js/785.6dfcf288.chunk.js +0 -1
- package/static/js/81.7ef63da7.chunk.js +0 -2
- package/static/js/86.a88d32a1.chunk.js +0 -1
- package/static/js/927.bb82ca7b.js +0 -1
- package/static/js/936.bb82ca7b.js +0 -1
- package/static/js/99.bb82ca7b.js +0 -1
- package/static/js/996.ed393652.chunk.js +0 -1
- package/static/js/editor.bb82ca7b.js +0 -1
- package/static/js/graphql-engine.781c9293.chunk.js +0 -1
- package/static/js/graphql-indexer.b0f0f3b9.chunk.js +0 -1
- package/static/js/graphql.worker.bb82ca7b.js +0 -2
- package/static/js/json.bb82ca7b.js +0 -2
- package/static/js/json.bb82ca7b.js.LICENSE.txt +0 -6
- package/static/js/main.bb82ca7b.js +0 -2
- package/static/js/polyfills.bb82ca7b.js +0 -1
- package/static/js/session.1b18a1e8.chunk.js +0 -1
- package/static/js/yaml.worker.bb82ca7b.js +0 -22
- /package/static/js/{110.bb82ca7b.js.LICENSE.txt → 110.e1d98b63.js.LICENSE.txt} +0 -0
- /package/static/js/{graphql.worker.bb82ca7b.js.LICENSE.txt → graphql.worker.e1d98b63.js.LICENSE.txt} +0 -0
- /package/static/js/{81.7ef63da7.chunk.js.LICENSE.txt → json.e1d98b63.js.LICENSE.txt} +0 -0
- /package/static/js/{main.bb82ca7b.js.LICENSE.txt → main.e1d98b63.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={262:e=>{e.exports=function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var n,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return e&&(t=(0,e[s(e)[0]])(e=0)),t},u=(e,t)=>function(){return t||(0,e[s(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of s(t))!o.call(e,u)&&u!==n&&r(e,u,{get:()=>t[u],enumerable:!(a=i(t,u))||a.enumerable});return e},p=e=>c(r({},"__esModule",{value:!0}),e),d=a({"<define:process>"(){n={env:{},argv:[]}}}),f=u({"src/common/parser-create-error.js"(e,t){function n(e,t){let n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}d(),t.exports=n}}),h=u({"src/language-yaml/pragma.js"(e,t){function n(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function r(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)}function i(e){return"# @format\n\n".concat(e)}d(),t.exports={isPragma:n,hasPragma:r,insertPragma:i}}}),m=u({"src/language-yaml/loc.js"(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}d(),t.exports={locStart:n,locEnd:r}}}),g={};function y(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function D(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function v(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function b(e,t){return function(n,r){t(n,r,e)}}function E(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function C(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{u(r.next(e))}catch(t){s(t)}}function a(e){try{u(r.throw(e))}catch(t){s(t)}}function u(e){e.done?n(e.value):i(e.value).then(o,a)}u((r=r.apply(e,t||[])).next())}))}function A(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(a){s=[6,a],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function S(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function x(e,t){for(var n in e)"default"!==n&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function w(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function T(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(F(arguments[t]));return e}function N(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{u(i[e](t))}catch(n){p(s[0][3],n)}}function u(e){e.value instanceof _?Promise.resolve(e.value.v).then(l,c):p(s[0][2],e)}function l(e){a("next",e)}function c(e){a("throw",e)}function p(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function L(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:_(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof w?w(e):e[Symbol.iterator](),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,s){i(r,s,(t=e[n](t)).done,t.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(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}function B(e){return e&&e.__esModule?e:{default:e}}function M(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}l(g,{__assign:()=>V,__asyncDelegator:()=>L,__asyncGenerator:()=>k,__asyncValues:()=>O,__await:()=>_,__awaiter:()=>C,__classPrivateFieldGet:()=>M,__classPrivateFieldSet:()=>j,__createBinding:()=>S,__decorate:()=>v,__exportStar:()=>x,__extends:()=>y,__generator:()=>A,__importDefault:()=>B,__importStar:()=>I,__makeTemplateObject:()=>P,__metadata:()=>E,__param:()=>b,__read:()=>F,__rest:()=>D,__spread:()=>T,__spreadArrays:()=>N,__values:()=>w});var R,V,q=a({"node_modules/tslib/tslib.es6.js"(){d(),R=function(e,t){return(R=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)},V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)}}}),U=u({"node_modules/yaml-unist-parser/node_modules/lines-and-columns/build/index.js"(e){d(),e.__esModule=!0,e.LinesAndColumns=void 0;var t="\n",n="\r",r=function(){function e(e){this.string=e;for(var r=[0],i=0;i<e.length;)switch(e[i]){case t:i+=t.length,r.push(i);break;case n:e[i+=n.length]===t&&(i+=t.length),r.push(i);break;default:i++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.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}();e.LinesAndColumns=r,e.default=r}}),W=u({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(e){function t(e,n){void 0===n&&(n=null),"children"in e&&e.children.forEach((function(n){return t(n,e)})),"anchor"in e&&e.anchor&&t(e.anchor,e),"tag"in e&&e.tag&&t(e.tag,e),"leadingComments"in e&&e.leadingComments.forEach((function(n){return t(n,e)})),"middleComments"in e&&e.middleComments.forEach((function(n){return t(n,e)})),"indicatorComment"in e&&e.indicatorComment&&t(e.indicatorComment,e),"trailingComment"in e&&e.trailingComment&&t(e.trailingComment,e),"endComments"in e&&e.endComments.forEach((function(n){return t(n,e)})),Object.defineProperty(e,"_parent",{value:n,enumerable:!1})}d(),e.__esModule=!0,e.defineParents=t}}),K=u({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(e){function t(e){return e.line+":"+e.column}d(),e.__esModule=!0,e.getPointText=t}}),$=u({"node_modules/yaml-unist-parser/lib/attach.js"(e){d(),e.__esModule=!0;var t=W(),n=K();function r(e){t.defineParents(e);var n=i(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();o(e,n,r[0])}))}function i(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n<r.length;n++){var i=r[n];t[i.position.start.line-1].comment=i}return s(t,e),t}function s(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){var n=t.position.start,r=e[n.line-1].leadingAttachableNode;(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if("trailingComment"in t&&t.position.end.column>1&&"document"!==t.type&&"documentHead"!==t.type){var i=t.position.end,o=e[i.line-1].trailingAttachableNode;(!o||i.column>=o.position.end.column)&&(e[i.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type)for(var a=t.position,u=(n=a.start,0),l=[(i=a.end).line].concat(n.line===i.line?[]:n.line);u<l.length;u++){var c=l[u],p=e[c-1].trailingNode;(!p||i.column>=p.position.end.column)&&(e[c-1].trailingNode=t)}"children"in t&&t.children.forEach((function(t){s(e,t)}))}}function o(e,r,i){var s=e.position.start.line,o=r[s-1].trailingAttachableNode;if(o){if(o.trailingComment)throw new Error("Unexpected multiple trailing comment at "+n.getPointText(e.position.start));return t.defineParents(e,o),void(o.trailingComment=e)}for(var l=s;l>=i.position.start.line;l--){var c=r[l-1].trailingNode,p=void 0;if(c)p=c;else{if(l===s||!r[l-1].comment)continue;p=r[l-1].comment._parent}if(("sequence"===p.type||"mapping"===p.type)&&(p=p.children[0]),"mappingItem"===p.type){var d=p.children,f=d[0],h=d[1];p=u(f)?f:h}for(;;){if(a(p,e))return t.defineParents(e,p),void p.endComments.push(e);if(!p._parent)break;p=p._parent}break}for(l=s+1;l<=i.position.end.line;l++){var m=r[l-1].leadingAttachableNode;if(m)return t.defineParents(e,m),void m.leadingComments.push(e)}var g=i.children[1];t.defineParents(e,g),g.endComments.push(e)}function a(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequenceItem":return t.position.start.column>e.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||u(e));default:return!1}}function u(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}e.attachComments=r}}),H=u({"node_modules/yaml-unist-parser/lib/factories/node.js"(e){function t(e,t){return{type:e,position:t}}d(),e.__esModule=!0,e.createNode=t}}),J=u({"node_modules/yaml-unist-parser/lib/factories/root.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=H();function r(e,r,i){return t.__assign(t.__assign({},n.createNode("root",e)),{children:r,comments:i})}e.createRoot=r}}),G=u({"node_modules/yaml-unist-parser/lib/preprocess.js"(e){function t(e){switch(e.type){case"DOCUMENT":for(var n=e.contents.length-1;n>=0;n--)"BLANK_LINE"===e.contents[n].type?e.contents.splice(n,1):t(e.contents[n]);for(n=e.directives.length-1;n>=0;n--)"BLANK_LINE"===e.directives[n].type&&e.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=e.items.length-1;n>=0;n--){var r=e.items[n];"char"in r||("BLANK_LINE"===r.type?e.items.splice(n,1):t(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":e.node&&t(e.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(e.type))}}d(),e.__esModule=!0,e.removeCstBlankLine=t}}),z=u({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(e){function t(){return{leadingComments:[]}}d(),e.__esModule=!0,e.createLeadingCommentAttachable=t}}),Y=u({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(e){function t(e){return void 0===e&&(e=null),{trailingComment:e}}d(),e.__esModule=!0,e.createTrailingCommentAttachable=t}}),Q=u({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=z(),r=Y();function i(){return t.__assign(t.__assign({},n.createLeadingCommentAttachable()),r.createTrailingCommentAttachable())}e.createCommentAttachable=i}}),X=u({"node_modules/yaml-unist-parser/lib/factories/alias.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("alias",e)),n.createCommentAttachable()),i),{value:s})}e.createAlias=i}}),Z=u({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(e){d(),e.__esModule=!0;var t=X();function n(e,n){var r=e.cstNode;return t.createAlias(n.transformRange({origStart:r.valueRange.origStart-1,origEnd:r.valueRange.origEnd}),n.transformContent(e),r.rawValue)}e.transformAlias=n}}),ee=u({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(e){d(),e.__esModule=!0;var t=(q(),p(g));function n(e){return t.__assign(t.__assign({},e),{type:"blockFolded"})}e.createBlockFolded=n}}),te=u({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=z(),r=H();function i(e,i,s,o,a,u){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("blockValue",e)),n.createLeadingCommentAttachable()),i),{chomping:s,indent:o,value:a,indicatorComment:u})}e.createBlockValue=i}}),ne=u({"node_modules/yaml-unist-parser/lib/constants.js"(e){var t;d(),e.__esModule=!0,(t=e.PropLeadingCharacter||(e.PropLeadingCharacter={})).Tag="!",t.Anchor="&",t.Comment="#"}}),re=u({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=H();function r(e,r){return t.__assign(t.__assign({},n.createNode("anchor",e)),{value:r})}e.createAnchor=r}}),ie=u({"node_modules/yaml-unist-parser/lib/factories/comment.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=H();function r(e,r){return t.__assign(t.__assign({},n.createNode("comment",e)),{value:r})}e.createComment=r}}),se=u({"node_modules/yaml-unist-parser/lib/factories/content.js"(e){function t(e,t,n){return{anchor:t,tag:e,middleComments:n}}d(),e.__esModule=!0,e.createContent=t}}),oe=u({"node_modules/yaml-unist-parser/lib/factories/tag.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=H();function r(e,r){return t.__assign(t.__assign({},n.createNode("tag",e)),{value:r})}e.createTag=r}}),ae=u({"node_modules/yaml-unist-parser/lib/transforms/content.js"(e){d(),e.__esModule=!0;var t=ne(),n=re(),r=ie(),i=se(),s=oe();function o(e,o,a){void 0===a&&(a=function(){return!1});for(var u=e.cstNode,l=[],c=null,p=null,d=null,f=0,h=u.props;f<h.length;f++){var m=h[f],g=o.text[m.origStart];switch(g){case t.PropLeadingCharacter.Tag:c=c||m,p=s.createTag(o.transformRange(m),e.tag);break;case t.PropLeadingCharacter.Anchor:c=c||m,d=n.createAnchor(o.transformRange(m),u.anchor);break;case t.PropLeadingCharacter.Comment:var y=r.createComment(o.transformRange(m),o.text.slice(m.origStart+1,m.origEnd));o.comments.push(y),!a(y)&&c&&c.origEnd<=m.origStart&&m.origEnd<=u.valueRange.origStart&&l.push(y);break;default:throw new Error("Unexpected leading character "+JSON.stringify(g))}}return i.createContent(p,d,l)}e.transformContent=o}}),ue=u({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(e){d(),e.__esModule=!0;var t,n,r=te(),i=K(),s=ae();function o(e,n){var o=e.cstNode,a=1,u="CLIP"===o.chomping?0:1,l=o.header.origEnd-o.header.origStart-a-u!==0,c=n.transformRange({origStart:o.header.origStart,origEnd:o.valueRange.origEnd}),p=null,d=s.transformContent(e,n,(function(e){if(!(c.start.offset<e.position.start.offset&&e.position.end.offset<c.end.offset))return!1;if(p)throw new Error("Unexpected multiple indicator comments at "+i.getPointText(e.position.start));return p=e,!0}));return r.createBlockValue(c,d,t[o.chomping],l?o.blockIndent:null,o.strValue,p)}(n=t||(t={})).CLIP="clip",n.STRIP="strip",n.KEEP="keep",e.transformAstBlockValue=o}}),le=u({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(e){d(),e.__esModule=!0;var t=ee(),n=ue();function r(e,r){return t.createBlockFolded(n.transformAstBlockValue(e,r))}e.transformBlockFolded=r}}),ce=u({"node_modules/yaml-unist-parser/lib/factories/block-literal.js"(e){d(),e.__esModule=!0;var t=(q(),p(g));function n(e){return t.__assign(t.__assign({},e),{type:"blockLiteral"})}e.createBlockLiteral=n}}),pe=u({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(e){d(),e.__esModule=!0;var t=ce(),n=ue();function r(e,r){return t.createBlockLiteral(n.transformAstBlockValue(e,r))}e.transformBlockLiteral=r}}),de=u({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(e){d(),e.__esModule=!0;var t=ie();function n(e,n){return t.createComment(n.transformRange(e.range),e.comment)}e.transformComment=n}}),fe=u({"node_modules/yaml-unist-parser/lib/factories/directive.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign({},r.createNode("directive",e)),n.createCommentAttachable()),{name:i,parameters:s})}e.createDirective=i}}),he=u({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(e){d(),e.__esModule=!0;var t=ne(),n=ie();function r(e,r){for(var i=0,s=e.props;i<s.length;i++){var o=s[i],a=r.text[o.origStart];if(a!==t.PropLeadingCharacter.Comment)throw new Error("Unexpected leading character "+JSON.stringify(a));r.comments.push(n.createComment(r.transformRange(o),r.text.slice(o.origStart+1,o.origEnd)))}}e.extractPropComments=r}}),me=u({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(e){d(),e.__esModule=!0;var t=fe(),n=he();function r(e,r){return n.extractPropComments(e,r),t.createDirective(r.transformRange(e.range),e.name,e.parameters)}e.transformDirective=r}}),ge=u({"node_modules/yaml-unist-parser/lib/factories/document.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=H(),r=Y();function i(e,i,s,o){return t.__assign(t.__assign(t.__assign({},n.createNode("document",e)),r.createTrailingCommentAttachable(o)),{children:[i,s]})}e.createDocument=i}}),ye=u({"node_modules/yaml-unist-parser/lib/factories/position.js"(e){function t(e,t){return{start:e,end:t}}function n(e){return{start:e,end:e}}d(),e.__esModule=!0,e.createPosition=t,e.createEmptyPosition=n}}),De=u({"node_modules/yaml-unist-parser/lib/factories/end-comment-attachable.js"(e){function t(e){return void 0===e&&(e=[]),{endComments:e}}d(),e.__esModule=!0,e.createEndCommentAttachable=t}}),ve=u({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=De(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign({},r.createNode("documentBody",e)),n.createEndCommentAttachable(s)),{children:i?[i]:[]})}e.createDocumentBody=i}}),be=u({"node_modules/yaml-unist-parser/lib/utils/get-last.js"(e){function t(e){return e[e.length-1]}d(),e.__esModule=!0,e.getLast=t}}),Ee=u({"node_modules/yaml-unist-parser/lib/utils/get-match-index.js"(e){function t(e,t){var n=e.match(t);return n?n.index:-1}d(),e.__esModule=!0,e.getMatchIndex=t}}),Ce=u({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=ve(),r=be(),i=Ee(),s=K();function o(e,r,i){var s,o=e.cstNode,l=a(o,r,i),c=l.comments,p=l.endComments,d=l.documentTrailingComment,f=l.documentHeadTrailingComment,h=r.transformNode(e.contents),m=u(o,h,r),g=m.position,y=m.documentEndPoint;return(s=r.comments).push.apply(s,t.__spreadArrays(c,p)),{documentBody:n.createDocumentBody(g,h,p),documentEndPoint:y,documentTrailingComment:d,documentHeadTrailingComment:f}}function a(e,t,n){for(var i=[],o=[],a=[],u=[],l=!1,c=e.contents.length-1;c>=0;c--){var p=e.contents[c];if("COMMENT"===p.type){var d=t.transformNode(p);n&&n.line===d.position.start.line?u.unshift(d):l?i.unshift(d):d.position.start.offset>=e.valueRange.origEnd?a.unshift(d):i.unshift(d)}else l=!0}if(a.length>1)throw new Error("Unexpected multiple document trailing comments at "+s.getPointText(a[1].position.start));if(u.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+s.getPointText(u[1].position.start));return{comments:i,endComments:o,documentTrailingComment:r.getLast(a)||null,documentHeadTrailingComment:r.getLast(u)||null}}function u(e,t,n){var r=i.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),s=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[s-1]&&s--;var o=n.transformRange({origStart:null!==t?t.position.start.offset:s,origEnd:s});return{position:o,documentEndPoint:-1===r?o.end:n.transformOffset(e.valueRange.origEnd+3)}}e.transformDocumentBody=o}}),Ae=u({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=De(),r=H(),i=Y();function s(e,s,o,a){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("documentHead",e)),n.createEndCommentAttachable(o)),i.createTrailingCommentAttachable(a)),{children:s})}e.createDocumentHead=s}}),Se=u({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Ae(),r=Ee();function i(e,r){var i,a=e.cstNode,u=s(a,r),l=u.directives,c=u.comments,p=u.endComments,d=o(a,l,r),f=d.position,h=d.endMarkerPoint;(i=r.comments).push.apply(i,t.__spreadArrays(c,p));var m=function(e){return e&&r.comments.push(e),n.createDocumentHead(f,l,p,e)};return{createDocumentHeadWithTrailingComment:m,documentHeadEndMarkerPoint:h}}function s(e,t){for(var n=[],r=[],i=[],s=!1,o=e.directives.length-1;o>=0;o--){var a=t.transformNode(e.directives[o]);"comment"===a.type?s?r.unshift(a):i.unshift(a):(s=!0,n.unshift(a))}return{directives:n,comments:r,endComments:i}}function o(e,t,n){var i=r.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/);i>0&&!/[\r\n]/.test(n.text[i-1])&&(i=-1);var s=-1===i?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:i,origEnd:i+3};return 0!==t.length&&(s.origStart=t[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:-1===i?null:n.transformOffset(i)}}e.transformDocumentHead=i}}),xe=u({"node_modules/yaml-unist-parser/lib/transforms/document.js"(e){d(),e.__esModule=!0;var t=ge(),n=ye(),r=Ce(),i=Se();function s(e,s){var o=i.transformDocumentHead(e,s),a=o.createDocumentHeadWithTrailingComment,u=o.documentHeadEndMarkerPoint,l=r.transformDocumentBody(e,s,u),c=l.documentBody,p=l.documentEndPoint,d=l.documentTrailingComment,f=a(l.documentHeadTrailingComment);return d&&s.comments.push(d),t.createDocument(n.createPosition(f.position.start,p),f,c,d)}e.transformDocument=s}}),we=u({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=De(),i=H();function s(e,s,o){return t.__assign(t.__assign(t.__assign(t.__assign(t.__assign({},i.createNode("flowCollection",e)),n.createCommentAttachable()),r.createEndCommentAttachable()),s),{children:o})}e.createFlowCollection=s}}),Fe=u({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=we();function r(e,r,i){return t.__assign(t.__assign({},n.createFlowCollection(e,r,i)),{type:"flowMapping"})}e.createFlowMapping=r}}),Te=u({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=z(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign({},r.createNode("flowMappingItem",e)),n.createLeadingCommentAttachable()),{children:[i,s]})}e.createFlowMappingItem=i}}),Ne=u({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(e){function t(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var s=i[r];s&&"type"in s&&"COMMENT"===s.type?t.comments.push(t.transformNode(s)):n.push(s)}return n}d(),e.__esModule=!0,e.extractComments=t}}),_e=u({"node_modules/yaml-unist-parser/lib/utils/get-flow-map-item-additional-ranges.js"(e){function t(e){var t=["?",":"].map((function(t){var n=e.find((function(e){return"char"in e&&e.char===t}));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t[0],additionalValueRange:t[1]}}d(),e.__esModule=!0,e.getFlowMapItemAdditionalRanges=t}}),ke=u({"node_modules/yaml-unist-parser/lib/utils/create-slicer.js"(e){function t(e,t){var n=t;return function(t){return e.slice(n,n=t)}}d(),e.__esModule=!0,e.createSlicer=t}}),Le=u({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(e){d(),e.__esModule=!0;var t=ke();function n(e){for(var n=[],r=t.createSlicer(e,1),i=!1,s=1;s<e.length-1;s++){var o=e[s];"char"in o&&","===o.char?(n.push(r(s)),r(s+1),i=!1):i=!0}return i&&n.push(r(e.length-1)),n}e.groupCstFlowCollectionItems=n}}),Oe=u({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=De(),r=H(),i=Y();function s(e,s){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("mappingKey",e)),i.createTrailingCommentAttachable()),n.createEndCommentAttachable()),{children:s?[s]:[]})}e.createMappingKey=s}}),Pe=u({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=De(),i=H();function s(e,s){return t.__assign(t.__assign(t.__assign(t.__assign({},i.createNode("mappingValue",e)),n.createCommentAttachable()),r.createEndCommentAttachable()),{children:s?[s]:[]})}e.createMappingValue=s}}),Ie=u({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(e){d(),e.__esModule=!0;var t=Oe(),n=Pe(),r=ye();function i(e,i,s,o,a){var u=i.transformNode(e.key),l=i.transformNode(e.value),c=u||o?t.createMappingKey(i.transformRange({origStart:o?o.origStart:u.position.start.offset,origEnd:u?u.position.end.offset:o.origStart+1}),u):null,p=l||a?n.createMappingValue(i.transformRange({origStart:a?a.origStart:l.position.start.offset,origEnd:l?l.position.end.offset:a.origStart+1}),l):null;return s(r.createPosition(c?c.position.start:p.position.start,p?p.position.end:c.position.end),c||t.createMappingKey(r.createEmptyPosition(p.position.start),null),p||n.createMappingValue(r.createEmptyPosition(c.position.end),null))}e.transformAstPair=i}}),Be=u({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(e){d(),e.__esModule=!0;var t=Fe(),n=Te(),r=Ne(),i=_e(),s=be(),o=Le(),a=Ie();function u(e,u){var l=r.extractComments(e.cstNode.items,u),c=o.groupCstFlowCollectionItems(l),p=e.items.map((function(e,t){var r=c[t],s=i.getFlowMapItemAdditionalRanges(r),o=s.additionalKeyRange,l=s.additionalValueRange;return a.transformAstPair(e,u,n.createFlowMappingItem,o,l)})),d=l[0],f=s.getLast(l);return t.createFlowMapping(u.transformRange({origStart:d.origOffset,origEnd:f.origOffset+1}),u.transformContent(e),p)}e.transformFlowMap=u}}),Me=u({"node_modules/yaml-unist-parser/lib/factories/flow-sequence.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=we();function r(e,r,i){return t.__assign(t.__assign({},n.createFlowCollection(e,r,i)),{type:"flowSequence"})}e.createFlowSequence=r}}),je=u({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=H();function r(e,r){return t.__assign(t.__assign({},n.createNode("flowSequenceItem",e)),{children:[r]})}e.createFlowSequenceItem=r}}),Re=u({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(e){d(),e.__esModule=!0;var t=Te(),n=Me(),r=je(),i=ye(),s=Ne(),o=_e(),a=be(),u=Le(),l=Ie();function c(e,c){var p=s.extractComments(e.cstNode.items,c),d=u.groupCstFlowCollectionItems(p),f=e.items.map((function(e,n){if("PAIR"!==e.type){var s=c.transformNode(e);return r.createFlowSequenceItem(i.createPosition(s.position.start,s.position.end),s)}var a=d[n],u=o.getFlowMapItemAdditionalRanges(a),p=u.additionalKeyRange,f=u.additionalValueRange;return l.transformAstPair(e,c,t.createFlowMappingItem,p,f)})),h=p[0],m=a.getLast(p);return n.createFlowSequence(c.transformRange({origStart:h.origOffset,origEnd:m.origOffset+1}),c.transformContent(e),f)}e.transformFlowSeq=c}}),Ve=u({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=z(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("mapping",e)),n.createLeadingCommentAttachable()),i),{children:s})}e.createMapping=i}}),qe=u({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=z(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign({},r.createNode("mappingItem",e)),n.createLeadingCommentAttachable()),{children:[i,s]})}e.createMappingItem=i}}),Ue=u({"node_modules/yaml-unist-parser/lib/transforms/map.js"(e){d(),e.__esModule=!0;var t=Ve(),n=qe(),r=ye(),i=ke(),s=Ne(),o=he(),a=be(),u=Ie();function l(e,i){var l=e.cstNode;l.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return o.extractPropComments(e,i)}));var p=c(s.extractComments(l.items,i)),d=e.items.map((function(e,t){var r=p[t],s="MAP_VALUE"===r[0].type?[null,r[0].range]:[r[0].range,1===r.length?null:r[1].range],o=s[0],a=s[1];return u.transformAstPair(e,i,n.createMappingItem,o,a)}));return t.createMapping(r.createPosition(d[0].position.start,a.getLast(d).position.end),i.transformContent(e),d)}function c(e){for(var t=[],n=i.createSlicer(e,0),r=!1,s=0;s<e.length;s++)"MAP_VALUE"!==e[s].type?(r&&t.push(n(s)),r=!0):(t.push(n(s+1)),r=!1);return r&&t.push(n(1/0)),t}e.transformMap=l}}),We=u({"node_modules/yaml-unist-parser/lib/factories/plain.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("plain",e)),n.createCommentAttachable()),i),{value:s})}e.createPlain=i}}),Ke=u({"node_modules/yaml-unist-parser/lib/utils/find-last-char-index.js"(e){function t(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}d(),e.__esModule=!0,e.findLastCharIndex=t}}),$e=u({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(e){d(),e.__esModule=!0;var t=We(),n=Ke();function r(e,r){var i=e.cstNode;return t.createPlain(r.transformRange({origStart:i.valueRange.origStart,origEnd:n.findLastCharIndex(r.text,i.valueRange.origEnd-1,/\S/)+1}),r.transformContent(e),i.strValue)}e.transformPlain=r}}),He=u({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(e){d(),e.__esModule=!0;var t=(q(),p(g));function n(e){return t.__assign(t.__assign({},e),{type:"quoteDouble"})}e.createQuoteDouble=n}}),Je=u({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=H();function i(e,i,s){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("quoteValue",e)),i),n.createCommentAttachable()),{value:s})}e.createQuoteValue=i}}),Ge=u({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(e){d(),e.__esModule=!0;var t=Je();function n(e,n){var r=e.cstNode;return t.createQuoteValue(n.transformRange(r.valueRange),n.transformContent(e),r.strValue)}e.transformAstQuoteValue=n}}),ze=u({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(e){d(),e.__esModule=!0;var t=He(),n=Ge();function r(e,r){return t.createQuoteDouble(n.transformAstQuoteValue(e,r))}e.transformQuoteDouble=r}}),Ye=u({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(e){d(),e.__esModule=!0;var t=(q(),p(g));function n(e){return t.__assign(t.__assign({},e),{type:"quoteSingle"})}e.createQuoteSingle=n}}),Qe=u({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(e){d(),e.__esModule=!0;var t=Ye(),n=Ge();function r(e,r){return t.createQuoteSingle(n.transformAstQuoteValue(e,r))}e.transformQuoteSingle=r}}),Xe=u({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=De(),r=z(),i=H();function s(e,s,o){return t.__assign(t.__assign(t.__assign(t.__assign(t.__assign({},i.createNode("sequence",e)),r.createLeadingCommentAttachable()),n.createEndCommentAttachable()),s),{children:o})}e.createSequence=s}}),Ze=u({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(e){d(),e.__esModule=!0;var t=(q(),p(g)),n=Q(),r=De(),i=H();function s(e,s){return t.__assign(t.__assign(t.__assign(t.__assign({},i.createNode("sequenceItem",e)),n.createCommentAttachable()),r.createEndCommentAttachable()),{children:s?[s]:[]})}e.createSequenceItem=s}}),et=u({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(e){d(),e.__esModule=!0;var t=ye(),n=Xe(),r=Ze(),i=Ne(),s=he(),o=be();function a(e,a){var u=i.extractComments(e.cstNode.items,a).map((function(n,i){s.extractPropComments(n,a);var o=a.transformNode(e.items[i]);return r.createSequenceItem(t.createPosition(a.transformOffset(n.valueRange.origStart),null===o?a.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return n.createSequence(t.createPosition(u[0].position.start,o.getLast(u).position.end),a.transformContent(e),u)}e.transformSeq=a}}),tt=u({"node_modules/yaml-unist-parser/lib/transform.js"(e){d(),e.__esModule=!0;var t=Z(),n=le(),r=pe(),i=de(),s=me(),o=xe(),a=Be(),u=Re(),l=Ue(),c=$e(),p=ze(),f=Qe(),h=et();function m(e,d){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return t.transformAlias(e,d);case"BLOCK_FOLDED":return n.transformBlockFolded(e,d);case"BLOCK_LITERAL":return r.transformBlockLiteral(e,d);case"COMMENT":return i.transformComment(e,d);case"DIRECTIVE":return s.transformDirective(e,d);case"DOCUMENT":return o.transformDocument(e,d);case"FLOW_MAP":return a.transformFlowMap(e,d);case"FLOW_SEQ":return u.transformFlowSeq(e,d);case"MAP":return l.transformMap(e,d);case"PLAIN":return c.transformPlain(e,d);case"QUOTE_DOUBLE":return p.transformQuoteDouble(e,d);case"QUOTE_SINGLE":return f.transformQuoteSingle(e,d);case"SEQ":return h.transformSeq(e,d);default:throw new Error("Unexpected node type "+e.type)}}e.transformNode=m}}),nt=u({"node_modules/yaml-unist-parser/lib/factories/error.js"(e){function t(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}d(),e.__esModule=!0,e.createError=t}}),rt=u({"node_modules/yaml-unist-parser/lib/transforms/error.js"(e){d(),e.__esModule=!0;var t=nt();function n(e,n){var r=e.source.range||e.source.valueRange;return t.createError(e.message,n.text,n.transformRange(r))}e.transformError=n}}),it=u({"node_modules/yaml-unist-parser/lib/factories/point.js"(e){function t(e,t,n){return{offset:e,line:t,column:n}}d(),e.__esModule=!0,e.createPoint=t}}),st=u({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(e){d(),e.__esModule=!0;var t=it();function n(e,n){e<0?e=0:e>n.text.length&&(e=n.text.length);var r=n.locator.locationForIndex(e);return t.createPoint(e,r.line+1,r.column+1)}e.transformOffset=n}}),ot=u({"node_modules/yaml-unist-parser/lib/transforms/range.js"(e){d(),e.__esModule=!0;var t=ye();function n(e,n){return t.createPosition(n.transformOffset(e.origStart),n.transformOffset(e.origEnd))}e.transformRange=n}}),at=u({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(e){d(),e.__esModule=!0;var t=!0;function n(e){if(!e.setOrigRanges()){var n=function(e){return i(e)?(e.origStart=e.start,e.origEnd=e.end,t):s(e)?(e.origOffset=e.offset,t):void 0};e.forEach((function(e){return r(e,n)}))}}function r(e,n){if(e&&"object"==typeof e&&n(e)!==t)for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];if("context"!==o&&"error"!==o){var a=e[o];Array.isArray(a)?a.forEach((function(e){return r(e,n)})):r(a,n)}}}function i(e){return"number"==typeof e.start}function s(e){return"number"==typeof e.offset}e.addOrigRange=n}}),ut=u({"node_modules/yaml-unist-parser/lib/utils/remove-fake-nodes.js"(e){function t(e){if("children"in e){if(1===e.children.length){var n=e.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return e.children.splice(0,1),e}e.children.forEach(t)}return e}d(),e.__esModule=!0,e.removeFakeNodes=t}}),lt=u({"node_modules/yaml-unist-parser/lib/utils/create-updater.js"(e){function t(e,t,n,r){var i=t(e);return function(t){r(i,t)&&n(e,i=t)}}d(),e.__esModule=!0,e.createUpdater=t}}),ct=u({"node_modules/yaml-unist-parser/lib/utils/update-positions.js"(e){d(),e.__esModule=!0;var t=lt(),n=be();function r(e){if(null!==e&&"children"in e){var c=e.children;if(c.forEach(r),"document"===e.type){var p=e.children,d=p[0],f=p[1];d.position.start.offset===d.position.end.offset?d.position.start=d.position.end=f.position.start:f.position.start.offset===f.position.end.offset&&(f.position.start=f.position.end=d.position.end)}var h=t.createUpdater(e.position,i,s,u),m=t.createUpdater(e.position,o,a,l);"endComments"in e&&0!==e.endComments.length&&(h(e.endComments[0].position.start),m(n.getLast(e.endComments).position.end));var g=c.filter((function(e){return null!==e}));if(0!==g.length){var y=g[0],D=n.getLast(g);h(y.position.start),m(D.position.end),"leadingComments"in y&&0!==y.leadingComments.length&&h(y.leadingComments[0].position.start),"tag"in y&&y.tag&&h(y.tag.position.start),"anchor"in y&&y.anchor&&h(y.anchor.position.start),"trailingComment"in D&&D.trailingComment&&m(D.trailingComment.position.end)}}}function i(e){return e.start}function s(e,t){e.start=t}function o(e){return e.end}function a(e,t){e.end=t}function u(e,t){return t.offset<e.offset}function l(e,t){return t.offset>e.offset}e.updatePositions=r}}),pt=u({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(e){d();var t={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},n={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="tag:yaml.org,2002:",i={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function s(e){let t=[0],n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function o(e){let t,n;return"string"==typeof e?(t=s(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=s(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function a(e,t){if("number"!=typeof e||e<0)return null;let{lineStarts:n,src:r}=o(t);if(!n||!r||e>r.length)return null;for(let s=0;s<n.length;++s){let t=n[s];if(e<t)return{line:s,col:e-n[s-1]+1};if(e===t)return{line:s+1,col:1}}let i=n.length;return{line:i,col:e-n[i-1]+1}}function u(e,t){let{lineStarts:n,src:r}=o(t);if(!n||!(e>=1)||e>n.length)return null;let i=n[e-1],s=n[e];for(;s&&s>i&&"\n"===r[s-1];)--s;return r.slice(i,s)}function l(e,t){let{start:n,end:r}=e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,s=u(n.line,t);if(!s)return null;let{col:o}=n;if(s.length>i)if(o<=i-10)s=s.substr(0,i-1)+"\u2026";else{let e=Math.round(i/2);s.length>o+e&&(s=s.substr(0,o+e-1)+"\u2026"),o-=s.length-i,s="\u2026"+s.substr(1-i)}let a=1,l="";r&&(r.line===n.line&&o+(r.col-n.col)<=i+1?a=r.col-n.col:(a=Math.min(s.length+1,i)-o,l="\u2026"));let c=o>1?" ".repeat(o-1):"",p="^".repeat(a);return"".concat(s,"\n").concat(c).concat(p).concat(l)}var c=class{static copy(e){return new c(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){let{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;let s=i;for(;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,s}},p=class{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;let r=p.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,n,r){let i=e[n];if(!i)return!0;let s=e[n-1];if(s&&"\n"!==s)return!1;if(r){if(i!==r)return!1}else if(i!==t.DIRECTIVES_END&&i!==t.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==i||a!==i)return!1;let u=e[n+3];return!u||"\n"===u||"\t"===u||" "===u}static endOfIdentifier(e,t){let n=e[t],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){let r=p.endOfIndent(e,n);if(r>n+t)return r;{let t=p.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){let 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){let n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:p.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,i=!1,s="",o=e[t+1];for(;" "===o||"\t"===o||"\n"===o;){switch(o){case"\n":r=0,t+=1,s+="\n";break;case"\t":r<=n&&(i=!0),t=p.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}o=e[t+1]}return s||(s=" "),o&&r<=n&&(i=!0),{fold:s,offset:t,error:i}}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;let{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;e<this.props.length;++e){let n=this.getPropValue(e,t.ANCHOR,!0);if(null!=n)return n}return null}get comment(){let e=[];for(let n=0;n<this.props.length;++n){let r=this.getPropValue(n,t.COMMENT,!0);null!=r&&e.push(r)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){let{src:t}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:n}=this.valueRange;return e!==n||p.atBlank(t,n-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]===t.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]!==t.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=a(this.range.start,this.context.root);return e?{start:e,end:a(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.TAG,!1);if(null!=n){if("<"===n[1])return{verbatim:n.slice(2,-1)};{let[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(e){let{src:n}=this.context;if(n[e]===t.COMMENT){let t=p.endOfLine(n,e+1),r=new c(e,t);return this.props.push(r),t}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){let{context:{src:e},range:t,value:n}=this;if(null!=n)return n;let r=e.slice(t.start,t.end);return p.addStringTerminator(e,t.end,r)}},f=class extends Error{constructor(e,t,n){if(!n||!(t instanceof p))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new c(this.offset,this.offset+1);let t=e&&a(this.offset,e);if(t){let 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){let{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);let r=e&&l(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}},h=class extends f{constructor(e,t){super("YAMLReferenceError",e,t)}},m=class extends f{constructor(e,t){super("YAMLSemanticError",e,t)}},g=class extends f{constructor(e,t){super("YAMLSyntaxError",e,t)}},y=class extends f{constructor(e,t){super("YAMLWarning",e,t)}};function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=class extends p{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){let t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t)||(" "===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,{src:n}=this.context,r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let i="";for(let o=e;o<t;++o){let e=n[o];if("\n"===e){let{fold:e,offset:t}=p.foldNewline(n,o,-1);i+=e,o=t}else if(" "===e||"\t"===e){let r=o,s=n[o+1];for(;o<t&&(" "===s||"\t"===s);)o+=1,s=n[o+1];"\n"!==s&&(i+=o>r?n.slice(r,o+1):e)}else i+=e}let s=n[e];switch(s){case"\t":return{errors:[new m(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":{let e="Plain value cannot start with reserved character ".concat(s);return{errors:[new m(this,e)],str:i}}default:return i}}parseBlockValue(e){let{indent:t,inFlow:n,src:r}=this.context,i=e,s=e;for(let o=r[i];"\n"===o&&!p.atDocumentBoundary(r,i+1);o=r[i]){let e=p.endOfBlockIndent(r,t,i+1);if(null===e||"#"===r[e])break;"\n"===r[e]?i=e:(s=v.endOfLine(r,e,n),i=s)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}parse(e,t){this.context=e;let{inFlow:n,src:r}=e,i=t,s=r[i];return s&&"#"!==s&&"\n"!==s&&(i=v.endOfLine(r,t,n)),this.valueRange=new c(t,i),i=p.endOfWhiteSpace(r,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};e.Char=t,e.Node=p,e.PlainValue=v,e.Range=c,e.Type=n,e.YAMLError=f,e.YAMLReferenceError=h,e.YAMLSemanticError=m,e.YAMLSyntaxError=g,e.YAMLWarning=y,e._defineProperty=D,e.defaultTagPrefix=r,e.defaultTags=i}}),dt=u({"node_modules/yaml/dist/parse-cst.js"(e){d();var t=pt(),n=class extends t.Node{constructor(){super(t.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new t.Range(n,n+1),n+1}},r=class extends t.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,r){this.context=e;let{parseNode:i,src:s}=e,{atLineStart:o,lineStart:a}=e;!o&&this.type===t.Type.SEQ_ITEM&&(this.error=new t.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let u=o?r-a:e.indent,l=t.Node.endOfWhiteSpace(s,r+1),c=s[l],p="#"===c,d=[],f=null;for(;"\n"===c||"#"===c;){if("#"===c){let e=t.Node.endOfLine(s,l+1);d.push(new t.Range(l,e)),l=e}else o=!0,a=l+1,"\n"===s[t.Node.endOfWhiteSpace(s,a)]&&0===d.length&&(f=new n,a=f.parse({src:s},a)),l=t.Node.endOfIndent(s,a);c=s[l]}if(t.Node.nextNodeIsIndented(c,l-(a+u),this.type!==t.Type.SEQ_ITEM)?this.node=i({atLineStart:o,inCollection:!1,indent:u,lineStart:a,parent:this},l):c&&a>r+1&&(l=a-1),this.node){if(f){let t=e.parent.items||e.parent.contents;t&&t.push(f)}d.length&&Array.prototype.push.apply(this.props,d),l=this.node.range.end}else if(p){let e=d[0];this.props.push(e),l=e.end}else l=t.Node.endOfLine(s,r+1);let h=this.node?this.node.valueRange.end:l;return this.valueRange=new t.Range(r,h),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){let{context:{src:e},node:n,range:r,value:i}=this;if(null!=i)return i;let s=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return t.Node.addStringTerminator(e,r.end,s)}},i=class extends t.Node{constructor(){super(t.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new t.Range(n,r),r}};function s(e){let n=e;for(;n instanceof r;)n=n.node;if(!(n instanceof o))return null;let i=n.items.length,s=-1;for(let r=i-1;r>=0;--r){let e=n.items[r];if(e.type===t.Type.COMMENT){let{indent:t,lineStart:n}=e.context;if(t>0&&e.range.start>=n+t)break;s=r}else{if(e.type!==t.Type.BLANK_LINE)break;s=r}}if(-1===s)return null;let a=n.items.splice(s,i-s),u=a[0].range.start;for(;n.range.end=u,n.valueRange&&n.valueRange.end>u&&(n.valueRange.end=u),n!==e;)n=n.context.parent;return a}var o=class extends t.Node{static nextContentHasIndent(e,n,r){let i=t.Node.endOfLine(e,n)+1,s=e[n=t.Node.endOfWhiteSpace(e,i)];return!!s&&(n>=i+r||("#"===s||"\n"===s)&&o.nextContentHasIndent(e,n,r))}constructor(e){super(e.type===t.Type.SEQ_ITEM?t.Type.SEQ:t.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);let n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];let n=s(e);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(e,r){this.context=e;let{parseNode:a,src:u}=e,l=t.Node.startOfLine(u,r),c=this.items[0];c.context.parent=this,this.valueRange=t.Range.copy(c.valueRange);let p=c.range.start-c.context.lineStart,d=r;d=t.Node.normalizeOffset(u,d);let f=u[d],h=t.Node.endOfWhiteSpace(u,l)===d,m=!1;for(;f;){for(;"\n"===f||"#"===f;){if(h&&"\n"===f&&!m){let e=new n;if(d=e.parse({src:u},d),this.valueRange.end=d,d>=u.length){f=null;break}this.items.push(e),d-=1}else if("#"===f){if(d<l+p&&!o.nextContentHasIndent(u,d,p))return d;let e=new i;if(d=e.parse({indent:p,lineStart:l,src:u},d),this.items.push(e),this.valueRange.end=d,d>=u.length){f=null;break}}if(l=d+1,d=t.Node.endOfIndent(u,l),t.Node.atBlank(u,d)){let e=t.Node.endOfWhiteSpace(u,d),n=u[e];(!n||"\n"===n||"#"===n)&&(d=e)}f=u[d],h=!0}if(!f)break;if(d!==l+p&&(h||":"!==f)){if(d<l+p){l>r&&(d=l);break}if(!this.error){let e="All collection items must start at the same column";this.error=new t.YAMLSyntaxError(this,e)}}if(c.type===t.Type.SEQ_ITEM){if("-"!==f){l>r&&(d=l);break}}else if("-"===f&&!this.error){let e=u[d+1];if(!e||"\n"===e||"\t"===e||" "===e){let e="A collection cannot be both a mapping and a sequence";this.error=new t.YAMLSyntaxError(this,e)}}let e=a({atLineStart:h,inCollection:!0,indent:p,lineStart:l,parent:this},d);if(!e)return d;if(this.items.push(e),this.valueRange.end=e.valueRange.end,d=t.Node.normalizeOffset(u,e.range.end),f=u[d],h=!1,m=e.includesTrailingLines,f){let e=d-1,t=u[e];for(;" "===t||"\t"===t;)t=u[--e];"\n"===t&&(l=e+1,h=!0)}let g=s(e);g&&Array.prototype.push.apply(this.items,g)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(null!=i)return i;let s=e.slice(r.start,n[0].range.start)+String(n[0]);for(let t=1;t<n.length;++t){let e=n[t],{atLineStart:r,indent:i}=e.context;if(r)for(let t=0;t<i;++t)s+=" ";s+=String(e)}return t.Node.addStringTerminator(e,r.end,s)}},a=class extends t.Node{constructor(){super(t.Type.DIRECTIVE),this.name=null}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:t}=this.context,n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){let{src:n}=this.context,r=e,i=n[r];for(;i&&"\n"!==i&&"#"!==i;)i=n[r+=1];return this.valueRange=new t.Range(e,r),r}parse(e,n){this.context=e;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new t.Range(n,r),r}},u=class extends t.Node{static startCommentOrEndBlankLine(e,n){let r=t.Node.endOfWhiteSpace(e,n),i=e[r];return"#"===i||"\n"===i?r:n}constructor(){super(t.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){let{src:r}=this.context;this.directives=[];let s=!0,o=!1,l=e;for(;!t.Node.atDocumentBoundary(r,l,t.Char.DIRECTIVES_END);)switch(l=u.startCommentOrEndBlankLine(r,l),r[l]){case"\n":if(s){let e=new n;l=e.parse({src:r},l),l<r.length&&this.directives.push(e)}else l+=1,s=!0;break;case"#":{let e=new i;l=e.parse({src:r},l),this.directives.push(e),s=!1}break;case"%":{let e=new a;l=e.parse({parent:this,src:r},l),this.directives.push(e),o=!0,s=!1}break;default:return o?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return r[l]?(this.directivesEndMarker=new t.Range(l,l+3),l+3):(o?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){let{parseNode:r,src:o}=this.context;this.contents||(this.contents=[]);let a=e;for(;"-"===o[a-1];)a-=1;let l=t.Node.endOfWhiteSpace(o,e),c=a===e;for(this.valueRange=new t.Range(l);!t.Node.atDocumentBoundary(o,l,t.Char.DOCUMENT_END);){switch(o[l]){case"\n":if(c){let e=new n;l=e.parse({src:o},l),l<o.length&&this.contents.push(e)}else l+=1,c=!0;a=l;break;case"#":{let e=new i;l=e.parse({src:o},l),this.contents.push(e),c=!1}break;default:{let e=t.Node.endOfIndent(o,l),n=r({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:a,parent:this},e);if(!n)return this.valueRange.end=e;this.contents.push(n),l=n.range.end,c=!1;let i=s(n);i&&Array.prototype.push.apply(this.contents,i)}}l=u.startCommentOrEndBlankLine(o,l)}if(this.valueRange.end=l,o[l]&&(this.documentEndMarker=new t.Range(l,l+3),l+=3,o[l])){if(l=t.Node.endOfWhiteSpace(o,l),"#"===o[l]){let e=new i;l=e.parse({src:o},l),this.contents.push(e)}switch(o[l]){case"\n":l+=1;break;case void 0:break;default:this.error=new t.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return l}parse(e,t){e.root=this,this.context=e;let{src:n}=e,r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{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(){let{contents:e,directives:n,value:r}=this;if(null!=r)return r;let i=n.join("");return e.length>0&&((n.length>0||e[0].type===t.Type.COMMENT)&&(i+="---\n"),i+=e.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}},l=class extends t.Node{parse(e,n){this.context=e;let{src:r}=e,i=t.Node.endOfIdentifier(r,n+1);return this.valueRange=new t.Range(n+1,i),i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}},c={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},p=class extends t.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=c.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===c.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return"";let s=null,o=i[n-1];for(;"\n"===o||"\t"===o||" "===o;){if(n-=1,n<=e){if(this.chomping===c.KEEP)break;return""}"\n"===o&&(s=n),o=i[n-1]}let a=n+1;s&&(this.chomping===c.KEEP?(a=s,n=this.valueRange.end):n=s);let u=r+this.blockIndent,l=this.type===t.Type.BLOCK_FOLDED,p=!0,d="",f="",h=!1;for(let c=e;c<n;++c){for(let t=0;t<u&&" "===i[c];++t)c+=1;let e=i[c];if("\n"===e)"\n"===f?d+="\n":f="\n";else{let r=t.Node.endOfLine(i,c),s=i.slice(c,r);c=r,l&&(" "===e||"\t"===e)&&c<a?(" "===f?f="\n":!h&&!p&&"\n"===f&&(f="\n\n"),d+=f+s,f=r<n&&i[r]||"",h=!0):(d+=f+s,f=l&&c<a?" ":"\n",h=!1),p&&""!==s&&(p=!1)}}return this.chomping===c.STRIP?d:d+"\n"}parseBlockHeader(e){let{src:n}=this.context,r=e+1,i="";for(;;){let s=n[r];switch(s){case"-":this.chomping=c.STRIP;break;case"+":this.chomping=c.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=s;break;default:return this.blockIndent=Number(i)||null,this.header=new t.Range(e,r),r}r+=1}}parseBlockValue(e){let{indent:n,src:r}=this.context,i=!!this.blockIndent,s=e,o=e,a=1;for(let u=r[s];"\n"===u&&(s+=1,!t.Node.atDocumentBoundary(r,s));u=r[s]){let e=t.Node.endOfBlockIndent(r,n,s);if(null===e)break;let u=r[e],l=e-(s+n);if(this.blockIndent){if(u&&"\n"!==u&&l<this.blockIndent){if("#"===r[e])break;if(!this.error){let e="Block scalars must not be less indented than their ".concat(i?"explicit indentation indicator":"first line");this.error=new t.YAMLSemanticError(this,e)}}}else if("\n"!==r[e]){if(l<a){let e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new t.YAMLSemanticError(this,e)}this.blockIndent=l}else l>a&&(a=l);s="\n"===r[e]?e:o=t.Node.endOfLine(r,e)}return this.chomping!==c.KEEP&&(s=r[o]?o+1:o),this.valueRange=new t.Range(e+1,s),s}parse(e,n){this.context=e;let{src:r}=e,i=this.parseBlockHeader(n);return i=t.Node.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}},f=class extends t.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,n=this.items[e-1];return!!n&&(n.jsonLike||n.type===t.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,r){this.context=e;let{parseNode:s,src:o}=e,{indent:a,lineStart:u}=e,l=o[r];this.items=[{char:l,offset:r}];let c=t.Node.endOfWhiteSpace(o,r+1);for(l=o[c];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(u=c+1,"\n"===o[t.Node.endOfWhiteSpace(o,u)]){let e=new n;u=e.parse({src:o},u),this.items.push(e)}if(c=t.Node.endOfIndent(o,u),c<=u+a&&(l=o[c],c<u+a||"]"!==l&&"}"!==l)){let e="Insufficient indentation in flow collection";this.error=new t.YAMLSemanticError(this,e)}break;case",":this.items.push({char:l,offset:c}),c+=1;break;case"#":{let e=new i;c=e.parse({src:o},c),this.items.push(e)}break;case"?":case":":{let e=o[c+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===l&&this.prevNodeIsJsonLike()){this.items.push({char:l,offset:c}),c+=1;break}}default:{let e=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:u,parent:this},c);if(!e)return this.valueRange=new t.Range(r,c),c;this.items.push(e),c=t.Node.normalizeOffset(o,e.range.end)}}c=t.Node.endOfWhiteSpace(o,c),l=o[c]}return this.valueRange=new t.Range(r,c+1),l&&(this.items.push({char:l,offset:c}),c=t.Node.endOfWhiteSpace(o,c+1),c=this.parseComment(c)),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach((r=>{if(r instanceof t.Node)n=r.setOrigRanges(e,n);else if(0===e.length)r.origOffset=r.offset;else{let t=n;for(;t<e.length&&!(e[t]>r.offset);)++t;r.origOffset=r.offset+t,n=t}})),n}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(null!=i)return i;let s=n.filter((e=>e instanceof t.Node)),o="",a=r.start;return s.forEach((t=>{let n=e.slice(a,t.range.start);a=t.range.end,o+=n+String(t),"\n"===o[o.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),o+=e.slice(a,r.end),t.Node.addStringTerminator(e,r.end,o)}},h=class extends t.Node{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;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:s}=this.context;'"'!==s[r-1]&&e.push(new t.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;a<r-1;++a){let n=s[a];if("\n"===n){t.Node.atDocumentBoundary(s,a+1)&&e.push(new t.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:n,offset:r,error:u}=t.Node.foldNewline(s,a,i);o+=n,a=r,u&&e.push(new t.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===n)switch(a+=1,s[a]){case"0":o+="\0";break;case"a":o+="\x07";break;case"b":o+="\b";break;case"e":o+="\x1b";break;case"f":o+="\f";break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":case"\t":o+="\t";break;case"v":o+="\v";break;case"N":o+="\x85";break;case"_":o+="\xa0";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case"x":o+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":o+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":o+=this.parseCharCode(a+1,8,e),a+=8;break;case"\n":for(;" "===s[a+1]||"\t"===s[a+1];)a+=1;break;default:e.push(new t.YAMLSyntaxError(this,"Invalid escape sequence ".concat(s.substr(a-1,2)))),o+="\\"+s[a]}else if(" "===n||"\t"===n){let e=a,t=s[a+1];for(;" "===t||"\t"===t;)a+=1,t=s[a+1];"\n"!==t&&(o+=a>e?s.slice(e,a+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:i}=this.context,s=i.substr(e,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;return isNaN(o)?(r.push(new t.YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(e-2,n+2)))),i.substr(e-2,n+2)):String.fromCodePoint(o)}parse(e,n){this.context=e;let{src:r}=e,i=h.endOfQuote(r,n+1);return this.valueRange=new t.Range(n,i),i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}},m=class extends t.Node{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;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:s}=this.context;"'"!==s[r-1]&&e.push(new t.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;a<r-1;++a){let n=s[a];if("\n"===n){t.Node.atDocumentBoundary(s,a+1)&&e.push(new t.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:n,offset:r,error:u}=t.Node.foldNewline(s,a,i);o+=n,a=r,u&&e.push(new t.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===n)o+=n,a+=1,"'"!==s[a]&&e.push(new t.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===n||"\t"===n){let e=a,t=s[a+1];for(;" "===t||"\t"===t;)a+=1,t=s[a+1];"\n"!==t&&(o+=a>e?s.slice(e,a+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,i=m.endOfQuote(r,n+1);return this.valueRange=new t.Range(n,i),i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}};function g(e,n){switch(e){case t.Type.ALIAS:return new l(e,n);case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return new p(e,n);case t.Type.FLOW_MAP:case t.Type.FLOW_SEQ:return new f(e,n);case t.Type.MAP_KEY:case t.Type.MAP_VALUE:case t.Type.SEQ_ITEM:return new r(e,n);case t.Type.COMMENT:case t.Type.PLAIN:return new t.PlainValue(e,n);case t.Type.QUOTE_DOUBLE:return new h(e,n);case t.Type.QUOTE_SINGLE:return new m(e,n);default:return null}}var y=class{static parseType(e,n,r){switch(e[n]){case"*":return t.Type.ALIAS;case">":return t.Type.BLOCK_FOLDED;case"|":return t.Type.BLOCK_LITERAL;case"{":return t.Type.FLOW_MAP;case"[":return t.Type.FLOW_SEQ;case"?":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_KEY:t.Type.PLAIN;case":":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_VALUE:t.Type.PLAIN;case"-":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.SEQ_ITEM:t.Type.PLAIN;case'"':return t.Type.QUOTE_DOUBLE;case"'":return t.Type.QUOTE_SINGLE;default:return t.Type.PLAIN}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{atLineStart:n,inCollection:r,inFlow:i,indent:s,lineStart:a,parent:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t._defineProperty(this,"parseNode",((e,n)=>{if(t.Node.atDocumentBoundary(this.src,n))return null;let r=new y(this,e),{props:i,type:s,valueStart:a}=r.parseProps(n),u=g(s,i),l=u.parse(r,a);if(u.range=new t.Range(n,l),l<=n&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=l,u.error.source=u,u.range.end=n+1),r.nodeStartsCollection(u)){!u.error&&!r.atLineStart&&r.parent.type===t.Type.DOCUMENT&&(u.error=new t.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let e=new o(u);return l=e.parse(new y(r),l),e.range=new t.Range(n,l),e}return u})),this.atLineStart=null!=n?n:e.atLineStart||!1,this.inCollection=null!=r?r:e.inCollection||!1,this.inFlow=null!=i?i:e.inFlow||!1,this.indent=null!=s?s:e.indent,this.lineStart=null!=a?a:e.lineStart,this.parent=null!=u?u:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:i,src:s}=this;if(n||i)return!1;if(e instanceof r)return!0;let o=e.range.end;return"\n"!==s[o]&&"\n"!==s[o-1]&&(o=t.Node.endOfWhiteSpace(s,o),":"===s[o])}parseProps(e){let{inFlow:n,parent:r,src:i}=this,s=[],o=!1,a=i[e=this.atLineStart?t.Node.endOfIndent(i,e):t.Node.endOfWhiteSpace(i,e)];for(;a===t.Char.ANCHOR||a===t.Char.COMMENT||a===t.Char.TAG||"\n"===a;){if("\n"===a){let n,s=e;do{n=s+1,s=t.Node.endOfIndent(i,n)}while("\n"===i[s]);let a=s-(n+this.indent),u=r.type===t.Type.SEQ_ITEM&&r.context.atLineStart;if("#"!==i[s]&&!t.Node.nextNodeIsIndented(i[s],a,!u))break;this.atLineStart=!0,this.lineStart=n,o=!1,e=s}else if(a===t.Char.COMMENT){let n=t.Node.endOfLine(i,e+1);s.push(new t.Range(e,n)),e=n}else{let n=t.Node.endOfIdentifier(i,e+1);a===t.Char.TAG&&","===i[n]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(e+1,n+13))&&(n=t.Node.endOfIdentifier(i,n+5)),s.push(new t.Range(e,n)),o=!0,e=t.Node.endOfWhiteSpace(i,n)}a=i[e]}return o&&":"===a&&t.Node.atBlank(i,e+1,!0)&&(e-=1),{props:s,type:y.parseType(i,e,n),valueStart:e}}};function D(e){let t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));let n=[],r=0;do{let t=new u,i=new y({src:e});r=t.parse(i,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let n=1;n<t.length;++n)t[n]-=n;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n}e.parse=D}}),ft=u({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(e){d();var t=pt();function n(e,t,n){return n?"#".concat(n.replace(/[\s\S]^/gm,"$&".concat(t,"#")),"\n").concat(t).concat(e):e}function r(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}var i=class{};function s(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>s(e,String(t),n)));if(e&&"function"==typeof e.toJSON){let r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});let i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var o=class extends i{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:s(this.value,e,t)}toString(){return String(this.value)}};function a(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){let e=t[i];if(Number.isInteger(e)&&e>=0){let t=[];t[e]=r,r=t}else{let t={};Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=t}}return e.createNode(r,!1)}var u=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done,l=class extends i{constructor(e){super(),t._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(u(e))this.add(t);else{let[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,a(this.schema,r,t))}}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(r instanceof l)return r.deleteIn(n);throw new Error("Expected YAML collection at ".concat(t,". Remaining path: ").concat(n))}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&i instanceof o?i.value:i:i instanceof l?i.getIn(r,t):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;let t=e.value;return null==t||t instanceof o&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return r instanceof l&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(e instanceof l)e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,a(this.schema,r,t))}}}toJSON(){return null}toString(e,n,i,s){let{blockItem:o,flowChars:a,isMap:u,itemIndent:c}=n,{indent:p,indentStep:d,stringify:f}=e,h=this.type===t.Type.FLOW_MAP||this.type===t.Type.FLOW_SEQ||e.inFlow;h&&(c+=d);let m=u&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:m,indent:c,inFlow:h,type:null});let g,y=!1,D=!1,v=this.items.reduce(((t,n,i)=>{let s;n&&(!y&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:"#".concat(e)})})),n.comment&&(s=n.comment),h&&(!y&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(D=!0)),y=!1;let o=f(n,e,(()=>s=null),(()=>y=!0));return h&&!D&&o.includes("\n")&&(D=!0),h&&i<this.items.length-1&&(o+=","),o=r(o,c,s),y&&(s||h)&&(y=!1),t.push({type:"item",str:o}),t}),[]);if(0===v.length)g=a.start+a.end;else if(h){let{start:e,end:t}=a,n=v.map((e=>e.str));if(D||n.reduce(((e,t)=>e+t.length+2),2)>l.maxFlowStringSingleLineLength){g=e;for(let e of n)g+=e?"\n".concat(d).concat(p).concat(e):"\n";g+="\n".concat(p).concat(t)}else g="".concat(e," ").concat(n.join(" ")," ").concat(t)}else{let e=v.map(o);g=e.shift();for(let t of e)g+=t?"\n".concat(p).concat(t):"\n"}return this.comment?(g+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),i&&i()):y&&s&&s(),g}};function c(e){let t=e instanceof o?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}t._defineProperty(l,"maxFlowStringSingleLineLength",60);var p=class extends l{add(e){this.items.push(e)}delete(e){let t=c(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=c(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&r instanceof o?r.value:r}has(e){let t=c(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=c(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}toJSON(e,t){let n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(let i of this.items)n.push(s(i,String(r++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:"- ".concat(e.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}},f=(e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof i&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t),h=class extends i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(),this.key=e,this.value=t,this.type=h.Type.PAIR}get commentBefore(){return this.key instanceof i?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new o(null)),!(this.key instanceof i))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){let n=s(this.key,"",e);if(t instanceof Map){let r=s(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{let r=f(this.key,n,e),i=s(this.value,r,e);r in t?Object.defineProperty(t,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[r]=i}return t}toJSON(e,t){let n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,n,s){if(!e||!e.doc)return JSON.stringify(this);let{indent:a,indentSeq:u,simpleKeys:c}=e.doc.options,{key:d,value:f}=this,h=d instanceof i&&d.comment;if(c){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof l)throw new Error("With simple keys, collection cannot be used as a key value")}let m=!c&&(!d||h||(d instanceof i?d instanceof l||d.type===t.Type.BLOCK_FOLDED||d.type===t.Type.BLOCK_LITERAL:"object"==typeof d)),{doc:g,indent:y,indentStep:D,stringify:v}=e;e=Object.assign({},e,{implicitKey:!m,indent:y+D});let b=!1,E=v(d,e,(()=>h=null),(()=>b=!0));if(E=r(E,e.indent,h),!m&&E.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(e.allNullValues&&!c)return this.comment?(E=r(E,e.indent,this.comment),n&&n()):b&&!h&&s&&s(),e.inFlow&&!m?E:"? ".concat(E);E=m?"? ".concat(E,"\n").concat(y,":"):"".concat(E,":"),this.comment&&(E=r(E,e.indent,this.comment),n&&n());let C="",A=null;if(f instanceof i){if(f.spaceBefore&&(C="\n"),f.commentBefore){let t=f.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));C+="\n".concat(t)}A=f.comment}else f&&"object"==typeof f&&(f=g.schema.createNode(f,!0));e.implicitKey=!1,!m&&!this.comment&&f instanceof o&&(e.indentAtStart=E.length+1),b=!1,!u&&a>=2&&!e.inFlow&&!m&&f instanceof p&&f.type!==t.Type.FLOW_SEQ&&!f.tag&&!g.anchors.getName(f)&&(e.indent=e.indent.substr(2));let S=v(f,e,(()=>A=null),(()=>b=!0)),x=" ";return C||this.comment?x="".concat(C,"\n").concat(e.indent):!m&&f instanceof l?(!("["===S[0]||"{"===S[0])||S.includes("\n"))&&(x="\n".concat(e.indent)):"\n"===S[0]&&(x=""),b&&!A&&s&&s(),r(E+x+S,e.indent,A)}};t._defineProperty(h,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var m=(e,t)=>{if(e instanceof g){let n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof l){let n=0;for(let r of e.items){let e=m(r,t);e>n&&(n=e)}return n}if(e instanceof h){let n=m(e.key,t),r=m(e.value,t);return Math.max(n,r)}return 1},g=class extends i{static stringify(e,t){let{range:n,source:r}=e,{anchors:i,doc:s,implicitKey:o,inStringifyKey:a}=t,u=Object.keys(i).find((e=>i[e]===r));if(!u&&a&&(u=s.anchors.getName(r)||s.anchors.newName()),u)return"*".concat(u).concat(o?" ":"");let l=s.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(l," [").concat(n,"]"))}constructor(e){super(),this.source=e,this.type=t.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return s(this.source,e,n);let{anchors:r,maxAliasCount:i}=n,o=r.get(this.source);if(!o||void 0===o.res){let e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=m(this.source,r)),o.count*o.aliasCount>i)){let e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return g.stringify(this,e)}};function y(e,t){let n=t instanceof o?t.value:t;for(let r of e)if(r instanceof h&&(r.key===t||r.key===n||r.key&&r.key.value===n))return r}t._defineProperty(g,"default",!0);var D=class extends l{add(e,t){e?e instanceof h||(e=new h(e.key||e,e.value)):e=new h(e);let n=y(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(r){let t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){let t=y(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=y(this.items,e),r=n&&n.value;return!t&&r instanceof o?r.value:r}has(e){return!!y(this.items,e)}set(e,t){this.add(new h(e,t),!0)}toJSON(e,t,n){let r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(let i of this.items)i.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let r of this.items)if(!(r instanceof h))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(r)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}},v="<<",b=class extends h{constructor(e){if(e instanceof h){let t=e.value;t instanceof p||(t=new p,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new o(v),new p);this.type=h.Type.MERGE_PAIR}addToJSMap(e,t){for(let{source:n}of this.value.items){if(!(n instanceof D))throw new Error("Merge sources must be maps");let r=n.toJSON(null,e,Map);for(let[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){let n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];let r=super.toString(e,t);return this.value=n,r}},E={defaultType:t.Type.BLOCK_LITERAL,lineWidth:76},C={trueStr:"true",falseStr:"false"},A={asBigInt:!1},S={nullStr:"null"},x={defaultType:t.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function w(e,t,n){for(let{format:r,test:i,resolve:s}of t)if(i){let t=e.match(i);if(t){let e=s.apply(null,t);return e instanceof o||(e=new o(e)),r&&(e.format=r),e}}return n&&(e=n(e)),new o(e)}var F="flow",T="block",N="quoted",_=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function k(e,t,n,r){let{indentAtStart:i,lineWidth:s=80,minContentWidth:o=20,onFold:a,onOverflow:u}=r;if(!s||s<0)return e;let l=Math.max(1+o,1+s-t.length);if(e.length<=l)return e;let c=[],p={},d=s-t.length;"number"==typeof i&&(i>s-Math.max(2,o)?c.push(0):d=s-i);let f,h,m=!1,g=-1,y=-1,D=-1;n===T&&(g=_(e,g),-1!==g&&(d=g+l));for(let b;b=e[g+=1];){if(n===N&&"\\"===b){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}D=g}if("\n"===b)n===T&&(g=_(e,g)),d=g+l,f=void 0;else{if(" "===b&&h&&" "!==h&&"\n"!==h&&"\t"!==h){let t=e[g+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=g)}if(g>=d)if(f)c.push(f),d=f+l,f=void 0;else if(n===N){for(;" "===h||"\t"===h;)h=b,b=e[g+=1],m=!0;let t=g>D+1?g-2:y-1;if(p[t])return e;c.push(t),p[t]=!0,d=t+l,f=void 0}else m=!0}h=b}if(m&&u&&u(),0===c.length)return e;a&&a();let v=e.slice(0,c[0]);for(let b=0;b<c.length;++b){let r=c[b],i=c[b+1]||e.length;0===r?v="\n".concat(t).concat(e.slice(0,i)):(n===N&&p[r]&&(v+="".concat(e[r],"\\")),v+="\n".concat(t).concat(e.slice(r+1,i)))}return v}var L=e=>{let{indentAtStart:t}=e;return t?Object.assign({indentAtStart:t},x.fold):x.fold},O=e=>/^(%|---|\.\.\.)/m.test(e);function P(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if("\n"===e[s]){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}function I(e,t){let{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=x.doubleQuoted,s=JSON.stringify(e);if(r)return s;let o=t.indent||(O(e)?" ":""),a="",u=0;for(let l=0,c=s[l];c;c=s[++l])if(" "===c&&"\\"===s[l+1]&&"n"===s[l+2]&&(a+=s.slice(u,l)+"\\ ",l+=1,u=l,c="\\"),"\\"===c)switch(s[l+1]){case"u":{a+=s.slice(u,l);let e=s.substr(l+2,4);switch(e){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===e.substr(0,2)?a+="\\x"+e.substr(2):a+=s.substr(l,6)}l+=5,u=l+1}break;case"n":if(n||'"'===s[l+2]||s.length<i)l+=1;else{for(a+=s.slice(u,l)+"\n\n";"\\"===s[l+2]&&"n"===s[l+3]&&'"'!==s[l+4];)a+="\n",l+=2;a+=o," "===s[l+2]&&(a+="\\"),l+=1,u=l+1}break;default:l+=1}return a=u?a+s.slice(u):s,n?a:k(a,o,N,L(t))}function B(e,t){if(t.implicitKey){if(/\n/.test(e))return I(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return I(e,t);let n=t.indent||(O(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:k(r,n,F,L(t))}function M(e,n,r,i){let{comment:s,type:o,value:a}=e;if(/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return I(a,n);let u=n.indent||(n.forceBlockIndent||O(a)?" ":""),l=u?"2":"1",c=o!==t.Type.BLOCK_FOLDED&&(o===t.Type.BLOCK_LITERAL||!P(a,x.fold.lineWidth,u.length)),p=c?"|":">";if(!a)return p+"\n";let d="",f="";if(a=a.replace(/[\n\t ]*$/,(e=>{let t=e.indexOf("\n");return-1===t?p+="-":(a===e||t!==e.length-1)&&(p+="+",i&&i()),f=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(p+=l);let t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),f&&(f=f.replace(/\n+(?!\n|$)/g,"$&".concat(u))),d&&(d=d.replace(/\n+/g,"$&".concat(u))),s&&(p+=" #"+s.replace(/ ?[\r\n]+/g," "),r&&r()),!a)return"".concat(p).concat(l,"\n").concat(u).concat(f);if(c)return a=a.replace(/\n+/g,"$&".concat(u)),"".concat(p,"\n").concat(u).concat(d).concat(a).concat(f);a=a.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(u));let h=k("".concat(d).concat(a).concat(f),u,T,x.fold);return"".concat(p,"\n").concat(u).concat(h)}function j(e,r,i,s){let{comment:o,type:a,value:u}=e,{actualString:l,implicitKey:c,indent:p,inFlow:d}=r;if(c&&/[\n[\]{},]/.test(u)||d&&/[[\]{},]/.test(u))return I(u,r);if(!u||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return c||d||-1===u.indexOf("\n")?-1!==u.indexOf('"')&&-1===u.indexOf("'")?B(u,r):I(u,r):M(e,r,i,s);if(!c&&!d&&a!==t.Type.PLAIN&&-1!==u.indexOf("\n"))return M(e,r,i,s);if(""===p&&O(u))return r.forceBlockIndent=!0,M(e,r,i,s);let f=u.replace(/\n+/g,"$&\n".concat(p));if(l){let{tags:e}=r.doc.schema;if("string"!=typeof w(f,e,e.scalarFallback).value)return I(u,r)}let h=c?f:k(f,p,F,L(r));return!o||d||-1===h.indexOf("\n")&&-1===o.indexOf("\n")?h:(i&&i(),n(h,p,o))}function R(e,n,r,i){let{defaultType:s}=x,{implicitKey:o,inFlow:a}=n,{type:u,value:l}=e;"string"!=typeof l&&(l=String(l),e=Object.assign({},e,{value:l}));let c=s=>{switch(s){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return M(e,n,r,i);case t.Type.QUOTE_DOUBLE:return I(l,n);case t.Type.QUOTE_SINGLE:return B(l,n);case t.Type.PLAIN:return j(e,n,r,i);default:return null}};(u!==t.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)||(o||a)&&(u===t.Type.BLOCK_FOLDED||u===t.Type.BLOCK_LITERAL))&&(u=t.Type.QUOTE_DOUBLE);let p=c(u);if(null===p&&(p=c(s),null===p))throw new Error("Unsupported default string type ".concat(s));return p}function V(e){let{format:t,minFractionDigits:n,tag:r,value:i}=e;if("bigint"==typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let t=n-(s.length-e-1);for(;t-- >0;)s+="0"}return s}function q(e,n){let r,i,s;switch(n.type){case t.Type.FLOW_MAP:r="}",i="flow map";break;case t.Type.FLOW_SEQ:r="]",i="flow sequence";break;default:return void e.push(new t.YAMLSemanticError(n,"Not a flow collection!?"))}for(let o=n.items.length-1;o>=0;--o){let e=n.items[o];if(!e||e.type!==t.Type.COMMENT){s=e;break}}if(s&&s.char!==r){let o,a="Expected ".concat(i," to end with ").concat(r);"number"==typeof s.offset?(o=new t.YAMLSemanticError(n,a),o.offset=s.offset+1):(o=new t.YAMLSemanticError(s,a),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),e.push(o)}}function U(e,n){let r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}}function W(e,n){let r=String(n),i=r.substr(0,8)+"..."+r.substr(-8);return new t.YAMLSemanticError(e,'The "'.concat(i,'" key is too long'))}function K(e,t){for(let{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)}}function $(e,t){let n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function H(e,n){let{handle:r,suffix:i}=n.tag,s=e.tagPrefixes.find((e=>e.handle===r));if(!s){let i=e.getDefaults().tagPrefixes;if(i&&(s=i.find((e=>e.handle===r))),!s)throw new t.YAMLSemanticError(n,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new t.YAMLSemanticError(n,"The ".concat(r," tag has no suffix."));if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new t.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){let e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(i)}}return s.prefix+decodeURIComponent(i)}function J(e,n){let{tag:r,type:i}=n,s=!1;if(r){let{handle:i,suffix:a,verbatim:u}=r;if(u){if("!"!==u&&"!!"!==u)return u;let r="Verbatim tags aren't resolved, so ".concat(u," is invalid.");e.errors.push(new t.YAMLSemanticError(n,r))}else if("!"!==i||a)try{return H(e,n)}catch(o){e.errors.push(o)}else s=!0}switch(i){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:case t.Type.QUOTE_DOUBLE:case t.Type.QUOTE_SINGLE:return t.defaultTags.STR;case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;case t.Type.PLAIN:return s?t.defaultTags.STR:null;default:return null}}function G(e,t,n){let{tags:r}=e.schema,i=[];for(let a of r)if(a.tag===n){if(!a.test){let n=a.resolve(e,t);return n instanceof l?n:new o(n)}i.push(a)}let s=$(e,t);return"string"==typeof s&&i.length>0?w(s,i,r.scalarFallback):null}function z(e){let{type:n}=e;switch(n){case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;default:return t.defaultTags.STR}}function Y(e,n,r){try{let t=G(e,n,r);if(t)return r&&n.tag&&(t.tag=r),t}catch(i){return i.source||(i.source=n),e.errors.push(i),null}try{let i=z(n);if(!i)throw new Error("The tag ".concat(r," is unavailable"));let s="The tag ".concat(r," is unavailable, falling back to ").concat(i);e.warnings.push(new t.YAMLWarning(n,s));let o=G(e,n,i);return o.tag=r,o}catch(i){let r=new t.YAMLReferenceError(n,i.message);return r.stack=i.stack,e.errors.push(r),null}}var Q=e=>{if(!e)return!1;let{type:n}=e;return n===t.Type.MAP_KEY||n===t.Type.MAP_VALUE||n===t.Type.SEQ_ITEM};function X(e,n){let r={before:[],after:[]},i=!1,s=!1,o=Q(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(let{start:a,end:u}of o)switch(n.context.src[a]){case t.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(a)){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}let{header:i,valueRange:s}=n;(s&&(a>s.start||i&&a>i.start)?r.after:r.before).push(n.context.src.slice(a+1,u));break}case t.Char.ANCHOR:if(i){let r="A node can have at most one anchor";e.push(new t.YAMLSemanticError(n,r))}i=!0;break;case t.Char.TAG:if(s){let r="A node can have at most one tag";e.push(new t.YAMLSemanticError(n,r))}s=!0}return{comments:r,hasAnchor:i,hasTag:s}}function Z(e,n){let{anchors:r,errors:i,schema:s}=e;if(n.type===t.Type.ALIAS){let e=n.rawValue,s=r.getNode(e);if(!s){let r="Aliased anchor not found: ".concat(e);return i.push(new t.YAMLReferenceError(n,r)),null}let o=new g(s);return r._cstAliases.push(o),o}let o=J(e,n);if(o)return Y(e,n,o);if(n.type!==t.Type.PLAIN){let e="Failed to resolve ".concat(n.type," node here");return i.push(new t.YAMLSyntaxError(n,e)),null}try{return w($(e,n),s.tags,s.tags.scalarFallback)}catch(a){return a.source||(a.source=n),i.push(a),null}}function ee(e,n){if(!n)return null;n.error&&e.errors.push(n.error);let{comments:r,hasAnchor:i,hasTag:s}=X(e.errors,n);if(i){let{anchors:t}=e,r=n.anchor,i=t.getNode(r);i&&(t.map[t.newName(r)]=i),t.map[r]=n}if(n.type===t.Type.ALIAS&&(i||s)){let r="An alias node must not specify any properties";e.errors.push(new t.YAMLSemanticError(n,r))}let o=Z(e,n);if(o){o.range=[n.range.start,n.range.end],e.options.keepCstNodes&&(o.cstNode=n),e.options.keepNodeTypes&&(o.type=n.type);let t=r.before.join("\n");t&&(o.commentBefore=o.commentBefore?"".concat(o.commentBefore,"\n").concat(t):t);let i=r.after.join("\n");i&&(o.comment=o.comment?"".concat(o.comment,"\n").concat(i):i)}return n.resolved=o}function te(e,n){if(n.type!==t.Type.MAP&&n.type!==t.Type.FLOW_MAP){let r="A ".concat(n.type," node cannot be resolved as a mapping");return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_MAP?se(e,n):ie(e,n),s=new D;s.items=i,K(s,r);let o=!1;for(let a=0;a<i.length;++a){let{key:r}=i[a];if(r instanceof l&&(o=!0),e.schema.merge&&r&&r.value===v){i[a]=new b(i[a]);let r=i[a].value.items,s=null;r.some((e=>{if(e instanceof g){let{type:n}=e.source;return n!==t.Type.MAP&&n!==t.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&e.errors.push(new t.YAMLSemanticError(n,s))}else for(let s=a+1;s<i.length;++s){let{key:o}=i[s];if(r===o||r&&o&&Object.prototype.hasOwnProperty.call(r,"value")&&r.value===o.value){let i='Map keys must be unique; "'.concat(r,'" is repeated');e.errors.push(new t.YAMLSemanticError(n,i));break}}}if(o&&!e.options.mapAsMap){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=s,s}var ne=e=>{let{context:{lineStart:n,node:r,src:i},props:s}=e;if(0===s.length)return!1;let{start:o}=s[0];if(r&&o>r.valueRange.start||i[o]!==t.Char.COMMENT)return!1;for(let t=n;t<o;++t)if("\n"===i[t])return!1;return!0};function re(e,n){if(!ne(e))return;let r=e.getPropValue(0,t.Char.COMMENT,!0),i=!1,s=n.value.commentBefore;if(s&&s.startsWith(r))n.value.commentBefore=s.substr(r.length+1),i=!0;else{let t=n.value.comment;!e.node&&t&&t.startsWith(r)&&(n.value.comment=t.substr(r.length+1),i=!0)}i&&(n.comment=r)}function ie(e,n){let r,i=[],s=[],o=null;for(let a=0;a<n.items.length;++a){let u=n.items[a];switch(u.type){case t.Type.BLANK_LINE:i.push({afterKey:!!r,before:s.length});break;case t.Type.COMMENT:i.push({afterKey:!!r,before:s.length,comment:u.comment});break;case t.Type.MAP_KEY:void 0!==r&&s.push(new h(r)),u.error&&e.errors.push(u.error),r=ee(e,u.node),o=null;break;case t.Type.MAP_VALUE:{if(void 0===r&&(r=null),u.error&&e.errors.push(u.error),!u.context.atLineStart&&u.node&&u.node.type===t.Type.MAP&&!u.node.context.atLineStart){let n="Nested mappings are not allowed in compact mappings";e.errors.push(new t.YAMLSemanticError(u.node,n))}let i=u.node;if(!i&&u.props.length>0){i=new t.PlainValue(t.Type.PLAIN,[]),i.context={parent:u,src:u.context.src};let e=u.range.start+1;if(i.range={start:e,end:e},i.valueRange={start:e,end:e},"number"==typeof u.range.origStart){let e=u.range.origStart+1;i.range.origStart=i.range.origEnd=e,i.valueRange.origStart=i.valueRange.origEnd=e}}let a=new h(r,ee(e,i));re(u,a),s.push(a),r&&"number"==typeof o&&u.range.start>o+1024&&e.errors.push(W(n,r)),r=void 0,o=null}break;default:void 0!==r&&s.push(new h(r)),r=ee(e,u),o=u.range.start,u.error&&e.errors.push(u.error);e:for(let r=a+1;;++r){let i=n.items[r];switch(i&&i.type){case t.Type.BLANK_LINE:case t.Type.COMMENT:continue e;case t.Type.MAP_VALUE:break e;default:{let n="Implicit map keys need to be followed by map values";e.errors.push(new t.YAMLSemanticError(u,n));break e}}}if(u.valueRangeContainsNewline){let n="Implicit map keys need to be on a single line";e.errors.push(new t.YAMLSemanticError(u,n))}}}return void 0!==r&&s.push(new h(r)),{comments:i,items:s}}function se(e,n){let r,i=[],s=[],o=!1,a="{";for(let u=0;u<n.items.length;++u){let l=n.items[u];if("string"==typeof l.char){let{char:i,offset:c}=l;if("?"===i&&void 0===r&&!o){o=!0,a=":";continue}if(":"===i){if(void 0===r&&(r=null),":"===a){a=",";continue}}else if(o&&(void 0===r&&","!==i&&(r=null),o=!1),void 0!==r&&(s.push(new h(r)),r=void 0,","===i)){a=":";continue}if("}"===i){if(u===n.items.length-1)continue}else if(i===a){a=":";continue}let p="Flow map contains an unexpected ".concat(i),d=new t.YAMLSyntaxError(n,p);d.offset=c,e.errors.push(d)}else l.type===t.Type.BLANK_LINE?i.push({afterKey:!!r,before:s.length}):l.type===t.Type.COMMENT?(U(e.errors,l),i.push({afterKey:!!r,before:s.length,comment:l.comment})):void 0===r?(","===a&&e.errors.push(new t.YAMLSemanticError(l,"Separator , missing in flow map")),r=ee(e,l)):(","!==a&&e.errors.push(new t.YAMLSemanticError(l,"Indicator : missing in flow map entry")),s.push(new h(r,ee(e,l))),r=void 0,o=!1)}return q(e.errors,n),void 0!==r&&s.push(new h(r)),{comments:i,items:s}}function oe(e,n){if(n.type!==t.Type.SEQ&&n.type!==t.Type.FLOW_SEQ){let r="A ".concat(n.type," node cannot be resolved as a sequence");return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_SEQ?ue(e,n):ae(e,n),s=new p;if(s.items=i,K(s,r),!e.options.mapAsMap&&i.some((e=>e instanceof h&&e.key instanceof l))){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=s,s}function ae(e,n){let r=[],i=[];for(let s=0;s<n.items.length;++s){let o=n.items[s];switch(o.type){case t.Type.BLANK_LINE:r.push({before:i.length});break;case t.Type.COMMENT:r.push({comment:o.comment,before:i.length});break;case t.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),i.push(ee(e,o.node)),o.hasProps){let n="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new t.YAMLSemanticError(o,n))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new t.YAMLSyntaxError(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:r,items:i}}function ue(e,n){let r,i=[],s=[],o=!1,a=null,u="[",l=null;for(let c=0;c<n.items.length;++c){let p=n.items[c];if("string"==typeof p.char){let{char:i,offset:d}=p;if(":"!==i&&(o||void 0!==r)&&(o&&void 0===r&&(r=u?s.pop():null),s.push(new h(r)),o=!1,r=void 0,a=null),i===u)u=null;else if(u||"?"!==i){if("["!==u&&":"===i&&void 0===r){if(","===u){if(r=s.pop(),r instanceof h){let r="Chaining flow sequence pairs is invalid",i=new t.YAMLSemanticError(n,r);i.offset=d,e.errors.push(i)}if(!o&&"number"==typeof a){let i=p.range?p.range.start:p.offset;i>a+1024&&e.errors.push(W(n,r));let{src:s}=l.context;for(let n=a;n<i;++n)if("\n"===s[n]){let n="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new t.YAMLSemanticError(l,n));break}}}else r=null;a=null,o=!1,u=null}else if("["===u||"]"!==i||c<n.items.length-1){let r="Flow sequence contains an unexpected ".concat(i),s=new t.YAMLSyntaxError(n,r);s.offset=d,e.errors.push(s)}}else o=!0}else if(p.type===t.Type.BLANK_LINE)i.push({before:s.length});else if(p.type===t.Type.COMMENT)U(e.errors,p),i.push({comment:p.comment,before:s.length});else{if(u){let n="Expected a ".concat(u," in flow sequence");e.errors.push(new t.YAMLSemanticError(p,n))}let n=ee(e,p);void 0===r?(s.push(n),l=p):(s.push(new h(r,n)),r=void 0),a=p.range.start,u=","}}return q(e.errors,n),void 0!==r&&s.push(new h(r)),{comments:i,items:s}}e.Alias=g,e.Collection=l,e.Merge=b,e.Node=i,e.Pair=h,e.Scalar=o,e.YAMLMap=D,e.YAMLSeq=p,e.addComment=r,e.binaryOptions=E,e.boolOptions=C,e.findPair=y,e.intOptions=A,e.isEmptyPath=u,e.nullOptions=S,e.resolveMap=te,e.resolveNode=ee,e.resolveSeq=oe,e.resolveString=$,e.strOptions=x,e.stringifyNumber=V,e.stringifyString=R,e.toJSON=s}}),ht=u({"node_modules/yaml/dist/warnings-1000a372.js"(e){d();var t=pt(),r=ft(),i={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,n)=>{let i=r.resolveString(e,n);if("function"==typeof Buffer)return Buffer.from(i,"base64");if("function"==typeof atob){let e=atob(i.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{let r="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new t.YAMLReferenceError(n,r)),null}},options:r.binaryOptions,stringify:(e,n,i,s)=>{let o,{comment:a,type:u,value:l}=e;if("function"==typeof Buffer)o=l instanceof Buffer?l.toString("base64"):Buffer.from(l.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<l.length;++t)e+=String.fromCharCode(l[t]);o=btoa(e)}}if(u||(u=r.binaryOptions.defaultType),u===t.Type.QUOTE_DOUBLE)l=o;else{let{lineWidth:e}=r.binaryOptions,n=Math.ceil(o.length/e),i=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=o.substr(r,e);l=i.join(u===t.Type.BLOCK_LITERAL?"\n":" ")}return r.stringifyString({comment:a,type:u,value:l},n,i,s)}};function s(e,n){let i=r.resolveSeq(e,n);for(let s=0;s<i.items.length;++s){let e=i.items[s];if(!(e instanceof r.Pair)){if(e instanceof r.YAMLMap){if(e.items.length>1){let e="Each pair must have its own sequence indicator";throw new t.YAMLSemanticError(n,e)}let i=e.items[0]||new r.Pair;e.commentBefore&&(i.commentBefore=i.commentBefore?"".concat(e.commentBefore,"\n").concat(i.commentBefore):e.commentBefore),e.comment&&(i.comment=i.comment?"".concat(e.comment,"\n").concat(i.comment):e.comment),e=i}i.items[s]=e instanceof r.Pair?e:new r.Pair(e)}}return i}function o(e,t,n){let i=new r.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(let r of t){let t,s;if(Array.isArray(r)){if(2!==r.length)throw new TypeError("Expected [key, value] tuple: ".concat(r));t=r[0],s=r[1]}else if(r&&r instanceof Object){let e=Object.keys(r);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(r));t=e[0],s=r[t]}else t=r;let o=e.createPair(t,s,n);i.items.push(o)}return i}var a={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:o},u=class extends r.YAMLSeq{constructor(){super(),t._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this)),t._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this)),t._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this)),t._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this)),t._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this)),this.tag=u.tag}toJSON(e,t){let n=new Map;t&&t.onCreate&&t.onCreate(n);for(let i of this.items){let e,s;if(i instanceof r.Pair?(e=r.toJSON(i.key,"",t),s=r.toJSON(i.value,e,t)):e=r.toJSON(i,"",t),n.has(e))throw new Error("Ordered maps must not include duplicate keys");n.set(e,s)}return n}};function l(e,n){let i=s(e,n),o=[];for(let{key:s}of i.items)if(s instanceof r.Scalar){if(o.includes(s.value)){let e="Ordered maps must not include duplicate keys";throw new t.YAMLSemanticError(n,e)}o.push(s.value)}return Object.assign(new u,i)}function c(e,t,n){let r=o(e,t,n),i=new u;return i.items=r.items,i}t._defineProperty(u,"tag","tag:yaml.org,2002:omap");var p={identify:e=>e instanceof Map,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:l,createNode:c},f=class extends r.YAMLMap{constructor(){super(),this.tag=f.tag}add(e){let t=e instanceof r.Pair?e:new r.Pair(e);r.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=r.findPair(this.items,e);return!t&&n instanceof r.Pair?n.key instanceof r.Scalar?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));let n=r.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new r.Pair(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")}};function h(e,n){let i=r.resolveMap(e,n);if(!i.hasAllNullValues())throw new t.YAMLSemanticError(n,"Set items must all have null values");return Object.assign(new f,i)}function m(e,t,n){let r=new f;for(let i of t)r.items.push(e.createPair(i,null,n));return r}t._defineProperty(f,"tag","tag:yaml.org,2002:set");var g={identify:e=>e instanceof Set,nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:h,createNode:m},y=(e,t)=>{let n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},D=e=>{let{value:t}=e;if(isNaN(t)||!isFinite(t))return r.stringifyNumber(t);let n="";t<0&&(n="-",t=Math.abs(t));let i=[t%60];return t<60?i.unshift(0):(t=Math.round((t-i[0])/60),i.unshift(t%60),t>=60&&(t=Math.round((t-i[0])/60),i.unshift(t))),n+i.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},v={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,n)=>y(t,n.replace(/_/g,"")),stringify:D},b={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,n)=>y(t,n.replace(/_/g,"")),stringify:D},E={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,n,r,i,s,o,a,u)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(t,n-1,r,i||0,s||0,o||0,a||0);if(u&&"Z"!==u){let e=y(u[0],u.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:e=>{let{value:t}=e;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function C(e){let t=typeof n<"u"&&n.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function A(e,t){if(C(!1)){let r=typeof n<"u"&&n.emitWarning;r?r(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}function S(e){if(C(!0)){let t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");A("The endpoint 'yaml/".concat(t,"' will be removed in a future release."),"DeprecationWarning")}}var x={};function w(e,t){if(!x[e]&&C(!0)){x[e]=!0;let n="The option '".concat(e,"' will be removed in a future release");n+=t?", use '".concat(t,"' instead."):".",A(n,"DeprecationWarning")}}e.binary=i,e.floatTime=b,e.intTime=v,e.omap=p,e.pairs=a,e.set=g,e.timestamp=E,e.warn=A,e.warnFileDeprecation=S,e.warnOptionDeprecation=w}}),mt=u({"node_modules/yaml/dist/Schema-88e323a7.js"(e){d();var t=pt(),n=ft(),r=ht();function i(e,t,r){let i=new n.YAMLMap(e);if(t instanceof Map)for(let[n,s]of t)i.items.push(e.createPair(n,s,r));else if(t&&"object"==typeof t)for(let n of Object.keys(t))i.items.push(e.createPair(n,t[n],r));return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}var s={createNode:i,default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:n.resolveMap};function o(e,t,r){let i=new n.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let n of t){let t=e.createNode(n,r.wrapScalars,null,r);i.items.push(t)}return i}var a={createNode:o,default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:n.resolveSeq},u={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:(e,t,r,i)=>(t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,i)),options:n.strOptions},l=[s,a,u],c=e=>"bigint"==typeof e||Number.isInteger(e),p=(e,t,r)=>n.intOptions.asBigInt?BigInt(e):parseInt(t,r);function f(e,t,r){let{value:i}=e;return c(i)&&i>=0?r+i.toString(t):n.stringifyNumber(e)}var h={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},m={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:n.boolOptions,stringify:e=>{let{value:t}=e;return t?n.boolOptions.trueStr:n.boolOptions.falseStr}},g={identify:e=>c(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>p(e,t,8),options:n.intOptions,stringify:e=>f(e,8,"0o")},y={identify:c,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>p(e,e,10),options:n.intOptions,stringify:n.stringifyNumber},D={identify:e=>c(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>p(e,t,16),options:n.intOptions,stringify:e=>f(e,16,"0x")},v={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:n.stringifyNumber},b={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),stringify:e=>{let{value:t}=e;return Number(t).toExponential()}},E={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let i=t||r,s=new n.Scalar(parseFloat(e));return i&&"0"===i[i.length-1]&&(s.minFractionDigits=i.length),s},stringify:n.stringifyNumber},C=l.concat([h,m,g,y,D,v,b,E]),A=e=>"bigint"==typeof e||Number.isInteger(e),S=e=>{let{value:t}=e;return JSON.stringify(t)},x=[s,a,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:S},{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:S},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:S},{identify:A,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>n.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:e=>{let{value:t}=e;return A(t)?t.toString():JSON.stringify(t)}},{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:S}];x.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var w=e=>{let{value:t}=e;return t?n.boolOptions.trueStr:n.boolOptions.falseStr},F=e=>"bigint"==typeof e||Number.isInteger(e);function T(e,t,r){let i=t.replace(/_/g,"");if(n.intOptions.asBigInt){switch(r){case 2:i="0b".concat(i);break;case 8:i="0o".concat(i);break;case 16:i="0x".concat(i)}let t=BigInt(i);return"-"===e?BigInt(-1)*t:t}let s=parseInt(i,r);return"-"===e?-1*s:s}function N(e,t,r){let{value:i}=e;if(F(i)){let e=i.toString(t);return i<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}var _=l.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.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:n.boolOptions,stringify:w},{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:n.boolOptions,stringify:w},{identify:F,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>T(t,n,2),stringify:e=>N(e,2,"0b")},{identify:F,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>T(t,n,8),stringify:e=>N(e,8,"0")},{identify:F,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>T(t,n,10),stringify:n.stringifyNumber},{identify:F,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>T(t,n,16),stringify:e=>N(e,16,"0x")},{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:n.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:e=>{let{value:t}=e;return Number(t).toExponential()}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new n.Scalar(parseFloat(e.replace(/_/g,"")));if(t){let e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:n.stringifyNumber}],r.binary,r.omap,r.pairs,r.set,r.intTime,r.floatTime,r.timestamp),k={core:C,failsafe:l,json:x,yaml11:_},L={binary:r.binary,bool:m,float:E,floatExp:b,floatNaN:v,floatTime:r.floatTime,int:y,intHex:D,intOct:g,intTime:r.intTime,map:s,null:h,omap:r.omap,pairs:r.pairs,seq:a,set:r.set,timestamp:r.timestamp};function O(e,t,n){if(t){let e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error("Tag ".concat(t," not found"));return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}function P(e,t,r){if(e instanceof n.Node)return e;let{defaultPrefix:i,onTagObj:o,prevObjects:u,schema:l,wrapScalars:c}=r;t&&t.startsWith("!!")&&(t=i+t.slice(2));let p=O(e,t,l.tags);if(!p){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return c?new n.Scalar(e):e;p=e instanceof Map?s:e[Symbol.iterator]?a:s}o&&(o(p),delete r.onTagObj);let d={value:void 0,node:void 0};if(e&&"object"==typeof e&&u){let t=u.get(e);if(t){let e=new n.Alias(t);return r.aliasNodes.push(e),e}d.value=e,u.set(e,d)}return d.node=p.createNode?p.createNode(r.schema,e,r):c?new n.Scalar(e):e,t&&d.node instanceof n.Node&&(d.node.tag=t),d.node}function I(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){let t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(t))}if(Array.isArray(n))for(let s of n)i=i.concat(s);else"function"==typeof n&&(i=n(i.slice()));for(let s=0;s<i.length;++s){let e=i[s];if("string"==typeof e){let n=t[e];if(!n){let n=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown custom tag "'.concat(e,'"; use one of ').concat(n))}i[s]=n}}return i}var B=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,M=class{constructor(e){let{customTags:t,merge:n,schema:i,sortMapEntries:s,tags:o}=e;this.merge=!!n,this.name=i,this.sortMapEntries=!0===s?B:s||null,!t&&o&&r.warnOptionDeprecation("tags","customTags"),this.tags=I(k,L,t||o,i)}createNode(e,t,n,r){let i={defaultPrefix:M.defaultPrefix,schema:this,wrapScalars:t};return P(e,n,r?Object.assign(r,i):i)}createPair(e,t,r){r||(r={wrapScalars:!0});let i=this.createNode(e,r.wrapScalars,null,r),s=this.createNode(t,r.wrapScalars,null,r);return new n.Pair(i,s)}};t._defineProperty(M,"defaultPrefix",t.defaultTagPrefix),t._defineProperty(M,"defaultTags",t.defaultTags),e.Schema=M}}),gt=u({"node_modules/yaml/dist/Document-9b4560a1.js"(e){d();var t=pt(),n=ft(),r=mt(),i={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},s={get binary(){return n.binaryOptions},set binary(e){Object.assign(n.binaryOptions,e)},get bool(){return n.boolOptions},set bool(e){Object.assign(n.boolOptions,e)},get int(){return n.intOptions},set int(e){Object.assign(n.intOptions,e)},get null(){return n.nullOptions},set null(e){Object.assign(n.nullOptions,e)},get str(){return n.strOptions},set str(e){Object.assign(n.strOptions,e)}},o={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:t.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]}};function a(e,t){if("1.0"===(e.version||e.options.version)){let e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];let n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(t.replace(/^tag:/,""))}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){let r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:"!<".concat(t,">");let r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function u(e,t){if(t instanceof n.Alias)return n.Alias;if(t.tag){let n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let r,i;if(t instanceof n.Scalar){i=t.value;let n=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));r=n.find((e=>e.format===t.format))||n.find((e=>!e.format))}else i=t,r=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!r){let e=i&&i.constructor?i.constructor.name:typeof i;throw new Error("Tag not resolved for ".concat(e," value"))}return r}function l(e,t,n){let{anchors:r,doc:i}=n,s=[],o=i.anchors.getName(e);return o&&(r[o]=e,s.push("&".concat(o))),e.tag?s.push(a(i,e.tag)):t.default||s.push(a(i,t.tag)),s.join(" ")}function c(e,t,r,i){let s,{anchors:o,schema:a}=t.doc;if(!(e instanceof n.Node)){let t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=a.createNode(e,!0,null,t);for(let e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof n.Pair)return e.toString(t,r,i);s||(s=u(a.tags,e));let c=l(e,s,t);c.length>0&&(t.indentAtStart=(t.indentAtStart||0)+c.length+1);let p="function"==typeof s.stringify?s.stringify(e,t,r,i):e instanceof n.Scalar?n.stringifyString(e,t,r,i):e.toString(t,r,i);return c?e instanceof n.Scalar||"{"===p[0]||"["===p[0]?"".concat(c," ").concat(p):"".concat(c,"\n").concat(t.indent).concat(p):p}var p=class{static validAnchorNode(e){return e instanceof n.Scalar||e instanceof n.YAMLSeq||e instanceof n.YAMLMap}constructor(e){t._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.Alias(e)}createMergePair(){let e=new n.Merge;for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.value.items=r.map((e=>{if(e instanceof n.Alias){if(e.source instanceof n.YAMLMap)return e}else if(e instanceof n.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),e}getName(e){let{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let t=Object.keys(this.map);for(let n=1;;++n){let r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){let{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&&!p.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");let{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}},f=(e,t)=>{if(e&&"object"==typeof e){let{tag:r}=e;e instanceof n.Collection?(r&&(t[r]=!0),e.items.forEach((e=>f(e,t)))):e instanceof n.Pair?(f(e.key,t),f(e.value,t)):e instanceof n.Scalar&&r&&(t[r]=!0)}return t},h=e=>Object.keys(f(e,{}));function m(e,r){let i,s={before:[],after:[]},o=!1;for(let a of r)if(a.valueRange){if(void 0!==i){let n="Document contains trailing content not separated by a ... or --- line";e.errors.push(new t.YAMLSyntaxError(a,n));break}let r=n.resolveNode(e,a);o&&(r.spaceBefore=!0,o=!1),i=r}else null!==a.comment?(void 0===i?s.before:s.after).push(a.comment):a.type===t.Type.BLANK_LINE&&(o=!0,void 0===i&&s.before.length>0&&!e.commentBefore&&(e.commentBefore=s.before.join("\n"),s.before=[]));if(e.contents=i||null,i){let t=s.before.join("\n");if(t){let e=i instanceof n.Collection&&i.items[0]?i.items[0]:i;e.commentBefore=e.commentBefore?"".concat(t,"\n").concat(e.commentBefore):t}e.comment=s.after.join("\n")||null}else e.comment=s.before.concat(s.after).join("\n")||null}function g(e,n){let{tagPrefixes:r}=e,[i,s]=n.parameters;if(!i||!s){let e="Insufficient parameters given for %TAG directive";throw new t.YAMLSemanticError(n,e)}if(r.some((e=>e.handle===i))){let e="The %TAG directive must only be given at most once per handle in the same document.";throw new t.YAMLSemanticError(n,e)}return{handle:i,prefix:s}}function y(e,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){let e="Insufficient parameters given for %YAML directive";throw new t.YAMLSemanticError(n,e)}if(!o[r]){let i="Document will be parsed as YAML ".concat(e.version||e.options.version," rather than YAML ").concat(r);e.warnings.push(new t.YAMLWarning(n,i))}return r}function D(e,n,r){let i=[],s=!1;for(let a of n){let{comment:n,name:r}=a;switch(r){case"TAG":try{e.tagPrefixes.push(g(e,a))}catch(o){e.errors.push(o)}s=!0;break;case"YAML":case"YAML:1.0":if(e.version){let n="The %YAML directive must only be given at most once per document.";e.errors.push(new t.YAMLSemanticError(a,n))}try{e.version=y(e,a)}catch(o){e.errors.push(o)}s=!0;break;default:if(r){let n="YAML only supports %TAG and %YAML directives, and not %".concat(r);e.warnings.push(new t.YAMLWarning(a,n))}}n&&i.push(n)}if(r&&!s&&"1.1"===(e.version||r.version||e.options.version)){let t=e=>{let{handle:t,prefix:n}=e;return{handle:t,prefix:n}};e.tagPrefixes=r.tagPrefixes.map(t),e.version=r.version}e.commentBefore=i.join("\n")||null}function v(e){if(e instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var b=class{constructor(e){this.anchors=new p(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=[]}add(e){return v(this.contents),this.contents.add(e)}addIn(e,t){v(this.contents),this.contents.addIn(e,t)}delete(e){return v(this.contents),this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(v(this.contents),this.contents.deleteIn(e))}getDefaults(){return b.defaults[this.version]||b.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof n.Collection?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof n.Collection&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof n.Collection&&this.contents.hasIn(e)}set(e,t){v(this.contents),this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:(v(this.contents),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);let n=Object.assign({},this.getDefaults(),this.options);this.schema=new r.Schema(n)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:i=[],directivesEndMarker:s,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),D(this,r,n),s&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],m(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){for(let e of this.errors)e instanceof t.YAMLError&&e.makePretty();for(let e of this.warnings)e instanceof t.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return h(this.contents).filter((e=>0!==e.indexOf(r.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){let 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))}toJSON(e,t){let{keepBlobsInJSON:r,mapAsMap:i,maxAliasCount:s}=this.options,o=r&&("string"!=typeof e||!(this.contents instanceof n.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!i,maxAliasCount:s,stringify:c},u=Object.keys(this.anchors.map);u.length>0&&(a.anchors=new Map(u.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));let l=n.toJSON(this.contents,e,a);if("function"==typeof t&&a.anchors)for(let{count:n,res:c}of a.anchors.values())t(c,n);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();let t=[],r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),r=!0}let i=this.listNonDefaultTags();this.tagPrefixes.forEach((e=>{let{handle:n,prefix:s}=e;i.some((e=>0===e.indexOf(s)))&&(t.push("%TAG ".concat(n," ").concat(s)),r=!0)})),(r||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));let s={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:c},o=!1,a=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),s.forceBlockIndent=!!this.comment,a=this.contents.comment);let e=a?null:()=>o=!0,i=c(this.contents,s,(()=>a=null),e);t.push(n.addComment(i,"",a))}else void 0!==this.contents&&t.push(c(this.contents,s));return this.comment&&((!o||a)&&""!==t[t.length-1]&&t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}};t._defineProperty(b,"defaults",o),e.Document=b,e.defaultOptions=i,e.scalarOptions=s}}),yt=u({"node_modules/yaml/dist/index.js"(e){d();var t=dt(),n=gt(),r=mt(),i=pt(),s=ht();function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;void 0===i&&"string"==typeof t&&(i=t,t=!0);let s=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new r.Schema(s).createNode(e,t,i)}ft();var a=class extends n.Document{constructor(e){super(Object.assign({},n.defaultOptions,e))}};function u(e,n){let r,i=[];for(let s of t.parse(e)){let e=new a(n);e.parse(s,r),i.push(e),r=e}return i}function l(e,n){let r=t.parse(e),s=new a(n).parse(r[0]);if(r.length>1){let e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new i.YAMLSemanticError(r[1],e))}return s}function c(e,t){let n=l(e,t);if(n.warnings.forEach((e=>s.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()}function p(e,t){let n=new a(t);return n.contents=e,String(n)}var f={createNode:o,defaultOptions:n.defaultOptions,Document:a,parse:c,parseAllDocuments:u,parseCST:t.parse,parseDocument:l,scalarOptions:n.scalarOptions,stringify:p};e.YAML=f}}),Dt=u({"node_modules/yaml/index.js"(e,t){d(),t.exports=yt().YAML}}),vt=u({"node_modules/yaml/dist/util.js"(e){d();var t=ft(),n=pt();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=n.Type,e.YAMLError=n.YAMLError,e.YAMLReferenceError=n.YAMLReferenceError,e.YAMLSemanticError=n.YAMLSemanticError,e.YAMLSyntaxError=n.YAMLSyntaxError,e.YAMLWarning=n.YAMLWarning}}),bt=u({"node_modules/yaml/util.js"(e){d();var t=vt();e.findPair=t.findPair,e.toJSON=t.toJSON,e.parseMap=t.parseMap,e.parseSeq=t.parseSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.Type=t.Type,e.YAMLError=t.YAMLError,e.YAMLReferenceError=t.YAMLReferenceError,e.YAMLSemanticError=t.YAMLSemanticError,e.YAMLSyntaxError=t.YAMLSyntaxError,e.YAMLWarning=t.YAMLWarning}}),Et=u({"node_modules/yaml-unist-parser/lib/yaml.js"(e){d(),e.__esModule=!0;var t=Dt();e.Document=t.Document;var n=Dt();e.parseCST=n.parseCST;var r=bt();e.YAMLError=r.YAMLError,e.YAMLSyntaxError=r.YAMLSyntaxError,e.YAMLSemanticError=r.YAMLSemanticError}}),Ct=u({"node_modules/yaml-unist-parser/lib/parse.js"(e){d(),e.__esModule=!0;var t=U(),n=$(),r=J(),i=G(),s=tt(),o=ae(),a=rt(),u=st(),l=ot(),c=at(),p=ut(),f=ct(),h=Et();function m(e){var d=h.parseCST(e);c.addOrigRange(d);for(var m=d.map((function(e){return new h.Document({merge:!1,keepCstNodes:!0}).parse(e)})),g=[],y={text:e,locator:new t.default(e),comments:g,transformOffset:function(e){return u.transformOffset(e,y)},transformRange:function(e){return l.transformRange(e,y)},transformNode:function(e){return s.transformNode(e,y)},transformContent:function(e){return o.transformContent(e,y)}},D=0,v=m;D<v.length;D++)for(var b=0,E=v[D].errors;b<E.length;b++){var C=E[b];if(!(C instanceof h.YAMLSemanticError&&'Map keys must be unique; "<<" is repeated'===C.message))throw a.transformError(C,y)}m.forEach((function(e){return i.removeCstBlankLine(e.cstNode)}));var A=r.createRoot(y.transformRange({origStart:0,origEnd:y.text.length}),m.map(y.transformNode),g);return n.attachComments(A),f.updatePositions(A),p.removeFakeNodes(A),A}e.parse=m}}),At=u({"node_modules/yaml-unist-parser/lib/index.js"(e){d(),e.__esModule=!0,(q(),p(g)).__exportStar(Ct(),e)}});d();var St=f(),{hasPragma:xt}=h(),{locStart:wt,locEnd:Ft}=m();function Tt(e){let{parse:t}=At();try{let n=t(e);return delete n.comments,n}catch(n){throw null!=n&&n.position?St(n.message,n.position):n}}var Nt={astFormat:"yaml",parse:Tt,hasPragma:xt,locStart:wt,locEnd:Ft};t.exports={parsers:{yaml:Nt}}}));return t()}()},4:(e,t,n)=>{var r,i,s,o,a,u,l,c,p,d=n(166).default;e.exports=function(){"use strict";var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),h=f(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()})),m=f(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),g=f(((e,t)=>{var n=m();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),y=f(((e,t)=>{var n=m();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),D=f(((e,t)=>{var n=y(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),v=f((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);e.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),b=f(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),E=f(((e,t)=>{var n=y(),r=Function.prototype,i=r.call,s=n&&r.bind.bind(i,i);t.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}})),C=f(((e,t)=>{var n=E(),r=n({}.toString),i=n("".slice);t.exports=function(e){return i(r(e),8,-1)}})),A=f(((e,t)=>{var n=E(),r=m(),i=C(),s=Object,o=n("".split);t.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o(e,""):s(e)}:s})),S=f(((e,t)=>{t.exports=function(e){return null==e}})),x=f(((e,t)=>{var n=S(),r=TypeError;t.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}})),w=f(((e,t)=>{var n=A(),r=x();t.exports=function(e){return n(r(e))}})),F=f(((e,t)=>{var n="object"==typeof document&&document.all,r=typeof n>"u"&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}})),T=f(((e,t)=>{var n=F(),r=n.all;t.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}})),N=f(((e,t)=>{var n=T(),r=F(),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}})),_=f(((e,t)=>{var n=h(),r=T(),i=function(e){return r(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}})),k=f(((e,t)=>{var n=E();t.exports=n({}.isPrototypeOf)})),L=f(((e,t)=>{var n=_();t.exports=n("navigator","userAgent")||""})),O=f(((e,t)=>{var n,r,i=h(),s=L(),o=i.process,a=i.Deno,u=o&&o.versions||a&&a.version,l=u&&u.v8;l&&(r=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r})),P=f(((e,t)=>{var n=O(),r=m();t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),I=f(((e,t)=>{var n=P();t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),B=f(((e,t)=>{var n=_(),r=T(),i=k(),s=I(),o=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,o(e))}})),M=f(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return"Object"}}})),j=f(((e,t)=>{var n=T(),r=M(),i=TypeError;t.exports=function(e){if(n(e))return e;throw i(r(e)+" is not a function")}})),R=f(((e,t)=>{var n=j(),r=S();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),V=f(((e,t)=>{var n=D(),r=T(),i=N(),s=TypeError;t.exports=function(e,t){var o,a;if("string"===t&&r(o=e.toString)&&!i(a=n(o,e))||r(o=e.valueOf)&&!i(a=n(o,e))||"string"!==t&&r(o=e.toString)&&!i(a=n(o,e)))return a;throw s("Can't convert object to primitive value")}})),q=f(((e,t)=>{t.exports=!1})),U=f(((e,t)=>{var n=h(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),W=f(((e,t)=>{var n=h(),r=U(),i="__core-js_shared__",s=n[i]||r(i,{});t.exports=s})),K=f(((e,t)=>{var n=q(),r=W();(t.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),$=f(((e,t)=>{var n=x(),r=Object;t.exports=function(e){return r(n(e))}})),H=f(((e,t)=>{var n=E(),r=$(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),J=f(((e,t)=>{var n=E(),r=0,i=Math.random(),s=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+i,36)}})),G=f(((e,t)=>{var n=h(),r=K(),i=H(),s=J(),o=P(),a=I(),u=r("wks"),l=n.Symbol,c=l&&l.for,p=a?l:l&&l.withoutSetter||s;t.exports=function(e){if(!i(u,e)||!o&&"string"!=typeof u[e]){var t="Symbol."+e;o&&i(l,e)?u[e]=l[e]:u[e]=a&&c?c(t):p(t)}return u[e]}})),z=f(((e,t)=>{var n=D(),r=N(),i=B(),s=R(),o=V(),a=G(),u=TypeError,l=a("toPrimitive");t.exports=function(e,t){if(!r(e)||i(e))return e;var a,c=s(e,l);if(c){if(void 0===t&&(t="default"),a=n(c,e,t),!r(a)||i(a))return a;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}})),Y=f(((e,t)=>{var n=z(),r=B();t.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}})),Q=f(((e,t)=>{var n=h(),r=N(),i=n.document,s=r(i)&&r(i.createElement);t.exports=function(e){return s?i.createElement(e):{}}})),X=f(((e,t)=>{var n=g(),r=m(),i=Q();t.exports=!n&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))})),Z=f((e=>{var t=g(),n=D(),r=v(),i=b(),s=w(),o=Y(),a=H(),u=X(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=s(e),t=o(t),u)try{return l(e,t)}catch{}if(a(e,t))return i(!n(r.f,e,t),e[t])}})),ee=f(((e,t)=>{var n=g(),r=m();t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),te=f(((e,t)=>{var n=N(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw i(r(e)+" is not an object")}})),ne=f((e=>{var t=g(),n=X(),r=ee(),i=te(),s=Y(),o=TypeError,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",p="writable";e.f=t?r?function(e,t,n){if(i(e),t=s(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:c in n?n[c]:r[c],enumerable:l in n?n[l]:r[l],writable:!1})}return a(e,t,n)}:a:function(e,t,r){if(i(e),t=s(t),i(r),n)try{return a(e,t,r)}catch{}if("get"in r||"set"in r)throw o("Accessors not supported");return"value"in r&&(e[t]=r.value),e}})),re=f(((e,t)=>{var n=g(),r=ne(),i=b();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),ie=f(((e,t)=>{var n=g(),r=H(),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=r(i,"name"),a=o&&"something"===function(){}.name,u=o&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:o,PROPER:a,CONFIGURABLE:u}})),se=f(((e,t)=>{var n=E(),r=T(),i=W(),s=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),t.exports=i.inspectSource})),oe=f(((e,t)=>{var n=h(),r=T(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),ae=f(((e,t)=>{var n=K(),r=J(),i=n("keys");t.exports=function(e){return i[e]||(i[e]=r(e))}})),ue=f(((e,t)=>{t.exports={}})),le=f(((e,t)=>{var n,r,i,s,o,a=oe(),u=h(),l=N(),c=re(),p=H(),d=W(),f=ae(),m=ue(),g="Object already initialized",y=u.TypeError,D=u.WeakMap,v=function(e){return i(e)?r(e):n(e,{})},b=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return n}};a||d.state?((s=d.state||(d.state=new D)).get=s.get,s.has=s.has,s.set=s.set,n=function(e,t){if(s.has(e))throw y(g);return t.facade=e,s.set(e,t),t},r=function(e){return s.get(e)||{}},i=function(e){return s.has(e)}):(m[o=f("state")]=!0,n=function(e,t){if(p(e,o))throw y(g);return t.facade=e,c(e,o,t),t},r=function(e){return p(e,o)?e[o]:{}},i=function(e){return p(e,o)}),t.exports={set:n,get:r,has:i,enforce:v,getterFor:b}})),ce=f(((e,t)=>{var n=m(),r=T(),i=H(),s=g(),o=ie().CONFIGURABLE,a=se(),u=le(),l=u.enforce,c=u.get,p=Object.defineProperty,d=s&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),f=String(String).split("String"),h=t.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||o&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),d&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var r=l(e);return i(r,"source")||(r.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=h((function(){return r(this)&&c(this).source||a(this)}),"toString")})),pe=f(((e,t)=>{var n=T(),r=ne(),i=ce(),s=U();t.exports=function(e,t,o,a){a||(a={});var u=a.enumerable,l=void 0!==a.name?a.name:t;if(n(o)&&i(o,l,a),a.global)u?e[t]=o:s(t,o);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}})),de=f(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),fe=f(((e,t)=>{var n=de();t.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}})),he=f(((e,t)=>{var n=fe(),r=Math.max,i=Math.min;t.exports=function(e,t){var s=n(e);return s<0?r(s+t,0):i(s,t)}})),me=f(((e,t)=>{var n=fe(),r=Math.min;t.exports=function(e){return e>0?r(n(e),9007199254740991):0}})),ge=f(((e,t)=>{var n=me();t.exports=function(e){return n(e.length)}})),ye=f(((e,t)=>{var n=w(),r=he(),i=ge(),s=function(e){return function(t,s,o){var a,u=n(t),l=i(u),c=r(o,l);if(e&&s!=s){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===s)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}})),De=f(((e,t)=>{var n=E(),r=H(),i=w(),s=ye().indexOf,o=ue(),a=n([].push);t.exports=function(e,t){var n,u=i(e),l=0,c=[];for(n in u)!r(o,n)&&r(u,n)&&a(c,n);for(;t.length>l;)r(u,n=t[l++])&&(~s(c,n)||a(c,n));return c}})),ve=f(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),be=f((e=>{var t=De(),n=ve().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),Ee=f((e=>{e.f=Object.getOwnPropertySymbols})),Ce=f(((e,t)=>{var n=_(),r=E(),i=be(),s=Ee(),o=te(),a=r([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=s.f;return n?a(t,n(e)):t}})),Ae=f(((e,t)=>{var n=H(),r=Ce(),i=Z(),s=ne();t.exports=function(e,t,o){for(var a=r(t),u=s.f,l=i.f,c=0;c<a.length;c++){var p=a[c];!n(e,p)&&(!o||!n(o,p))&&u(e,p,l(t,p))}}})),Se=f(((e,t)=>{var n=m(),r=T(),i=/#|\.prototype\./,s=function(e,t){var i=a[o(e)];return i==l||i!=u&&(r(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s})),xe=f(((e,t)=>{var n=h(),r=Z().f,i=re(),s=pe(),o=U(),a=Ae(),u=Se();t.exports=function(e,t){var l,c,p,d,f,h=e.target,m=e.global,g=e.stat;if(l=m?n:g?n[h]||o(h,{}):(n[h]||{}).prototype)for(c in t){if(d=t[c],p=e.dontCallGetSet?(f=r(l,c))&&f.value:l[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;a(d,p)}(e.sham||p&&p.sham)&&i(d,"sham",!0),s(l,c,d,e)}}})),we=f(((e,t)=>{var n=C();t.exports=Array.isArray||function(e){return"Array"==n(e)}})),Fe=f(((e,t)=>{var n=TypeError,r=9007199254740991;t.exports=function(e){if(e>r)throw n("Maximum allowed index exceeded");return e}})),Te=f(((e,t)=>{var n=C(),r=E();t.exports=function(e){if("Function"===n(e))return r(e)}})),Ne=f(((e,t)=>{var n=Te(),r=j(),i=y(),s=n(n.bind);t.exports=function(e,t){return r(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}})),_e=f(((e,t)=>{var n=we(),r=ge(),i=Fe(),s=Ne(),o=function(e,t,a,u,l,c,p,d){for(var f,h,m=l,g=0,y=!!p&&s(p,d);g<u;)g in a&&(f=y?y(a[g],g,t):a[g],c>0&&n(f)?(h=r(f),m=o(e,t,f,h,m,c-1)-1):(i(m+1),e[m]=f),m++),g++;return m};t.exports=o})),ke=f(((e,t)=>{var n={};n[G()("toStringTag")]="z",t.exports="[object z]"===String(n)})),Le=f(((e,t)=>{var n=ke(),r=T(),i=C(),s=G()("toStringTag"),o=Object,a="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=o(e),s))?n:a?i(t):"Object"==(l=i(t))&&r(t.callee)?"Arguments":l}})),Oe=f(((e,t)=>{var n=E(),r=m(),i=T(),s=Le(),o=_(),a=se(),u=function(){},l=[],c=o("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=n(p.exec),f=!p.exec(u),h=function(e){if(!i(e))return!1;try{return c(u,l,e),!0}catch{return!1}},g=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(p,a(e))}catch{return!0}};g.sham=!0,t.exports=!c||r((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?g:h})),Pe=f(((e,t)=>{var n=we(),r=Oe(),i=N(),s=G()("species"),o=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,(r(t)&&(t===o||n(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?o:t}})),Ie=f(((e,t)=>{var n=Pe();t.exports=function(e,t){return new(n(e))(0===t?0:t)}})),Be=f((()=>{var e=xe(),t=_e(),n=j(),r=$(),i=ge(),s=Ie();e({target:"Array",proto:!0},{flatMap:function(e){var o,a=r(this),u=i(a);return n(e),(o=s(a,0)).length=t(o,a,a,u,0,1,e,arguments.length>1?arguments[1]:void 0),o}})})),Me=f(((e,t)=>{t.exports={}})),je=f(((e,t)=>{var n=G(),r=Me(),i=n("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||s[i]===e)}})),Re=f(((e,t)=>{var n=Le(),r=R(),i=S(),s=Me(),o=G()("iterator");t.exports=function(e){if(!i(e))return r(e,o)||r(e,"@@iterator")||s[n(e)]}})),Ve=f(((e,t)=>{var n=D(),r=j(),i=te(),s=M(),o=Re(),a=TypeError;t.exports=function(e,t){var u=arguments.length<2?o(e):t;if(r(u))return i(n(u,e));throw a(s(e)+" is not iterable")}})),qe=f(((e,t)=>{var n=D(),r=te(),i=R();t.exports=function(e,t,s){var o,a;r(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=n(o,e)}catch(u){a=!0,o=u}if("throw"===t)throw s;if(a)throw o;return r(o),s}})),Ue=f(((e,t)=>{var n=Ne(),r=D(),i=te(),s=M(),o=je(),a=ge(),u=k(),l=Ve(),c=Re(),p=qe(),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;t.exports=function(e,t,m){var g,y,D,v,b,E,C,A=m&&m.that,S=!(!m||!m.AS_ENTRIES),x=!(!m||!m.IS_RECORD),w=!(!m||!m.IS_ITERATOR),F=!(!m||!m.INTERRUPTED),T=n(t,A),N=function(e){return g&&p(g,"normal",e),new f(!0,e)},_=function(e){return S?(i(e),F?T(e[0],e[1],N):T(e[0],e[1])):F?T(e,N):T(e)};if(x)g=e.iterator;else if(w)g=e;else{if(!(y=c(e)))throw d(s(e)+" is not iterable");if(o(y)){for(D=0,v=a(e);v>D;D++)if((b=_(e[D]))&&u(h,b))return b;return new f(!1)}g=l(e,y)}for(E=x?e.next:g.next;!(C=r(E,g)).done;){try{b=_(C.value)}catch(k){p(g,"throw",k)}if("object"==typeof b&&b&&u(h,b))return b}return new f(!1)}})),We=f(((e,t)=>{var n=Y(),r=ne(),i=b();t.exports=function(e,t,s){var o=n(t);o in e?r.f(e,o,i(0,s)):e[o]=s}})),Ke=f((()=>{var e=xe(),t=Ue(),n=We();e({target:"Object",stat:!0},{fromEntries:function(e){var r={};return t(e,(function(e,t){n(r,e,t)}),{AS_ENTRIES:!0}),r}})})),$e=f(((e,t)=>{var n=ce(),r=ne();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),He=f(((e,t)=>{var n=te();t.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}})),Je=f((()=>{var e=h(),t=g(),n=$e(),r=He(),i=m(),s=e.RegExp,o=s.prototype,a=t&&i((function(){var e=!0;try{s(".","d")}catch{e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in e&&(a.hasIndices="d"),a)i(u,a[u]);return Object.getOwnPropertyDescriptor(o,"flags").get.call(t)!==r||n!==r}));a&&n(o,"flags",{configurable:!0,get:r})})),Ge=f((()=>{var e=xe(),t=h();e({global:!0,forced:t.globalThis!==t},{globalThis:t})})),ze=f((()=>{Ge()})),Ye=f((()=>{var e=xe(),t=_e(),n=$(),r=ge(),i=fe(),s=Ie();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,o=n(this),a=r(o),u=s(o,0);return u.length=t(u,o,o,a,0,void 0===e?1:i(e)),u}})})),Qe=f(((n,f)=>{var h=["cliName","cliCategory","cliDescription"],m=["_"],g=["languageId"];function y(e,t){if(null==e)return{};var n,r,i=D(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}Be(),Ke(),Je(),ze(),Ye();var v,b=Object.create,E=Object.defineProperty,C=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,S=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=(e,t)=>function(){return e&&(t=(0,e[A(e)[0]])(e=0)),t},F=(e,t)=>function(){return t||(0,e[A(e)[0]])((t={exports:{}}).exports,t),t.exports},T=(e,t)=>{for(var n in t)E(e,n,{get:t[n],enumerable:!0})},N=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of A(t))!x.call(e,i)&&i!==n&&E(e,i,{get:()=>t[i],enumerable:!(r=C(t,i))||r.enumerable});return e},_=(e,t,n)=>(n=null!=e?b(S(e)):{},N(!t&&e&&e.__esModule?n:E(n,"default",{value:e,enumerable:!0}),e)),k=e=>N(E({},"__esModule",{value:!0}),e),L=w({"<define:process>"(){v={env:{},argv:[]}}}),O=F({"package.json"(e,t){t.exports={version:"2.8.8"}}}),P=F({"node_modules/diff/lib/diff/base.js"(e){function t(){}function n(e,t,n,r,i){for(var s=0,o=t.length,a=0,u=0;s<o;s++){var l=t[s];if(l.removed){if(l.value=e.join(r.slice(u,u+l.count)),u+=l.count,s&&t[s-1].added){var c=t[s-1];t[s-1]=t[s],t[s]=c}}else{if(!l.added&&i){var p=n.slice(a,a+l.count);p=p.map((function(e,t){var n=r[u+t];return n.length>e.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(a,a+l.count));a+=l.count,l.added||(u+=l.count)}}var d=t[o-1];return o>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[o-2].value+=d.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}L(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i.callback;"function"==typeof i&&(s=i,i={}),this.options=i;var o=this;function a(e){return s?(setTimeout((function(){s(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,p=u+l,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=u&&f+1>=l)return a([{value:this.join(t),count:t.length}]);function h(){for(var i=-1*c;i<=c;i+=2){var s=void 0,p=d[i-1],f=d[i+1],h=(f?f.newPos:0)-i;p&&(d[i-1]=void 0);var m=p&&p.newPos+1<u,g=f&&0<=h&&h<l;if(m||g){if(!m||g&&p.newPos<f.newPos?(s=r(f),o.pushComponent(s.components,void 0,!0)):((s=p).newPos++,o.pushComponent(s.components,!0,void 0)),h=o.extractCommon(s,t,e,i),s.newPos+1>=u&&h+1>=l)return a(n(o,s.components,t,e,o.useLongestToken));d[i]=s}else d[i]=void 0}c++}if(s)!function e(){setTimeout((function(){if(c>p)return s();h()||e()}),0)}();else for(;c<=p;){var m=h();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,s=n.length,o=e.newPos,a=o-r,u=0;o+1<i&&a+1<s&&this.equals(t[o+1],n[a+1]);)o++,a++,u++;return u&&e.components.push({count:u}),e.newPos=o,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}}),I=F({"node_modules/diff/lib/diff/array.js"(e){function t(e){return e&&e.__esModule?e:{default:e}}L(),Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=r,e.arrayDiff=void 0;var n=new(t(P()).default);function r(e,t,r){return n.diff(e,t,r)}e.arrayDiff=n,n.tokenize=function(e){return e.slice()},n.join=n.removeEmpty=function(e){return e}}}),B=F({"src/document/doc-builders.js"(e,t){function n(e){return{type:"concat",parts:e}}function r(e){return{type:"indent",contents:e}}function i(e,t){return{type:"align",contents:t,n:e}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}function o(e){return i(Number.NEGATIVE_INFINITY,e)}function a(e){return i({type:"root"},e)}function u(e){return i(-1,e)}function l(e,t){return s(e[0],Object.assign(Object.assign({},t),{},{expandedStates:e}))}function c(e){return{type:"fill",parts:e}}function p(e,t){return{type:"if-break",breakContents:e,flatContents:t,groupId:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).groupId}}function d(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}}function f(e){return{type:"line-suffix",contents:e}}L();var h={type:"line-suffix-boundary"},m={type:"break-parent"},g={type:"trim"},y={type:"line",hard:!0},D={type:"line",hard:!0,literal:!0},v={type:"line"},b={type:"line",soft:!0},E=n([y,m]),C=n([D,m]),A={type:"cursor",placeholder:Symbol("cursor")};function S(e,t){let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return n(r)}function x(e,t,n){let s=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)s=r(s);s=i(t%n,s),s=i(Number.NEGATIVE_INFINITY,s)}return s}function w(e,t){return{type:"label",label:e,contents:t}}t.exports={concat:n,join:S,line:v,softline:b,hardline:E,literalline:C,group:s,conditionalGroup:l,fill:c,lineSuffix:f,lineSuffixBoundary:h,cursor:A,breakParent:m,ifBreak:p,trim:g,indent:r,indentIfBreak:d,align:i,addAlignmentToDoc:x,markAsRoot:a,dedentToRoot:o,dedent:u,hardlineWithoutBreakParent:y,literallineWithoutBreakParent:D,label:w}}}),M=F({"src/common/end-of-line.js"(e,t){function n(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function r(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function i(e,t){let n;switch(t){case"\n":n=/\n/g;break;case"\r":n=/\r/g;break;case"\r\n":n=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."))}let r=e.match(n);return r?r.length:0}function s(e){return e.replace(/\r\n?/g,"\n")}L(),t.exports={guessEndOfLine:n,convertEndOfLineToChars:r,countEndOfLineChars:i,normalizeEndOfLine:s}}}),j=F({"src/utils/get-last.js"(e,t){L();var n=e=>e[e.length-1];t.exports=n}});function R(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[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")}var V=w({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){L()}});function q(e){if("string"!=typeof e)throw new TypeError("Expected a `string`, got `".concat(typeof e,"`"));return e.replace(R(),"")}var U=w({"node_modules/strip-ansi/index.js"(){L(),V()}});function W(e){return!!Number.isInteger(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 K=w({"node_modules/is-fullwidth-code-point/index.js"(){L()}}),$=F({"node_modules/emoji-regex/index.js"(e,t){L(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\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])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\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\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\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-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*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\u26A7\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),H={};function J(e){if("string"!=typeof e||0===e.length||0===(e=q(e)).length)return 0;e=e.replace((0,G.default)()," ");let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=W(r)?2:1)}return t}T(H,{default:()=>J});var G,z=w({"node_modules/string-width/index.js"(){L(),U(),K(),G=_($())}}),Y=F({"src/utils/get-string-width.js"(e,t){L();var n=(z(),k(H)).default,r=/[^\x20-\x7F]/;function i(e){return e?r.test(e)?n(e):e.length:0}t.exports=i}}),Q=F({"src/document/doc-utils.js"(e,t){L();var n=j(),{literalline:r,join:i}=B(),s=e=>Array.isArray(e)||e&&"concat"===e.type,o=e=>{if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},a={};function u(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e!==a){if(n&&i.push(e,a),!t||!1!==t(e))if(s(e)||"fill"===e.type){let t=o(e);for(let e=t.length-1;e>=0;--e)i.push(t[e])}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)}else n(i.pop())}}function l(e,t){let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){let n=e.parts.map(r);return t(Object.assign(Object.assign({},e),{},{parts:n}))}if("if-break"===e.type){let n=e.breakContents&&r(e.breakContents),i=e.flatContents&&r(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:n,flatContents:i}))}if("group"===e.type&&e.expandedStates){let n=e.expandedStates.map(r),i=n[0];return t(Object.assign(Object.assign({},e),{},{contents:i,expandedStates:n}))}if(e.contents){let n=r(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:n}))}return t(e)}}function c(e,t,n){let r=n,i=!1;function s(e){let n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1}return u(e,s),r}function p(e){if("group"===e.type&&e.break||"line"===e.type&&e.hard||"break-parent"===e.type)return!0}function d(e){return c(e,p,!1)}function f(e){if(e.length>0){let t=n(e);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function h(e){let t=new Set,n=[];function r(e){if("break-parent"===e.type&&f(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){"group"===e.type&&n.pop().break&&f(n)}u(e,r,i,!0)}function m(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function g(e){return l(e,m)}var y=(e,t)=>e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type;function D(e){if(!e)return e;if(s(e)||"fill"===e.type){let t=o(e);for(;t.length>1&&y(...t.slice(-2));)t.length-=2;if(t.length>0){let e=D(n(t));t[t.length-1]=e}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let t=D(e.contents);return Object.assign(Object.assign({},e),{},{contents:t})}case"if-break":{let t=D(e.breakContents),n=D(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:t,flatContents:n})}}return e}function v(e){return D(E(e))}function b(e){switch(e.type){case"fill":if(e.parts.every((e=>""===e)))return"";break;case"group":if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!s(e))return e;let t=[];for(let r of o(e)){if(!r)continue;let[e,...i]=s(r)?o(r):[r];"string"==typeof e&&"string"==typeof n(t)?t[t.length-1]+=e:t.push(e),t.push(...i)}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}function E(e){return l(e,(e=>b(e)))}function C(e){let t=[],r=e.filter(Boolean);for(;r.length>0;){let e=r.shift();if(e){if(s(e)){r.unshift(...o(e));continue}if(t.length>0&&"string"==typeof n(t)&&"string"==typeof e){t[t.length-1]+=e;continue}t.push(e)}}return t}function A(e){return l(e,(e=>Array.isArray(e)?C(e):e.parts?Object.assign(Object.assign({},e),{},{parts:C(e.parts)}):e))}function S(e){return l(e,(e=>"string"==typeof e&&e.includes("\n")?x(e):e))}function x(e){return i(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,e.split("\n")).parts}function w(e){if("line"===e.type)return!0}function F(e){return c(e,w,!1)}t.exports={isConcat:s,getDocParts:o,willBreak:d,traverseDoc:u,findInDoc:c,mapDoc:l,propagateBreaks:h,removeLines:g,stripTrailingHardline:v,normalizeParts:C,normalizeDoc:A,cleanDoc:E,replaceTextEndOfLine:x,replaceEndOfLine:S,canBreak:F}}}),X=F({"src/document/doc-printer.js"(e,t){L();var n,{convertEndOfLineToChars:r}=M(),i=j(),s=Y(),{fill:o,cursor:a,indent:u}=B(),{isConcat:l,getDocParts:c}=Q(),p=1,d=2;function f(){return{value:"",length:0,queue:[]}}function h(e,t){return g(e,{type:"indent"},t)}function m(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||f():t<0?g(e,{type:"dedent"},n):t?"root"===t.type?Object.assign(Object.assign({},e),{},{root:e}):g(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function g(e,t,n){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,o=0,a=0;for(let h of r)switch(h.type){case"indent":c(),n.useTabs?u(1):l(n.tabWidth);break;case"stringAlign":c(),i+=h.n,s+=h.n.length;break;case"numberAlign":o+=1,a+=h.n;break;default:throw new Error("Unexpected type '".concat(h.type,"'"))}return d(),Object.assign(Object.assign({},e),{},{value:i,length:s,queue:r});function u(e){i+="\t".repeat(e),s+=n.tabWidth*e}function l(e){i+=" ".repeat(e),s+=e}function c(){n.useTabs?p():d()}function p(){o>0&&u(o),f()}function d(){a>0&&l(a),f()}function f(){o=0,a=0}}function y(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof i(e)&&/^[\t ]*$/.test(i(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof i(e)){let n=i(e).replace(/[\t ]*$/,"");t+=i(e).length-n.length,e[e.length-1]=n}return t}function D(e,t,r,o,a){let u=t.length,f=[e],h=[];for(;r>=0;){if(0===f.length){if(0===u)return!0;f.push(t[--u]);continue}let{mode:e,doc:m}=f.pop();if("string"==typeof m)h.push(m),r-=s(m);else if(l(m)||"fill"===m.type){let t=c(m);for(let n=t.length-1;n>=0;n--)f.push({mode:e,doc:t[n]})}else switch(m.type){case"indent":case"align":case"indent-if-break":case"label":f.push({mode:e,doc:m.contents});break;case"trim":r+=y(h);break;case"group":{if(a&&m.break)return!1;let t=m.break?p:e,n=m.expandedStates&&t===p?i(m.expandedStates):m.contents;f.push({mode:t,doc:n});break}case"if-break":{let t=(m.groupId?n[m.groupId]||d:e)===p?m.breakContents:m.flatContents;t&&f.push({mode:e,doc:t});break}case"line":if(e===p||m.hard)return!0;m.soft||(h.push(" "),r--);break;case"line-suffix":o=!0;break;case"line-suffix-boundary":if(o)return!1}}return!1}function v(e,t){n={};let g=t.printWidth,v=r(t.endOfLine),b=0,E=[{ind:f(),mode:p,doc:e}],C=[],A=!1,S=[];for(;E.length>0;){let{ind:e,mode:r,doc:f}=E.pop();if("string"==typeof f){let e="\n"!==v?f.replace(/\n/g,v):f;C.push(e),b+=s(e)}else if(l(f)){let t=c(f);for(let n=t.length-1;n>=0;n--)E.push({ind:e,mode:r,doc:t[n]})}else switch(f.type){case"cursor":C.push(a.placeholder);break;case"indent":E.push({ind:h(e,t),mode:r,doc:f.contents});break;case"align":E.push({ind:m(e,f.n,t),mode:r,doc:f.contents});break;case"trim":b-=y(C);break;case"group":switch(r){case d:if(!A){E.push({ind:e,mode:f.break?p:d,doc:f.contents});break}case p:{A=!1;let t={ind:e,mode:d,doc:f.contents},n=g-b,r=S.length>0;if(!f.break&&D(t,E,n,r))E.push(t);else if(f.expandedStates){let t=i(f.expandedStates);if(f.break){E.push({ind:e,mode:p,doc:t});break}for(let i=1;i<f.expandedStates.length+1;i++){if(i>=f.expandedStates.length){E.push({ind:e,mode:p,doc:t});break}{let t=f.expandedStates[i],s={ind:e,mode:d,doc:t};if(D(s,E,n,r)){E.push(s);break}}}}else E.push({ind:e,mode:p,doc:f.contents});break}}f.id&&(n[f.id]=i(E).mode);break;case"fill":{let t=g-b,{parts:n}=f;if(0===n.length)break;let[i,s]=n,a={ind:e,mode:d,doc:i},u={ind:e,mode:p,doc:i},l=D(a,[],t,S.length>0,!0);if(1===n.length){l?E.push(a):E.push(u);break}let c={ind:e,mode:d,doc:s},h={ind:e,mode:p,doc:s};if(2===n.length){l?E.push(c,a):E.push(h,u);break}n.splice(0,2);let m={ind:e,mode:r,doc:o(n)},y=n[0];D({ind:e,mode:d,doc:[i,s,y]},[],t,S.length>0,!0)?E.push(m,c,a):l?E.push(m,h,a):E.push(m,h,u);break}case"if-break":case"indent-if-break":{let t=f.groupId?n[f.groupId]:r;if(t===p){let t="if-break"===f.type?f.breakContents:f.negate?f.contents:u(f.contents);t&&E.push({ind:e,mode:r,doc:t})}if(t===d){let t="if-break"===f.type?f.flatContents:f.negate?u(f.contents):f.contents;t&&E.push({ind:e,mode:r,doc:t})}break}case"line-suffix":S.push({ind:e,mode:r,doc:f.contents});break;case"line-suffix-boundary":S.length>0&&E.push({ind:e,mode:r,doc:{type:"line",hard:!0}});break;case"line":switch(r){case d:if(!f.hard){f.soft||(C.push(" "),b+=1);break}A=!0;case p:if(S.length>0){E.push({ind:e,mode:r,doc:f},...S.reverse()),S.length=0;break}f.literal?e.root?(C.push(v,e.root.value),b=e.root.length):(C.push(v),b=0):(b-=y(C),C.push(v+e.value),b=e.length)}break;case"label":E.push({ind:e,mode:r,doc:f.contents})}0===E.length&&S.length>0&&(E.push(...S.reverse()),S.length=0)}let x=C.indexOf(a.placeholder);if(-1!==x){let e=C.indexOf(a.placeholder,x+1),t=C.slice(0,x).join(""),n=C.slice(x+1,e).join("");return{formatted:t+n+C.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:C.join("")}}t.exports={printDocToString:v}}}),Z=F({"src/document/doc-debug.js"(e,t){L();var{isConcat:n,getDocParts:r}=Q();function i(e){if(!e)return"";if(n(e)){let t=[];for(let s of r(e))if(n(s))t.push(...i(s).parts);else{let e=i(s);""!==e&&t.push(e)}return{type:"concat",parts:t}}return"if-break"===e.type?Object.assign(Object.assign({},e),{},{breakContents:i(e.breakContents),flatContents:i(e.flatContents)}):"group"===e.type?Object.assign(Object.assign({},e),{},{contents:i(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(i)}):"fill"===e.type?{type:"fill",parts:e.parts.map(i)}:e.contents?Object.assign(Object.assign({},e),{},{contents:i(e.contents)}):e}function s(e){let t=Object.create(null),s=new Set;return o(i(e));function o(e,t,i){if("string"==typeof e)return JSON.stringify(e);if(n(e)){let t=r(e).map(o).filter(Boolean);return 1===t.length?t[0]:"[".concat(t.join(", "),"]")}if("line"===e.type){let n=Array.isArray(i)&&i[t+1]&&"break-parent"===i[t+1].type;return e.literal?n?"literalline":"literallineWithoutBreakParent":e.hard?n?"hardline":"hardlineWithoutBreakParent":e.soft?"softline":"line"}if("break-parent"===e.type)return Array.isArray(i)&&i[t-1]&&"line"===i[t-1].type&&i[t-1].hard?void 0:"breakParent";if("trim"===e.type)return"trim";if("indent"===e.type)return"indent("+o(e.contents)+")";if("align"===e.type)return e.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+o(e.contents)+")":e.n<0?"dedent("+o(e.contents)+")":"root"===e.n.type?"markAsRoot("+o(e.contents)+")":"align("+JSON.stringify(e.n)+", "+o(e.contents)+")";if("if-break"===e.type)return"ifBreak("+o(e.breakContents)+(e.flatContents?", "+o(e.flatContents):"")+(e.groupId?(e.flatContents?"":', ""')+", { groupId: ".concat(a(e.groupId)," }"):"")+")";if("indent-if-break"===e.type){let t=[];e.negate&&t.push("negate: true"),e.groupId&&t.push("groupId: ".concat(a(e.groupId)));let n=t.length>0?", { ".concat(t.join(", ")," }"):"";return"indentIfBreak(".concat(o(e.contents)).concat(n,")")}if("group"===e.type){let t=[];e.break&&"propagated"!==e.break&&t.push("shouldBreak: true"),e.id&&t.push("id: ".concat(a(e.id)));let n=t.length>0?", { ".concat(t.join(", ")," }"):"";return e.expandedStates?"conditionalGroup([".concat(e.expandedStates.map((e=>o(e))).join(","),"]").concat(n,")"):"group(".concat(o(e.contents)).concat(n,")")}if("fill"===e.type)return"fill([".concat(e.parts.map((e=>o(e))).join(", "),"])");if("line-suffix"===e.type)return"lineSuffix("+o(e.contents)+")";if("line-suffix-boundary"===e.type)return"lineSuffixBoundary";if("label"===e.type)return"label(".concat(JSON.stringify(e.label),", ").concat(o(e.contents),")");throw new Error("Unknown doc type "+e.type)}function a(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let n=String(e).slice(7,-1)||"symbol";for(let r=0;;r++){let i=n+(r>0?" #".concat(r):"");if(!s.has(i))return s.add(i),t[e]="Symbol.for(".concat(JSON.stringify(i),")")}}}t.exports={printDocToDebug:s}}}),ee=F({"src/document/index.js"(e,t){L(),t.exports={builders:B(),printer:X(),utils:Q(),debug:Z()}}}),te={};function ne(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}T(te,{default:()=>ne});var re=w({"node_modules/escape-string-regexp/index.js"(){L()}}),ie=F({"node_modules/semver/internal/debug.js"(e,t){L();var n="object"==typeof v&&v.env&&v.env.NODE_DEBUG&&/\bsemver\b/i.test(v.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};t.exports=n}}),se=F({"node_modules/semver/internal/constants.js"(e,t){L();var n="2.0.0",r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16;t.exports={SEMVER_SPEC_VERSION:n,MAX_LENGTH:r,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:s}}}),oe=F({"node_modules/semver/internal/re.js"(e,t){L();var{MAX_SAFE_COMPONENT_LENGTH:n}=se(),r=ie(),i=(e=t.exports={}).re=[],s=e.src=[],o=e.t={},a=0,u=(e,t,n)=>{let u=a++;r(e,u,t),o[e]=u,s[u]=t,i[u]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION","(".concat(s[o.NUMERICIDENTIFIER],")\\.(").concat(s[o.NUMERICIDENTIFIER],")\\.(").concat(s[o.NUMERICIDENTIFIER],")")),u("MAINVERSIONLOOSE","(".concat(s[o.NUMERICIDENTIFIERLOOSE],")\\.(").concat(s[o.NUMERICIDENTIFIERLOOSE],")\\.(").concat(s[o.NUMERICIDENTIFIERLOOSE],")")),u("PRERELEASEIDENTIFIER","(?:".concat(s[o.NUMERICIDENTIFIER],"|").concat(s[o.NONNUMERICIDENTIFIER],")")),u("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[o.NUMERICIDENTIFIERLOOSE],"|").concat(s[o.NONNUMERICIDENTIFIER],")")),u("PRERELEASE","(?:-(".concat(s[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[o.PRERELEASEIDENTIFIER],")*))")),u("PRERELEASELOOSE","(?:-?(".concat(s[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[o.PRERELEASEIDENTIFIERLOOSE],")*))")),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD","(?:\\+(".concat(s[o.BUILDIDENTIFIER],"(?:\\.").concat(s[o.BUILDIDENTIFIER],")*))")),u("FULLPLAIN","v?".concat(s[o.MAINVERSION]).concat(s[o.PRERELEASE],"?").concat(s[o.BUILD],"?")),u("FULL","^".concat(s[o.FULLPLAIN],"$")),u("LOOSEPLAIN","[v=\\s]*".concat(s[o.MAINVERSIONLOOSE]).concat(s[o.PRERELEASELOOSE],"?").concat(s[o.BUILD],"?")),u("LOOSE","^".concat(s[o.LOOSEPLAIN],"$")),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE","".concat(s[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),u("XRANGEIDENTIFIER","".concat(s[o.NUMERICIDENTIFIER],"|x|X|\\*")),u("XRANGEPLAIN","[v=\\s]*(".concat(s[o.XRANGEIDENTIFIER],")(?:\\.(").concat(s[o.XRANGEIDENTIFIER],")(?:\\.(").concat(s[o.XRANGEIDENTIFIER],")(?:").concat(s[o.PRERELEASE],")?").concat(s[o.BUILD],"?)?)?")),u("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[o.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(s[o.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(s[o.XRANGEIDENTIFIERLOOSE],")(?:").concat(s[o.PRERELEASELOOSE],")?").concat(s[o.BUILD],"?)?)?")),u("XRANGE","^".concat(s[o.GTLT],"\\s*").concat(s[o.XRANGEPLAIN],"$")),u("XRANGELOOSE","^".concat(s[o.GTLT],"\\s*").concat(s[o.XRANGEPLAINLOOSE],"$")),u("COERCE","(^|[^\\d])(\\d{1,".concat(n,"})(?:\\.(\\d{1,").concat(n,"}))?(?:\\.(\\d{1,").concat(n,"}))?(?:$|[^\\d])")),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM","(\\s*)".concat(s[o.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",u("TILDE","^".concat(s[o.LONETILDE]).concat(s[o.XRANGEPLAIN],"$")),u("TILDELOOSE","^".concat(s[o.LONETILDE]).concat(s[o.XRANGEPLAINLOOSE],"$")),u("LONECARET","(?:\\^)"),u("CARETTRIM","(\\s*)".concat(s[o.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",u("CARET","^".concat(s[o.LONECARET]).concat(s[o.XRANGEPLAIN],"$")),u("CARETLOOSE","^".concat(s[o.LONECARET]).concat(s[o.XRANGEPLAINLOOSE],"$")),u("COMPARATORLOOSE","^".concat(s[o.GTLT],"\\s*(").concat(s[o.LOOSEPLAIN],")$|^$")),u("COMPARATOR","^".concat(s[o.GTLT],"\\s*(").concat(s[o.FULLPLAIN],")$|^$")),u("COMPARATORTRIM","(\\s*)".concat(s[o.GTLT],"\\s*(").concat(s[o.LOOSEPLAIN],"|").concat(s[o.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE","^\\s*(".concat(s[o.XRANGEPLAIN],")\\s+-\\s+(").concat(s[o.XRANGEPLAIN],")\\s*$")),u("HYPHENRANGELOOSE","^\\s*(".concat(s[o.XRANGEPLAINLOOSE],")\\s+-\\s+(").concat(s[o.XRANGEPLAINLOOSE],")\\s*$")),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),ae=F({"node_modules/semver/internal/parse-options.js"(e,t){L();var n=["includePrerelease","loose","rtl"],r=e=>e?"object"!=typeof e?{loose:!0}:n.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};t.exports=r}}),ue=F({"node_modules/semver/internal/identifiers.js"(e,t){L();var n=/^[0-9]+$/,r=(e,t)=>{let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},i=(e,t)=>r(t,e);t.exports={compareIdentifiers:r,rcompareIdentifiers:i}}}),le=F({"node_modules/semver/classes/semver.js"(e,t){L();var n=ie(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=se(),{re:s,t:o}=oe(),a=ae(),{compareIdentifiers:u}=ue(),l=class{constructor(e,t){if(t=a(t),e instanceof l){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>r)throw new TypeError("version is longer than ".concat(r," characters"));n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let u=e.trim().match(t.loose?s[o.LOOSE]:s[o.FULL]);if(!u)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return u(r,i)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return u(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(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}};t.exports=l}}),ce=F({"node_modules/semver/functions/compare.js"(e,t){L();var n=le(),r=(e,t,r)=>new n(e,r).compare(new n(t,r));t.exports=r}}),pe=F({"node_modules/semver/functions/lt.js"(e,t){L();var n=ce(),r=(e,t,r)=>n(e,t,r)<0;t.exports=r}}),de=F({"node_modules/semver/functions/gte.js"(e,t){L();var n=ce(),r=(e,t,r)=>n(e,t,r)>=0;t.exports=r}}),fe=F({"src/utils/arrayify.js"(e,t){L(),t.exports=(e,t)=>Object.entries(e).map((e=>{let[n,r]=e;return Object.assign({[t]:n},r)}))}}),he=F({"node_modules/outdent/lib/index.js"(e,t){function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function r(){return typeof WeakMap<"u"?new WeakMap:i()}function i(){return{add:n,delete:n,get:n,set:n,has:function(e){return!1}}}L(),Object.defineProperty(e,"__esModule",{value:!0}),e.outdent=void 0;var s=Object.prototype.hasOwnProperty,o=function(e,t){return s.call(e,t)};function a(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return e}var u=/^[ \t]*(?:\r\n|\r|\n)/,l=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,p=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,d=/^[ \t]*[\r\n][ \t\r\n]*$/;function f(e,t,n){var r=0,i=e[0].match(p);i&&(r=i[1].length);var s=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");t&&(e=e.slice(1));var o=n.newline,a=n.trimLeadingNewline,c=n.trimTrailingNewline,d="string"==typeof o,f=e.length;return e.map((function(e,t){return e=e.replace(s,"$1"),0===t&&a&&(e=e.replace(u,"")),t===f-1&&c&&(e=e.replace(l,"")),d&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return o}))),e}))}function h(e,t){for(var n="",r=0,i=e.length;r<i;r++)n+=e[r],r<i-1&&(n+=t[r]);return n}function m(e){return o(e,"raw")&&o(e,"length")}function g(e){var t=r(),n=r();function i(r){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];if(m(r)){var u=r,l=(s[0]===i||s[0]===y)&&d.test(u[0])&&c.test(u[1]),p=l?n:t,D=p.get(u);return D||(D=f(u,l,e),p.set(u,D)),0===s.length?D[0]:h(D,l?s.slice(1):s)}return g(a(a({},e),r||{}))}return a(i,{string:function(t){return f([t],!1,e)[0]}})}var y=g({trimLeadingNewline:!0,trimTrailingNewline:!0});if(e.outdent=y,e.default=y,typeof t<"u")try{t.exports=y,Object.defineProperty(y,"__esModule",{value:!0}),y.default=y,y.outdent=y}catch{}}}),me=F({"src/main/core-options.js"(e,t){L();var{outdent:n}=he(),r="Config",i="Editor",s="Format",f="Other",h="Output",m="Global",g="Special",y={cursorOffset:{since:"1.4.0",category:g,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:n(o||(o=d(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]))),cliCategory:i},endOfLine:{since:"1.15.0",category:m,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:n(a||(a=d(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "])))}]},filepath:{since:"1.4.0",category:g,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:f,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:g,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:f},parser:{since:"0.0.10",category:m,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"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:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{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:"2.3.0",description:"Ember / 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:m,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:r},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:m,description:n(u||(u=d(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]))),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:r},printWidth:{since:"0.0.0",category:m,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:g,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:n(l||(l=d(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:i},rangeStart:{since:"1.4.0",category:g,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:n(c||(c=d(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:i},requirePragma:{since:"1.7.0",category:g,type:"boolean",default:!1,description:n(p||(p=d(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]))),cliCategory:f},tabWidth:{type:"int",category:m,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:m,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:m,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:r,CATEGORY_EDITOR:i,CATEGORY_FORMAT:s,CATEGORY_OTHER:f,CATEGORY_OUTPUT:h,CATEGORY_GLOBAL:m,CATEGORY_SPECIAL:g,options:y}}}),ge=F({"src/main/support.js"(e,t){L();var n={compare:ce(),lt:pe(),gte:de()},r=fe(),i=O().version,s=me().options;function o(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:o=!1,showInternal:u=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=i.split("-",1)[0],c=e.flatMap((e=>e.languages||[])).filter(d),p=r(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),s),"name").filter((e=>d(e)&&f(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map(m).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(d).sort(((e,t)=>n.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>d(e)&&f(e))),"parser"===t.name&&a(t,c,e));let r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));return{languages:c,options:p};function d(e){return t||!("since"in e)||e.since&&n.gte(l,e.since)}function f(e){return o||!("deprecated"in e)||e.deprecated&&n.lt(l,e.deprecated)}function m(e){if(u)return e;let{cliName:t,cliCategory:n,cliDescription:r}=e;return y(e,h)}}function a(e,t,n){let r=new Set(e.choices.map((e=>e.value)));for(let i of t)if(i.parsers)for(let t of i.parsers)if(!r.has(t)){r.add(t);let s=n.find((e=>e.parsers&&e.parsers[t])),o=i.name;s&&s.name&&(o+=" (plugin: ".concat(s.name,")")),e.choices.push({value:t,description:o})}}t.exports={getSupportInfo:o}}}),ye=F({"src/utils/is-non-empty-array.js"(e,t){function n(e){return Array.isArray(e)&&e.length>0}L(),t.exports=n}}),De=F({"src/utils/text/skip.js"(e,t){function n(e){return(t,n,r)=>{let i=r&&r.backwards;if(!1===n)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return(-1===o||o===s)&&o}}L();var r=n(/\s/),i=n(" \t"),s=n(",; \t"),o=n(/[^\n\r]/);t.exports={skipWhitespace:r,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:o}}}),ve=F({"src/utils/text/skip-inline-comment.js"(e,t){function n(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}L(),t.exports=n}}),be=F({"src/utils/text/skip-trailing-comment.js"(e,t){L();var{skipEverythingButNewLine:n}=De();function r(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?n(e,t):t)}t.exports=r}}),Ee=F({"src/utils/text/skip-newline.js"(e,t){function n(e,t,n){let r=n&&n.backwards;if(!1===t)return!1;let i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}L(),t.exports=n}}),Ce=F({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){L();var n=ve(),r=Ee(),i=be(),{skipSpaces:s}=De();function o(e,t){let o=null,a=t;for(;a!==o;)o=a,a=s(e,a),a=n(e,a),a=i(e,a),a=r(e,a);return a}t.exports=o}}),Ae=F({"src/common/util.js"(e,t){L();var{default:n}=(re(),k(te)),r=j(),{getSupportInfo:i}=ge(),s=ye(),o=Y(),{skipWhitespace:a,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c}=De(),p=ve(),d=be(),f=Ee(),h=Ce(),m=e=>e[e.length-2];function g(e){return(t,n,r)=>{let i=r&&r.backwards;if(!1===n)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return(-1===o||o===s)&&o}}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u(e,n.backwards?t-1:t,n);return r!==f(e,r,n)}function D(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1}function v(e,t,n){let r=n(t)-1;return r=u(e,r,{backwards:!0}),r=f(e,r,{backwards:!0}),r=u(e,r,{backwards:!0}),r!==f(e,r,{backwards:!0})}function b(e,t){let n=null,r=t;for(;r!==n;)n=r,r=l(e,r),r=p(e,r),r=u(e,r);return r=d(e,r),r=f(e,r),!1!==r&&y(e,r)}function E(e,t,n){return b(e,n(t))}function C(e,t,n){return h(e,n(t))}function A(e,t,n){return e.charAt(C(e,t,n))}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(e,n.backwards?t-1:t,n)!==t}function x(e,t){let n=0;for(let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<e.length;++r)"\t"===e[r]?n=n+t-n%t:n++;return n}function w(e,t){let n=e.lastIndexOf("\n");return-1===n?0:x(e.slice(n+1).match(/^[\t ]*/)[0],t)}function F(e,t){let n={quote:'"',regex:/"/g,escaped:"""},r={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?r:n,s=i===r?n:r,o=i;return(e.includes(i.quote)||e.includes(s.quote))&&(o=(e.match(i.regex)||[]).length>(e.match(s.regex)||[]).length?s:i),o}function T(e,t){let n=e.slice(1,-1);return N(n,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":F(n,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function N(e,t,n){let r='"'===t?"'":'"',i=/\\(.)|(["'])/gs,s=e.replace(i,((e,i,s)=>i===r?i:s===t?"\\"+s:s||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+s+t}function _(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function O(e,t){let r=e.match(new RegExp("(".concat(n(t),")+"),"g"));return null===r?0:r.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)}function P(e,t){let r=e.match(new RegExp("(".concat(n(t),")+"),"g"));if(null===r)return 0;let i=new Map,s=0;for(let n of r){let e=n.length/t.length;i.set(e,!0),e>s&&(s=e)}for(let n=1;n<s;n++)if(!i.get(n))return n;return s+1}function I(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=W(e)}function B(e,t){t.leading=!0,t.trailing=!1,I(e,t)}function M(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),I(e,t)}function R(e,t){t.leading=!1,t.trailing=!0,I(e,t)}function V(e,t){let{languages:n}=i({plugins:t.plugins}),r=n.find((t=>{let{name:n}=t;return n.toLowerCase()===e}))||n.find((t=>{let{aliases:n}=t;return Array.isArray(n)&&n.includes(e)}))||n.find((t=>{let{extensions:n}=t;return Array.isArray(n)&&n.includes(".".concat(e))}));return r&&r.parsers[0]}function q(e){return e&&"front-matter"===e.type}function U(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}function W(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"\u2026"),t+(n?" "+n:"")}t.exports={inferParserByLanguage:V,getStringWidth:o,getMaxContinuousCount:O,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:h,getNextNonSpaceNonCommentCharacterIndex:C,getNextNonSpaceNonCommentCharacter:A,skip:g,skipWhitespace:a,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c,skipInlineComment:p,skipTrailingComment:d,skipNewline:f,isNextLineEmptyAfterIndex:b,isNextLineEmpty:E,isPreviousLineEmpty:v,hasNewline:y,hasNewlineInRange:D,hasSpaces:S,getAlignmentSize:x,getIndentSize:w,getPreferredQuote:F,printString:T,printNumber:_,makeString:N,addLeadingComment:B,addDanglingComment:M,addTrailingComment:R,isFrontMatterNode:q,isNonEmptyArray:s,createGroupIdMapper:U}}}),Se={};function xe(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function we(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=xe(Pe(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function Fe(e){var t=Te(e),n="/"===qe(e,-1);return!(e=xe(Pe(e.split("/"),(function(e){return!!e})),!t).join("/"))&&!t&&(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Te(e){return"/"===e.charAt(0)}function Ne(){return Fe(Pe(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function _e(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=we(e).substr(1),t=we(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),s=Math.min(r.length,i.length),o=s,a=0;a<s;a++)if(r[a]!==i[a]){o=a;break}var u=[];for(a=o;a<r.length;a++)u.push("..");return(u=u.concat(i.slice(o))).join("/")}function ke(e){var t=Me(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function Le(e,t){var n=Me(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function Oe(e){return Me(e)[3]}function Pe(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}T(Se,{basename:()=>Le,default:()=>Ve,delimiter:()=>Re,dirname:()=>ke,extname:()=>Oe,isAbsolute:()=>Te,join:()=>Ne,normalize:()=>Fe,relative:()=>_e,resolve:()=>we,sep:()=>je});var Ie,Me,je,Re,Ve,qe,Ue=w({"node-modules-polyfills:path"(){L(),Ie=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Me=function(e){return Ie.exec(e).slice(1)},Ve={extname:Oe,basename:Le,dirname:ke,sep:je="/",delimiter:Re=":",relative:_e,join:Ne,isAbsolute:Te,normalize:Fe,resolve:we},qe=function(e,t,n){return e.substr(t,n)}}}),We=F({"node-modules-polyfills-commonjs:path"(e,t){L();var n=(Ue(),k(Se));if(n&&n.default){t.exports=n.default;for(let e in n)t.exports[e]=n[e]}else n&&(t.exports=n)}}),$e=F({"src/common/errors.js"(e,t){L();var n=class extends Error{},r=class extends Error{},i=class extends Error{},s=class extends Error{};t.exports={ConfigError:n,DebugError:r,UndefinedParserError:i,ArgExpansionBailout:s}}}),He={};function Ge(e,t){function n(){this.constructor=e}Dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Qe(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Xe(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function Ze(e,t){return function(n,r){t(n,r,e)}}function et(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function tt(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{u(r.next(e))}catch(t){s(t)}}function a(e){try{u(r.throw(e))}catch(t){s(t)}}function u(e){e.done?n(e.value):i(e.value).then(o,a)}u((r=r.apply(e,t||[])).next())}))}function nt(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(a){s=[6,a],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function rt(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function it(e,t){for(var n in e)"default"!==n&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function st(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ot(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function at(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ot(arguments[t]));return e}function ut(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function lt(e){return this instanceof lt?(this.v=e,this):new lt(e)}function ct(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{u(i[e](t))}catch(n){p(s[0][3],n)}}function u(e){e.value instanceof lt?Promise.resolve(e.value.v).then(l,c):p(s[0][2],e)}function l(e){a("next",e)}function c(e){a("throw",e)}function p(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function pt(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:lt(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function dt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof st?st(e):e[Symbol.iterator](),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,s){i(r,s,(t=e[n](t)).done,t.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function ft(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ht(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}function mt(e){return e&&e.__esModule?e:{default:e}}function gt(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function yt(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}T(He,{__assign:()=>vt,__asyncDelegator:()=>pt,__asyncGenerator:()=>ct,__asyncValues:()=>dt,__await:()=>lt,__awaiter:()=>tt,__classPrivateFieldGet:()=>gt,__classPrivateFieldSet:()=>yt,__createBinding:()=>rt,__decorate:()=>Xe,__exportStar:()=>it,__extends:()=>Ge,__generator:()=>nt,__importDefault:()=>mt,__importStar:()=>ht,__makeTemplateObject:()=>ft,__metadata:()=>et,__param:()=>Ze,__read:()=>ot,__rest:()=>Qe,__spread:()=>at,__spreadArrays:()=>ut,__values:()=>st});var Dt,vt,bt=w({"node_modules/tslib/tslib.es6.js"(){L(),Dt=function(e,t){return(Dt=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)},vt=function(){return vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vt.apply(this,arguments)}}}),Et=F({"node_modules/vnopts/lib/descriptors/api.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return"[".concat(t.map((t=>e.apiDescriptor.value(t))).join(", "),"]");let n=Object.keys(t);return 0===n.length?"{}":"{ ".concat(n.map((n=>"".concat(e.apiDescriptor.key(n),": ").concat(e.apiDescriptor.value(t[n])))).join(", ")," }")},pair:t=>{let{key:n,value:r}=t;return e.apiDescriptor.value({[n]:r})}}}}),Ct=F({"node_modules/vnopts/lib/descriptors/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0}),(bt(),k(He)).__exportStar(Et(),e)}}),At=F({"scripts/build/shims/chalk.cjs"(e,t){L();var n=e=>e;n.grey=n,n.red=n,n.bold=n,n.yellow=n,n.blue=n,n.default=n,t.exports=n}}),St=F({"node_modules/vnopts/lib/handlers/deprecated/common.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=At();e.commonDeprecatedHandler=(e,n,r)=>{let{descriptor:i}=r,s=["".concat(t.default.yellow("string"==typeof e?i.key(e):i.pair(e))," is deprecated")];return n&&s.push("we now treat it as ".concat(t.default.blue("string"==typeof n?i.key(n):i.pair(n)))),s.join("; ")+"."}}}),xt=F({"node_modules/vnopts/lib/handlers/deprecated/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0}),(bt(),k(He)).__exportStar(St(),e)}}),wt=F({"node_modules/vnopts/lib/handlers/invalid/common.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=At();e.commonInvalidHandler=(e,n,r)=>["Invalid ".concat(t.default.red(r.descriptor.key(e))," value."),"Expected ".concat(t.default.blue(r.schemas[e].expected(r)),","),"but received ".concat(t.default.red(r.descriptor.value(n)),".")].join(" ")}}),Ft=F({"node_modules/vnopts/lib/handlers/invalid/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0}),(bt(),k(He)).__exportStar(wt(),e)}}),Tt=F({"node_modules/vnopts/node_modules/leven/index.js"(e,t){L();var n=[],r=[];t.exports=function(e,t){if(e===t)return 0;var i=e;e.length>t.length&&(e=t,t=i);var s=e.length,o=t.length;if(0===s)return o;if(0===o)return s;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-o);)s--,o--;if(0===s)return o;for(var a=0;a<s&&e.charCodeAt(a)===t.charCodeAt(a);)a++;if(o-=a,0===(s-=a))return o;for(var u,l,c,p,d=0,f=0;d<s;)r[a+d]=e.charCodeAt(a+d),n[d]=++d;for(;f<o;)for(u=t.charCodeAt(a+f),c=f++,l=f,d=0;d<s;d++)p=u===r[a+d]?c:c+1,c=n[d],l=n[d]=c>l?p>l?l+1:p:p>c?c+1:p;return l}}}),Nt=F({"node_modules/vnopts/lib/handlers/unknown/leven.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=At(),n=Tt();e.levenUnknownHandler=(e,r,i)=>{let{descriptor:s,logger:o,schemas:a}=i,u=["Ignored unknown option ".concat(t.default.yellow(s.pair({key:e,value:r})),".")],l=Object.keys(a).sort().find((t=>n(e,t)<3));l&&u.push("Did you mean ".concat(t.default.blue(s.key(l)),"?")),o.warn(u.join(" "))}}}),_t=F({"node_modules/vnopts/lib/handlers/unknown/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0}),(bt(),k(He)).__exportStar(Nt(),e)}}),kt=F({"node_modules/vnopts/lib/handlers/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=(bt(),k(He));t.__exportStar(xt(),e),t.__exportStar(Ft(),e),t.__exportStar(_t(),e)}}),Lt=F({"node_modules/vnopts/lib/schema.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(e,n){let s=new e(n),o=Object.create(s);for(let a of t)a in n&&(o[a]=i(n[a],s,r.prototype[a].length));return o}e.createSchema=n;var r=class{constructor(e){this.name=e.name}static create(e){return n(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 i(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e(...i.slice(0,n-1),t,...i.slice(n-1))}:()=>e}e.Schema=r}}),Ot=F({"node_modules/vnopts/lib/schemas/alias.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=class extends t.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}};e.AliasSchema=n}}),Pt=F({"node_modules/vnopts/lib/schemas/any.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=class extends t.Schema{expected(){return"anything"}validate(){return!0}};e.AnySchema=n}}),It=F({"node_modules/vnopts/lib/schemas/array.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=(bt(),k(He)),n=Lt(),r=class extends n.Schema{constructor(e){var{valueSchema:n,name:r=n.name}=e,i=t.__rest(e,["valueSchema","name"]);super(Object.assign({},i,{name:r})),this._valueSchema=n}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map((e=>{let{value:t}=e;return{value:[t]}})))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(i))}return n}redirect(e,t){let n=[],r=[];for(let s of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(i))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function i(e){let{from:t,to:n}=e;return{from:[t],to:n}}e.ArraySchema=r}}),Bt=F({"node_modules/vnopts/lib/schemas/boolean.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=class extends t.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};e.BooleanSchema=n}}),Mt=F({"node_modules/vnopts/lib/utils.js"(e){function t(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n}function n(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n}function r(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}}function i(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function s(e){return e===Math.floor(e)}function o(e,t){if(e===t)return 0;let 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)}function a(e){return void 0===e?{}:e}function u(e,t){return!0===e||(!1===e?{value:t}:e)}function l(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function c(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 p(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>c(e,t))):[c(e,t)]}function d(e,t){let n=p("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}}L(),Object.defineProperty(e,"__esModule",{value:!0}),e.recordFromArray=t,e.mapFromArray=n,e.createAutoChecklist=r,e.partition=i,e.isInt=s,e.comparePrimitive=o,e.normalizeDefaultResult=a,e.normalizeValidateResult=u,e.normalizeDeprecatedResult=l,e.normalizeTransferResult=c,e.normalizeForwardResult=p,e.normalizeRedirectResult=d}}),jt=F({"node_modules/vnopts/lib/schemas/choice.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=Mt(),r=class extends t.Schema{constructor(e){super(e),this._choices=n.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected(e){let{descriptor:t}=e,r=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(n.comparePrimitive).map(t.value),i=r.slice(0,-2),s=r.slice(-2);return i.concat(s.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}};e.ChoiceSchema=r}}),Rt=F({"node_modules/vnopts/lib/schemas/number.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=class extends t.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}};e.NumberSchema=n}}),Vt=F({"node_modules/vnopts/lib/schemas/integer.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Mt(),n=Rt(),r=class extends n.NumberSchema{expected(){return"an integer"}validate(e,n){return!0===n.normalizeValidateResult(super.validate(e,n),e)&&t.isInt(e)}};e.IntegerSchema=r}}),qt=F({"node_modules/vnopts/lib/schemas/string.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Lt(),n=class extends t.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}};e.StringSchema=n}}),Ut=F({"node_modules/vnopts/lib/schemas/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=(bt(),k(He));t.__exportStar(Ot(),e),t.__exportStar(Pt(),e),t.__exportStar(It(),e),t.__exportStar(Bt(),e),t.__exportStar(jt(),e),t.__exportStar(Vt(),e),t.__exportStar(Rt(),e),t.__exportStar(qt(),e)}}),Wt=F({"node_modules/vnopts/lib/defaults.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Et(),n=St(),r=Ft(),i=Nt();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=i.levenUnknownHandler,e.defaultInvalidHandler=r.commonInvalidHandler,e.defaultDeprecatedHandler=n.commonDeprecatedHandler}}),Kt=F({"node_modules/vnopts/lib/normalize.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Wt(),n=Mt();e.normalize=(e,t,n)=>new r(t,n).normalize(e);var r=class{constructor(e,r){let{logger:i=console,descriptor:s=t.defaultDescriptor,unknown:o=t.defaultUnknownHandler,invalid:a=t.defaultInvalidHandler,deprecated:u=t.defaultDeprecatedHandler}=r||{};this._utils={descriptor:s,logger:i||{warn:()=>{}},schemas:n.recordFromArray(e,"name"),normalizeDefaultResult:n.normalizeDefaultResult,normalizeDeprecatedResult:n.normalizeDeprecatedResult,normalizeForwardResult:n.normalizeForwardResult,normalizeRedirectResult:n.normalizeRedirectResult,normalizeValidateResult:n.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=a,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=n.createAutoChecklist()}normalize(e){let t={},r=[e],i=()=>{for(;0!==r.length;){let e=r.shift(),n=this._applyNormalization(e,t);r.push(...n)}};i();for(let s of Object.keys(this._utils.schemas)){let e=this._utils.schemas[s];if(!(s in t)){let t=n.normalizeDefaultResult(e.default(this._utils));"value"in t&&r.push({[s]:t.value})}}i();for(let n of Object.keys(this._utils.schemas)){let e=this._utils.schemas[n];n in t&&(t[n]=e.postprocess(t[n],this._utils))}return t}_applyNormalization(e,t){let r=[],[i,s]=n.partition(Object.keys(e),(e=>e in this._utils.schemas));for(let o of i){let i=this._utils.schemas[o],s=i.preprocess(e[o],this._utils),a=n.normalizeValidateResult(i.validate(s,this._utils),s);if(!0!==a){let{value:e}=a,t=this._invalidHandler(o,e,this._utils);throw"string"==typeof t?new Error(t):t}let u=e=>{let{from:t,to:n}=e;r.push("string"==typeof n?{[n]:t}:{[n.key]:n.value})},l=e=>{let{value:t,redirectTo:r}=e,a=n.normalizeDeprecatedResult(i.deprecated(t,this._utils),s,!0);if(!1!==a)if(!0===a)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,r,this._utils));else for(let{value:n}of a){let e={key:o,value:n};if(!this._hasDeprecationWarned(e)){let t="string"==typeof r?{key:r,value:n}:r;this._utils.logger.warn(this._deprecatedHandler(e,t,this._utils))}}};n.normalizeForwardResult(i.forward(s,this._utils),s).forEach(u);let c=n.normalizeRedirectResult(i.redirect(s,this._utils),s);if(c.redirect.forEach(u),"remain"in c){let e=c.remain;t[o]=o in t?i.overlap(t[o],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of c.redirect)l({value:e,redirectTo:t})}for(let n of s){let i=e[n],s=this._unknownHandler(n,i,this._utils);if(s)for(let e of Object.keys(s)){let n={[e]:s[e]};e in this._utils.schemas?r.push(n):Object.assign(t,n)}}return r}};e.Normalizer=r}}),$t=F({"node_modules/vnopts/lib/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=(bt(),k(He));t.__exportStar(Ct(),e),t.__exportStar(kt(),e),t.__exportStar(Ut(),e),t.__exportStar(Kt(),e),t.__exportStar(Lt(),e)}}),Ht=F({"src/main/options-normalizer.js"(e,t){L();var n,r=$t(),i=j(),s={key:e=>1===e.length?"-".concat(e):"--".concat(e),value:e=>r.apiDescriptor.value(e),pair:e=>{let{key:t,value:n}=e;return!1===n?"--no-".concat(t):!0===n?s.key(t):""===n?"".concat(s.key(t)," without an argument"):"".concat(s.key(t),"=").concat(n)}},o=e=>{let{colorsModule:t,levenshteinDistance:n}=e;return class extends r.ChoiceSchema{constructor(e){let{name:t,flags:n}=e;super({name:t,choices:n}),this._flags=[...n].sort()}preprocess(e,r){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){let i=this._flags.find((t=>n(t,e)<3));if(i)return r.logger.warn(["Unknown flag ".concat(t.yellow(r.descriptor.value(e)),","),"did you mean ".concat(t.blue(r.descriptor.value(i)),"?")].join(" ")),i}return e}expected(){return"a flag"}}};function a(e,t){let{logger:i=!1,isCLI:o=!1,passThrough:a=!1,colorsModule:l=null,levenshteinDistance:c=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=a?Array.isArray(a)?(e,t)=>a.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let i=n.schemas,{_:s}=i,o=y(i,m);return r.levenUnknownHandler(e,t,Object.assign(Object.assign({},n),{},{schemas:o}))},d=o?s:r.apiDescriptor,f=u(t,{isCLI:o,colorsModule:l,levenshteinDistance:c}),h=new r.Normalizer(f,{logger:i,unknown:p,descriptor:d}),g=!1!==i;g&&n&&(h._hasDeprecationWarned=n);let D=h.normalize(e);return g&&(n=h._hasDeprecationWarned),o&&!1===D["plugin-search"]&&(D["plugin-search-dir"]=!1),D}function u(e,t){let{isCLI:n,colorsModule:i,levenshteinDistance:s}=t,o=[];n&&o.push(r.AnySchema.create({name:"_"}));for(let a of e)o.push(l(a,{isCLI:n,optionInfos:e,colorsModule:i,levenshteinDistance:s})),a.alias&&n&&o.push(r.AliasSchema.create({name:a.alias,sourceName:a.name}));return o}function l(e,t){let{isCLI:n,optionInfos:s,colorsModule:a,levenshteinDistance:u}=t,{name:l}=e;if("plugin-search-dir"===l||"pluginSearchDirs"===l)return r.AnySchema.create({name:l,preprocess:e=>(!1===e||(e=Array.isArray(e)?e:[e]),e),validate:e=>!1===e||e.every((e=>"string"==typeof e)),expected:()=>"false or paths to plugin search dir"});let c,p={name:l},d={};switch(e.type){case"int":c=r.IntegerSchema,n&&(p.preprocess=Number);break;case"string":case"path":c=r.StringSchema;break;case"choice":c=r.ChoiceSchema,p.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":c=r.BooleanSchema;break;case"flag":c=o({colorsModule:a,levenshteinDistance:u}),p.flags=s.flatMap((e=>[e.alias,e.description&&e.name,e.oppositeDescription&&"no-".concat(e.name)].filter(Boolean)));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?p.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):p.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(d.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(d.deprecated=!0),n&&!e.array){let e=p.preprocess||(e=>e);p.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?i(t):t),r)}return e.array?r.ArraySchema.create(Object.assign(Object.assign(Object.assign({},n?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),d),{},{valueSchema:c.create(p)})):c.create(Object.assign(Object.assign({},p),d))}function c(e,t,n){return a(e,t,n)}function p(e,t,n){return a(e,t,Object.assign({isCLI:!0},n))}t.exports={normalizeApiOptions:c,normalizeCliOptions:p}}}),Jt=F({"src/language-js/loc.js"(e,t){L();var n=ye();function r(e){var t,i;let s=e.range?e.range[0]:e.start,o=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return n(o)?Math.min(r(o[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let n=r(e);return Number.isInteger(n)&&n===r(t)}function o(e,t){let n=i(e);return Number.isInteger(n)&&n===i(t)}function a(e,t){return s(e,t)&&o(e,t)}t.exports={locStart:r,locEnd:i,hasSameLocStart:s,hasSameLoc:a}}}),Gt=F({"src/main/load-parser.js"(e,t){L(),t.exports=()=>{}}}),zt=F({"scripts/build/shims/babel-highlight.cjs"(e,t){L();var n=At(),r={shouldHighlight:()=>!1,getChalk:()=>n};t.exports=r}}),Yt=F({"node_modules/@babel/code-frame/lib/index.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=o,e.default=a;var t=zt(),n=!1;function r(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var i=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:s=2,linesBelow:o=3}=n||{},a=r.line,u=r.column,l=i.line,c=i.column,p=Math.max(a-(s+1),0),d=Math.min(t.length,l+o);-1===a&&(p=0),-1===l&&(d=t.length);let f=l-a,h={};if(f)for(let m=0;m<=f;m++){let e=m+a;if(u)if(0===m){let n=t[e-1].length;h[e]=[u,n-u+1]}else if(m===f)h[e]=[0,c];else{let n=t[e-m].length;h[e]=[0,n]}else h[e]=!0}else h[a]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:d,markerLines:h}}function o(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(o.highlightCode||o.forceColor)&&(0,t.shouldHighlight)(o),u=(0,t.getChalk)(o),l=r(u),c=(e,t)=>a?e(t):t,p=e.split(i),{start:d,end:f,markerLines:h}=s(n,p,o),m=n.start&&"number"==typeof n.start.column,g=String(f).length,y=(a?(0,t.default)(e,o):e).split(i,f).slice(d,f).map(((e,t)=>{let n=d+1+t,r=" ".concat(" ".concat(n).slice(-g)," |"),i=h[n],s=!h[n+1];if(i){let t="";if(Array.isArray(i)){let n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),a=i[1]||1;t=["\n ",c(l.gutter,r.replace(/\d/g," "))," ",n,c(l.marker,"^").repeat(a)].join(""),s&&o.message&&(t+=" "+c(l.message,o.message))}return[c(l.marker,">"),c(l.gutter,r),e.length>0?" ".concat(e):"",t].join("")}return" ".concat(c(l.gutter,r)).concat(e.length>0?" ".concat(e):"")})).join("\n");return o.message&&!m&&(y="".concat(" ".repeat(g+1)).concat(o.message,"\n").concat(y)),a?u.reset(y):y}function a(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n){n=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";v.emitWarning?v.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return o(e,{start:{column:r=Math.max(r,0),line:t}},i)}}}),Qt=F({"src/main/parser.js"(e,t){L();var{ConfigError:n}=$e(),r=Jt(),{locStart:i,locEnd:s}=(Gt(),r),o=Object.getOwnPropertyNames,a=Object.getOwnPropertyDescriptor;function u(e){let t={};for(let n of e.plugins)if(n.parsers)for(let e of o(n.parsers))Object.defineProperty(t,e,a(n.parsers,e));return t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:i,locEnd:s};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new n("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}function c(e,t){let n=u(t),r=Object.defineProperties({},Object.fromEntries(Object.keys(n).map((e=>[e,{enumerable:!0,get:()=>n[e].parse}])))),i=l(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(s){let{loc:t}=s;if(t){let{codeFrameColumns:n}=Yt();throw s.codeFrame=n(e,t,{highlightCode:!0}),s.message+="\n"+s.codeFrame,s}throw s}}t.exports={parse:c,resolveParser:l}}}),Xt=F({"src/main/options.js"(e,t){L();var n=We(),{UndefinedParserError:r}=$e(),{getSupportInfo:i}=ge(),s=Ht(),{resolveParser:o}=Qt(),a={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e),u=i({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,p=Object.assign(Object.assign({},a),Object.fromEntries(u.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!n.parser)if(n.filepath){if(n.parser=c(n.filepath,n.plugins),!n.parser)throw new r("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";let d=o(s.normalizeApiOptions(n,[u.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));n.astFormat=d.astFormat,n.locEnd=d.locEnd,n.locStart=d.locStart;let f=l(n);n.printer=f.printers[n.astFormat];let h=Object.fromEntries(u.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[f.name])).map((e=>[e.name,e.pluginDefaults[f.name]]))),m=Object.assign(Object.assign({},p),h);for(let[r,i]of Object.entries(m))(null===n[r]||void 0===n[r])&&(n[r]=i);return"json"===n.parser&&(n.trailingComma="none"),s.normalizeApiOptions(n,u,Object.assign({passThrough:Object.keys(a)},t))}function l(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let 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}function c(e,t){let r=n.basename(e).toLowerCase(),s=i({plugins:t}).languages.filter((e=>null!==e.since)).find((e=>e.extensions&&e.extensions.some((e=>r.endsWith(e)))||e.filenames&&e.filenames.some((e=>e.toLowerCase()===r))));return s&&s.parsers[0]}t.exports={normalize:u,hiddenDefaults:a,inferParser:c}}}),Zt=F({"src/main/massage-ast.js"(e,t){function n(e,t,r){if(Array.isArray(e))return e.map((e=>n(e,t,r))).filter(Boolean);if(!e||"object"!=typeof e)return e;let i,s=t.printer.massageAstNode;i=s&&s.ignoredProperties?s.ignoredProperties:new Set;let o={};for(let[a,u]of Object.entries(e))!i.has(a)&&"function"!=typeof u&&(o[a]=n(u,t,e));if(s){let t=s(e,o,r);if(null===t)return;if(t)return t}return o}L(),t.exports=n}}),en=F({"scripts/build/shims/assert.cjs"(e,t){L();var n=()=>{};n.ok=n,n.strictEqual=n,t.exports=n}}),tn=F({"src/main/comments.js"(e,t){L();var n=en(),{builders:{line:r,hardline:i,breakParent:s,indent:o,lineSuffix:a,join:u,cursor:l}}=ee(),{hasNewline:c,skipNewline:p,skipSpaces:d,isPreviousLineEmpty:f,addLeadingComment:h,addDanglingComment:m,addTrailingComment:g}=Ae(),y=new WeakMap;function D(e,t,n){if(!e)return;let{printer:r,locStart:i,locEnd:s}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(i(n[t])<=i(e)&&s(n[t])<=s(e));--t);return void n.splice(t+1,0,e)}}else if(y.has(e))return y.get(e);let o=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t})).map((e=>{let[,t]=e;return t}));if(o){n||(n=[],y.set(e,n));for(let e of o)D(e,t,n);return n}}function v(e,t,n,r){let i,s,{locStart:o,locEnd:a}=n,u=o(t),l=a(t),c=D(e,n),p=0,d=c.length;for(;p<d;){let e=p+d>>1,r=c[e],f=o(r),h=a(r);if(f<=u&&l<=h)return v(r,t,n,r);if(h<=u)i=r,p=e+1;else{if(!(l<=f))throw new Error("Comment location overlaps with node location");s=r,d=e}}if(r&&"TemplateLiteral"===r.type){let{quasis:e}=r,o=F(e,t,n);i&&F(e,i,n)!==o&&(i=null),s&&F(e,s,n)!==o&&(s=null)}return{enclosingNode:r,precedingNode:i,followingNode:s}}var b=()=>!1;function E(e,t,n,r){if(!Array.isArray(e))return;let i=[],{locStart:s,locEnd:o,printer:{handleComments:a={}}}=r,{avoidAstMutation:u,ownLine:l=b,endOfLine:c=b,remaining:p=b}=a,d=e.map(((i,s)=>Object.assign(Object.assign({},v(t,i,r)),{},{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===s})));for(let[f,y]of d.entries()){let e,{comment:t,precedingNode:n,enclosingNode:r,followingNode:a,text:D,options:v,ast:b,isLastComment:E}=y;if("json"===v.parser||"json5"===v.parser||"__js_expression"===v.parser||"__vue_expression"===v.parser||"__vue_ts_expression"===v.parser){if(s(t)-s(b)<=0){h(b,t);continue}if(o(t)-o(b)>=0){g(b,t);continue}}if(u?e=[y]:(t.enclosingNode=r,t.precedingNode=n,t.followingNode=a,e=[t,D,v,b,E]),A(D,v,d,f))t.placement="ownLine",l(...e)||(a?h(a,t):n?g(n,t):m(r||b,t));else if(S(D,v,d,f))t.placement="endOfLine",c(...e)||(n?g(n,t):a?h(a,t):m(r||b,t));else if(t.placement="remaining",!p(...e))if(n&&a){let e=i.length;e>0&&i[e-1].followingNode!==a&&x(i,D,v),i.push(y)}else n?g(n,t):a?h(a,t):m(r||b,t)}if(x(i,n,r),!u)for(let f of e)delete f.precedingNode,delete f.enclosingNode,delete f.followingNode}var C=e=>!/[\S\n\u2028\u2029]/.test(e);function A(e,t,n,r){let{comment:i,precedingNode:s}=n[r],{locStart:o,locEnd:a}=t,u=o(i);if(s)for(let l=r-1;l>=0;l--){let{comment:t,precedingNode:r}=n[l];if(r!==s||!C(e.slice(a(t),u)))break;u=o(t)}return c(e,u,{backwards:!0})}function S(e,t,n,r){let{comment:i,followingNode:s}=n[r],{locStart:o,locEnd:a}=t,u=a(i);if(s)for(let l=r+1;l<n.length;l++){let{comment:t,followingNode:r}=n[l];if(r!==s||!C(e.slice(u,o(t))))break;u=a(t)}return c(e,u)}function x(e,t,r){let i=e.length;if(0===i)return;let s,{precedingNode:o,followingNode:a,enclosingNode:u}=e[0],l=r.printer.getGapRegex&&r.printer.getGapRegex(u)||/^[\s(]*$/,c=r.locStart(a);for(s=i;s>0;--s){let{comment:i,precedingNode:u,followingNode:p}=e[s-1];n.strictEqual(u,o),n.strictEqual(p,a);let d=t.slice(r.locEnd(i),c);if(!l.test(d))break;c=r.locStart(i)}for(let[n,{comment:p}]of e.entries())n<s?g(o,p):h(a,p);for(let n of[o,a])n.comments&&n.comments.length>1&&n.comments.sort(((e,t)=>r.locStart(e)-r.locStart(t)));e.length=0}function w(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function F(e,t,n){let r=n.locStart(t)-1;for(let i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function T(e,t){let n=e.getValue(),s=[w(e,t)],{printer:o,originalText:a,locStart:u,locEnd:l}=t;if(o.isBlockComment&&o.isBlockComment(n)){let e=c(a,l(n))?c(a,u(n),{backwards:!0})?i:r:" ";s.push(e)}else s.push(i);let f=p(a,d(a,l(n)));return!1!==f&&c(a,f)&&s.push(i),s}function N(e,t){let n=e.getValue(),r=w(e,t),{printer:o,originalText:u,locStart:l}=t,p=o.isBlockComment&&o.isBlockComment(n);if(c(u,l(n),{backwards:!0})){let e=f(u,n,l);return a([i,e?i:"",r])}let d=[" ",r];return p||(d=[a(d),s]),d}function _(e,t,n,r){let s=[],a=e.getValue();return a&&a.comments&&(e.each((()=>{let n=e.getValue();!n.leading&&!n.trailing&&(!r||r(n))&&s.push(w(e,t))}),"comments"),0!==s.length)?n?u(i,s):o([i,u(i,s)]):""}function k(e,t,n){let r=e.getValue();if(!r)return{};let i=r.comments||[];n&&(i=i.filter((e=>!n.has(e))));let s=r===t.cursorNode;if(0===i.length){let e=s?l:"";return{leading:e,trailing:e}}let o=[],a=[];return e.each((()=>{let r=e.getValue();if(n&&n.has(r))return;let{leading:i,trailing:s}=r;i?o.push(T(e,t)):s&&a.push(N(e,t))}),"comments"),s&&(o.unshift(l),a.push(l)),{leading:o,trailing:a}}function O(e,t,n,r){let{leading:i,trailing:s}=k(e,n,r);return i||s?[i,t,s]:t}function P(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}t.exports={attach:E,printComments:O,printCommentsSeparately:k,printDanglingComments:_,getSortedChildNodes:D,ensureAllCommentsPrinted:P}}}),nn=F({"src/common/ast-path.js"(e,t){L();var n=j();function r(e,t){let n=i(e.stack,t);return-1===n?null:e.stack[n]}function i(e,t){for(let n=e.length-1;n>=0;n-=2){let r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var s=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return n(this.stack)}getNode(){return r(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}getParentNode(){return r(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}call(e){let{stack:t}=this,{length:r}=t,i=n(t);for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];for(let n of o)i=i[n],t.push(n,i);let u=e(this);return t.length=r,u}callParent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=i(this.stack,t+1),r=this.stack.splice(n+1),s=e(this);return this.stack.push(...r),s}each(e){let{stack:t}=this,{length:r}=t,i=n(t);for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];for(let n of o)i=i[n],t.push(n,i);for(let n=0;n<i.length;++n)t.push(n,i[n]),e(this,n,i),t.length-=2;t.length=r}map(e){let t=[];for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.each(((n,r,i)=>{t[r]=e(n,r,i)}),...r),t}try(e){let{stack:t}=this,n=[...t];try{return e()}finally{t.length=0,t.push(...n)}}match(){let e=this.stack.length-1,t=null,n=this.stack[e--];for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(let o of i){if(void 0===n)return!1;let r=null;if("number"==typeof t&&(r=t,t=this.stack[e--],n=this.stack[e--]),o&&!o(n,t,r))return!1;t=this.stack[e--],n=this.stack[e--]}return!0}findAncestor(e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(;r;){let i=null;if("number"==typeof n&&(i=n,n=this.stack[t--],r=this.stack[t--]),null!==n&&e(r,n,i))return r;n=this.stack[t--],r=this.stack[t--]}}};t.exports=s}}),rn=F({"src/main/multiparser.js"(e,t){L();var{utils:{stripTrailingHardline:n}}=ee(),{normalize:r}=Xt(),i=tn();function s(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,((e,t,i)=>o(e,t,n,r,i)),n)}function o(e,t,s,o){let{stripTrailingHardline:a=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=r(Object.assign(Object.assign(Object.assign({},s),t),{},{parentParser:s.parser,originalText:e}),{passThrough:!0}),l=Qt().parse(e,u),{ast:c}=l;e=l.text;let p=c.comments;delete c.comments,i.attach(p,c,e,u),u[Symbol.for("comments")]=p||[],u[Symbol.for("tokens")]=c.tokens||[];let d=o(c,u);return i.ensureAllCommentsPrinted(p),a?"string"==typeof d?d.replace(/(?:\r?\n)*$/,""):n(d):d}t.exports={printSubtree:s}}}),sn=F({"src/main/ast-to-doc.js"(e,t){L();var n=nn(),{builders:{hardline:r,addAlignmentToDoc:i},utils:{propagateBreaks:s}}=ee(),{printComments:o}=tn(),a=rn();function u(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{printer:a}=t;a.preprocess&&(e=a.preprocess(e,t));let u=new Map,l=new n(e),p=d();return o>0&&(p=i([r,p],o,t.tabWidth)),s(p),p;function d(e,t){return void 0===e||e===l?f(t):Array.isArray(e)?l.call((()=>f(t)),...e):l.call((()=>f(t)),e)}function f(e){let n=l.getValue(),r=n&&"object"==typeof n&&void 0===e;if(r&&u.has(n))return u.get(n);let i=c(l,t,d,e);return r&&u.set(n,i),i}}function l(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:s}=t,o=i(e),a=s(e),u=new Set;for(let l of r)i(l)>=o&&s(l)<=a&&(l.printed=!0,u.add(l));return{doc:n.slice(o,a),printedComments:u}}function c(e,t,n,r){let i,s,c=e.getValue(),{printer:p}=t;if(p.hasPrettierIgnore&&p.hasPrettierIgnore(e))({doc:i,printedComments:s}=l(c,t));else{if(c)try{i=a.printSubtree(e,n,t,u)}catch(d){if(globalThis.PRETTIER_DEBUG)throw d}i||(i=p.print(e,t,n,r))}return(!p.willPrintOwnComments||!p.willPrintOwnComments(e,t))&&(i=o(e,i,t,s)),i}t.exports=u}}),on=F({"src/main/range-util.js"(e,t){L();var n=en(),r=tn(),i=e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t};function s(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find((e=>c.has(e.type)&&r.has(e)))}function o(e){let t=e.length-1;for(;;){let n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function a(e,t,n){let{locStart:r,locEnd:i}=n,s=e.node,a=t.node;if(s===a)return{startNode:s,endNode:a};let u=r(e.node);for(let c of o(t.parentNodes)){if(!(r(c)>=u))break;a=c}let l=i(t.node);for(let c of o(e.parentNodes)){if(!(i(c)<=l))break;if(s=c,s===a)break}return{startNode:s,endNode:a}}function u(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,{locStart:a,locEnd:l}=n,c=a(e),p=l(e);if(!(t>p||t<c||"rangeEnd"===o&&t===c||"rangeStart"===o&&t===p)){for(let a of r.getSortedChildNodes(e,n)){let r=u(a,t,n,i,[e,...s],o);if(r)return r}if(!i||i(e,s[0]))return{node:e,parentNodes:s}}}function l(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var c=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),p=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function d(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return l(t.type,n&&n.type);case"json":case"json5":case"json-stringify":return c.has(t.type);case"graphql":return p.has(t.kind);case"vue":return"root"!==t.tag}return!1}function f(e,t,r){let{rangeStart:o,rangeEnd:l,locStart:c,locEnd:p}=t;n.ok(l>o);let f=e.slice(o,l).search(/\S/),h=-1===f;if(!h)for(o+=f;l>o&&!/\S/.test(e[l-1]);--l);let m,g,y=u(r,o,t,((e,n)=>d(t,e,n)),[],"rangeStart"),D=h?y:u(r,l,t,(e=>d(t,e)),[],"rangeEnd");if(!y||!D)return{rangeStart:0,rangeEnd:0};if(i(t)){let e=s(y,D);m=e,g=e}else({startNode:m,endNode:g}=a(y,D,t));return{rangeStart:Math.min(c(m),c(g)),rangeEnd:Math.max(p(m),p(g))}}t.exports={calculateRange:f,findNodeAtOffset:u}}}),an=F({"src/main/core.js"(e,t){L();var{diffArrays:n}=I(),{printer:{printDocToString:r},debug:{printDocToDebug:i}}=ee(),{getAlignmentSize:s}=Ae(),{guessEndOfLine:o,convertEndOfLineToChars:a,countEndOfLineChars:u,normalizeEndOfLine:l}=M(),c=Xt().normalize,p=Zt(),d=tn(),f=Qt(),h=sn(),m=on(),g="\ufeff",y=Symbol("cursor");function D(e,t,n){let r=t.comments;return r&&(delete t.comments,d.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function v(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:o}=f.parse(e,t);if(t.cursorOffset>=0){let e=m.findNodeAtOffset(s,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}let u=D(o,s,t),l=h(s,t,i),c=r(l,t);if(d.ensureAllCommentsPrinted(u),i>0){let e=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(e)),c.formatted=e+a(t.endOfLine)}if(t.cursorOffset>=0){let e,r,i,s,a;if(t.cursorNode&&c.cursorNodeText?(e=t.locStart(t.cursorNode),r=o.slice(e,t.locEnd(t.cursorNode)),i=t.cursorOffset-e,s=c.cursorNodeStart,a=c.cursorNodeText):(e=0,r=o,i=t.cursorOffset,s=0,a=c.formatted),r===a)return{formatted:c.formatted,cursorOffset:s+i,comments:u};let l=[...r];l.splice(i,0,y);let p=[...a],d=n(l,p),f=s;for(let t of d)if(t.removed){if(t.value.includes(y))break}else f+=t.count;return{formatted:c.formatted,cursorOffset:f,comments:u}}return{formatted:c.formatted,cursorOffset:-1,comments:u}}function b(e,t){let{ast:n,text:r}=f.parse(e,t),{rangeStart:i,rangeEnd:o}=m.calculateRange(r,t,n),l=r.slice(i,o),c=Math.min(i,r.lastIndexOf("\n",i)+1),p=r.slice(c,i).match(/^\s*/)[0],d=s(p,t.tabWidth),h=v(l,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"}),d),g=h.formatted.trimEnd(),{cursorOffset:y}=t;y>o?y+=g.length-l.length:h.cursorOffset>=0&&(y=h.cursorOffset+i);let D=r.slice(0,i)+g+r.slice(o);if("lf"!==t.endOfLine){let e=a(t.endOfLine);y>=0&&"\r\n"===e&&(y+=u(D.slice(0,y),"\n")),D=D.replace(/\n/g,e)}return{formatted:D,cursorOffset:y,comments:h.comments}}function E(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function C(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=E(e,n,-1),r=E(e,r,0),i=E(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i})}function A(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s}=C(e,t),a=e.charAt(0)===g;if(a&&(e=e.slice(1),n--,r--,i--),"auto"===s&&(s=o(e)),e.includes("\r")){let t=t=>u(e.slice(0,Math.max(t,0)),"\r\n");n-=t(n),r-=t(r),i-=t(i),e=l(e)}return{hasBOM:a,text:e,options:C(e,Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s}))}}function S(e,t){let n=f.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function x(e,t){let n,{hasBOM:r,text:i,options:s}=A(e,c(t));return s.rangeStart>=s.rangeEnd&&""!==i||s.requirePragma&&!S(i,s)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(s.rangeStart>0||s.rangeEnd<i.length?n=b(i,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!S(i,s)&&(i=s.printer.insertPragma(i)),n=v(i,s)),r&&(n.formatted=g+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}t.exports={formatWithCursor:x,parse(e,t,n){let{text:r,options:i}=A(e,c(t)),s=f.parse(r,i);return n&&(s.ast=p(s.ast,i)),s},formatAST(e,t){t=c(t);let n=h(e,t);return r(n,t)},formatDoc:(e,t)=>x(i(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=c(t);let{ast:n,text:r}=f.parse(e,t);return D(r,n,t),h(n,t)},printDocToString:(e,t)=>r(e,c(t))}}}),un=F({"src/common/util-shared.js"(e,t){L();var{getMaxContinuousCount:n,getStringWidth:r,getAlignmentSize:i,getIndentSize:s,skip:o,skipWhitespace:a,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:f,hasNewline:h,hasNewlineInRange:m,hasSpaces:g,isNextLineEmpty:y,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:v,getNextNonSpaceNonCommentCharacterIndex:b,makeString:E,addLeadingComment:C,addDanglingComment:A,addTrailingComment:S}=Ae();t.exports={getMaxContinuousCount:n,getStringWidth:r,getAlignmentSize:i,getIndentSize:s,skip:o,skipWhitespace:a,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:f,hasNewline:h,hasNewlineInRange:m,hasSpaces:g,isNextLineEmpty:y,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:v,getNextNonSpaceNonCommentCharacterIndex:b,makeString:E,addLeadingComment:C,addDanglingComment:A,addTrailingComment:S}}}),ln=F({"src/utils/create-language.js"(e,t){L(),t.exports=function(e,t){let{languageId:n}=e,r=y(e,g);return Object.assign(Object.assign({linguistLanguageId:n},r),t(e))}}}),cn=F({"node_modules/esutils/lib/ast.js"(e,t){L(),function(){function e(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}function n(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(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 i(e){return r(e)||null!=e&&"FunctionDeclaration"===e.type}function s(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}function o(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=s(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:o,trailingStatement:s}}()}}),pn=F({"node_modules/esutils/lib/code.js"(e,t){L(),function(){var e,n,r,i,s,o;function a(e){return 48<=e&&e<=57}function u(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}function c(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0}function p(e){return 10===e||13===e||8232===e||8233===e}function d(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]/},e={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),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(s=new Array(128),o=0;o<128;++o)s[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;function f(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(d(e))}function h(e){return e<128?s[e]:n.NonAsciiIdentifierPart.test(d(e))}function m(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(d(t))}function g(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(d(t))}t.exports={isDecimalDigit:a,isHexDigit:u,isOctalDigit:l,isWhiteSpace:c,isLineTerminator:p,isIdentifierStartES5:f,isIdentifierPartES5:h,isIdentifierStartES6:m,isIdentifierPartES6:g}}()}}),dn=F({"node_modules/esutils/lib/keyword.js"(e,t){L(),function(){var e=pn();function n(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&n(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 s(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function a(e){return"eval"===e||"arguments"===e}function u(t){var n,r,i;if(0===t.length||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return 1024*(e-55296)+(t-56320)+65536}function c(t){var n,r,i,s,o;if(0===t.length)return!1;for(o=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(55296<=(i=t.charCodeAt(n))&&i<=56319){if(++n>=r||!(56320<=(s=t.charCodeAt(n))&&s<=57343))return!1;i=l(i,s)}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}function p(e,t){return u(e)&&!s(e,t)}function d(e,t){return c(e)&&!o(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:s,isReservedWordES6:o,isRestrictedWord:a,isIdentifierNameES5:u,isIdentifierNameES6:c,isIdentifierES5:p,isIdentifierES6:d}}()}}),fn=F({"node_modules/esutils/lib/utils.js"(e){L(),e.ast=cn(),e.code=pn(),e.keyword=dn()}}),hn=F({"src/language-js/utils/is-block-comment.js"(e,t){L();var n=new Set(["Block","CommentBlock","MultiLine"]),r=e=>n.has(null==e?void 0:e.type);t.exports=r}}),mn=F({"src/language-js/utils/is-node-matches.js"(e,t){function n(e,t){let n=t.split(".");for(let r=n.length-1;r>=0;r--){let t=n[r];if(0===r)return"Identifier"===e.type&&e.name===t;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==t)return!1;e=e.object}}function r(e,t){return t.some((t=>n(e,t)))}L(),t.exports=r}}),gn=F({"src/language-js/utils/index.js"(e,t){L();var n=fn().keyword.isIdentifierNameES5,{getLast:r,hasNewline:i,skipWhitespace:s,isNonEmptyArray:o,isNextLineEmptyAfterIndex:a,getStringWidth:u}=Ae(),{locStart:l,locEnd:c,hasSameLocStart:p}=Jt(),d=hn(),f=mn(),h="(?:(?=.)\\s)",m=new RegExp("^".concat(h,"*:")),g=new RegExp("^".concat(h,"*::"));function y(e){var t,n;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&d(null===(n=e.trailingComments)||void 0===n?void 0:n[0])&&m.test(e.trailingComments[0].value)}function D(e){let t=null==e?void 0:e[0];return d(t)&&g.test(t.value)}function v(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>v(e,t)));let n=t(e);return"boolean"==typeof n?n:Object.values(e).some((e=>v(e,t)))}function b(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Y(e)||Q(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||We(e)||"TSNonNullExpression"===e.type}function E(e){var t,n,r,i,s,o;return e.expressions?e.expressions[0]:null!==(t=null!==(n=null!==(r=null!==(i=null!==(s=null!==(o=e.left)&&void 0!==o?o:e.test)&&void 0!==s?s:e.callee)&&void 0!==i?i:e.object)&&void 0!==r?r:e.tag)&&void 0!==n?n:e.argument)&&void 0!==t?t:e.expression}function C(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.")}function A(e){return e=new Set(e),t=>e.has(null==t?void 0:t.type)}var S=A(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),x=A(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function w(e){let t=e.getParentNode();return"declaration"===e.getName()&&x(t)?t:null}var F=A(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function T(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function N(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&T(e.argument)}function _(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var k=A(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),O=A(["FunctionExpression","ArrowFunctionExpression"]);function P(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}function I(e){return Y(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var B=A(["JSXElement","JSXFragment"]);function M(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;let n=t.getNode();if(!n.expression||!B(n.expression))return!1;let r=t.getParentNode();return"Program"===r.type&&1===r.body.length}function j(e){return"get"===e.kind||"set"===e.kind}function R(e){return j(e)||p(e,e.value)}function V(e){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!R(e)}function q(e){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!p(e,e.typeAnnotation)}var U=A(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function W(e){return Q(e)||"BindExpression"===e.type&&Boolean(e.object)}var K=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function $(e){return!!e&&!(("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!K.has(e.type))}function H(e){let t=/^(?:before|after)(?:Each|All)$/;return"Identifier"===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}var J=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function G(e){return f(e,J)}function z(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(I(e)&&t&&z(t))return O(e.arguments[0]);if(H(e))return I(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("TemplateLiteral"===e.arguments[0].type||_(e.arguments[0]))&&G(e.callee))return!(e.arguments[2]&&!T(e.arguments[2]))&&((2===e.arguments.length?O(e.arguments[1]):P(e.arguments[1])&&we(e.arguments[1]).length<=1)||I(e.arguments[1]));return!1}var Y=A(["CallExpression","OptionalCallExpression"]),Q=A(["MemberExpression","OptionalMemberExpression"]);function X(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");let n=e[t];return 0!==n.length&&n.every((e=>{if(Be(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(Q(e)){let t=e;for(;Q(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||(t=t.object,Be(t)))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))}function Z(e,t){return"+"===e||"-"===e?e+t:t}function ee(e,t){let n=l(t),r=s(e,c(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)}function te(e,t){return B(t)?Le(t):Be(t,Pe.Leading,(t=>i(e,c(t))))}function ne(e,t){return"json"!==t.parser&&_(e.key)&&pe(e.key).slice(1,-1)===e.key.value&&(n(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||re(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))}function re(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function ie(e,t){let n=/^[fx]?(?: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))}function se(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function oe(e,t){return("TemplateLiteral"===e.type&&se(e)||"TaggedTemplateExpression"===e.type&&se(e.quasi))&&!i(t,l(e),{backwards:!0})}function ae(e){if(!Be(e))return!1;let t=r(Me(e,Pe.Dangling));return t&&!d(t)}function ue(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(O(n)){if(t+=1,t>1)return!0}else if(Y(n))for(let e of n.arguments)if(O(e))return!0;return!1}function le(e){let t=e.getValue(),n=e.getParentNode();return Y(t)&&Y(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0}function ce(e,t){if(t>=2)return!1;let n=e=>ce(e,t+1),r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;if(r&&u(r)>5)return!1;if("Literal"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"PrivateName"===e.type||"PrivateIdentifier"===e.type||"ArgumentPlaceholder"===e.type||"Import"===e.type)return!0;if("TemplateLiteral"===e.type)return e.quasis.every((e=>!e.value.raw.includes("\n")))&&e.expressions.every(n);if("ObjectExpression"===e.type)return e.properties.every((e=>!e.computed&&(e.shorthand||e.value&&n(e.value))));if("ArrayExpression"===e.type)return e.elements.every((e=>null===e||n(e)));if(Re(e))return("ImportExpression"===e.type||ce(e.callee,t))&&Ne(e).every(n);if(Q(e))return ce(e.object,t)&&ce(e.property,t);let i={"!":!0,"-":!0,"+":!0,"~":!0};if("UnaryExpression"===e.type&&i[e.operator])return ce(e.argument,t);let s={"++":!0,"--":!0};return"UpdateExpression"===e.type&&s[e.operator]?ce(e.argument,t):"TSNonNullExpression"===e.type&&ce(e.expression,t)}function pe(e){var t,n;return null!==(t=null===(n=e.extra)||void 0===n?void 0:n.raw)&&void 0!==t?t:e.raw}function de(e){return e}function fe(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function he(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function me(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return me(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return me(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&me(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&me(e.callee,t);case"ConditionalExpression":return me(e.test,t);case"UpdateExpression":return!e.prefix&&me(e.argument,t);case"BindExpression":return e.object&&me(e.object,t);case"SequenceExpression":return me(e.expressions[0],t);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return me(e.expression,t);default:return t(e)}}var ge={"==":!0,"!=":!0,"===":!0,"!==":!0},ye={"*":!0,"/":!0,"%":!0},De={">>":!0,">>>":!0,"<<":!0};function ve(e,t){return!(Ee(t)!==Ee(e)||"**"===e||ge[e]&&ge[t]||"%"===t&&ye[e]||"%"===e&&ye[t]||t!==e&&ye[t]&&ye[e]||De[e]&&De[t])}var be=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap(((e,t)=>e.map((e=>[e,t])))));function Ee(e){return be.get(e)}function Ce(e){return Boolean(De[e])||"|"===e||"^"===e||"&"===e}function Se(e){var t;if(e.rest)return!0;let n=we(e);return"RestElement"===(null===(t=r(n))||void 0===t?void 0:t.type)}var xe=new WeakMap;function we(e){if(xe.has(e))return xe.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),xe.set(e,t),t}function Fe(e,t){let n=e.getValue(),r=0,i=e=>t(e,r++);n.this&&e.call(i,"this"),Array.isArray(n.parameters)?e.each(i,"parameters"):Array.isArray(n.params)&&e.each(i,"params"),n.rest&&e.call(i,"rest")}var Te=new WeakMap;function Ne(e){if(Te.has(e))return Te.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),Te.set(e,t),t}function _e(e,t){let n=e.getValue();"ImportExpression"===n.type?(e.call((e=>t(e,0)),"source"),n.attributes&&e.call((e=>t(e,1)),"attributes")):e.each(t,"arguments")}function ke(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Le(e){return e&&(e.prettierIgnore||Be(e,Pe.PrettierIgnore))}function Oe(e){return Le(e.getValue())}var Pe={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Ie=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(n,r,i)=>!(e&Pe.Leading&&!n.leading||e&Pe.Trailing&&!n.trailing||e&Pe.Dangling&&(n.leading||n.trailing)||e&Pe.Block&&!d(n)||e&Pe.Line&&!S(n)||e&Pe.First&&0!==r||e&Pe.Last&&r!==i.length-1||e&Pe.PrettierIgnore&&!ke(n)||t&&!t(n))};function Be(e,t,n){if(!o(null==e?void 0:e.comments))return!1;let r=Ie(t,n);return!r||e.comments.some(r)}function Me(e,t,n){if(!Array.isArray(null==e?void 0:e.comments))return[];let r=Ie(t,n);return r?e.comments.filter(r):e.comments}var je=(e,t)=>{let{originalText:n}=t;return a(n,c(e))};function Re(e){return Y(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function Ve(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)}function qe(e){return Boolean(e.__isUsingHackPipeline)}var Ue=Symbol("ifWithoutBlockAndSameLineComment");function We(e){return"TSAsExpression"===e.type||"TSSatisfiesExpression"===e.type}t.exports={getFunctionParameters:we,iterateFunctionParametersPath:Fe,getCallArguments:Ne,iterateCallArgumentsPath:_e,hasRestParameter:Se,getLeftSide:E,getLeftSidePathName:C,getParentExportDeclaration:w,getTypeScriptMappedTypeModifier:Z,hasFlowAnnotationComment:D,hasFlowShorthandAnnotationComment:y,hasLeadingOwnLineComment:te,hasNakedLeftSide:b,hasNode:v,hasIgnoreComment:Oe,hasNodeIgnoreComment:Le,identity:de,isBinaryish:U,isCallLikeExpression:Re,isEnabledHackPipeline:qe,isLineComment:S,isPrettierIgnoreComment:ke,isCallExpression:Y,isMemberExpression:Q,isExportDeclaration:x,isFlowAnnotationComment:ee,isFunctionCompositionArgs:ue,isFunctionNotation:R,isFunctionOrArrowExpression:O,isGetterOrSetter:j,isJestEachTemplateLiteral:ie,isJsxNode:B,isLiteral:F,isLongCurriedCallExpression:le,isSimpleCallArgument:ce,isMemberish:W,isNumericLiteral:T,isSignedNumericLiteral:N,isObjectProperty:Ve,isObjectType:k,isObjectTypePropertyAFunction:V,isSimpleType:$,isSimpleNumber:re,isSimpleTemplateLiteral:X,isStringLiteral:_,isStringPropSafeToUnquote:ne,isTemplateOnItsOwnLine:oe,isTestCall:z,isTheOnlyJsxElementInMarkdown:M,isTSXFile:fe,isTypeAnnotationAFunction:q,isNextLineEmpty:je,needsHardlineAfterDanglingComment:ae,rawText:pe,shouldPrintComma:he,isBitwiseOperator:Ce,shouldFlatten:ve,startsWithNoLookaheadToken:me,getPrecedence:Ee,hasComment:Be,getComments:Me,CommentCheckFlags:Pe,markerForIfWithoutBlockAndSameLineComment:Ue,isTSTypeExpression:We}}}),yn=F({"src/language-js/print/template-literal.js"(e,t){L();var n=j(),{getStringWidth:r,getIndentSize:i}=Ae(),{builders:{join:s,hardline:o,softline:a,group:u,indent:l,align:c,lineSuffixBoundary:p,addAlignmentToDoc:d},printer:{printDocToString:f},utils:{mapDoc:h}}=ee(),{isBinaryish:m,isJestEachTemplateLiteral:g,isSimpleTemplateLiteral:y,hasComment:D,isMemberExpression:v,isTSTypeExpression:b}=gn();function E(e,t,n){let r=e.getValue();if("TemplateLiteral"===r.type&&g(r,e.getParentNode())){let r=C(e,n,t);if(r)return r}let s="expressions";"TSTemplateLiteralType"===r.type&&(s="types");let o=[],h=e.map(t,s),E=y(r);return E&&(h=h.map((e=>f(e,Object.assign(Object.assign({},n),{},{printWidth:Number.POSITIVE_INFINITY})).formatted))),o.push(p,"`"),e.each((e=>{let f=e.getName();if(o.push(t()),f<h.length){let{tabWidth:t}=n,g=e.getValue(),y=i(g.value.raw,t),C=h[f];if(!E){let e=r[s][f];(D(e)||v(e)||"ConditionalExpression"===e.type||"SequenceExpression"===e.type||b(e)||m(e))&&(C=[l([a,C]),a])}let A=0===y&&g.value.raw.endsWith("\n")?c(Number.NEGATIVE_INFINITY,C):d(C,y,t);o.push(u(["${",A,p,"}"]))}}),"quasis"),o.push("`"),o}function C(e,t,i){let a=e.getNode(),u=a.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some((e=>e.length>0))){t.__inJestEach=!0;let c=e.map(i,"expressions");t.__inJestEach=!1;let d=[],h=c.map((e=>"${"+f(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}")),m=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<a.quasis.length;e++){let t=n(m),r=h[e-1];t.cells.push(r),r.includes("\n")&&(t.hasLineBreak=!0),a.quasis[e].value.raw.includes("\n")&&m.push({hasLineBreak:!1,cells:[]})}let g=Math.max(u.length,...m.map((e=>e.cells.length))),y=Array.from({length:g}).fill(0),D=[{cells:u},...m.filter((e=>e.cells.length>0))];for(let{cells:e}of D.filter((e=>!e.hasLineBreak)))for(let[t,n]of e.entries())y[t]=Math.max(y[t],r(n));return d.push(p,"`",l([o,s(o,D.map((e=>s(" | ",e.cells.map(((t,n)=>e.hasLineBreak?t:t+" ".repeat(y[n]-r(t))))))))]),o,"`"),d}}function A(e,t){let n=e.getValue(),r=t();return D(n)&&(r=u([l([a,r]),a])),["${",r,p,"}"]}function S(e,t){return e.map((e=>A(e,t)),"expressions")}function x(e,t){return h(e,(e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):w(e):e))}function w(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:E,printTemplateExpressions:S,escapeTemplateCharacters:x,uncookTemplateElementValue:w}}}),Dn=F({"src/language-js/embed/markdown.js"(e,t){L();var{builders:{indent:n,softline:r,literalline:i,dedentToRoot:s}}=ee(),{escapeTemplateCharacters:o}=yn();function a(e,t,a){let l=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),c=u(l),p=""!==c;p&&(l=l.replace(new RegExp("^".concat(c),"gm"),""));let d=o(a(l,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",p?n([r,d]):[i,s(d)],r,"`"]}function u(e){let t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}t.exports=a}}),vn=F({"src/language-js/embed/css.js"(e,t){L();var{isNonEmptyArray:n}=Ae(),{builders:{indent:r,hardline:i,softline:s},utils:{mapDoc:o,replaceEndOfLine:a,cleanDoc:u}}=ee(),{printTemplateExpressions:l}=yn();function c(e,t,n){let r=e.getValue(),i=r.quasis.map((e=>e.value.raw)),s=0;return p(n(i.reduce(((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+s+++"-id"+t),""),{parser:"scss"},{stripTrailingHardline:!0}),r,l(e,t))}function p(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";let o=d(e,n);if(!o)throw new Error("Couldn't insert all the expressions");return["`",r([i,o]),s,"`"]}function d(e,t){if(!n(t))return e;let r=0,i=o(u(e),(e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map(((e,n)=>n%2===0?a(e):(r++,t[e]))):e));return t.length===r?i:null}t.exports=c}}),bn=F({"src/language-js/embed/graphql.js"(e,t){L();var{builders:{indent:n,join:r,hardline:i}}=ee(),{escapeTemplateCharacters:s,printTemplateExpressions:o}=yn();function a(e,t,a){let l=e.getValue(),c=l.quasis.length;if(1===c&&""===l.quasis[0].value.raw.trim())return"``";let p=o(e,t),d=[];for(let n=0;n<c;n++){let e=0===n,t=n===c-1,r=l.quasis[n].value.cooked,i=r.split("\n"),o=i.length,f=p[n],h=o>2&&""===i[0].trim()&&""===i[1].trim(),m=o>2&&""===i[o-1].trim()&&""===i[o-2].trim(),g=i.every((e=>/^\s*(?:#[^\n\r]*)?$/.test(e)));if(!t&&/#[^\n\r]*$/.test(i[o-1]))return null;let y=null;y=g?u(i):a(r,{parser:"graphql"},{stripTrailingHardline:!0}),y?(y=s(y,!1),!e&&h&&d.push(""),d.push(y),!t&&m&&d.push("")):!e&&!t&&h&&d.push(""),f&&d.push(f)}return["`",n([i,r(i,d)]),i,"`"]}function u(e){let t=[],n=!1,s=e.map((e=>e.trim()));for(let[r,o]of s.entries())""!==o&&(""===s[r-1]&&n?t.push([i,o]):t.push(o),n=!0);return 0===t.length?null:r(i,t)}t.exports=a}}),En=F({"src/language-js/embed/html.js"(e,t){L();var{builders:{indent:n,line:r,hardline:i,group:s},utils:{mapDoc:o}}=ee(),{printTemplateExpressions:a,uncookTemplateElementValue:u}=yn(),l=0;function c(e,t,c,p,d){let{parser:f}=d,h=e.getValue(),m=l;l=l+1>>>0;let g=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(m,"_IN_JS"),y=h.quasis.map(((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+g(t))).join(""),D=a(e,t);if(0===D.length&&0===y.trim().length)return"``";let v=new RegExp(g("(\\d+)"),"g"),b=0,E=c(y,{parser:f,__onHtmlRoot(e){b=e.children.length}},{stripTrailingHardline:!0}),C=o(E,(e=>{if("string"!=typeof e)return e;let t=[],n=e.split(v);for(let r=0;r<n.length;r++){let e=n[r];if(r%2===0){e&&(e=u(e),p.__embeddedInHtml&&(e=e.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(e));continue}let i=Number(e);t.push(D[i])}return t})),A=/^\s/.test(y)?" ":"",S=/\s$/.test(y)?" ":"",x="ignore"===p.htmlWhitespaceSensitivity?i:A&&S?r:null;return s(x?["`",n([x,s(C)]),x,"`"]:["`",A,b>1?n(s(C)):s(C),S,"`"])}t.exports=c}}),Cn=F({"src/language-js/embed.js"(e,t){L();var{hasComment:n,CommentCheckFlags:r,isObjectProperty:i}=gn(),s=Dn(),o=vn(),a=bn(),u=En();function l(e){return d(e)||g(e)||y(e)||f(e)?"css":b(e)?"graphql":C(e)?"html":h(e)?"angular":p(e)?"markdown":void 0}function c(e,t,n,r){let i=e.getValue();if("TemplateLiteral"!==i.type||A(i))return;let c=l(e);if(c){if("markdown"===c)return s(e,t,n);if("css"===c)return o(e,t,n);if("graphql"===c)return a(e,t,n);if("html"===c||"angular"===c)return u(e,t,n,r,{parser:c})}}function p(e){let t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}function d(e){let 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 f(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>i(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...m)}function h(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>i(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...m)}var m=[(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 g(e){let t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;let n="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(n.type){case"MemberExpression":return D(n.object)||v(n);case"CallExpression":return D(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(D(n.callee.object.object)||v(n.callee.object))||"CallExpression"===n.callee.object.type&&D(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function y(e){let t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function D(e){return"Identifier"===e.type&&"styled"===e.name}function v(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function b(e){let t=e.getValue(),n=e.getParentNode();return E(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)}function E(e,t){return n(e,r.Block|r.Leading,(e=>{let{value:n}=e;return n===" ".concat(t," ")}))}function C(e){return E(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}function A(e){let{quasis:t}=e;return t.some((e=>{let{value:{cooked:t}}=e;return null===t}))}t.exports=c}}),An=F({"src/language-js/clean.js"(e,t){L();var n=hn(),r=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),i=e=>{for(let t of e.quasis)delete t.value};function s(e,t,r){if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&t.value&&(t.value=t.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name)))for(let{type:n,expression:a}of t.children)"JSXExpressionContainer"===n&&"TemplateLiteral"===a.type&&i(a);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&i(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let s=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===s.type&&"Component"===s.callee.name&&1===s.arguments.length){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case"styles":"ArrayExpression"===r.value.type&&i(r.value.elements[0]);break;case"template":"TemplateLiteral"===r.value.type&&i(r.value)}}var o;return"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)&&i(t.quasi),"TemplateLiteral"===e.type&&((null===(o=e.leadingComments)||void 0===o?void 0:o.some((e=>n(e)&&["GraphQL","HTML"].some((t=>e.value===" ".concat(t," "))))))||"CallExpression"===r.type&&"graphql"===r.callee.name||!e.leadingComments)&&i(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}s.ignoredProperties=r,t.exports=s}}),Sn={};function xn(){if(typeof Rn>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Rn="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Rn="LE"}}return Rn}function wn(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function Fn(){return[]}function Tn(){return 0}function Nn(){return Number.MAX_VALUE}function _n(){return Number.MAX_VALUE}function kn(){return[]}function Ln(){return"Browser"}function On(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Pn(){}function In(){}function Bn(){return"javascript"}function Mn(){return"browser"}function jn(){return"/tmp"}T(Sn,{EOL:()=>qn,arch:()=>Bn,cpus:()=>kn,default:()=>Un,endianness:()=>xn,freemem:()=>Nn,getNetworkInterfaces:()=>In,hostname:()=>wn,loadavg:()=>Fn,networkInterfaces:()=>Pn,platform:()=>Mn,release:()=>On,tmpDir:()=>jn,tmpdir:()=>Vn,totalmem:()=>_n,type:()=>Ln,uptime:()=>Tn});var Rn,Vn,qn,Un,Wn=w({"node-modules-polyfills:os"(){L(),Un={EOL:qn="\n",tmpdir:Vn=jn,tmpDir:jn,networkInterfaces:Pn,getNetworkInterfaces:In,release:On,type:Ln,cpus:kn,totalmem:_n,freemem:Nn,uptime:Tn,loadavg:Fn,hostname:wn,endianness:xn}}}),Kn=F({"node-modules-polyfills-commonjs:os"(e,t){L();var n=(Wn(),k(Sn));if(n&&n.default){t.exports=n.default;for(let e in n)t.exports[e]=n[e]}else n&&(t.exports=n)}}),$n=F({"node_modules/detect-newline/index.js"(e,t){L();var n=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let n=t.filter((e=>"\r\n"===e)).length;return n>t.length-n?"\r\n":"\n"};t.exports=n,t.exports.graceful=e=>"string"==typeof e&&n(e)||"\n"}}),Hn=F({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=Kn();return t=function(){return e},e}function n(){let e=r($n());return n=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}L(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=f,e.parse=m,e.parseWithComments=g,e.print=y,e.strip=h;var i=/\*\/$/,s=/^\/\*\*?/,o=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,d=[];function f(e){let t=e.match(o);return t?t[0].trimLeft():""}function h(e){let t=e.match(o);return t&&t[0]?e.substring(t[0].length):e}function m(e){return g(e).pragmas}function g(e){let r=(0,n().default)(e)||t().EOL;e=e.replace(s,"").replace(i,"").replace(p,"$1");let o="";for(;o!==e;)o=e,e=e.replace(l,"".concat(r,"$1 $2").concat(r));e=e.replace(u,"").trimRight();let f,h=Object.create(null),m=e.replace(c,"").replace(u,"").trimRight();for(;f=c.exec(e);){let e=f[2].replace(a,"");"string"==typeof h[f[1]]||Array.isArray(h[f[1]])?h[f[1]]=d.concat(h[f[1]],e):h[f[1]]=e}return{comments:m,pragmas:h}}function y(e){let{comments:r="",pragmas:i={}}=e,s=(0,n().default)(r)||t().EOL,o="/**",a=" *",u=" */",l=Object.keys(i),c=l.map((e=>D(e,i[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>"".concat(a," ").concat(e).concat(s))).join("");if(!r){if(0===l.length)return"";if(1===l.length&&!Array.isArray(i[l[0]])){let e=i[l[0]];return"".concat(o," ").concat(D(l[0],e)[0]).concat(u)}}let p=r.split(s).map((e=>"".concat(a," ").concat(e))).join(s)+s;return o+s+(r?p:"")+(r&&l.length?a+s:"")+c+u}function D(e,t){return d.concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}}}),Jn=F({"src/language-js/utils/get-shebang.js"(e,t){function n(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}L(),t.exports=n}}),Gn=F({"src/language-js/pragma.js"(e,t){L();var{parseWithComments:n,strip:r,extract:i,print:s}=Hn(),{normalizeEndOfLine:o}=M(),a=Jn();function u(e){let t=a(e);t&&(e=e.slice(t.length+1));let r=i(e),{pragmas:s,comments:o}=n(r);return{shebang:t,text:e,pragmas:s,comments:o}}function l(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")}function c(e){let{shebang:t,text:n,pragmas:i,comments:a}=u(e),l=r(n),c=s({pragmas:Object.assign({format:""},i),comments:a.trimStart()});return(t?"".concat(t,"\n"):"")+o(c)+(l.startsWith("\n")?"\n":"\n\n")+l}t.exports={hasPragma:l,insertPragma:c}}}),zn=F({"src/language-js/utils/is-type-cast-comment.js"(e,t){L();var n=hn();function r(e){return n(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}t.exports=r}}),Yn=F({"src/language-js/comments.js"(e,t){L();var{getLast:n,hasNewline:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:i,getNextNonSpaceNonCommentCharacter:s,hasNewlineInRange:o,addLeadingComment:a,addTrailingComment:u,addDanglingComment:l,getNextNonSpaceNonCommentCharacterIndex:c,isNonEmptyArray:p}=Ae(),{getFunctionParameters:d,isPrettierIgnoreComment:f,isJsxNode:h,hasFlowShorthandAnnotationComment:m,hasFlowAnnotationComment:g,hasIgnoreComment:y,isCallLikeExpression:D,getCallArguments:v,isCallExpression:b,isMemberExpression:E,isObjectProperty:C,isLineComment:A,getComments:S,CommentCheckFlags:x,markerForIfWithoutBlockAndSameLineComment:w}=gn(),{locStart:F,locEnd:T}=Jt(),N=hn(),_=zn();function k(e){return[de,X,q,j,R,V,$,se,ne,ie,oe,ae,J,Z,ee].some((t=>t(e)))}function O(e){return[M,X,U,oe,j,R,V,$,Z,te,re,ie,ce,ee,he].some((t=>t(e)))}function P(e){return[de,j,R,W,Q,J,ie,Y,z,fe,ee,pe].some((t=>t(e)))}function I(e,t){let n=(e.body||e.properties).find((e=>{let{type:t}=e;return"EmptyStatement"!==t}));n?a(n,t):l(e,t)}function B(e,t){"BlockStatement"===e.type?I(e,t):a(e,t)}function M(e){let{comment:t,followingNode:n}=e;return!(!n||!_(t))&&(a(n,t),!0)}function j(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e;if("IfStatement"!==(null==r?void 0:r.type)||!i)return!1;if(")"===s(o,t,T))return u(n,t),!0;if(n===r.consequent&&i===r.alternate){if("BlockStatement"===n.type)u(n,t);else{let e="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,i=t.loc.start.line===n.loc.start.line;e&&i?l(n,t,w):l(r,t)}return!0}return"BlockStatement"===i.type?(I(i,t),!0):"IfStatement"===i.type?(B(i.consequent,t),!0):r.consequent===i&&(a(i,t),!0)}function R(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e;return!("WhileStatement"!==(null==r?void 0:r.type)||!i)&&(")"===s(o,t,T)?(u(n,t),!0):"BlockStatement"===i.type?(I(i,t),!0):r.body===i&&(a(i,t),!0))}function V(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return!("TryStatement"!==(null==r?void 0:r.type)&&"CatchClause"!==(null==r?void 0:r.type)||!i)&&("CatchClause"===r.type&&n?(u(n,t),!0):"BlockStatement"===i.type?(I(i,t),!0):"TryStatement"===i.type?(B(i.finalizer,t),!0):"CatchClause"===i.type&&(B(i.body,t),!0))}function q(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!E(n)||"Identifier"!==(null==r?void 0:r.type))&&(a(n,t),!0)}function U(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:s}=e,u=n&&!o(s,T(n),F(t));return!(n&&u||"ConditionalExpression"!==(null==r?void 0:r.type)&&"TSConditionalType"!==(null==r?void 0:r.type)||!i)&&(a(i,t),!0)}function W(e){let{comment:t,precedingNode:n,enclosingNode:r}=e;return!(!C(r)||!r.shorthand||r.key!==n||"AssignmentPattern"!==r.value.type)&&(u(r.value.left,t),!0)}var K=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function $(e){let{comment:t,precedingNode:r,enclosingNode:i,followingNode:s}=e;if(K.has(null==i?void 0:i.type)){if(p(i.decorators)&&(!s||"Decorator"!==s.type))return u(n(i.decorators),t),!0;if(i.body&&s===i.body)return I(i.body,t),!0;if(s){if(i.superClass&&s===i.superClass&&r&&(r===i.id||r===i.typeParameters))return u(r,t),!0;for(let e of["implements","extends","mixins"])if(i[e]&&s===i[e][0])return!r||r!==i.id&&r!==i.typeParameters&&r!==i.superClass?l(i,t,e):u(r,t),!0}}return!1}var H=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function J(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return!!(r&&n&&"("===s(i,t,T)&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===n.type&&r.key===n&&":"!==s(i,n,T)||"Decorator"===(null==n?void 0:n.type)&&H.has(null==r?void 0:r.type))&&(u(n,t),!0)}var G=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function z(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return"("===s(i,t,T)&&!(!n||!G.has(null==r?void 0:r.type))&&(u(n,t),!0)}function Y(e){let{comment:t,enclosingNode:n,text:r}=e;if("ArrowFunctionExpression"!==(null==n?void 0:n.type))return!1;let i=c(r,t,T);return!1!==i&&"=>"===r.slice(i,i+2)&&(l(n,t),!0)}function Q(e){let{comment:t,enclosingNode:n,text:r}=e;return")"===s(r,t,T)&&(n&&(me(n)&&0===d(n).length||D(n)&&0===v(n).length)?(l(n,t),!0):("MethodDefinition"===(null==n?void 0:n.type)||"TSAbstractMethodDefinition"===(null==n?void 0:n.type))&&0===d(n.value).length&&(l(n.value,t),!0))}function X(e){let{comment:t,precedingNode:r,enclosingNode:o,followingNode:a,text:l}=e;if("FunctionTypeParam"===(null==r?void 0:r.type)&&"FunctionTypeAnnotation"===(null==o?void 0:o.type)&&"FunctionTypeParam"!==(null==a?void 0:a.type)||("Identifier"===(null==r?void 0:r.type)||"AssignmentPattern"===(null==r?void 0:r.type))&&o&&me(o)&&")"===s(l,t,T))return u(r,t),!0;if("FunctionDeclaration"===(null==o?void 0:o.type)&&"BlockStatement"===(null==a?void 0:a.type)){let e=(()=>{let e=d(o);if(e.length>0)return i(l,T(n(e)));let t=i(l,T(o.id));return!1!==t&&i(l,t+1)})();if(F(t)>e)return I(a,t),!0}return!1}function Z(e){let{comment:t,enclosingNode:n}=e;return"LabeledStatement"===(null==n?void 0:n.type)&&(a(n,t),!0)}function ee(e){let{comment:t,enclosingNode:n}=e;return!("ContinueStatement"!==(null==n?void 0:n.type)&&"BreakStatement"!==(null==n?void 0:n.type)||n.label)&&(u(n,t),!0)}function te(e){let{comment:t,precedingNode:n,enclosingNode:r}=e;return!!(b(r)&&n&&r.callee===n&&r.arguments.length>0)&&(a(r.arguments[0],t),!0)}function ne(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return"UnionTypeAnnotation"===(null==r?void 0:r.type)||"TSUnionType"===(null==r?void 0:r.type)?(f(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!n&&(u(n,t),!0)):(("UnionTypeAnnotation"===(null==i?void 0:i.type)||"TSUnionType"===(null==i?void 0:i.type))&&f(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function re(e){let{comment:t,enclosingNode:n}=e;return!!C(n)&&(a(n,t),!0)}function ie(e){let{comment:t,enclosingNode:n,followingNode:r,ast:i,isLastComment:s}=e;return i&&i.body&&0===i.body.length?(s?l(i,t):a(i,t),!0):"Program"!==(null==n?void 0:n.type)||0!==(null==n?void 0:n.body.length)||p(n.directives)?"Program"===(null==r?void 0:r.type)&&0===(null==r?void 0:r.body.length)&&"ModuleExpression"===(null==n?void 0:n.type)&&(l(r,t),!0):(s?l(n,t):a(n,t),!0)}function se(e){let{comment:t,enclosingNode:n}=e;return("ForInStatement"===(null==n?void 0:n.type)||"ForOfStatement"===(null==n?void 0:n.type))&&(a(n,t),!0)}function oe(e){let{comment:t,precedingNode:n,enclosingNode:i,text:s}=e;if("ImportSpecifier"===(null==i?void 0:i.type)||"ExportSpecifier"===(null==i?void 0:i.type))return a(i,t),!0;let o="ImportSpecifier"===(null==n?void 0:n.type)&&"ImportDeclaration"===(null==i?void 0:i.type),l="ExportSpecifier"===(null==n?void 0:n.type)&&"ExportNamedDeclaration"===(null==i?void 0:i.type);return!(!o&&!l||!r(s,T(t)))&&(u(n,t),!0)}function ae(e){let{comment:t,enclosingNode:n}=e;return"AssignmentPattern"===(null==n?void 0:n.type)&&(a(n,t),!0)}var ue=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),le=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ce(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!ue.has(null==n?void 0:n.type)||!r||!le.has(r.type)&&!N(t))&&(a(r,t),!0)}function pe(e){let{comment:t,enclosingNode:n,followingNode:r,text:i}=e;return!(r||"TSMethodSignature"!==(null==n?void 0:n.type)&&"TSDeclareFunction"!==(null==n?void 0:n.type)&&"TSAbstractMethodDefinition"!==(null==n?void 0:n.type)||";"!==s(i,t,T))&&(u(n,t),!0)}function de(e){let{comment:t,enclosingNode:n,followingNode:r}=e;if(f(t)&&"TSMappedType"===(null==n?void 0:n.type)&&"TSTypeParameter"===(null==r?void 0:r.type)&&r.constraint)return n.prettierIgnore=!0,t.unignore=!0,!0}function fe(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return"TSMappedType"===(null==r?void 0:r.type)&&("TSTypeParameter"===(null==i?void 0:i.type)&&i.name?(a(i.name,t),!0):!("TSTypeParameter"!==(null==n?void 0:n.type)||!n.constraint)&&(u(n.constraint,t),!0))}function he(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!n||"SwitchCase"!==n.type||n.test||!r||r!==n.consequent[0])&&("BlockStatement"===r.type&&A(t)?I(r,t):l(n,t),!0)}function me(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||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function ge(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===d(e.value).length&&!e.value.returnType&&!p(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function ye(e){let t=e.getValue(),n=e.getParentNode(),r=e=>g(S(e,x.Leading))||g(S(e,x.Trailing));return(t&&(h(t)||m(t)||b(n)&&r(t))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!y(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}t.exports={handleOwnLineComment:k,handleEndOfLineComment:O,handleRemainingComment:P,getCommentChildNodes:ge,willPrintOwnComments:ye}}}),Qn=F({"src/language-js/needs-parens.js"(e,t){L();var n=j(),r=ye(),{getFunctionParameters:i,getLeftSidePathName:s,hasFlowShorthandAnnotationComment:o,hasNakedLeftSide:a,hasNode:u,isBitwiseOperator:l,startsWithNoLookaheadToken:c,shouldFlatten:p,getPrecedence:d,isCallExpression:f,isMemberExpression:h,isObjectProperty:m,isTSTypeExpression:g}=gn();function y(e,t){let n=e.getParentNode();if(!n)return!1;let s=e.getName(),a=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&E(a)&&C(e))return!0;if(D(a))return!1;if("flow"!==t.parser&&o(e.getValue()))return!0;if("Identifier"===a.type){if(a.extra&&a.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(a.name)||"left"===s&&("async"===a.name&&!n.await||"let"===a.name)&&"ForOfStatement"===n.type)return!0;if("let"===a.name){var u;let t=null===(u=e.findAncestor((e=>"ForOfStatement"===e.type)))||void 0===u?void 0:u.left;if(t&&c(t,(e=>e===a)))return!0}if("object"===s&&"let"===a.name&&"MemberExpression"===n.type&&n.computed&&!n.optional){let t=e.findAncestor((e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type)),n=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(n&&c(n,(e=>e===a)))return!0}return!1}if("ObjectExpression"===a.type||"FunctionExpression"===a.type||"ClassExpression"===a.type||"DoExpression"===a.type){var y;let t=null===(y=e.findAncestor((e=>"ExpressionStatement"===e.type)))||void 0===y?void 0:y.expression;if(t&&c(t,(e=>e===a)))return!0}switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===s&&("ArrowFunctionExpression"===a.type||"AssignmentExpression"===a.type||"AwaitExpression"===a.type||"BinaryExpression"===a.type||"ConditionalExpression"===a.type||"LogicalExpression"===a.type||"NewExpression"===a.type||"ObjectExpression"===a.type||"SequenceExpression"===a.type||"TaggedTemplateExpression"===a.type||"UnaryExpression"===a.type||"UpdateExpression"===a.type||"YieldExpression"===a.type||"TSNonNullExpression"===a.type))return!0;break;case"ExportDefaultDeclaration":return A(e,t)||"SequenceExpression"===a.type;case"Decorator":if("expression"===s){if(h(a)&&a.computed)return!0;let e=!1,n=!1,r=a;for(;r;)switch(r.type){case"MemberExpression":n=!0,r=r.object;break;case"CallExpression":if(n||e)return"typescript"!==t.parser;e=!0,r=r.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ArrowFunctionExpression":if("body"===s&&"SequenceExpression"!==a.type&&c(a,(e=>"ObjectExpression"===e.type)))return!0}switch(a.type){case"UpdateExpression":if("UnaryExpression"===n.type)return a.prefix&&("++"===a.operator&&"+"===n.operator||"--"===a.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return a.operator===n.operator&&("+"===a.operator||"-"===a.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"BinaryExpression":return"left"===s&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"in"===a.operator&&v(e))return!0;if("|>"===a.operator&&a.extra&&a.extra.parenthesized){let t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(n.type){case"TSSatisfiesExpression":case"TSAsExpression":return!g(a);case"ConditionalExpression":return g(a);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===s;case"ClassExpression":case"ClassDeclaration":return"superClass"===s;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"AssignmentExpression":case"AssignmentPattern":return"left"===s&&("TSTypeAssertion"===a.type||g(a));case"LogicalExpression":if("LogicalExpression"===a.type)return n.operator!==a.operator;case"BinaryExpression":{let{operator:e,type:t}=a;if(!e&&"TSTypeAssertion"!==t)return!0;let r=d(e),i=n.operator,o=d(i);return o>r||"right"===s&&o===r||o===r&&!p(i,e)||(o<r&&"%"===e?"+"===i||"-"===i:!!l(i))}default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==s;case"ArrowFunctionExpression":return"body"!==s;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||g(n)||"TSNonNullExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"ConditionalExpression":return"test"===s;case"BinaryExpression":return!(!a.argument&&"|>"===n.operator);default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if("extendsType"===s&&"TSConditionalType"===n.type){if("TSConditionalType"===a.type)return!0;let{typeAnnotation:e}=a.returnType||a.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===s&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!a.types||a.types.length>1))return!0;case"TSInferType":if("TSInferType"===a.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===s&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===s&&"TSIndexedAccessType"===n.type||"elementType"===s&&"TSArrayType"===n.type;case"TypeofTypeAnnotation":return"objectType"===s&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type)||"elementType"===s&&"ArrayTypeAnnotation"===n.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type||"objectType"===s&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"objectType"===s&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"FunctionTypeAnnotation":{let t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===s&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===n.type&&null===n.name&&i(a).some((e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type))}case"OptionalIndexedAccessType":return"objectType"===s&&"IndexedAccessType"===n.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof a.value&&"ExpressionStatement"===n.type&&!n.directive){let t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===s&&"MemberExpression"===n.type&&"number"==typeof a.value;case"AssignmentExpression":{let t=e.getParentNode(1);return"body"===s&&"ArrowFunctionExpression"===n.type||("key"!==s||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==s&&"update"!==s||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===a.left.type:!("key"===s&&"TSPropertySignature"===n.type||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&t&&"ForStatement"===t.type&&(t.init===n||t.update===n)||"value"===s&&"Property"===n.type&&t&&"ObjectPattern"===t.type&&t.properties.includes(n)||"NGChainedExpression"===n.type))}case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"ConditionalExpression":return"test"===s;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return"|>"!==n.operator||a.extra&&a.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===s;default:return!1}case"ClassExpression":return!!r(a.decorators)||"NewExpression"===n.type&&"callee"===s;case"OptionalMemberExpression":case"OptionalCallExpression":{let t=e.getParentNode(1);if("object"===s&&"MemberExpression"===n.type||"callee"===s&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===t.type&&t.object===n)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===s&&("BindExpression"===n.type||"NewExpression"===n.type)){let e=a;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===s&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===s&&h(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!a.extra||!a.extra.parenthesized)||"ArrayExpression"===n.type||f(n)&&n.arguments[s]===a||"right"===s&&"NGPipeExpression"===n.type||"property"===s&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===s||"left"===s&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&!f(n)&&!m(n)&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===s&&"ArrowFunctionExpression"===n.type&&b(a)}return!1}function D(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===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}function v(e){let t=0,n=e.getValue();for(;n;){let r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}function b(e){return u(e,(e=>"ObjectTypeAnnotation"===e.type&&u(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}function E(e){return"ObjectExpression"===e.type}function C(e){let t=e.getValue(),r=e.getParentNode(),i=e.getName();switch(r.type){case"NGPipeExpression":if("number"==typeof i&&r.arguments[i]===t&&r.arguments.length-1===i)return e.callParent(C);break;case"ObjectProperty":if("value"===i){let t=e.getParentNode(1);return n(t.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if("right"===i)return e.callParent(C);break;case"ConditionalExpression":if("alternate"===i)return e.callParent(C);break;case"UnaryExpression":if(r.prefix)return e.callParent(C)}return!1}function A(e,t){let n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!y(e,t):!(!a(n)||"ExportDefaultDeclaration"!==r.type&&y(e,t))&&e.call((e=>A(e,t)),...s(e,n))}t.exports=y}}),Xn=F({"src/language-js/print-preprocess.js"(e,t){function n(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}L(),t.exports=n}}),Zn=F({"src/language-js/print/html-binding.js"(e,t){L();var{builders:{join:n,line:r,group:i,softline:s,indent:o}}=ee();function a(e,t,a){let u=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(u,t),"File"===u.type){if(t.__isVueForBindingLeft)return e.call((e=>{let t=n([",",r],e.map(a,"params")),{params:u}=e.getValue();return 1===u.length?t:["(",o([s,i(t)]),s,")"]}),"program","body",0);if(t.__isVueBindings)return e.call((e=>n([",",r],e.map(a,"params"))),"program","body",0)}}function u(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return u(e.object)}return!1;case"Identifier":return!0;default:return!1}}t.exports={isVueEventBindingExpression:u,printHtmlBinding:a}}}),er=F({"src/language-js/print/binaryish.js"(e,t){L();var{printComments:n}=tn(),{getLast:r}=Ae(),{builders:{join:i,line:s,softline:o,group:a,indent:u,align:l,indentIfBreak:c},utils:{cleanDoc:p,getDocParts:d,isConcat:f}}=ee(),{hasLeadingOwnLineComment:h,isBinaryish:m,isJsxNode:g,shouldFlatten:y,hasComment:D,CommentCheckFlags:v,isCallExpression:b,isMemberExpression:E,isObjectProperty:C,isEnabledHackPipeline:A}=gn(),S=0;function x(e,t,n){let i=e.getValue(),s=e.getParentNode(),l=e.getParentNode(1),p=i!==s.body&&("IfStatement"===s.type||"WhileStatement"===s.type||"SwitchStatement"===s.type||"DoWhileStatement"===s.type),d=A(t)&&"|>"===i.operator,f=w(e,n,t,!1,p);if(p)return f;if(d)return a(f);if(b(s)&&s.callee===i||"UnaryExpression"===s.type||E(s)&&!s.computed)return a([u([o,...f]),o]);let h="ReturnStatement"===s.type||"ThrowStatement"===s.type||"JSXExpressionContainer"===s.type&&"JSXAttribute"===l.type||"|"!==i.operator&&"JsExpressionRoot"===s.type||"NGPipeExpression"!==i.type&&("NGRoot"===s.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===s.type&&"NGMicrosyntax"===l.type&&1===l.body.length)||i===s.body&&"ArrowFunctionExpression"===s.type||i!==s.body&&"ForStatement"===s.type||"ConditionalExpression"===s.type&&"ReturnStatement"!==l.type&&"ThrowStatement"!==l.type&&!b(l)||"TemplateLiteral"===s.type,D="AssignmentExpression"===s.type||"VariableDeclarator"===s.type||"ClassProperty"===s.type||"PropertyDefinition"===s.type||"TSAbstractPropertyDefinition"===s.type||"ClassPrivateProperty"===s.type||C(s),v=m(i.left)&&y(i.operator,i.left.operator);if(h||F(i)&&!v||!F(i)&&D)return a(f);if(0===f.length)return"";let x=g(i.right),T=f.findIndex((e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type)),N=f.slice(0,-1===T?1:T+1),_=f.slice(N.length,x?-1:void 0),k=Symbol("logicalChain-"+ ++S),L=a([...N,u(_)],{id:k});if(!x)return L;let O=r(f);return a([L,c(O,{groupId:k})])}function w(e,t,r,o,c){let g=e.getValue();if(!m(g))return[a(t())];let b=[];y(g.operator,g.left.operator)?b=e.call((e=>w(e,t,r,!0,c)),"left"):b.push(a(t("left")));let E,C=F(g),S=("|>"===g.operator||"NGPipeExpression"===g.type||"|"===g.operator&&"__vue_expression"===r.parser)&&!h(r.originalText,g.right),x="NGPipeExpression"===g.type?"|":g.operator,T="NGPipeExpression"===g.type&&g.arguments.length>0?a(u([s,": ",i([s,": "],e.map(t,"arguments").map((e=>l(2,a(e)))))])):"";if(C)E=[x," ",t("right"),T];else{let n=A(r)&&"|>"===x?e.call((e=>w(e,t,r,!0,c)),"right"):t("right");E=[S?s:"",x,S?" ":s,n,T]}let N=e.getParentNode(),_=D(g.left,v.Trailing|v.Line),k=_||!(c&&"LogicalExpression"===g.type)&&N.type!==g.type&&g.left.type!==g.type&&g.right.type!==g.type;if(b.push(S?"":" ",k?a(E,{shouldBreak:_}):E),o&&D(g)){let t=p(n(e,b,r));return f(t)||"fill"===t.type?d(t):[t]}return b}function F(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||g(e.right))}t.exports={printBinaryishExpression:x,shouldInlineLogicalExpression:F}}}),tr=F({"src/language-js/print/angular.js"(e,t){L();var{builders:{join:n,line:r,group:i}}=ee(),{hasNode:s,hasComment:o,getComments:a}=gn(),{printBinaryishExpression:u}=er();function l(e,t,s){let l=e.getValue();if(l.type.startsWith("NG"))switch(l.type){case"NGRoot":return[s("node"),o(l.node)?" //"+a(l.node)[0].value.trimEnd():""];case"NGPipeExpression":return u(e,t,s);case"NGChainedExpression":return i(n([";",r],e.map((e=>p(e)?s():["(",s(),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[l.prefix,": ",l.value.trim()];case"NGMicrosyntax":return e.map(((e,t)=>[0===t?"":c(e.getValue(),t,l)?" ":[";",r],s()]),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(l.name)?l.name:JSON.stringify(l.name);case"NGMicrosyntaxExpression":return[s("expression"),null===l.alias?"":[" as ",s("alias")]];case"NGMicrosyntaxKeyedExpression":{let t=e.getName(),n=e.getParentNode(),r=c(l,t,n)||(1===t&&("then"===l.key.name||"else"===l.key.name)||2===t&&"else"===l.key.name&&"NGMicrosyntaxKeyedExpression"===n.body[t-1].type&&"then"===n.body[t-1].key.name)&&"NGMicrosyntaxExpression"===n.body[0].type;return[s("key"),r?" ":": ",s("expression")]}case"NGMicrosyntaxLet":return["let ",s("key"),null===l.value?"":[" = ",s("value")]];case"NGMicrosyntaxAs":return[s("key")," as ",s("alias")];default:throw new Error("Unknown Angular node type: ".concat(JSON.stringify(l.type),"."))}}function c(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function p(e){return s(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}t.exports={printAngular:l}}}),nr=F({"src/language-js/print/jsx.js"(e,t){L();var{printComments:n,printDanglingComments:r,printCommentsSeparately:i}=tn(),{builders:{line:s,hardline:o,softline:a,group:u,indent:l,conditionalGroup:c,fill:p,ifBreak:d,lineSuffixBoundary:f,join:h},utils:{willBreak:m}}=ee(),{getLast:g,getPreferredQuote:y}=Ae(),{isJsxNode:D,rawText:v,isCallExpression:b,isStringLiteral:E,isBinaryish:C,hasComment:A,CommentCheckFlags:S,hasNodeIgnoreComment:x}=gn(),w=Qn(),{willPrintOwnComments:F}=Yn(),T=e=>""===e||e===s||e===o||e===a;function N(e,t,n){let r=e.getValue();if("JSXElement"===r.type&&Y(r))return[n("openingElement"),n("closingElement")];let i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),s="JSXElement"===r.type?n("closingElement"):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[i,...e.map(n,"children"),s];r.children=r.children.map((e=>X(e)?{type:"JSXText",value:" ",raw:" "}:e));let f=r.children.some(D),h=r.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,y="JSXElement"===r.type&&r.openingElement.attributes.length>1,v=m(i)||f||y||h,b="mdx"===e.getParentNode().rootMarker,E=t.singleQuote?"{' '}":'{" "}',C=b?" ":d([E,a]," "),A=_(e,t,n,C,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),S=r.children.some((e=>Q(e)));for(let u=A.length-2;u>=0;u--){let e=""===A[u]&&""===A[u+1],t=A[u]===o&&""===A[u+1]&&A[u+2]===o,n=(A[u]===a||A[u]===o)&&""===A[u+1]&&A[u+2]===C,r=A[u]===C&&""===A[u+1]&&(A[u+2]===a||A[u+2]===o),i=A[u]===C&&""===A[u+1]&&A[u+2]===C,s=A[u]===a&&""===A[u+1]&&A[u+2]===o||A[u]===o&&""===A[u+1]&&A[u+2]===a;t&&S||e||n||i||s?A.splice(u,2):r&&A.splice(u+1,2)}for(;A.length>0&&T(g(A));)A.pop();for(;A.length>1&&T(A[0])&&T(A[1]);)A.shift(),A.shift();let x=[];for(let[a,u]of A.entries()){if(u===C){if(1===a&&""===A[a-1]){if(2===A.length){x.push(E);continue}x.push([E,o]);continue}if(a===A.length-1){x.push(E);continue}if(""===A[a-1]&&A[a-2]===o){x.push(E);continue}}x.push(u),m(u)&&(v=!0)}let w=S?p(x):u(x,{shouldBreak:!0});if(b)return w;let F=u([i,l([o,w]),o,s]);return v?F:c([u([i,...A,s]),F])}function _(e,t,n,r,i){let a=[];return e.each(((e,t,u)=>{let l=e.getValue();if("JSXText"===l.type){let e=v(l);if(Q(l)){let n,o=e.split(J);if(""===o[0]){if(a.push(""),o.shift(),/\n/.test(o[0])){let e=u[t+1];a.push(O(i,o[1],l,e))}else a.push(r);o.shift()}if(""===g(o)&&(o.pop(),n=o.pop()),0===o.length)return;for(let[e,t]of o.entries())e%2===1?a.push(s):a.push(t);if(void 0!==n)if(/\n/.test(n)){let e=u[t+1];a.push(O(i,g(a),l,e))}else a.push(r);else{let e=u[t+1];a.push(k(i,g(a),l,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&a.push("",o):a.push("",r)}else{let e=n();a.push(e);let r=u[t+1];if(r&&Q(r)){let e=z(v(r)).split(J)[0];a.push(k(i,e,l,r))}else a.push(o)}}),"children"),a}function k(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?a:o:a}function O(e,t,n,r){return e?o:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?o:a:o}function P(e,t,n){let r=e.getParentNode();if(!r||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;let i=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),b,(e=>"JSXExpressionContainer"===e.type)),s=w(e,n);return u([s?"":d("("),l([a,t]),a,s?"":d(")")],{shouldBreak:i})}function I(e,t,n){let r=e.getValue(),s=[];if(s.push(n("name")),r.value){let o;if(E(r.value)){let n=v(r.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:s,quote:a,regex:u}=y(n,t.jsxSingleQuote?"'":'"');n=n.replace(u,s);let{leading:l,trailing:c}=e.call((()=>i(e,t)),"value");o=[l,a,n,a,c]}else o=n("value");s.push("=",o)}return s}function B(e,t,n){let r=e.getValue(),i=(e,t)=>"JSXEmptyExpression"===e.type||!A(e)&&("ArrayExpression"===e.type||"ObjectExpression"===e.type||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(i(e.argument,e)||"JSXElement"===e.argument.type)||b(e)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||D(t)&&("ConditionalExpression"===e.type||C(e)));return i(r.expression,e.getParentNode(0))?u(["{",n("expression"),f,"}"]):u(["{",l([a,n("expression")]),a,f,"}"])}function M(e,t,n){let r=e.getValue(),i=r.name&&A(r.name)||r.typeParameters&&A(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!i)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&E(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!A(r.attributes[0]))return u(["<",n("name"),n("typeParameters")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);let a=r.attributes&&r.attributes.some((e=>e.value&&E(e.value)&&e.value.value.includes("\n"))),c=t.singleAttributePerLine&&r.attributes.length>1?o:s;return u(["<",n("name"),n("typeParameters"),l(e.map((()=>[c,n()]),"attributes")),...j(r,t,i)],{shouldBreak:a})}function j(e,t,n){return e.selfClosing?[s,"/>"]:R(e,t,n)?[">"]:[a,">"]}function R(e,t,n){let r=e.attributes.length>0&&A(g(e.attributes),S.Trailing);return 0===e.attributes.length&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function V(e,t,n){let r=e.getValue(),i=[];i.push("</");let s=n("name");return A(r.name,S.Leading|S.Line)?i.push(l([o,s]),o):A(r.name,S.Leading|S.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function q(e,t){let n=e.getValue(),i=A(n),s=A(n,S.Line),a="JSXOpeningFragment"===n.type;return[a?"<":"</",l([s?o:i&&!a?" ":"",r(e,t,!0)]),s?o:"",">"]}function U(e,t,r){return P(e,n(e,N(e,t,r),t),t)}function W(e,t){let n=e.getValue(),i=A(n,S.Line);return[r(e,t,!i),i?o:""]}function K(e,t,r){let i=e.getValue();return["{",e.call((e=>{let i=["...",r()],s=e.getValue();return A(s)&&F(e)?[l([a,n(e,i,t)]),a]:i}),"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]}function $(e,t,n){let r=e.getValue();if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return I(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return h(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return h(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return K(e,t,n);case"JSXExpressionContainer":return B(e,t,n);case"JSXFragment":case"JSXElement":return U(e,t,n);case"JSXOpeningElement":return M(e,t,n);case"JSXClosingElement":return V(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return q(e,t);case"JSXEmptyExpression":return W(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error("Unknown JSX node type: ".concat(JSON.stringify(r.type),"."))}}var H=" \n\r\t",J=new RegExp("(["+H+"]+)"),G=new RegExp("[^"+H+"]"),z=e=>e.replace(new RegExp("(?:^"+J.source+"|"+J.source+"$)"),"");function Y(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!Q(t)}function Q(e){return"JSXText"===e.type&&(G.test(v(e))||!/\n/.test(v(e)))}function X(e){return"JSXExpressionContainer"===e.type&&E(e.expression)&&" "===e.expression.value&&!A(e.expression)}function Z(e){let t=e.getValue(),n=e.getParentNode();if(!n||!t||!D(t)||!D(n))return!1;let r=null;for(let i=n.children.indexOf(t);i>0;i--){let e=n.children[i-1];if("JSXText"!==e.type||Q(e)){r=e;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&x(r.expression)}t.exports={hasJsxIgnoreComment:Z,printJsx:$}}}),rr=F({"src/language-js/print/misc.js"(e,t){L();var{isNonEmptyArray:n}=Ae(),{builders:{indent:r,join:i,line:s}}=ee(),{isFlowAnnotationComment:o}=gn();function a(e){let t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function u(e){return e.getValue().definite||e.match(void 0,((e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite))?"!":""}function l(e,t,n){let r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""}function c(e,t,n){let r=e.getValue();if(!r.typeAnnotation)return"";let i=e.getParentNode(),s="DeclareFunction"===i.type&&i.id===r;return o(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[s?"":": ",n("typeAnnotation")]}function p(e,t,n){return["::",n("callee")]}function d(e,t,r){let s=e.getValue();return n(s.modifiers)?[i(" ",e.map(r,"modifiers"))," "]:""}function f(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:r([s,t])}function h(e,t,n){return["...",n("argument"),c(e,t,n)]}function m(e,t){let n=e.slice(1,-1);if(n.includes('"')||n.includes("'"))return e;let r=t.singleQuote?"'":'"';return r+n+r}t.exports={printOptionalToken:a,printDefiniteToken:u,printFunctionTypeParameters:l,printBindExpressionCallee:p,printTypeScriptModifiers:d,printTypeAnnotation:c,printRestSpread:h,adjustClause:f,printDirective:m}}}),ir=F({"src/language-js/print/array.js"(e,t){L();var{printDanglingComments:n}=tn(),{builders:{line:r,softline:i,hardline:s,group:o,indent:a,ifBreak:u,fill:l}}=ee(),{getLast:c,hasNewline:p}=Ae(),{shouldPrintComma:d,hasComment:f,CommentCheckFlags:h,isNextLineEmpty:m,isNumericLiteral:g,isSignedNumericLiteral:y}=gn(),{locStart:D}=Jt(),{printOptionalToken:v,printTypeAnnotation:b}=rr();function E(e,t,r){let s=e.getValue(),l=[],p="TupleExpression"===s.type?"#[":"[",m="]";if(0===s.elements.length)f(s,h.Dangling)?l.push(o([p,n(e,t),i,m])):l.push(p,m);else{let f=c(s.elements),h=!(f&&"RestElement"===f.type),g=null===f,y=Symbol("array"),D=!t.__inJestEach&&s.elements.length>1&&s.elements.every(((e,t,n)=>{let r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;let i=n[t+1];if(i&&r!==i.type)return!1;let s="ArrayExpression"===r?"elements":"properties";return e[s]&&e[s].length>1})),v=C(s,t),b=h?g?",":d(t)?v?u(",","",{groupId:y}):u(","):"":"";l.push(o([p,a([i,v?S(e,t,r,b):[A(e,t,"elements",r),b],n(e,t,!0)]),i,m],{shouldBreak:D,id:y}))}return l.push(v(e),b(e,t,r)),l}function C(e,t){return e.elements.length>1&&e.elements.every((e=>e&&(g(e)||y(e)&&!f(e.argument))&&!f(e,h.Trailing|h.Line,(e=>!p(t.originalText,D(e),{backwards:!0})))))}function A(e,t,n,s){let a=[],u=[];return e.each((e=>{a.push(u,o(s())),u=[",",r],e.getValue()&&m(e.getValue(),t)&&u.push(i)}),n),a}function S(e,t,n,i){let o=[];return e.each(((e,a,u)=>{let l=a===u.length-1;o.push([n(),l?i:","]),l||o.push(m(e.getValue(),t)?[s,s]:f(u[a+1],h.Leading|h.Line)?s:r)}),"elements"),l(o)}t.exports={printArray:E,printArrayItems:A,isConciselyPrintedArray:C}}}),sr=F({"src/language-js/print/call-arguments.js"(e,t){L();var{printDanglingComments:n}=tn(),{getLast:r,getPenultimate:i}=Ae(),{getFunctionParameters:s,hasComment:o,CommentCheckFlags:a,isFunctionCompositionArgs:u,isJsxNode:l,isLongCurriedCallExpression:c,shouldPrintComma:p,getCallArguments:d,iterateCallArgumentsPath:f,isNextLineEmpty:h,isCallExpression:m,isStringLiteral:g,isObjectProperty:y,isTSTypeExpression:D}=gn(),{builders:{line:v,hardline:b,softline:E,group:C,indent:A,conditionalGroup:S,ifBreak:x,breakParent:w},utils:{willBreak:F}}=ee(),{ArgExpansionBailout:T}=$e(),{isConciselyPrintedArray:N}=ir();function _(e,t,i){let s=e.getValue(),o="ImportExpression"===s.type,a=d(s);if(0===a.length)return["(",n(e,t,!0),")"];if(I(a))return["(",i(["arguments",0]),", ",i(["arguments",1]),")"];let l=!1,m=!1,g=a.length-1,y=[];f(e,((e,n)=>{let r=e.getNode(),s=[i()];n===g||(h(r,t)?(0===n&&(m=!0),l=!0,s.push(",",b,b)):s.push(",",v)),y.push(s)}));let D=o||s.callee&&"Import"===s.callee.type||!p(t,"all")?"":",";function N(){return C(["(",A([v,...y]),D,v,")"],{shouldBreak:!0})}if(l||"Decorator"!==e.getParentNode().type&&u(a))return N();let _=P(a),k=O(a,t);if(_||k){if(_?y.slice(1).some(F):y.slice(0,-1).some(F))return N();let t=[];try{e.try((()=>{f(e,((e,n)=>{_&&0===n&&(t=[[i([],{expandFirstArg:!0}),y.length>1?",":"",m?b:v,m?b:""],...y.slice(1)]),k&&n===g&&(t=[...y.slice(0,-1),i([],{expandLastArg:!0})])}))}))}catch(B){if(B instanceof T)return N();throw B}return[y.some(F)?w:"",S([["(",...t,")"],_?["(",C(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...y.slice(0,-1),C(r(t),{shouldBreak:!0}),")"],N()])]}let L=["(",A([E,...y]),x(D),E,")"];return c(e)?L:C(L,{shouldBreak:y.some(F)||l})}function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||o(e))||"ArrayExpression"===e.type&&(e.elements.length>0||o(e))||"TSTypeAssertion"===e.type&&k(e.expression)||D(e)&&k(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||B(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&k(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(m(e.body)||"ConditionalExpression"===e.body.type)||l(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function O(e,t){let n=r(e),s=i(e);return!o(n,a.Leading)&&!o(n,a.Trailing)&&k(n)&&(!s||s.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==s.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&N(n,t))}function P(e){if(2!==e.length)return!1;let[t,n]=e;return!("ModuleExpression"!==t.type||!M(n))||!o(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&!k(n)}function I(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===s(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((e=>o(e)))}function B(e){return"BlockStatement"===e.type&&(e.body.some((e=>"EmptyStatement"!==e.type))||o(e,a.Dangling))}function M(e){return"ObjectExpression"===e.type&&1===e.properties.length&&y(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&g(e.properties[0].value)&&"module"===e.properties[0].value.value}t.exports=_}}),or=F({"src/language-js/print/member.js"(e,t){L();var{builders:{softline:n,group:r,indent:i,label:s}}=ee(),{isNumericLiteral:o,isMemberExpression:a,isCallExpression:u}=gn(),{printOptionalToken:l}=rr();function c(e,t,o){let l,c=e.getValue(),d=e.getParentNode(),f=0;do{l=e.getParentNode(f),f++}while(l&&(a(l)||"TSNonNullExpression"===l.type));let h=o("object"),m=p(e,t,o),g=l&&("NewExpression"===l.type||"BindExpression"===l.type||"AssignmentExpression"===l.type&&"Identifier"!==l.left.type)||c.computed||"Identifier"===c.object.type&&"Identifier"===c.property.type&&!a(d)||("AssignmentExpression"===d.type||"VariableDeclarator"===d.type)&&(u(c.object)&&c.object.arguments.length>0||"TSNonNullExpression"===c.object.type&&u(c.object.expression)&&c.object.expression.arguments.length>0||"member-chain"===h.label);return s("member-chain"===h.label?"member-chain":"member",[h,g?m:r(i([n,m]))])}function p(e,t,s){let a=s("property"),u=e.getValue(),c=l(e);return u.computed?!u.property||o(u.property)?[c,"[",a,"]"]:r([c,"[",i([n,a]),n,"]"]):[c,".",a]}t.exports={printMemberExpression:c,printMemberLookup:p}}}),ar=F({"src/language-js/print/member-chain.js"(e,t){L();var{printComments:n}=tn(),{getLast:r,isNextLineEmptyAfterIndex:i,getNextNonSpaceNonCommentCharacterIndex:s}=Ae(),o=Qn(),{isCallExpression:a,isMemberExpression:u,isFunctionOrArrowExpression:l,isLongCurriedCallExpression:c,isMemberish:p,isNumericLiteral:d,isSimpleCallArgument:f,hasComment:h,CommentCheckFlags:m,isNextLineEmpty:g}=gn(),{locEnd:y}=Jt(),{builders:{join:D,hardline:v,group:b,indent:E,conditionalGroup:C,breakParent:A,label:S},utils:{willBreak:x}}=ee(),w=sr(),{printMemberLookup:F}=or(),{printOptionalToken:T,printFunctionTypeParameters:N,printBindExpressionCallee:_}=rr();function k(e,t,k){let L=e.getParentNode(),O=!L||"ExpressionStatement"===L.type,P=[];function I(e){let{originalText:n}=t,r=s(n,e,y);return")"===n.charAt(r)?!1!==r&&i(n,r+1):g(e,t)}function B(e){let r=e.getValue();a(r)&&(p(r.callee)||a(r.callee))?(P.unshift({node:r,printed:[n(e,[T(e),N(e,t,k),w(e,t,k)],t),I(r)?v:""]}),e.call((e=>B(e)),"callee")):p(r)?(P.unshift({node:r,needsParens:o(e,t),printed:n(e,u(r)?F(e,t,k):_(e,t,k),t)}),e.call((e=>B(e)),"object")):"TSNonNullExpression"===r.type?(P.unshift({node:r,printed:n(e,"!",t)}),e.call((e=>B(e)),"expression")):P.unshift({node:r,printed:k()})}let M=e.getValue();P.unshift({node:M,printed:[T(e),N(e,t,k),w(e,t,k)]}),M.callee&&e.call((e=>B(e)),"callee");let j=[],R=[P[0]],V=1;for(;V<P.length&&("TSNonNullExpression"===P[V].node.type||a(P[V].node)||u(P[V].node)&&P[V].node.computed&&d(P[V].node.property));++V)R.push(P[V]);if(!a(P[0].node))for(;V+1<P.length&&p(P[V].node)&&p(P[V+1].node);++V)R.push(P[V]);j.push(R),R=[];let q=!1;for(;V<P.length;++V){if(q&&p(P[V].node)){if(P[V].node.computed&&d(P[V].node.property)){R.push(P[V]);continue}j.push(R),R=[],q=!1}(a(P[V].node)||"ImportExpression"===P[V].node.type)&&(q=!0),R.push(P[V]),h(P[V].node,m.Trailing)&&(j.push(R),R=[],q=!1)}function U(e){return/^[A-Z]|^[$_]+$/.test(e)}function W(e){return e.length<=t.tabWidth}function K(e){let t=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){let n=e[0][0].node;return"ThisExpression"===n.type||"Identifier"===n.type&&(U(n.name)||O&&W(n.name)||t)}let n=r(e[0]).node;return u(n)&&"Identifier"===n.property.type&&(U(n.property.name)||t)}R.length>0&&j.push(R);let $=j.length>=2&&!h(j[1][0].node)&&K(j);function H(e){let t=e.map((e=>e.printed));return e.length>0&&r(e).needsParens?["(",...t,")"]:t}function J(e){return 0===e.length?"":E(b([v,D(v,e.map(H))]))}let G=j.map(H),z=G,Y=$?3:2,Q=j.flat(),X=Q.slice(1,-1).some((e=>h(e.node,m.Leading)))||Q.slice(0,-1).some((e=>h(e.node,m.Trailing)))||j[Y]&&h(j[Y][0].node,m.Leading);if(j.length<=Y&&!X)return c(e)?z:b(z);let Z,ee=r(j[$?1:0]).node,te=!a(ee)&&I(ee),ne=[H(j[0]),$?j.slice(1,2).map(H):"",te?v:"",J(j.slice($?2:1))],re=P.map((e=>{let{node:t}=e;return t})).filter(a);function ie(){let e=r(r(j)).node,t=r(G);return a(e)&&x(t)&&re.slice(0,-1).some((e=>e.arguments.some(l)))}return Z=X||re.length>2&&re.some((e=>!e.arguments.every((e=>f(e,0)))))||G.slice(0,-1).some(x)||ie()?b(ne):[x(z)||te?A:"",C([z,ne])],S("member-chain",Z)}t.exports=k}}),ur=F({"src/language-js/print/call-expression.js"(e,t){L();var{builders:{join:n,group:r}}=ee(),i=Qn(),{getCallArguments:s,hasFlowAnnotationComment:o,isCallExpression:a,isMemberish:u,isStringLiteral:l,isTemplateOnItsOwnLine:c,isTestCall:p,iterateCallArgumentsPath:d}=gn(),f=ar(),h=sr(),{printOptionalToken:m,printFunctionTypeParameters:g}=rr();function y(e,t,l){let y=e.getValue(),v=e.getParentNode(),b="NewExpression"===y.type,E="ImportExpression"===y.type,C=m(e),A=s(y);if(A.length>0&&(!E&&!b&&D(y,v)||1===A.length&&c(A[0],t.originalText)||!b&&p(y,v))){let r=[];return d(e,(()=>{r.push(l())})),[b?"new ":"",l("callee"),C,g(e,t,l),"(",n(", ",r),")"]}let S=("babel"===t.parser||"babel-flow"===t.parser)&&y.callee&&"Identifier"===y.callee.type&&o(y.callee.trailingComments);if(S&&(y.callee.trailingComments[0].printed=!0),!E&&!b&&u(y.callee)&&!e.call((e=>i(e,t)),"callee"))return f(e,t,l);let x=[b?"new ":"",E?"import":l("callee"),C,S?"/*:: ".concat(y.callee.trailingComments[0].value.slice(2).trim()," */"):"",g(e,t,l),h(e,t,l)];return E||a(y.callee)?r(x):x}function D(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){let n=s(e);return"ExpressionStatement"===t.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&l(n[0])&&"ArrayExpression"===n[1].type)}return!1}t.exports={printCallExpression:y}}}),lr=F({"src/language-js/print/assignment.js"(e,t){L();var{isNonEmptyArray:n,getStringWidth:r}=Ae(),{builders:{line:i,group:s,indent:o,indentIfBreak:a,lineSuffixBoundary:u},utils:{cleanDoc:l,willBreak:c,canBreak:p}}=ee(),{hasLeadingOwnLineComment:d,isBinaryish:f,isStringLiteral:h,isLiteral:m,isNumericLiteral:g,isCallExpression:y,isMemberExpression:D,getCallArguments:v,rawText:b,hasComment:E,isSignedNumericLiteral:C,isObjectProperty:A}=gn(),{shouldInlineLogicalExpression:S}=er(),{printCallExpression:x}=ur();function w(e,t,n,r,l,c){let p=N(e,t,n,r,c),d=n(c,{assignmentLayout:p});switch(p){case"break-after-operator":return s([s(r),l,s(o([i,d]))]);case"never-break-after-operator":return s([s(r),l," ",d]);case"fluid":{let e=Symbol("assignment");return s([s(r),l,s(o(i),{id:e}),u,a(d,{groupId:e})])}case"break-lhs":return s([r,l," ",s(d)]);case"chain":return[s(r),l,i,d];case"chain-tail":return[s(r),l,o([i,d])];case"chain-tail-arrow-chain":return[s(r),l,d];case"only-left":return r}}function F(e,t,n){let r=e.getValue();return w(e,t,n,n("left"),[" ",r.operator],"right")}function T(e,t,n){return w(e,t,n,n("id")," =","init")}function N(e,t,n,r,i){let s=e.getValue(),o=s[i];if(!o)return"only-left";let a=!O(o);if(e.match(O,P,(e=>!a||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type)))return a?"ArrowFunctionExpression"===o.type&&"ArrowFunctionExpression"===o.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&O(o.right)||d(t.originalText,o))return"break-after-operator";if("CallExpression"===o.type&&"require"===o.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(k(s)||I(s)||j(s)||R(s)&&p(r))return"break-lhs";let u=$(s,r,t);return e.call((()=>_(e,t,n,u)),i)?"break-after-operator":u||"TemplateLiteral"===o.type||"TaggedTemplateExpression"===o.type||"BooleanLiteral"===o.type||g(o)||"ClassExpression"===o.type?"never-break-after-operator":"fluid"}function _(e,t,r,i){let s=e.getValue();if(f(s)&&!S(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:e}=s;return f(e)&&!S(e)}case"ClassExpression":return n(s.decorators)}if(i)return!1;let o=s,a=[];for(;;)if("UnaryExpression"===o.type)o=o.argument,a.push("argument");else{if("TSNonNullExpression"!==o.type)break;o=o.expression,a.push("expression")}return!(!h(o)&&!e.call((()=>U(e,t,r)),...a))}function k(e){if(P(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((e=>A(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)))}return!1}function O(e){return"AssignmentExpression"===e.type}function P(e){return O(e)||"VariableDeclarator"===e.type}function I(e){let t=B(e);if(n(t)){let n="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((e=>e[n]||e.default)))return!0}return!1}function B(e){return M(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function M(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}function j(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=V(t.typeAnnotation);return n(r)&&r.length>1&&r.some((e=>n(V(e))||"TSConditionalType"===e.type))}function R(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function V(e){return q(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function q(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}function U(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),s=()=>U(e,t,n,!0);if("TSNonNullExpression"===i.type)return e.call(s,"expression");if(y(i)){if("member-chain"===x(e,t,n).label)return!1;let r=v(i);return!(!(0===r.length||1===r.length&&K(r[0],t))||H(i,n))&&e.call(s,"callee")}return D(i)?e.call(s,"object"):r&&("Identifier"===i.type||"ThisExpression"===i.type)}var W=.25;function K(e,t){let{printWidth:n}=t;if(E(e))return!1;let r=n*W;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=r||C(e)&&!E(e.argument))return!0;let i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=r:h(e)?b(e).length<=r:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes("\n"):m(e)}function $(e,t,n){if(!A(e))return!1;let i=3;return"string"==typeof(t=l(t))&&r(t)<n.tabWidth+i}function H(e,t){let r=J(e);if(n(r)){if(r.length>1)return!0;if(1===r.length){let e=r[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(c(t(n)))return!0}return!1}function J(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}t.exports={printVariableDeclarator:T,printAssignmentExpression:F,printAssignment:w,isArrowFunctionVariableDeclarator:R}}}),cr=F({"src/language-js/print/function-parameters.js"(e,t){L();var{getNextNonSpaceNonCommentCharacter:n}=Ae(),{printDanglingComments:r}=tn(),{builders:{line:i,hardline:s,softline:o,group:a,indent:u,ifBreak:l},utils:{removeLines:c,willBreak:p}}=ee(),{getFunctionParameters:d,iterateFunctionParametersPath:f,isSimpleType:h,isTestCall:m,isTypeAnnotationAFunction:g,isObjectType:y,isObjectTypePropertyAFunction:D,hasRestParameter:v,shouldPrintComma:b,hasComment:E,isNextLineEmpty:C}=gn(),{locEnd:A}=Jt(),{ArgExpansionBailout:S}=$e(),{printFunctionTypeParameters:x}=rr();function w(e,t,y,E,w){let T=e.getValue(),N=d(T),_=w?x(e,y,t):"";if(0===N.length)return[_,"(",r(e,y,!0,(e=>")"===n(y.originalText,e,A))),")"];let k=e.getParentNode(),L=m(k),O=F(T),P=[];if(f(e,((e,n)=>{let r=n===N.length-1;r&&T.rest&&P.push("..."),P.push(t()),!r&&(P.push(","),L||O?P.push(" "):C(N[n],y)?P.push(s,s):P.push(i))})),E){if(p(_)||p(P))throw new S;return a([c(_),"(",c(P),")"])}let I=N.every((e=>!e.decorators));return O&&I||L?[_,"(",...P,")"]:(D(k)||g(k)||"TypeAlias"===k.type||"UnionTypeAnnotation"===k.type||"TSUnionType"===k.type||"IntersectionTypeAnnotation"===k.type||"FunctionTypeAnnotation"===k.type&&k.returnType===T)&&1===N.length&&null===N[0].name&&T.this!==N[0]&&N[0].typeAnnotation&&null===T.typeParameters&&h(N[0].typeAnnotation)&&!T.rest?"always"===y.arrowParens?["(",...P,")"]:P:[_,"(",u([o,...P]),l(!v(T)&&b(y,"all")?",":""),o,")"]}function F(e){if(!e)return!1;let t=d(e);if(1!==t.length)return!1;let[n]=t;return!E(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&y(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&y(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 T(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function N(e,t){let n=T(e);if(!n)return!1;let r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){let e=r[0];if(e.constraint||e.default)return!1}}return 1===d(e).length&&(y(n)||p(t))}t.exports={printFunctionParameters:w,shouldHugFunctionParameters:F,shouldGroupFunctionParameters:N}}}),pr=F({"src/language-js/print/type-annotation.js"(e,t){L();var{printComments:n,printDanglingComments:r}=tn(),{isNonEmptyArray:i}=Ae(),{builders:{group:s,join:o,line:a,softline:u,indent:l,align:c,ifBreak:p}}=ee(),d=Qn(),{locStart:f}=Jt(),{isSimpleType:h,isObjectType:m,hasLeadingOwnLineComment:g,isObjectTypePropertyAFunction:y,shouldPrintComma:D}=gn(),{printAssignment:v}=lr(),{printFunctionParameters:b,shouldGroupFunctionParameters:E}=cr(),{printArrayItems:C}=ir();function A(e){if(h(e)||m(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){let 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 S(e,t,n){let r=t.semi?";":"",i=e.getValue(),s=[];return s.push("opaque type ",n("id"),n("typeParameters")),i.supertype&&s.push(": ",n("supertype")),i.impltype&&s.push(" = ",n("impltype")),s.push(r),s}function x(e,t,n){let r=t.semi?";":"",i=e.getValue(),s=[];i.declare&&s.push("declare "),s.push("type ",n("id"),n("typeParameters"));let o="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[v(e,t,n,s," =",o),r]}function w(e,t,n){let r=e.getValue(),i=e.map(n,"types"),o=[],u=!1;for(let s=0;s<i.length;++s)0===s?o.push(i[s]):m(r.types[s-1])&&m(r.types[s])?o.push([" & ",u?l(i[s]):i[s]]):m(r.types[s-1])||m(r.types[s])?(s>1&&(u=!0),o.push(" & ",s>1?l(i[s]):i[s])):o.push(l([" &",a,i[s]]));return s(o)}function F(e,t,r){let i=e.getValue(),f=e.getParentNode(),h="TypeParameterInstantiation"!==f.type&&"TSTypeParameterInstantiation"!==f.type&&"GenericTypeAnnotation"!==f.type&&"TSTypeReference"!==f.type&&"TSTypeAssertion"!==f.type&&"TupleTypeAnnotation"!==f.type&&"TSTupleType"!==f.type&&!("FunctionTypeParam"===f.type&&!f.name&&e.getParentNode(1).this!==f)&&!(("TypeAlias"===f.type||"VariableDeclarator"===f.type||"TSTypeAliasDeclaration"===f.type)&&g(t.originalText,i)),m=A(i),y=e.map((e=>{let i=r();return m||(i=c(2,i)),n(e,i,t)}),"types");if(m)return o(" | ",y);let D=h&&!g(t.originalText,i),v=[p([D?a:"","| "]),o([a,"| "],y)];return d(e,t)?s([l(v),u]):"TupleTypeAnnotation"===f.type&&f.types.length>1||"TSTupleType"===f.type&&f.elementTypes.length>1?s([l([p(["(",u]),v]),u,p(")")]):s(h?l(v):v)}function T(e,t,n){let r=e.getValue(),i=[],o=e.getParentNode(0),a=e.getParentNode(1),u=e.getParentNode(2),l="TSFunctionType"===r.type||!(("ObjectTypeProperty"===o.type||"ObjectTypeInternalSlot"===o.type)&&!o.variance&&!o.optional&&f(o)===f(r)||"ObjectTypeCallProperty"===o.type||u&&"DeclareFunction"===u.type),c=l&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type),p=c&&l&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type)&&"ArrowFunctionExpression"===a.type;y(o)&&(l=!0,c=!0),p&&i.push("(");let d=b(e,n,t,!1,!0),h=r.returnType||r.predicate||r.typeAnnotation?[l?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",m=E(r,h);return i.push(m?s(d):d),h&&i.push(h),p&&i.push(")"),s(i)}function N(e,t,n){let o=e.getValue(),a="TSTupleType"===o.type?"elementTypes":"types",c=o[a],d=i(c),f=d?u:"";return s(["[",l([f,C(e,t,a,n)]),p(d&&D(t,"all")?",":""),r(e,t,!0),f,"]"])}function _(e,t,n){let r=e.getValue(),i="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),i,n("indexType"),"]"]}function k(e,t,n){let r=e.getValue();return[r.postfix?"":n,t("typeAnnotation"),r.postfix?n:""]}t.exports={printOpaqueType:S,printTypeAlias:x,printIntersectionType:w,printUnionType:F,printFunctionType:T,printTupleType:N,printIndexedAccessType:_,shouldHugType:A,printJSDocType:k}}}),dr=F({"src/language-js/print/type-parameters.js"(e,t){L();var{printDanglingComments:n}=tn(),{builders:{join:r,line:i,hardline:s,softline:o,group:a,indent:u,ifBreak:l}}=ee(),{isTestCall:c,hasComment:p,CommentCheckFlags:d,isTSXFile:f,shouldPrintComma:h,getFunctionParameters:m,isObjectType:g,getTypeScriptMappedTypeModifier:y}=gn(),{createGroupIdMapper:D}=Ae(),{shouldHugType:v}=pr(),{isArrowFunctionVariableDeclarator:b}=lr(),E=D("typeParameters");function C(e,t,n,s){let p=e.getValue();if(!p[s])return"";if(!Array.isArray(p[s]))return n(s);let d=e.getNode(2),y=d&&c(d),D=e.match((e=>!(1===e[s].length&&g(e[s][0]))),void 0,((e,t)=>"typeAnnotation"===t),(e=>"Identifier"===e.type),b);if(0===p[s].length||!D&&(y||1===p[s].length&&("NullableTypeAnnotation"===p[s][0].type||v(p[s][0]))))return["<",r(", ",e.map(n,s)),A(e,t),">"];let C="TSTypeParameterInstantiation"===p.type?"":1===m(p).length&&f(t)&&!p[s][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":h(t,"all")?l(","):"";return a(["<",u([o,r([",",i],e.map(n,s))]),C,o,">"],{id:E(p)})}function A(e,t){let r=e.getValue();if(!p(r,d.Dangling))return"";let i=!p(r,d.Line),o=n(e,t,i);return i?o:[o,s]}function S(e,t,n){let r=e.getValue(),i=["TSTypeParameter"===r.type&&r.const?"const ":""],s=e.getParentNode();return"TSMappedType"===s.type?(s.readonly&&i.push(y(s.readonly,"readonly")," "),i.push("[",n("name")),r.constraint&&i.push(" in ",n("constraint")),s.nameType&&i.push(" as ",e.callParent((()=>n("nameType")))),i.push("]"),i):(r.variance&&i.push(n("variance")),r.in&&i.push("in "),r.out&&i.push("out "),i.push(n("name")),r.bound&&i.push(": ",n("bound")),r.constraint&&i.push(" extends ",n("constraint")),r.default&&i.push(" = ",n("default")),i)}t.exports={printTypeParameter:S,printTypeParameters:C,getTypeParametersGroupId:E}}}),fr=F({"src/language-js/print/property.js"(e,t){L();var{printComments:n}=tn(),{printString:r,printNumber:i}=Ae(),{isNumericLiteral:s,isSimpleNumber:o,isStringLiteral:a,isStringPropSafeToUnquote:u,rawText:l}=gn(),{printAssignment:c}=lr(),p=new WeakMap;function d(e,t,c){let d=e.getNode();if(d.computed)return["[",c("key"),"]"];let f=e.getParentNode(),{key:h}=d;if("consistent"===t.quoteProps&&!p.has(f)){let e=(f.properties||f.body||f.members).some((e=>!e.computed&&e.key&&a(e.key)&&!u(e,t)));p.set(f,e)}if(("Identifier"===h.type||s(h)&&o(i(l(h)))&&String(h.value)===i(l(h))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&p.get(f))){let i=r(JSON.stringify("Identifier"===h.type?h.name:h.value.toString()),t);return e.call((e=>n(e,i,t)),"key")}return u(d,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!p.get(f))?e.call((e=>n(e,/^\d/.test(h.value)?i(h.value):h.value,t)),"key"):c("key")}function f(e,t,n){return e.getValue().shorthand?n("value"):c(e,t,n,d(e,t,n),":","value")}t.exports={printProperty:f,printPropertyKey:d}}}),hr=F({"src/language-js/print/function.js"(e,t){L();var n=en(),{printDanglingComments:r,printCommentsSeparately:i}=tn(),s=j(),{getNextNonSpaceNonCommentCharacterIndex:o}=Ae(),{builders:{line:a,softline:u,group:l,indent:c,ifBreak:p,hardline:d,join:f,indentIfBreak:h},utils:{removeLines:m,willBreak:g}}=ee(),{ArgExpansionBailout:y}=$e(),{getFunctionParameters:D,hasLeadingOwnLineComment:v,isFlowAnnotationComment:b,isJsxNode:E,isTemplateOnItsOwnLine:C,shouldPrintComma:A,startsWithNoLookaheadToken:S,isBinaryish:x,isLineComment:w,hasComment:F,getComments:T,CommentCheckFlags:N,isCallLikeExpression:_,isCallExpression:k,getCallArguments:O,hasNakedLeftSide:P,getLeftSide:I}=gn(),{locEnd:B}=Jt(),{printFunctionParameters:M,shouldGroupFunctionParameters:R}=cr(),{printPropertyKey:V}=fr(),{printFunctionTypeParameters:q}=rr();function U(e,t,n,r){let i=e.getValue(),s=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&r&&r.expandLastArg){let t=e.getParentNode();k(t)&&O(t).length>1&&(s=!0)}let o=[];"TSDeclareFunction"===i.type&&i.declare&&o.push("declare "),i.async&&o.push("async "),i.generator?o.push("function* "):o.push("function "),i.id&&o.push(t("id"));let a=M(e,t,n,s),u=Y(e,t,n),c=R(i,u);return o.push(q(e,n,t),l([c?l(a):a,u]),i.body?" ":"",t("body")),n.semi&&(i.declare||!i.body)&&o.push(";"),o}function W(e,t,r){let i=e.getNode(),{kind:s}=i,o=i.value||i,a=[];return s&&"init"!==s&&"method"!==s&&"constructor"!==s?(n.ok("get"===s||"set"===s),a.push(s," ")):o.async&&a.push("async "),o.generator&&a.push("*"),a.push(V(e,t,r),i.optional||i.key.optional?"?":""),i===o?a.push(K(e,t,r)):"FunctionExpression"===o.type?a.push(e.call((e=>K(e,t,r)),"value")):a.push(r("value")),a}function K(e,t,n){let r=e.getNode(),i=M(e,n,t),s=Y(e,n,t),o=R(r,s),a=[q(e,t,n),l([o?l(i):i,s])];return r.body?a.push(" ",n("body")):a.push(t.semi?";":""),a}function $(e,t,n,i){let s=[];if(e.getValue().async&&s.push("async "),z(e,t))s.push(n(["params",0]));else{let r=i&&(i.expandLastArg||i.expandFirstArg),o=Y(e,n,t);if(r){if(g(o))throw new y;o=l(m(o))}s.push(l([M(e,n,t,r,!0),o]))}let a=r(e,t,!0,(e=>{let n=o(t.originalText,e,B);return!1!==n&&"=>"===t.originalText.slice(n,n+2)}));return a&&s.push(" ",a),s}function H(e,t,n,r,i,s){let o=e.getName(),d=e.getParentNode(),m=_(d)&&"callee"===o,g=Boolean(t&&t.assignmentLayout),y="BlockStatement"!==s.body.type&&"ObjectExpression"!==s.body.type&&"SequenceExpression"!==s.body.type,D=m&&y||t&&"chain-tail-arrow-chain"===t.assignmentLayout,v=Symbol("arrow-chain");return"SequenceExpression"===s.body.type&&(i=l(["(",c([u,i]),u,")"])),l([l(c([m||g?u:"",l(f([" =>",a],n),{shouldBreak:r})]),{id:v,shouldBreak:D})," =>",h(y?c([a,i]):[" ",i],{groupId:v}),m?p(u,"",{groupId:v}):""])}function J(e,t,n,r){let s=e.getValue(),o=[],d=[],f=!1;if(function a(){let u=$(e,t,n,r);if(0===o.length)o.push(u);else{let{leading:n,trailing:r}=i(e,t);o.push([n,u]),d.unshift(r)}f=f||s.returnType&&D(s).length>0||s.typeParameters||D(s).some((e=>"Identifier"!==e.type)),"ArrowFunctionExpression"!==s.body.type||r&&r.expandLastArg?d.unshift(n("body",r)):(s=s.body,e.call(a,"body"))}(),o.length>1)return H(e,r,o,f,d,s);let h=o;if(h.push(" =>"),!v(t.originalText,s.body)&&("ArrayExpression"===s.body.type||"ObjectExpression"===s.body.type||"BlockStatement"===s.body.type||E(s.body)||C(s.body,t.originalText)||"ArrowFunctionExpression"===s.body.type||"DoExpression"===s.body.type))return l([...h," ",d]);if("SequenceExpression"===s.body.type)return l([...h,l([" (",c([u,d]),u,")"])]);let m=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!F(s),g=r&&r.expandLastArg&&A(t,"all"),y="ConditionalExpression"===s.body.type&&!S(s.body,(e=>"ObjectExpression"===e.type));return l([...h,l([c([a,y?p("","("):"",d,y?p("",")"):""]),m?[p(g?",":""),u]:""])])}function G(e){let t=D(e);return 1===t.length&&!e.typeParameters&&!F(e,N.Dangling)&&"Identifier"===t[0].type&&!t[0].typeAnnotation&&!F(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function z(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&G(e.getValue()))}function Y(e,t,n){let r=e.getValue(),i=t("returnType");if(r.returnType&&b(n.originalText,r.returnType))return[" /*: ",i," */"];let s=[i];return r.returnType&&r.returnType.typeAnnotation&&s.unshift(": "),r.predicate&&s.push(r.returnType?" ":": ",t("predicate")),s}function Q(e,t,n){let i=e.getValue(),o=t.semi?";":"",a=[];i.argument&&(te(t,i.argument)?a.push([" (",c([d,n("argument")]),d,")"]):x(i.argument)||"SequenceExpression"===i.argument.type?a.push(l([p(" ("," "),c([u,n("argument")]),u,p(")")])):a.push(" ",n("argument")));let f=T(i),h=s(f),m=h&&w(h);return m&&a.push(o),F(i,N.Dangling)&&a.push(" ",r(e,t,!0)),m||a.push(o),a}function X(e,t,n){return["return",Q(e,t,n)]}function Z(e,t,n){return["throw",Q(e,t,n)]}function te(e,t){if(v(e.originalText,t))return!0;if(P(t)){let n,r=t;for(;n=I(r);)if(r=n,v(e.originalText,r))return!0}return!1}t.exports={printFunction:U,printArrowFunction:J,printMethod:W,printReturnStatement:X,printThrowStatement:Z,printMethodInternal:K,shouldPrintParamsWithoutParens:z}}}),mr=F({"src/language-js/print/decorators.js"(e,t){L();var{isNonEmptyArray:n,hasNewline:r}=Ae(),{builders:{line:i,hardline:s,join:o,breakParent:a,group:u}}=ee(),{locStart:l,locEnd:c}=Jt(),{getParentExportDeclaration:p}=gn();function d(e,t,n){let r=e.getValue();return u([o(i,e.map(n,"decorators")),m(r,t)?s:i])}function f(e,t,n){return[o(s,e.map(n,"declaration","decorators")),s]}function h(e,t,r){let u=e.getValue(),{decorators:l}=u;if(!n(l)||g(e.getParentNode()))return;let c="ClassExpression"===u.type||"ClassDeclaration"===u.type||m(u,t);return[p(e)?s:c?a:"",o(i,e.map(r,"decorators")),i]}function m(e,t){return e.decorators.some((e=>r(t.originalText,c(e))))}function g(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let t=e.declaration&&e.declaration.decorators;return n(t)&&l(e)===l(t[0])}t.exports={printDecorators:h,printClassMemberDecorators:d,printDecoratorsBeforeExport:f,hasDecoratorsBeforeExport:g}}}),gr=F({"src/language-js/print/class.js"(e,t){L();var{isNonEmptyArray:n,createGroupIdMapper:r}=Ae(),{printComments:i,printDanglingComments:s}=tn(),{builders:{join:o,line:a,hardline:u,softline:l,group:c,indent:p,ifBreak:d}}=ee(),{hasComment:f,CommentCheckFlags:h}=gn(),{getTypeParametersGroupId:m}=dr(),{printMethod:g}=hr(),{printOptionalToken:y,printTypeAnnotation:D,printDefiniteToken:v}=rr(),{printPropertyKey:b}=fr(),{printAssignment:E}=lr(),{printClassMemberDecorators:C}=mr();function A(e,t,r){let s=e.getValue(),o=[];s.declare&&o.push("declare "),s.abstract&&o.push("abstract "),o.push("class");let u=s.id&&f(s.id,h.Trailing)||s.typeParameters&&f(s.typeParameters,h.Trailing)||s.superClass&&f(s.superClass)||n(s.extends)||n(s.mixins)||n(s.implements),l=[],d=[];if(s.id&&l.push(" ",r("id")),l.push(r("typeParameters")),s.superClass){let n=[N(e,t,r),r("superTypeParameters")],s=e.call((e=>["extends ",i(e,n,t)]),"superClass");u?d.push(a,c(s)):d.push(" ",s)}else d.push(T(e,t,r,"extends"));if(d.push(T(e,t,r,"mixins"),T(e,t,r,"implements")),u){let e;e=F(s)?[...l,p(d)]:p([...l,d]),o.push(c(e,{id:S(s)}))}else o.push(...l,...d);return o.push(" ",r("body")),o}var S=r("heritageGroup");function x(e){return d(u,"",{groupId:S(e)})}function w(e){return["superClass","extends","mixins","implements"].filter((t=>Boolean(e[t]))).length>1}function F(e){return e.typeParameters&&!f(e.typeParameters,h.Trailing|h.Line)&&!w(e)}function T(e,t,r,i){let l=e.getValue();if(!n(l[i]))return"";let f=s(e,t,!0,(e=>{let{marker:t}=e;return t===i}));return[F(l)?d(" ",a,{groupId:m(l.typeParameters)}):a,f,f&&u,i,c(p([a,o([",",a],e.map(r,i))]))]}function N(e,t,n){let r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?c(d(["(",p([l,r]),l,")"],r)):r}function _(e,t,r){let i=e.getValue(),s=[];return n(i.decorators)&&s.push(C(e,t,r)),i.accessibility&&s.push(i.accessibility+" "),i.readonly&&s.push("readonly "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),s.push(g(e,t,r)),s}function k(e,t,r){let i=e.getValue(),s=[],o=t.semi?";":"";return n(i.decorators)&&s.push(C(e,t,r)),i.accessibility&&s.push(i.accessibility+" "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractPropertyDefinition"===i.type||"TSAbstractAccessorProperty"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),i.readonly&&s.push("readonly "),i.variance&&s.push(r("variance")),("ClassAccessorProperty"===i.type||"AccessorProperty"===i.type||"TSAbstractAccessorProperty"===i.type)&&s.push("accessor "),s.push(b(e,t,r),y(e),v(e),D(e,t,r)),[E(e,t,r,s," =","value"),o]}t.exports={printClass:A,printClassMethod:_,printClassProperty:k,printHardlineAfterHeritage:x}}}),yr=F({"src/language-js/print/interface.js"(e,t){L();var{isNonEmptyArray:n}=Ae(),{builders:{join:r,line:i,group:s,indent:o,ifBreak:a}}=ee(),{hasComment:u,identity:l,CommentCheckFlags:c}=gn(),{getTypeParametersGroupId:p}=dr(),{printTypeScriptModifiers:d}=rr();function f(e,t,f){let h=e.getValue(),m=[];h.declare&&m.push("declare "),"TSInterfaceDeclaration"===h.type&&m.push(h.abstract?"abstract ":"",d(e,t,f)),m.push("interface");let g=[],y=[];"InterfaceTypeAnnotation"!==h.type&&g.push(" ",f("id"),f("typeParameters"));let D=h.typeParameters&&!u(h.typeParameters,c.Trailing|c.Line);return n(h.extends)&&y.push(D?a(" ",i,{groupId:p(h.typeParameters)}):i,"extends ",(1===h.extends.length?l:o)(r([",",i],e.map(f,"extends")))),h.id&&u(h.id,c.Trailing)||n(h.extends)?D?m.push(s([...g,o(y)])):m.push(s(o([...g,...y]))):m.push(...g,...y),m.push(" ",f("body")),s(m)}t.exports={printInterface:f}}}),Dr=F({"src/language-js/print/module.js"(e,t){L();var{isNonEmptyArray:n}=Ae(),{builders:{softline:r,group:i,indent:s,join:o,line:a,ifBreak:u,hardline:l}}=ee(),{printDanglingComments:c}=tn(),{hasComment:p,CommentCheckFlags:d,shouldPrintComma:f,needsHardlineAfterDanglingComment:h,isStringLiteral:m,rawText:g}=gn(),{locStart:y,hasSameLoc:D}=Jt(),{hasDecoratorsBeforeExport:v,printDecoratorsBeforeExport:b}=mr();function E(e,t,n){let r=e.getValue(),i=t.semi?";":"",s=[],{importKind:o}=r;return s.push("import"),o&&"value"!==o&&s.push(" ",o),s.push(w(e,t,n),x(e,t,n),T(e,t,n),i),s}function C(e,t,n){let r=e.getValue(),i=[];v(r)&&i.push(b(e,t,n));let{type:s,exportKind:o,declaration:a}=r;return i.push("export"),(r.default||"ExportDefaultDeclaration"===s)&&i.push(" default"),p(r,d.Dangling)&&(i.push(" ",c(e,t,!0)),h(r)&&i.push(l)),a?i.push(" ",n("declaration")):i.push("type"===o?" type":"",w(e,t,n),x(e,t,n),T(e,t,n)),S(r,t)&&i.push(";"),i}function A(e,t,n){let r=e.getValue(),i=t.semi?";":"",s=[],{exportKind:o,exported:a}=r;return s.push("export"),"type"===o&&s.push(" type"),s.push(" *"),a&&s.push(" as ",n("exported")),s.push(x(e,t,n),T(e,t,n),i),s}function S(e,t){if(!t.semi)return!1;let{type:n,declaration:r}=e,i=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;let{type:s}=r;return!(!i||"ClassDeclaration"===s||"FunctionDeclaration"===s||"TSInterfaceDeclaration"===s||"DeclareClass"===s||"DeclareFunction"===s||"TSDeclareFunction"===s||"EnumDeclaration"===s)}function x(e,t,n){let r=e.getValue();if(!r.source)return"";let i=[];return F(r,t)||i.push(" from"),i.push(" ",n("source")),i}function w(e,t,l){let c=e.getValue();if(F(c,t))return"";let d=[" "];if(n(c.specifiers)){let n=[],h=[];e.each((()=>{let t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)n.push(l());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type ".concat(JSON.stringify(t)));h.push(l())}}),"specifiers"),d.push(o(", ",n)),h.length>0&&(n.length>0&&d.push(", "),h.length>1||n.length>0||c.specifiers.some((e=>p(e)))?d.push(i(["{",s([t.bracketSpacing?a:r,o([",",a],h)]),u(f(t)?",":""),t.bracketSpacing?a:r,"}"])):d.push(["{",t.bracketSpacing?" ":"",...h,t.bracketSpacing?" ":"","}"]))}else d.push("{}");return d}function F(e,t){let{type:r,importKind:i,source:s,specifiers:o}=e;return"ImportDeclaration"===r&&!n(o)&&"type"!==i&&!/{\s*}/.test(t.originalText.slice(y(e),y(s)))}function T(e,t,r){let i=e.getNode();return n(i.assertions)?[" assert {",t.bracketSpacing?" ":"",o(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]:""}function N(e,t,n){let r=e.getNode(),{type:i}=r,s=[],o="ImportSpecifier"===i?r.importKind:r.exportKind;o&&"value"!==o&&s.push(o," ");let a=i.startsWith("Import"),u=a?"imported":"local",l=a?"local":"exported",c=r[u],p=r[l],d="",f="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?d="*":c&&(d=n(u)),p&&!_(r)&&(f=n(l)),s.push(d,d&&f?" as ":"",f),s}function _(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:n}=e;return!(t.type!==n.type||!D(t,n))&&(m(t)?t.value===n.value&&g(t)===g(n):"Identifier"===t.type&&t.name===n.name)}t.exports={printImportDeclaration:E,printExportDeclaration:C,printExportAllDeclaration:A,printModuleSpecifier:N}}}),vr=F({"src/language-js/print/object.js"(e,t){L();var{printDanglingComments:n}=tn(),{builders:{line:r,softline:i,group:s,indent:o,ifBreak:a,hardline:u}}=ee(),{getLast:l,hasNewlineInRange:c,hasNewline:p,isNonEmptyArray:d}=Ae(),{shouldPrintComma:f,hasComment:h,getComments:m,CommentCheckFlags:g,isNextLineEmpty:y}=gn(),{locStart:D,locEnd:v}=Jt(),{printOptionalToken:b,printTypeAnnotation:E}=rr(),{shouldHugFunctionParameters:C}=cr(),{shouldHugType:A}=pr(),{printHardlineAfterHeritage:S}=gr();function x(e,t,x){let w,F=t.semi?";":"",T=e.getValue();w="TSTypeLiteral"===T.type?"members":"TSInterfaceBody"===T.type?"body":"properties";let N="ObjectTypeAnnotation"===T.type,_=[w];N&&_.push("indexers","callProperties","internalSlots");let k=_.map((e=>T[e][0])).sort(((e,t)=>D(e)-D(t)))[0],L=e.getParentNode(0),O=N&&L&&("InterfaceDeclaration"===L.type||"DeclareInterface"===L.type||"DeclareClass"===L.type)&&"body"===e.getName(),P="TSInterfaceBody"===T.type||O||"ObjectPattern"===T.type&&"FunctionDeclaration"!==L.type&&"FunctionExpression"!==L.type&&"ArrowFunctionExpression"!==L.type&&"ObjectMethod"!==L.type&&"ClassMethod"!==L.type&&"ClassPrivateMethod"!==L.type&&"AssignmentPattern"!==L.type&&"CatchClause"!==L.type&&T.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==T.type&&k&&c(t.originalText,D(T),D(k)),I=O?";":"TSInterfaceBody"===T.type||"TSTypeLiteral"===T.type?a(F,";"):",",B="RecordExpression"===T.type?"#{":T.exact?"{|":"{",M=T.exact?"|}":"}",j=[];for(let n of _)e.each((e=>{let t=e.getValue();j.push({node:t,printed:x(),loc:D(t)})}),n);_.length>1&&j.sort(((e,t)=>e.loc-t.loc));let R=[],V=j.map((e=>{let n=[...R,s(e.printed)];return R=[I,r],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&h(e.node,g.PrettierIgnore)&&R.shift(),y(e.node,t)&&R.push(u),n}));if(T.inexact){let i;if(h(T,g.Dangling)){let s=h(T,g.Line);i=[n(e,t,!0),s||p(t.originalText,v(l(m(T))))?u:r,"..."]}else i=["..."];V.push([...R,...i])}let q,U=l(T[w]),W=!(T.inexact||U&&"RestElement"===U.type||U&&("TSPropertySignature"===U.type||"TSCallSignatureDeclaration"===U.type||"TSMethodSignature"===U.type||"TSConstructSignatureDeclaration"===U.type)&&h(U,g.PrettierIgnore));if(0===V.length){if(!h(T,g.Dangling))return[B,M,E(e,t,x)];q=s([B,n(e,t),i,M,b(e),E(e,t,x)])}else q=[O&&d(T.properties)?S(L):"",B,o([t.bracketSpacing?r:i,...V]),a(W&&(","!==I||f(t))?I:""),t.bracketSpacing?r:i,M,b(e),E(e,t,x)];return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,n)=>C(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n))||e.match(A,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,n)=>C(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n))||!P&&e.match((e=>"ObjectPattern"===e.type),(e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type))?q:s(q,{shouldBreak:P})}t.exports={printObject:x}}}),br=F({"src/language-js/print/flow.js"(e,t){L();var n=en(),{printDanglingComments:r}=tn(),{printString:i,printNumber:s}=Ae(),{builders:{hardline:o,softline:a,group:u,indent:l}}=ee(),{getParentExportDeclaration:c,isFunctionNotation:p,isGetterOrSetter:d,rawText:f,shouldPrintComma:h}=gn(),{locStart:m,locEnd:g}=Jt(),{replaceTextEndOfLine:y}=Q(),{printClass:D}=gr(),{printOpaqueType:v,printTypeAlias:b,printIntersectionType:E,printUnionType:C,printFunctionType:A,printTupleType:S,printIndexedAccessType:x}=pr(),{printInterface:w}=yr(),{printTypeParameter:F,printTypeParameters:T}=dr(),{printExportDeclaration:N,printExportAllDeclaration:_}=Dr(),{printArrayItems:k}=ir(),{printObject:O}=vr(),{printPropertyKey:P}=fr(),{printOptionalToken:I,printTypeAnnotation:B,printRestSpread:M}=rr();function j(e,t,c){let L=e.getValue(),j=t.semi?";":"",V=[];switch(L.type){case"DeclareClass":return R(e,D(e,t,c));case"DeclareFunction":return R(e,["function ",c("id"),L.predicate?" ":"",c("predicate"),j]);case"DeclareModule":return R(e,["module ",c("id")," ",c("body")]);case"DeclareModuleExports":return R(e,["module.exports",": ",c("typeAnnotation"),j]);case"DeclareVariable":return R(e,["var ",c("id"),j]);case"DeclareOpaqueType":return R(e,v(e,t,c));case"DeclareInterface":return R(e,w(e,t,c));case"DeclareTypeAlias":return R(e,b(e,t,c));case"DeclareExportDeclaration":return R(e,N(e,t,c));case"DeclareExportAllDeclaration":return R(e,_(e,t,c));case"OpaqueType":return v(e,t,c);case"TypeAlias":return b(e,t,c);case"IntersectionTypeAnnotation":return E(e,t,c);case"UnionTypeAnnotation":return C(e,t,c);case"FunctionTypeAnnotation":return A(e,t,c);case"TupleTypeAnnotation":return S(e,t,c);case"GenericTypeAnnotation":return[c("id"),T(e,t,c,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return x(e,t,c);case"TypeAnnotation":return c("typeAnnotation");case"TypeParameter":return F(e,t,c);case"TypeofTypeAnnotation":return["typeof ",c("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[c("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(L.value);case"EnumDeclaration":return["enum ",c("id")," ",c("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===L.type||L.explicitType){let e=null;switch(L.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}V.push("of ",e," ")}if(0!==L.members.length||L.hasUnknownMembers){let n=L.members.length>0?[o,k(e,t,"members",c),L.hasUnknownMembers||h(t)?",":""]:[];V.push(u(["{",l([...n,...L.hasUnknownMembers?[o,"..."]:[]]),r(e,t,!0),o,"}"]))}else V.push(u(["{",r(e,t),a,"}"]));return V;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[c("id")," = ","object"==typeof L.init?c("init"):String(L.init)];case"EnumDefaultedMember":return c("id");case"FunctionTypeParam":{let t=L.name?c("name"):e.getParentNode().this===L?"this":"";return[t,I(e),t?": ":"",c("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return w(e,t,c);case"ClassImplements":case"InterfaceExtends":return[c("id"),c("typeParameters")];case"NullableTypeAnnotation":return["?",c("typeAnnotation")];case"Variance":{let{kind:e}=L;return n.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return L.static&&V.push("static "),V.push(c("value")),V;case"ObjectTypeIndexer":return[L.static?"static ":"",L.variance?c("variance"):"","[",c("id"),L.id?": ":"",c("key"),"]: ",c("value")];case"ObjectTypeProperty":{let n="";return L.proto?n="proto ":L.static&&(n="static "),[n,d(L)?L.kind+" ":"",L.variance?c("variance"):"",P(e,t,c),I(e),p(L)?"":": ",c("value")]}case"ObjectTypeAnnotation":return O(e,t,c);case"ObjectTypeInternalSlot":return[L.static?"static ":"","[[",c("id"),"]]",I(e),L.method?"":": ",c("value")];case"ObjectTypeSpreadProperty":return M(e,t,c);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[c("qualification"),".",c("id")];case"StringLiteralTypeAnnotation":return y(i(f(L),t));case"NumberLiteralTypeAnnotation":n.strictEqual(typeof L.value,"number");case"BigIntLiteralTypeAnnotation":return L.extra?s(L.extra.raw):s(L.raw);case"TypeCastExpression":return["(",c("expression"),B(e,t,c),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let n=T(e,t,c,"params");if("flow"===t.parser){let e=m(L),r=g(L),i=t.originalText.lastIndexOf("/*",e),s=t.originalText.indexOf("*/",r);if(-1!==i&&-1!==s){let e=t.originalText.slice(i+2,s).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",n," */"]}}return n}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",c("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(L.type))}}function R(e,t){let r=c(e);return r?(n.strictEqual(r.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:j}}}),Er=F({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function n(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}L(),t.exports=n}}),Cr=F({"src/language-js/print/ternary.js"(e,t){L();var{hasNewlineInRange:n}=Ae(),{isJsxNode:r,getComments:i,isCallExpression:s,isMemberExpression:o,isTSTypeExpression:a}=gn(),{locStart:u,locEnd:l}=Jt(),c=hn(),{builders:{line:p,softline:d,group:f,indent:h,align:m,ifBreak:g,dedent:y,breakParent:D}}=ee();function v(e){let t=[e];for(let n=0;n<t.length;n++){let e=t[n];for(let n of["test","consequent","alternate"]){let i=e[n];if(r(i))return!0;"ConditionalExpression"===i.type&&t.push(i)}}return!1}function b(e,t,n){let r=e.getValue(),i="ConditionalExpression"===r.type,s=i?"alternate":"falseType",o=e.getParentNode(),a=i?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return o.type===r.type&&o[s]===r?m(2,a):a}var E=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function C(e){let t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let n,r=t;for(let i=0;!n;i++){let t=e.getParentNode(i);s(t)&&t.callee===r||o(t)&&t.object===r||"TSNonNullExpression"===t.type&&t.expression===r?r=t:"NewExpression"===t.type&&t.callee===r||a(t)&&t.expression===r?(n=e.getParentNode(i+1),r=t):n=t}return r!==t&&n[E.get(n.type)]===r}function A(e,t,s){let a,E,A=e.getValue(),S="ConditionalExpression"===A.type,x=S?"consequent":"trueType",w=S?"alternate":"falseType",F=S?["test"]:["checkType","extendsType"],T=A[x],N=A[w],_=[],k=!1,L=e.getParentNode(),O=L.type===A.type&&F.some((e=>L[e]===A)),P=L.type===A.type&&!O,I=0;do{E=a||A,a=e.getParentNode(I),I++}while(a&&a.type===A.type&&F.every((e=>a[e]!==E)));let B=a||L,M=E;if(S&&(r(A[F[0]])||r(T)||r(N)||v(M))){k=!0,P=!0;let e=e=>[g("("),h([d,e]),d,g(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;_.push(" ? ",t(T)?s(x):e(s(x))," : ",N.type===A.type||t(N)?s(w):e(s(w)))}else{let e=[p,"? ",T.type===A.type?g("","("):"",m(2,s(x)),T.type===A.type?g("",")"):"",p,": ",N.type===A.type?s(w):m(2,s(w))];_.push(L.type!==A.type||L[w]===A||O?e:t.useTabs?y(h(e)):m(Math.max(0,t.tabWidth-2),e))}let j=[...F.map((e=>i(A[e]))),i(T),i(N)].flat().some((e=>c(e)&&n(t.originalText,u(e),l(e)))),R=e=>L===B?f(e,{shouldBreak:j}):j?[e,D]:e,V=!k&&(o(L)||"NGPipeExpression"===L.type&&L.left===A)&&!L.computed,q=C(e),U=R([b(e,t,s),P?_:h(_),S&&V&&!q?d:""]);return O||q?f([h([d,U]),d]):U}t.exports={printTernary:A}}}),Ar=F({"src/language-js/print/statement.js"(e,t){L();var{builders:{hardline:n}}=ee(),r=Qn(),{getLeftSidePathName:i,hasNakedLeftSide:s,isJsxNode:o,isTheOnlyJsxElementInMarkdown:a,hasComment:u,CommentCheckFlags:l,isNextLineEmpty:c}=gn(),{shouldPrintParamsWithoutParens:p}=hr();function d(e,t,r,i){let s=e.getValue(),o=[],p="ClassBody"===s.type,d=f(s[i]);return e.each(((e,i,s)=>{let f=e.getValue();if("EmptyStatement"===f.type)return;let m=r();t.semi||p||a(t,e)||!h(e,t)?o.push(m):u(f,l.Leading)?o.push(r([],{needsSemi:!0})):o.push(";",m),!t.semi&&p&&D(f)&&v(f,s[i+1])&&o.push(";"),f!==d&&(o.push(n),c(f,t)&&o.push(n))}),i),o}function f(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if("EmptyStatement"!==n.type)return n}}function h(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>m(e,t)),"expression")}function m(e,t){let n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!p(e,t))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=n;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(o(n))return!0}return!!r(e,t)||!!s(n)&&e.call((e=>m(e,t)),...i(e,n))}function g(e,t,n){return d(e,t,n,"body")}function y(e,t,n){return d(e,t,n,"consequent")}var D=e=>{let{type:t}=e;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t||"AccessorProperty"===t||"TSAbstractPropertyDefinition"===t||"TSAbstractAccessorProperty"===t};function v(e,t){let{type:n,name:r}=e.key;if(!e.computed&&"Identifier"===n&&("static"===r||"get"===r||"set"===r||"accessor"===r)&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(D(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}t.exports={printBody:g,printSwitchCaseConsequent:y}}}),Sr=F({"src/language-js/print/block.js"(e,t){L();var{printDanglingComments:n}=tn(),{isNonEmptyArray:r}=Ae(),{builders:{hardline:i,indent:s}}=ee(),{hasComment:o,CommentCheckFlags:a,isNextLineEmpty:u}=gn(),{printHardlineAfterHeritage:l}=gr(),{printBody:c}=Ar();function p(e,t,n){let o=e.getValue(),a=[];if("StaticBlock"===o.type&&a.push("static "),"ClassBody"===o.type&&r(o.body)){let t=e.getParentNode();a.push(l(t))}a.push("{");let u=d(e,t,n);if(u)a.push(s([i,u]),i);else{let t=e.getParentNode(),n=e.getParentNode(1);"ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ObjectMethod"===t.type||"ClassMethod"===t.type||"ClassPrivateMethod"===t.type||"ForStatement"===t.type||"WhileStatement"===t.type||"DoWhileStatement"===t.type||"DoExpression"===t.type||"CatchClause"===t.type&&!n.finalizer||"TSModuleDeclaration"===t.type||"TSDeclareFunction"===t.type||"StaticBlock"===o.type||"ClassBody"===o.type||a.push(i)}return a.push("}"),a}function d(e,t,s){let l=e.getValue(),p=r(l.directives),d=l.body.some((e=>"EmptyStatement"!==e.type)),f=o(l,a.Dangling);if(!p&&!d&&!f)return"";let h=[];if(p&&e.each(((e,n,r)=>{h.push(s()),(n<r.length-1||d||f)&&(h.push(i),u(e.getValue(),t)&&h.push(i))}),"directives"),d&&h.push(c(e,t,s)),f&&h.push(n(e,t,!0)),"Program"===l.type){let t=e.getParentNode();(!t||"ModuleExpression"!==t.type)&&h.push(i)}return h}t.exports={printBlock:p,printBlockBody:d}}}),xr=F({"src/language-js/print/typescript.js"(e,t){L();var{printDanglingComments:n}=tn(),{hasNewlineInRange:r}=Ae(),{builders:{join:i,line:s,hardline:o,softline:a,group:u,indent:l,conditionalGroup:c,ifBreak:p}}=ee(),{isStringLiteral:d,getTypeScriptMappedTypeModifier:f,shouldPrintComma:h,isCallExpression:m,isMemberExpression:g}=gn(),y=Er(),{locStart:D,locEnd:v}=Jt(),{printOptionalToken:b,printTypeScriptModifiers:E}=rr(),{printTernary:C}=Cr(),{printFunctionParameters:A,shouldGroupFunctionParameters:S}=cr(),{printTemplateLiteral:x}=yn(),{printArrayItems:w}=ir(),{printObject:F}=vr(),{printClassProperty:T,printClassMethod:N}=gr(),{printTypeParameter:_,printTypeParameters:k}=dr(),{printPropertyKey:O}=fr(),{printFunction:P,printMethodInternal:I}=hr(),{printInterface:B}=yr(),{printBlock:M}=Sr(),{printTypeAlias:j,printIntersectionType:R,printUnionType:V,printFunctionType:q,printTupleType:U,printIndexedAccessType:W,printJSDocType:K}=pr();function $(e,t,L){let $=e.getValue();if(!$.type.startsWith("TS"))return;if(y($))return $.type.slice(2,-7).toLowerCase();let H=t.semi?";":"",J=[];switch($.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!("ArrayExpression"===$.expression.type||"ObjectExpression"===$.expression.type),t=u(["<",l([a,L("typeAnnotation")]),a,">"]),n=[p("("),l([a,L("expression")]),a,p(")")];return e?c([[t,L("expression")],[t,u(n,{shouldBreak:!0})],[t,L("expression")]]):u([t,L("expression")])}case"TSDeclareFunction":return P(e,L,t);case"TSExportAssignment":return["export = ",L("expression"),H];case"TSModuleBlock":return M(e,t,L);case"TSInterfaceBody":case"TSTypeLiteral":return F(e,t,L);case"TSTypeAliasDeclaration":return j(e,t,L);case"TSQualifiedName":return i(".",[L("left"),L("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return N(e,t,L);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return T(e,t,L);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return J.push(L("expression")),$.typeParameters&&J.push(L("typeParameters")),J;case"TSTemplateLiteralType":return x(e,L,t);case"TSNamedTupleMember":return[L("label"),$.optional?"?":"",": ",L("elementType")];case"TSRestType":return["...",L("typeAnnotation")];case"TSOptionalType":return[L("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return B(e,t,L);case"TSClassImplements":case"TSInstantiationExpression":return[L("expression"),L("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return k(e,t,L,"params");case"TSTypeParameter":return _(e,t,L);case"TSSatisfiesExpression":case"TSAsExpression":{let t="TSAsExpression"===$.type?"as":"satisfies";J.push(L("expression")," ".concat(t," "),L("typeAnnotation"));let n=e.getParentNode();return m(n)&&n.callee===$||g(n)&&n.object===$?u([l([a,...J]),a]):J}case"TSArrayType":return[L("elementType"),"[]"];case"TSPropertySignature":return $.readonly&&J.push("readonly "),J.push(O(e,t,L),b(e)),$.typeAnnotation&&J.push(": ",L("typeAnnotation")),$.initializer&&J.push(" = ",L("initializer")),J;case"TSParameterProperty":return $.accessibility&&J.push($.accessibility+" "),$.export&&J.push("export "),$.static&&J.push("static "),$.override&&J.push("override "),$.readonly&&J.push("readonly "),J.push(L("parameter")),J;case"TSTypeQuery":return["typeof ",L("exprName"),L("typeParameters")];case"TSIndexSignature":{let n=e.getParentNode(),r=$.parameters.length>1?p(h(t)?",":""):"",s=u([l([a,i([", ",a],e.map(L,"parameters"))]),r,a]);return[$.export?"export ":"",$.accessibility?[$.accessibility," "]:"",$.static?"static ":"",$.readonly?"readonly ":"",$.declare?"declare ":"","[",$.parameters?s:"",$.typeAnnotation?"]: ":"]",$.typeAnnotation?L("typeAnnotation"):"","ClassBody"===n.type?H:""]}case"TSTypePredicate":return[$.asserts?"asserts ":"",L("parameterName"),$.typeAnnotation?[" is ",L("typeAnnotation")]:""];case"TSNonNullExpression":return[L("expression"),"!"];case"TSImportType":return[$.isTypeOf?"typeof ":"","import(",L($.parameter?"parameter":"argument"),")",$.qualifier?[".",L("qualifier")]:"",k(e,t,L,"typeParameters")];case"TSLiteralType":return L("literal");case"TSIndexedAccessType":return W(e,t,L);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===$.type&&$.abstract&&J.push("abstract "),"TSCallSignatureDeclaration"!==$.type&&J.push("new "),J.push(u(A(e,L,t,!1,!0))),$.returnType||$.typeAnnotation){let e="TSConstructorType"===$.type;J.push(e?" => ":": ",L("returnType"),L("typeAnnotation"))}return J;case"TSTypeOperator":return[$.operator," ",L("typeAnnotation")];case"TSMappedType":{let i=r(t.originalText,D($),v($));return u(["{",l([t.bracketSpacing?s:a,L("typeParameter"),$.optional?f($.optional,"?"):"",$.typeAnnotation?": ":"",L("typeAnnotation"),p(H)]),n(e,t,!0),t.bracketSpacing?s:a,"}"],{shouldBreak:i})}case"TSMethodSignature":{let n=$.kind&&"method"!==$.kind?"".concat($.kind," "):"";J.push($.accessibility?[$.accessibility," "]:"",n,$.export?"export ":"",$.static?"static ":"",$.readonly?"readonly ":"",$.abstract?"abstract ":"",$.declare?"declare ":"",$.computed?"[":"",L("key"),$.computed?"]":"",b(e));let r=A(e,L,t,!1,!0),i=$.returnType?"returnType":"typeAnnotation",s=$[i],o=s?L(i):"",a=S($,o);return J.push(a?u(r):r),s&&J.push(": ",u(o)),u(J)}case"TSNamespaceExportDeclaration":return J.push("export as namespace ",L("id")),t.semi&&J.push(";"),u(J);case"TSEnumDeclaration":return $.declare&&J.push("declare "),$.modifiers&&J.push(E(e,t,L)),$.const&&J.push("const "),J.push("enum ",L("id")," "),0===$.members.length?J.push(u(["{",n(e,t),a,"}"])):J.push(u(["{",l([o,w(e,t,"members",L),h(t,"es5")?",":""]),n(e,t,!0),o,"}"])),J;case"TSEnumMember":return $.computed?J.push("[",L("id"),"]"):J.push(L("id")),$.initializer&&J.push(" = ",L("initializer")),J;case"TSImportEqualsDeclaration":return $.isExport&&J.push("export "),J.push("import "),$.importKind&&"value"!==$.importKind&&J.push($.importKind," "),J.push(L("id")," = ",L("moduleReference")),t.semi&&J.push(";"),u(J);case"TSExternalModuleReference":return["require(",L("expression"),")"];case"TSModuleDeclaration":{let n=e.getParentNode(),r=d($.id),i="TSModuleDeclaration"===n.type,s=$.body&&"TSModuleDeclaration"===$.body.type;if(i)J.push(".");else{$.declare&&J.push("declare "),J.push(E(e,t,L));let n=t.originalText.slice(D($),D($.id));"Identifier"===$.id.type&&"global"===$.id.name&&!/namespace|module/.test(n)||J.push(r||/(?:^|\s)module(?:\s|$)/.test(n)?"module ":"namespace ")}return J.push(L("id")),s?J.push(L("body")):$.body?J.push(" ",u(L("body"))):J.push(H),J}case"TSConditionalType":return C(e,t,L);case"TSInferType":return["infer"," ",L("typeParameter")];case"TSIntersectionType":return R(e,t,L);case"TSUnionType":return V(e,t,L);case"TSFunctionType":return q(e,t,L);case"TSTupleType":return U(e,t,L);case"TSTypeReference":return[L("typeName"),k(e,t,L,"typeParameters")];case"TSTypeAnnotation":return L("typeAnnotation");case"TSEmptyBodyFunctionExpression":return I(e,t,L);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return K(e,L,"?");case"TSJSDocNonNullableType":return K(e,L,"!");default:throw new Error("Unknown TypeScript node type: ".concat(JSON.stringify($.type),"."))}}t.exports={printTypescript:$}}}),wr=F({"src/language-js/print/comment.js"(e,t){L();var{hasNewline:n}=Ae(),{builders:{join:r,hardline:i},utils:{replaceTextEndOfLine:s}}=ee(),{isLineComment:o}=gn(),{locStart:a,locEnd:u}=Jt(),l=hn();function c(e,t){let r=e.getValue();if(o(r))return t.originalText.slice(a(r),u(r)).trimEnd();if(l(r)){if(p(r)){let e=d(r);return r.trailing&&!n(t.originalText,a(r),{backwards:!0})?[i,e]:e}let e=u(r),o="*-/"===t.originalText.slice(e-3,e);return["/*",s(r.value),o?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(r))}function p(e){let t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}function d(e){let t=e.value.split("\n");return["/*",r(i,t.map(((e,n)=>0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart())))),"*/"]}t.exports={printComment:c}}}),Fr=F({"src/language-js/print/literal.js"(e,t){L();var{printString:n,printNumber:r}=Ae(),{replaceTextEndOfLine:i}=Q(),{printDirective:s}=rr();function o(e,t){let o=e.getNode();switch(o.type){case"RegExpLiteral":return l(o);case"BigIntLiteral":return u(o.bigint||o.extra.raw);case"NumericLiteral":return r(o.extra.raw);case"StringLiteral":return i(n(o.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(o.value);case"DecimalLiteral":return r(o.value)+"m";case"Literal":{if(o.regex)return l(o.regex);if(o.bigint)return u(o.raw);if(o.decimal)return r(o.decimal)+"m";let{value:c}=o;return"number"==typeof c?r(o.raw):"string"==typeof c?a(e)?s(o.raw,t):i(n(o.raw,t)):String(c)}}}function a(e){if("expression"!==e.getName())return;let t=e.getParentNode();return"ExpressionStatement"===t.type&&t.directive}function u(e){return e.toLowerCase()}function l(e){let{pattern:t,flags:n}=e;return n=[...n].sort().join(""),"/".concat(t,"/").concat(n)}t.exports={printLiteral:o}}}),Tr=F({"src/language-js/printer-estree.js"(e,t){L();var{printDanglingComments:n}=tn(),{hasNewline:r}=Ae(),{builders:{join:i,line:s,hardline:o,softline:a,group:u,indent:l},utils:{replaceTextEndOfLine:c}}=ee(),p=Cn(),d=An(),{insertPragma:f}=Gn(),h=Yn(),m=Qn(),g=Xn(),{hasFlowShorthandAnnotationComment:y,hasComment:D,CommentCheckFlags:v,isTheOnlyJsxElementInMarkdown:b,isLineComment:E,isNextLineEmpty:C,needsHardlineAfterDanglingComment:A,hasIgnoreComment:S,isCallExpression:x,isMemberExpression:w,markerForIfWithoutBlockAndSameLineComment:F}=gn(),{locStart:T,locEnd:N}=Jt(),_=hn(),{printHtmlBinding:k,isVueEventBindingExpression:O}=Zn(),{printAngular:P}=tr(),{printJsx:I,hasJsxIgnoreComment:B}=nr(),{printFlow:M}=br(),{printTypescript:j}=xr(),{printOptionalToken:R,printBindExpressionCallee:V,printTypeAnnotation:q,adjustClause:U,printRestSpread:W,printDefiniteToken:K,printDirective:$}=rr(),{printImportDeclaration:H,printExportDeclaration:J,printExportAllDeclaration:G,printModuleSpecifier:z}=Dr(),{printTernary:Y}=Cr(),{printTemplateLiteral:Q}=yn(),{printArray:X}=ir(),{printObject:Z}=vr(),{printClass:te,printClassMethod:ne,printClassProperty:re}=gr(),{printProperty:ie}=fr(),{printFunction:se,printArrowFunction:oe,printMethod:ae,printReturnStatement:ue,printThrowStatement:le}=hr(),{printCallExpression:ce}=ur(),{printVariableDeclarator:pe,printAssignmentExpression:de}=lr(),{printBinaryishExpression:fe}=er(),{printSwitchCaseConsequent:he}=Ar(),{printMemberExpression:me}=or(),{printBlock:ge,printBlockBody:ye}=Sr(),{printComment:De}=wr(),{printLiteral:ve}=Fr(),{printDecorators:be}=mr();function Ee(e,t,n,r){let i=Ce(e,t,n,r);if(!i)return"";let o=e.getValue(),{type:a}=o;if("ClassMethod"===a||"ClassPrivateMethod"===a||"ClassProperty"===a||"ClassAccessorProperty"===a||"AccessorProperty"===a||"TSAbstractAccessorProperty"===a||"PropertyDefinition"===a||"TSAbstractPropertyDefinition"===a||"ClassPrivateProperty"===a||"MethodDefinition"===a||"TSAbstractMethodDefinition"===a||"TSDeclareMethod"===a)return i;let c=[i],p=be(e,t,n),d="ClassExpression"===o.type&&p;if(p&&(c=[...p,i],!d))return u(c);if(!m(e,t))return r&&r.needsSemi&&c.unshift(";"),1===c.length&&c[0]===i?i:c;if(d&&(c=[l([s,...c])]),c.unshift("("),r&&r.needsSemi&&c.unshift(";"),y(o)){let[e]=o.trailingComments;c.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return d&&c.push(s),c.push(")"),c}function Ce(e,t,p,d){let f=e.getValue(),h=t.semi?";":"";if(!f)return"";if("string"==typeof f)return f;for(let n of[ve,k,P,I,M,j]){let r=n(e,t,p);if(typeof r<"u")return r}let m=[];switch(f.type){case"JsExpressionRoot":return p("node");case"JsonRoot":return[p("node"),o];case"File":return f.program&&f.program.interpreter&&m.push(p(["program","interpreter"])),m.push(p("program")),m;case"Program":return ye(e,t,p);case"EmptyStatement":return"";case"ExpressionStatement":{if("__vue_event_binding"===t.parser||"__vue_ts_event_binding"===t.parser){let t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===f)return[p("expression"),O(f.expression)?";":""]}let r=n(e,t,!0,(e=>{let{marker:t}=e;return t===F}));return[p("expression"),b(t,e)?"":h,r?[" ",r]:""]}case"ParenthesizedExpression":return D(f.expression)||"ObjectExpression"!==f.expression.type&&"ArrayExpression"!==f.expression.type?u(["(",l([a,p("expression")]),a,")"]):["(",p("expression"),")"];case"AssignmentExpression":return de(e,t,p);case"VariableDeclarator":return pe(e,t,p);case"BinaryExpression":case"LogicalExpression":return fe(e,t,p);case"AssignmentPattern":return[p("left")," = ",p("right")];case"OptionalMemberExpression":case"MemberExpression":return me(e,t,p);case"MetaProperty":return[p("meta"),".",p("property")];case"BindExpression":return f.object&&m.push(p("object")),m.push(u(l([a,V(e,t,p)]))),m;case"Identifier":return[f.name,R(e),K(e),q(e,t,p)];case"V8IntrinsicIdentifier":return["%",f.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return W(e,t,p);case"FunctionDeclaration":case"FunctionExpression":return se(e,p,t,d);case"ArrowFunctionExpression":return oe(e,t,p,d);case"YieldExpression":return m.push("yield"),f.delegate&&m.push("*"),f.argument&&m.push(" ",p("argument")),m;case"AwaitExpression":if(m.push("await"),f.argument){m.push(" ",p("argument"));let t=e.getParentNode();if(x(t)&&t.callee===f||w(t)&&t.object===f){m=[l([a,...m]),a];let t=e.findAncestor((e=>"AwaitExpression"===e.type||"BlockStatement"===e.type));if(!t||"AwaitExpression"!==t.type)return u(m)}}return m;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return J(e,t,p);case"ExportAllDeclaration":return G(e,t,p);case"ImportDeclaration":return H(e,t,p);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return z(e,t,p);case"ImportAttribute":return[p("key"),": ",p("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ge(e,t,p);case"ThrowStatement":return le(e,t,p);case"ReturnStatement":return ue(e,t,p);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ce(e,t,p);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Z(e,t,p);case"ObjectProperty":case"Property":return f.method||"get"===f.kind||"set"===f.kind?ae(e,t,p):ie(e,t,p);case"ObjectMethod":return ae(e,t,p);case"Decorator":return["@",p("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return X(e,t,p);case"SequenceExpression":{let t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each(((e,n)=>{0===n?t.push(p()):t.push(",",l([s,p()]))}),"expressions"),u(t)}return u(i([",",s],e.map(p,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[p("value"),h];case"DirectiveLiteral":return $(f.extra.raw,t);case"UnaryExpression":return m.push(f.operator),/[a-z]$/.test(f.operator)&&m.push(" "),D(f.argument)?m.push(u(["(",l([a,p("argument")]),a,")"])):m.push(p("argument")),m;case"UpdateExpression":return m.push(p("argument"),f.operator),f.prefix&&m.reverse(),m;case"ConditionalExpression":return Y(e,t,p);case"VariableDeclaration":{let t,n=e.map(p,"declarations"),r=e.getParentNode(),i="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,a=f.declarations.some((e=>e.init));return 1!==n.length||D(f.declarations[0])?n.length>0&&(t=l(n[0])):t=n[0],m=[f.declare?"declare ":"",f.kind,t?[" ",t]:"",l(n.slice(1).map((e=>[",",a&&!i?o:s,e])))],i&&r.body!==f||m.push(h),u(m)}case"WithStatement":return u(["with (",p("object"),")",U(f.body,p("body"))]);case"IfStatement":{let r=U(f.consequent,p("consequent")),i=u(["if (",u([l([a,p("test")]),a]),")",r]);if(m.push(i),f.alternate){let r=D(f.consequent,v.Trailing|v.Line)||A(f),i="BlockStatement"===f.consequent.type&&!r;m.push(i?" ":o),D(f,v.Dangling)&&m.push(n(e,t,!0),r?o:" "),m.push("else",u(U(f.alternate,p("alternate"),"IfStatement"===f.alternate.type)))}return m}case"ForStatement":{let r=U(f.body,p("body")),i=n(e,t,!0),o=i?[i,a]:"";return f.init||f.test||f.update?[o,u(["for (",u([l([a,p("init"),";",s,p("test"),";",s,p("update")]),a]),")",r])]:[o,u(["for (;;)",r])]}case"WhileStatement":return u(["while (",u([l([a,p("test")]),a]),")",U(f.body,p("body"))]);case"ForInStatement":return u(["for (",p("left")," in ",p("right"),")",U(f.body,p("body"))]);case"ForOfStatement":return u(["for",f.await?" await":""," (",p("left")," of ",p("right"),")",U(f.body,p("body"))]);case"DoWhileStatement":{let e=U(f.body,p("body"));return m=[u(["do",e])],"BlockStatement"===f.body.type?m.push(" "):m.push(o),m.push("while (",u([l([a,p("test")]),a]),")",h),m}case"DoExpression":return[f.async?"async ":"","do ",p("body")];case"BreakStatement":return m.push("break"),f.label&&m.push(" ",p("label")),m.push(h),m;case"ContinueStatement":return m.push("continue"),f.label&&m.push(" ",p("label")),m.push(h),m;case"LabeledStatement":return"EmptyStatement"===f.body.type?[p("label"),":;"]:[p("label"),": ",p("body")];case"TryStatement":return["try ",p("block"),f.handler?[" ",p("handler")]:"",f.finalizer?[" finally ",p("finalizer")]:""];case"CatchClause":if(f.param){let e=D(f.param,(e=>!_(e)||e.leading&&r(t.originalText,N(e))||e.trailing&&r(t.originalText,T(e),{backwards:!0}))),n=p("param");return["catch ",e?["(",l([a,n]),a,") "]:["(",n,") "],p("body")]}return["catch ",p("body")];case"SwitchStatement":return[u(["switch (",l([a,p("discriminant")]),a,")"])," {",f.cases.length>0?l([o,i(o,e.map(((e,n,r)=>{let i=e.getValue();return[p(),n!==r.length-1&&C(i,t)?o:""]}),"cases"))]):"",o,"}"];case"SwitchCase":{f.test?m.push("case ",p("test"),":"):m.push("default:"),D(f,v.Dangling)&&m.push(" ",n(e,t,!0));let r=f.consequent.filter((e=>"EmptyStatement"!==e.type));if(r.length>0){let n=he(e,t,p);m.push(1===r.length&&"BlockStatement"===r[0].type?[" ",n]:l([o,n]))}return m}case"DebuggerStatement":return["debugger",h];case"ClassDeclaration":case"ClassExpression":return te(e,t,p);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ne(e,t,p);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return re(e,t,p);case"TemplateElement":return c(f.value.raw);case"TemplateLiteral":return Q(e,p,t);case"TaggedTemplateExpression":return[p("tag"),p("typeParameters"),p("quasi")];case"PrivateIdentifier":return["#",p("name")];case"PrivateName":return["#",p("id")];case"InterpreterDirective":return m.push("#!",f.value,o),C(f,t)&&m.push(o),m;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{m.push("module {");let e=p("body");return e&&m.push(l([o,e]),o),m.push("}"),m}default:throw new Error("unknown type: "+JSON.stringify(f.type))}}function Se(e){return e.type&&!_(e)&&!E(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type}t.exports={preprocess:g,print:Ee,embed:p,insertPragma:f,massageAstNode:d,hasPrettierIgnore:e=>S(e)||B(e),willPrintOwnComments:h.willPrintOwnComments,canAttachComment:Se,printComment:De,isBlockComment:_,handleComments:{avoidAstMutation:!0,ownLine:h.handleOwnLineComment,endOfLine:h.handleEndOfLineComment,remaining:h.handleRemainingComment},getCommentChildNodes:h.getCommentChildNodes}}}),Nr=F({"src/language-js/printer-estree-json.js"(e,t){L();var{builders:{hardline:n,indent:r,join:i}}=ee(),s=Xn();function o(e,t,s){let o=e.getValue();switch(o.type){case"JsonRoot":return[s("node"),n];case"ArrayExpression":{if(0===o.elements.length)return"[]";let t=e.map((()=>null===e.getValue()?"null":s()),"elements");return["[",r([n,i([",",n],t)]),n,"]"]}case"ObjectExpression":return 0===o.properties.length?"{}":["{",r([n,i([",",n],e.map(s,"properties"))]),n,"}"];case"ObjectProperty":return[s("key"),": ",s("value")];case"UnaryExpression":return["+"===o.operator?"":o.operator,s("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return o.value?"true":"false";case"StringLiteral":return JSON.stringify(o.value);case"NumericLiteral":return a(e)?JSON.stringify(String(o.value)):JSON.stringify(o.value);case"Identifier":return a(e)?JSON.stringify(o.name):o.name;case"TemplateLiteral":return s(["quasis",0]);case"TemplateElement":return JSON.stringify(o.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(o.type))}}function a(e){return"key"===e.getName()&&"ObjectProperty"===e.getParentNode().type}var u=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function l(e,t){let{type:n}=e;if("ObjectProperty"!==n){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(let[n,r]of e.elements.entries())null===r&&t.elements.splice(n,0,{type:"NullLiteral"})}else{let{key:n}=e;"Identifier"===n.type?t.key={type:"StringLiteral",value:n.name}:"NumericLiteral"===n.type&&(t.key={type:"StringLiteral",value:String(n.value)})}}l.ignoredProperties=u,t.exports={preprocess:s,print:o,massageAstNode:l}}}),_r=F({"src/common/common-options.js"(e,t){L();var n="Common";t.exports={bracketSpacing:{since:"0.0.0",category:n,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:n,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:n,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."}]},bracketSameLine:{since:"2.4.0",category:n,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:n,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),kr=F({"src/language-js/options.js"(e,t){L();var n=_r(),r="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:r,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:n.bracketSameLine,bracketSpacing:n.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:r,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:r,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:n.singleQuote,jsxSingleQuote:{since:"1.15.0",category:r,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:r,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:r,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)."}]},singleAttributePerLine:n.singleAttributePerLine}}}),Lr=F({"src/language-js/parse/parsers.js"(){L()}}),Or=F({"node_modules/linguist-languages/data/JavaScript.json"(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),Pr=F({"node_modules/linguist-languages/data/TypeScript.json"(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),Ir=F({"node_modules/linguist-languages/data/TSX.json"(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),Br=F({"node_modules/linguist-languages/data/JSON.json"(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),Mr=F({"node_modules/linguist-languages/data/JSON with Comments.json"(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".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"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),jr=F({"node_modules/linguist-languages/data/JSON5.json"(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Rr=F({"src/language-js/index.js"(e,t){L();var n=ln(),r=Tr(),i=Nr(),s=kr(),o=Lr(),a=[n(Or(),(e=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter((e=>".jsx"!==e)),".wxs"]}))),n(Or(),(()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),n(Or(),(()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}))),n(Pr(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),n(Ir(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),n(Br(),(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]}))),n(Br(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((e=>".jsonl"!==e))}))),n(Mr(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc",".swcrc"]}))),n(jr(),(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))],u={estree:r,"estree-json":i};t.exports={languages:a,options:s,printers:u,parsers:o}}}),Vr=F({"src/language-css/clean.js"(e,t){L();var{isFrontMatterNode:n}=Ae(),r=j(),i=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function s(e,t,i){if(n(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===i.type&&i.nodes.length>0&&((i.nodes[0]===e||n(i.nodes[0])&&i.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===i.type&&r(i.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("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=o(t.value)),"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)=>{let r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let n=e.groups.findIndex((e=>"value-number"===e.type&&"..."===e.unit));-1!==n&&(t.groups[n].unit="",t.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some((e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]")))?{type:"value-atword",value:e.groups.map((e=>e.value)).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}function o(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}s.ignoredProperties=i,t.exports=s}}),qr=F({"src/utils/front-matter/print.js"(e,t){L();var{builders:{hardline:n,markAsRoot:r}}=ee();function i(e,t){if("yaml"===e.lang){let i=e.value.trim(),s=i?t(i,{parser:"yaml"},{stripTrailingHardline:!0}):"";return r([e.startDelimiter,n,s,s?n:"",e.endDelimiter])}}t.exports=i}}),Ur=F({"src/language-css/embed.js"(e,t){L();var{builders:{hardline:n}}=ee(),r=qr();function i(e,t,i){let s=e.getValue();if("front-matter"===s.type){let e=r(s,i);return e?[e,n]:""}}t.exports=i}}),Wr=F({"src/utils/front-matter/parse.js"(e,t){L();var n=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function r(e){let t=e.match(n);if(!t)return{content:e};let{startDelimiter:r,language:i,value:s="",endDelimiter:o}=t.groups,a=i.trim()||"yaml";if("+++"===r&&(a="toml"),"yaml"!==a&&r!==o)return{content:e};let[u]=t;return{frontMatter:{type:"front-matter",lang:a,value:s,startDelimiter:r,endDelimiter:o,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+e.slice(u.length)}}t.exports=r}}),Kr=F({"src/language-css/pragma.js"(e,t){L();var n=Gn(),r=Wr();function i(e){return n.hasPragma(r(e).content)}function s(e){let{frontMatter:t,content:i}=r(e);return(t?t.raw+"\n\n":"")+n.insertPragma(i)}t.exports={hasPragma:i,insertPragma:s}}}),$r=F({"src/language-css/utils/index.js"(e,t){L();var n=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function r(e,t){let n,r=Array.isArray(t)?t:[t],i=-1;for(;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function i(e,t){let n=r(e,t);return-1===n?null:e.getParentNode(n)}function s(e){var t;let n=i(e,"css-decl");return null==n||null===(t=n.prop)||void 0===t?void 0:t.toLowerCase()}var o=new Set(["initial","inherit","unset","revert"]);function a(e){return o.has(e.toLowerCase())}function u(e,t){let n=i(e,"css-atrule");return(null==n?void 0:n.name)&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function l(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function c(e,t){var n;let r=i(e,"value-func");return(null==r||null===(n=r.value)||void 0===n?void 0:n.toLowerCase())===t}function p(e){var t;let n=i(e,"css-rule"),r=null==n||null===(t=n.raws)||void 0===t?void 0:t.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))}function d(e,t){let n=Array.isArray(t)?t:[t],r=i(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())}function f(e){let t=e.getValue(),n=i(e,"css-atrule");return"import"===(null==n?void 0:n.name)&&"url"===t.groups[0].value&&2===t.groups.length}function h(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}function m(e,t){var n;let r=null===(n=e.getParentNode())||void 0===n?void 0:n.nodes;return r&&r.indexOf(t)===r.length-1}function g(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))}function y(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function D(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function v(e){return"value-word"===e.type&&"in"===e.value}function b(e){return"value-operator"===e.type&&"*"===e.value}function E(e){return"value-operator"===e.type&&"/"===e.value}function C(e){return"value-operator"===e.type&&"+"===e.value}function A(e){return"value-operator"===e.type&&"-"===e.value}function S(e){return"value-operator"===e.type&&"%"===e.value}function x(e){return b(e)||E(e)||C(e)||A(e)||S(e)}function w(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function F(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function T(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function N(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function _(e){return e.name.startsWith("prettier-placeholder")}function k(e){return e.prop.startsWith("@prettier-placeholder")}function O(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function P(e){var t,n;return"value-root"===(null===(t=e.value)||void 0===t?void 0:t.type)&&"value-value"===(null===(n=e.value.group)||void 0===n?void 0:n.type)&&"composes"===e.prop.toLowerCase()}function I(e){var t,n,r;return"value-paren_group"===(null===(t=e.value)||void 0===t||null===(n=t.group)||void 0===n||null===(r=n.group)||void 0===r?void 0:r.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function B(e){var t;return""===(null===(t=e.raws)||void 0===t?void 0:t.before)}function M(e){var t,n;return"value-comma_group"===e.type&&"value-colon"===(null===(t=e.groups)||void 0===t||null===(n=t[1])||void 0===n?void 0:n.type)}function j(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&M(e.groups[0])}function R(e){var t;let n=e.getValue();if(0===n.groups.length)return!1;let r=e.getParentNode(1);if(!j(n)&&(!r||!j(r)))return!1;let s=i(e,"css-decl");return!!(null!=s&&null!==(t=s.prop)&&void 0!==t&&t.startsWith("$")||j(r)||"value-func"===r.type)}function V(e){return"value-comment"===e.type&&e.inline}function q(e){return"value-word"===e.type&&"#"===e.value}function U(e){return"value-word"===e.type&&"{"===e.value}function W(e){return"value-word"===e.type&&"}"===e.value}function K(e){return["value-word","value-atword"].includes(e.type)}function $(e){return"value-colon"===(null==e?void 0:e.type)}function H(e,t){if(!M(t))return!1;let{groups:n}=t,r=n.indexOf(e);return-1!==r&&$(n[r+1])}function J(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function G(e){return"value-func"===e.type&&n.has(e.value.toLowerCase())}function z(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function Y(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function Q(e,t){var n,r;if("("!==(null===(n=e.open)||void 0===n?void 0:n.value)||")"!==(null===(r=e.close)||void 0===r?void 0:r.value)||e.groups.some((e=>"value-comma_group"!==e.type)))return!1;if("value-comma_group"===t.type){let n=t.groups.indexOf(e)-1,r=t.groups[n];if("value-word"===(null==r?void 0:r.type)&&"with"===r.value)return!0}return!1}function X(e){var t,n;return"value-paren_group"===e.type&&"("===(null===(t=e.open)||void 0===t?void 0:t.value)&&")"===(null===(n=e.close)||void 0===n?void 0:n.value)}t.exports={getAncestorCounter:r,getAncestorNode:i,getPropOfDeclNode:s,maybeToLowerCase:l,insideValueFunctionNode:c,insideICSSRuleNode:p,insideAtRuleNode:d,insideURLFunctionInImportAtRuleNode:f,isKeyframeAtRuleKeywords:u,isWideKeywords:a,isLastNode:m,isSCSSControlDirectiveNode:T,isDetachedRulesetDeclarationNode:g,isRelationalOperatorNode:F,isEqualityOperatorNode:w,isMultiplicationNode:b,isDivisionNode:E,isAdditionNode:C,isSubtractionNode:A,isModuloNode:S,isMathOperatorNode:x,isEachKeywordNode:v,isForKeywordNode:y,isURLFunctionNode:h,isIfElseKeywordNode:D,hasComposesNode:P,hasParensAroundNode:I,hasEmptyRawBefore:B,isDetachedRulesetCallNode:N,isTemplatePlaceholderNode:_,isTemplatePropNode:k,isPostcssSimpleVarNode:O,isKeyValuePairNode:M,isKeyValuePairInParenGroupNode:j,isKeyInValuePairNode:H,isSCSSMapItemNode:R,isInlineValueCommentNode:V,isHashNode:q,isLeftCurlyBraceNode:U,isRightCurlyBraceNode:W,isWordNode:K,isColonNode:$,isMediaAndSupportsKeywords:J,isColorAdjusterFuncNode:G,lastLineHasInlineComment:z,isAtWordPlaceholderNode:Y,isConfigurationNode:Q,isParenGroupNode:X}}}),Hr=F({"src/utils/line-column-to-index.js"(e,t){L(),t.exports=function(e,t){let n=0;for(let r=0;r<e.line-1;++r)n=t.indexOf("\n",n)+1;return n+e.column}}}),Jr=F({"src/language-css/loc.js"(e,t){L();var{skipEverythingButNewLine:n}=De(),r=j(),i=Hr();function s(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?i(e.source.start,t)-1:null}function o(e,t){if("css-comment"===e.type&&e.inline)return n(t,e.source.startOffset);let s=e.nodes&&r(e.nodes);return s&&e.source&&!e.source.end&&(e=s),e.source&&e.source.end?i(e.source.end,t):null}function a(e,t){e.source&&(e.source.startOffset=s(e,t),e.source.endOffset=o(e,t));for(let n in e){let r=e[n];"source"===n||!r||"object"!=typeof r||("value-root"===r.type||"value-unknown"===r.type?u(r,l(e),r.text||r.value):a(r,t))}}function u(e,t,n){e.source&&(e.source.startOffset=s(e,n)+t,e.source.endOffset=o(e,n)+t);for(let r in e){let i=e[r];"source"===r||!i||"object"!=typeof i||u(i,t,n)}}function l(e){let t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}function c(e){let t,n="initial",r="initial",i=!1,s=[];for(let o=0;o<e.length;o++){let a=e[o];switch(n){case"initial":if("'"===a){n="single-quotes";continue}if('"'===a){n="double-quotes";continue}if(("u"===a||"U"===a)&&"url("===e.slice(o,o+4).toLowerCase()){n="url",o+=3;continue}if("*"===a&&"/"===e[o-1]){n="comment-block";continue}if("/"===a&&"/"===e[o-1]){n="comment-inline",t=o-1;continue}continue;case"single-quotes":if("'"===a&&"\\"!==e[o-1]&&(n=r,r="initial"),"\n"===a||"\r"===a)return e;continue;case"double-quotes":if('"'===a&&"\\"!==e[o-1]&&(n=r,r="initial"),"\n"===a||"\r"===a)return e;continue;case"url":if(")"===a&&(n="initial"),"\n"===a||"\r"===a)return e;if("'"===a){n="single-quotes",r="url";continue}if('"'===a){n="double-quotes",r="url";continue}continue;case"comment-block":"/"===a&&"*"===e[o-1]&&(n="initial");continue;case"comment-inline":('"'===a||"'"===a||"*"===a)&&(i=!0),("\n"===a||"\r"===a)&&(i&&s.push([t,o]),n="initial",i=!1);continue}}for(let[o,a]of s)e=e.slice(0,o)+e.slice(o,a).replace(/["'*]/g," ")+e.slice(a);return e}function p(e){return e.source.startOffset}function d(e){return e.source.endOffset}t.exports={locStart:p,locEnd:d,calculateLoc:a,replaceQuotesInInlineComments:c}}}),Gr=F({"src/language-css/utils/is-less-parser.js"(e,t){function n(e){return"css"===e.parser||"less"===e.parser}L(),t.exports=n}}),zr=F({"src/language-css/utils/is-scss.js"(e,t){function n(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)}L(),t.exports=n}}),Yr=F({"src/language-css/utils/css-units.evaluate.js"(e,t){t.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),Qr=F({"src/language-css/utils/print-unit.js"(e,t){L();var n=Yr();function r(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(n,t)?n[t]:e}t.exports=r}}),Xr=F({"src/language-css/printer-postcss.js"(e,t){L();var n=j(),{printNumber:r,printString:i,hasNewline:s,isFrontMatterNode:o,isNextLineEmpty:a,isNonEmptyArray:u}=Ae(),{builders:{join:l,line:c,hardline:p,softline:d,group:f,fill:h,indent:m,dedent:g,ifBreak:y,breakParent:D},utils:{removeLines:v,getDocParts:b}}=ee(),E=Vr(),C=Ur(),{insertPragma:A}=Kr(),{getAncestorNode:S,getPropOfDeclNode:x,maybeToLowerCase:w,insideValueFunctionNode:F,insideICSSRuleNode:T,insideAtRuleNode:N,insideURLFunctionInImportAtRuleNode:_,isKeyframeAtRuleKeywords:k,isWideKeywords:O,isLastNode:P,isSCSSControlDirectiveNode:I,isDetachedRulesetDeclarationNode:B,isRelationalOperatorNode:M,isEqualityOperatorNode:R,isMultiplicationNode:V,isDivisionNode:q,isAdditionNode:U,isSubtractionNode:W,isMathOperatorNode:K,isEachKeywordNode:$,isForKeywordNode:H,isURLFunctionNode:J,isIfElseKeywordNode:G,hasComposesNode:z,hasParensAroundNode:Y,hasEmptyRawBefore:Q,isKeyValuePairNode:X,isKeyInValuePairNode:Z,isDetachedRulesetCallNode:te,isTemplatePlaceholderNode:ne,isTemplatePropNode:re,isPostcssSimpleVarNode:ie,isSCSSMapItemNode:se,isInlineValueCommentNode:oe,isHashNode:ae,isLeftCurlyBraceNode:ue,isRightCurlyBraceNode:le,isWordNode:ce,isColonNode:pe,isMediaAndSupportsKeywords:de,isColorAdjusterFuncNode:fe,lastLineHasInlineComment:he,isAtWordPlaceholderNode:me,isConfigurationNode:ge,isParenGroupNode:ye}=$r(),{locStart:De,locEnd:ve}=Jr(),be=Gr(),Ee=zr(),Ce=Qr();function Se(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function xe(e,t,r){let s=e.getValue();if(!s)return"";if("string"==typeof s)return s;switch(s.type){case"front-matter":return[s.raw,p];case"css-root":{let n=we(e,t,r),i=s.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[n,i?" ".concat(i):"",b(n).length>0?p:""]}case"css-comment":{let e=s.inline||s.raws.inline,n=t.originalText.slice(De(s),ve(s));return e?n.trimEnd():n}case"css-rule":return[r("selector"),s.important?" !important":"",s.nodes?[s.selector&&"selector-unknown"===s.selector.type&&he(s.selector.value)?c:" ","{",s.nodes.length>0?m([p,we(e,t,r)]):"",p,"}",B(s)?";":""]:";"];case"css-decl":{let n=e.getParentNode(),{between:i}=s.raws,o=i.trim(),a=":"===o,u=z(s)?v(r("value")):r("value");return!a&&he(o)&&(u=m([p,g(u)])),[s.raws.before.replace(/[\s;]/g,""),"css-atrule"===n.type&&n.variable||T(e)?s.prop:w(s.prop),o.startsWith("//")?" ":"",o,s.extend?"":" ",be(t)&&s.extend&&s.selector?["extend(",r("selector"),")"]:"",u,s.raws.important?s.raws.important.replace(/\s*!\s*important/i," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/i," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/i," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",m([d,we(e,t,r)]),d,"}"]:re(s)&&!n.raws.semicolon&&";"!==t.originalText[ve(s)-1]?"":t.__isHTMLStyleAttribute&&P(e,s)?y(";"):";"]}case"css-atrule":{let n=e.getParentNode(),i=ne(s)&&!n.raws.semicolon&&";"!==t.originalText[ve(s)-1];if(be(t)){if(s.mixin)return[r("selector"),s.important?" !important":"",i?"":";"];if(s.function)return[s.name,r("params"),i?"":";"];if(s.variable)return["@",s.name,": ",s.value?r("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",m([s.nodes.length>0?d:"",we(e,t,r)]),d,"}"]:"",i?"":";"]}return["@",te(s)||s.name.endsWith(":")?s.name:w(s.name),s.params?[te(s)?"":ne(s)?""===s.raws.afterName?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(s.raws.afterName)?[p,p]:/^\s*\n/.test(s.raws.afterName)?p:" ":" ",r("params")]:"",s.selector?m([" ",r("selector")]):"",s.value?f([" ",r("value"),I(s)?Y(s)?" ":c:""]):"else"===s.name?" ":"",s.nodes?[I(s)?"":s.selector&&!s.selector.nodes&&"string"==typeof s.selector.value&&he(s.selector.value)||!s.selector&&"string"==typeof s.params&&he(s.params)?c:" ","{",m([s.nodes.length>0?d:"",we(e,t,r)]),d,"}"]:i?"":";"]}case"media-query-list":{let t=[];return e.each((e=>{let n=e.getValue();"media-query"===n.type&&""===n.value||t.push(r())}),"nodes"),f(m(l(c,t)))}case"media-query":return[l(" ",e.map(r,"nodes")),P(e,s)?"":","];case"media-type":case"media-value":return Pe(Le(s.value,t));case"media-feature-expression":return s.nodes?["(",...e.map(r,"nodes"),")"]:s.value;case"media-feature":return w(Le(s.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[s.value," "];case"media-keyword":case"selector-string":return Le(s.value,t);case"media-url":return Le(s.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return s.value;case"selector-root":return f([N(e,"custom-selector")?[S(e,"css-atrule").customSelector,c]:"",l([",",N(e,["extend","custom-selector","nest"])?c:p],e.map(r,"nodes"))]);case"selector-selector":return f(m(e.map(r,"nodes")));case"selector-tag":{let t=e.getParentNode(),n=t&&t.nodes.indexOf(s),r=n&&t.nodes[n-1];return[s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"","selector-nesting"===r.type?s.value:Pe(k(e,s.value)?s.value.toLowerCase():s.value)]}case"selector-id":return["#",s.value];case"selector-class":return[".",Pe(Le(s.value,t))];case"selector-attribute":var o;return["[",s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),null!==(o=s.operator)&&void 0!==o?o:"",s.value?Oe(Le(s.value.trim(),t),t):"",s.insensitive?" i":"","]"];case"selector-combinator":if("+"===s.value||">"===s.value||"~"===s.value||">>>"===s.value){let t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===s?"":c,s.value,P(e,s)?"":" "]}return[s.value.trim().startsWith("(")?c:"",Pe(Le(s.value.trim(),t))||c];case"selector-universal":return[s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[w(s.value),u(s.nodes)?f(["(",m([d,l([",",c],e.map(r,"nodes"))]),d,")"]):""];case"selector-unknown":{let n=S(e,"css-rule");if(n&&n.isSCSSNesterProperty)return Pe(Le(w(s.value),t));let r=e.getParentNode();if(r.raws&&r.raws.selector){let e=De(r),n=e+r.raws.selector.length;return t.originalText.slice(e,n).trim()}let i=e.getParentNode(1);if("value-paren_group"===r.type&&i&&"value-func"===i.type&&"selector"===i.value){let e=ve(r.open)+1,n=De(r.close),i=t.originalText.slice(e,n).trim();return he(i)?[D,i]:i}return s.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(De(s),ve(s));case"value-comma_group":{let n=e.getParentNode(),i=e.getParentNode(1),o=x(e),a=o&&"value-value"===n.type&&("grid"===o||o.startsWith("grid-template")),u=S(e,"css-atrule"),l=u&&I(u),y=s.groups.some((e=>oe(e))),v=e.map(r,"groups"),b=[],C=F(e,"url"),A=!1,w=!1;for(let r=0;r<s.groups.length;++r){var E;b.push(v[r]);let o=s.groups[r-1],f=s.groups[r],h=s.groups[r+1],m=s.groups[r+2];if(C){(h&&U(h)||U(f))&&b.push(" ");continue}if(N(e,"forward")&&"value-word"===f.type&&f.value&&void 0!==o&&"value-word"===o.type&&"as"===o.value&&"value-operator"===h.type&&"*"===h.value||!h||"value-word"===f.type&&f.value.endsWith("-")&&me(h))continue;if("value-string"===f.type&&f.quoted){let e=f.value.lastIndexOf("#{"),t=f.value.lastIndexOf("}");-1!==e&&-1!==t?A=e>t:-1!==e?A=!0:-1!==t&&(A=!1)}if(A||pe(f)||pe(h)||"value-atword"===f.type&&(""===f.value||f.value.endsWith("["))||"value-word"===h.type&&h.value.startsWith("]")||"~"===f.value||f.value&&f.value.includes("\\")&&h&&"value-comment"!==h.type||o&&o.value&&o.value.indexOf("\\")===o.value.length-1&&"value-operator"===f.type&&"/"===f.value||"\\"===f.value||ie(f,h)||ae(f)||ue(f)||le(h)||ue(h)&&Q(h)||le(f)&&Q(h)||"--"===f.value&&ae(h))continue;let y=K(f),D=K(h);if((y&&ae(h)||D&&le(f))&&Q(h)||!o&&q(f)||F(e,"calc")&&(U(f)||U(h)||W(f)||W(h))&&Q(h))continue;let S=(U(f)||W(f))&&0===r&&("value-number"===h.type||h.isHex)&&i&&fe(i)&&!Q(h),x=m&&"value-func"===m.type||m&&ce(m)||"value-func"===f.type||ce(f),T="value-func"===h.type||ce(h)||o&&"value-func"===o.type||o&&ce(o);if((V(h)||V(f)||F(e,"calc")||S||!(q(h)&&!x||q(f)&&!T||U(h)&&!x||U(f)&&!T||W(h)||W(f))||!(Q(h)||y&&(!o||o&&K(o))))&&("scss"!==t.parser&&"less"!==t.parser||!y||"-"!==f.value||!ye(h)||ve(f)!==De(h.open)||"("!==h.open.value)){if(oe(f)){if("value-paren_group"===n.type){b.push(g(p));continue}b.push(p);continue}if(l&&(R(h)||M(h)||G(h)||$(f)||H(f))){b.push(" ");continue}if(u&&"namespace"===u.name.toLowerCase()){b.push(" ");continue}if(a){f.source&&h.source&&f.source.start.line!==h.source.start.line?(b.push(p),w=!0):b.push(" ");continue}if(D){b.push(" ");continue}if((!h||"..."!==h.value)&&(!me(f)||!me(h)||ve(f)!==De(h))){if(me(f)&&ye(h)&&ve(f)===De(h.open)){b.push(d);continue}if("with"===f.value&&ye(h)){b.push(" ");continue}null!==(E=f.value)&&void 0!==E&&E.endsWith("#")&&"{"===h.value&&ye(h.group)||b.push(c)}}}return y&&b.push(D),w&&b.unshift(p),l?f(m(b)):_(e)?f(h(b)):f(m(h(b)))}case"value-paren_group":{let i=e.getParentNode();if(i&&J(i)&&(1===s.groups.length||s.groups.length>0&&"value-comma_group"===s.groups[0].type&&s.groups[0].groups.length>0&&"value-word"===s.groups[0].groups[0].type&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?r("open"):"",l(",",e.map(r,"groups")),s.close?r("close"):""];if(!s.open){let t=e.map(r,"groups"),n=[];for(let e=0;e<t.length;e++)0!==e&&n.push([",",c]),n.push(t[e]);return f(m(h(n)))}let o=se(e),D=n(s.groups),v=D&&"value-comment"===D.type,E=Z(s,i),C=ge(s,i),A=C||o&&!E,S=C||E,x=f([s.open?r("open"):"",m([d,l([c],e.map(((e,i)=>{let o=e.getValue(),l=i===s.groups.length-1,c=[r(),l?"":","];if(X(o)&&"value-comma_group"===o.type&&o.groups&&"value-paren_group"!==o.groups[0].type&&o.groups[2]&&"value-paren_group"===o.groups[2].type){let e=b(c[0].contents.contents);e[1]=f(e[1]),c=[f(g(c))]}if(!l&&"value-comma_group"===o.type&&u(o.groups)){let e=n(o.groups);!e.source&&e.close&&(e=e.close),e.source&&a(t.originalText,e,ve)&&c.push(p)}return c}),"groups"))]),y(!v&&Ee(t.parser,t.originalText)&&o&&Se(t)?",":""),d,s.close?r("close"):""],{shouldBreak:A});return S?g(x):x}case"value-func":return[s.value,N(e,"supports")&&de(s)?" ":"",r("group")];case"value-number":return[Ie(s.value),Ce(s.unit)];case"value-word":return s.isColor&&s.isHex||O(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let t=e.getParentNode(),r=t&&t.groups.indexOf(s),i=r&&t.groups[r-1];return[s.value,i&&"string"==typeof i.value&&"\\"===n(i.value)||F(e,"url")?"":c]}case"value-string":return i(s.raws.quote+s.value+s.raws.quote,t);case"value-atword":return["@",s.value];default:throw new Error("Unknown postcss type ".concat(JSON.stringify(s.type)))}}function we(e,t,n){let r=[];return e.each(((e,i,u)=>{let l=u[i-1];if(l&&"css-comment"===l.type&&"prettier-ignore"===l.text.trim()){let n=e.getValue();r.push(t.originalText.slice(De(n),ve(n)))}else r.push(n());i!==u.length-1&&("css-comment"===u[i+1].type&&!s(t.originalText,De(u[i+1]),{backwards:!0})&&!o(u[i])||"css-atrule"===u[i+1].type&&"else"===u[i+1].name&&"css-comment"!==u[i].type?r.push(" "):(r.push(t.__isHTMLStyleAttribute?c:p),a(t.originalText,e.getValue(),ve)&&!o(u[i])&&r.push(p)))}),"nodes"),r}var Fe=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,Te=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Ne=/[A-Za-z]+/g,_e=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,ke=new RegExp(Fe.source+"|(".concat(_e.source,")?(").concat(Te.source,")(").concat(Ne.source,")?"),"g");function Le(e,t){return e.replace(Fe,(e=>i(e,t)))}function Oe(e,t){let n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Pe(e){return e.replace(ke,((e,t,n,r,i)=>!n&&r?Ie(r)+w(i||""):e))}function Ie(e){return r(e).replace(/\.0(?=$|e)/,"")}t.exports={print:xe,embed:C,insertPragma:A,massageAstNode:E}}}),Zr=F({"src/language-css/options.js"(e,t){L();var n=_r();t.exports={singleQuote:n.singleQuote}}}),ei=F({"src/language-css/parsers.js"(){L()}}),ti=F({"node_modules/linguist-languages/data/CSS.json"(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),ni=F({"node_modules/linguist-languages/data/PostCSS.json"(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),ri=F({"node_modules/linguist-languages/data/Less.json"(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),ii=F({"node_modules/linguist-languages/data/SCSS.json"(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),si=F({"src/language-css/index.js"(e,t){L();var n=ln(),r=Xr(),i=Zr(),s=ei(),o=[n(ti(),(e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]}))),n(ni(),(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),n(ri(),(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),n(ii(),(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],a={postcss:r};t.exports={languages:o,options:i,printers:a,parsers:s}}}),oi=F({"src/language-handlebars/loc.js"(e,t){function n(e){return e.loc.start.offset}function r(e){return e.loc.end.offset}L(),t.exports={locStart:n,locEnd:r}}}),ai=F({"src/language-handlebars/clean.js"(e,t){function n(e,t){if("TextNode"===e.type){let n=e.chars.trim();if(!n)return null;t.chars=n.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}L(),n.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=n}}),ui=F({"src/language-handlebars/html-void-elements.evaluate.js"(e,t){t.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),li=F({"src/language-handlebars/utils.js"(e,t){L();var n=j(),r=ui();function i(e){let t=e.getValue(),r=e.getParentNode(0);return!!(d(e,["ElementNode"])&&n(r.children)===t||d(e,["Block"])&&n(r.body)===t)}function s(e){return e.toUpperCase()===e}function o(e){return p(e,["ElementNode"])&&"string"==typeof e.tag&&!e.tag.startsWith(":")&&(s(e.tag[0])||e.tag.includes("."))}var a=new Set(r);function u(e){return a.has(e.toLowerCase())&&!s(e[0])}function l(e){return!0===e.selfClosing||u(e.tag)||o(e)&&e.children.every((e=>c(e)))}function c(e){return p(e,["TextNode"])&&!/\S/.test(e.chars)}function p(e,t){return e&&t.includes(e.type)}function d(e,t){return p(e.getParentNode(0),t)}function f(e,t){return p(g(e),t)}function h(e,t){return p(y(e),t)}function m(e,t){var n,r,i,s;let o=e.getValue(),a=null!==(n=e.getParentNode(0))&&void 0!==n?n:{},u=null!==(r=null!==(i=null!==(s=a.children)&&void 0!==s?s:a.body)&&void 0!==i?i:a.parts)&&void 0!==r?r:[],l=u.indexOf(o);return-1!==l&&u[l+t]}function g(e){return m(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function y(e){return m(e,1)}function D(e){return p(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}function v(e){let t=e.getValue(),n=g(e,2);return D(t)||D(n)}t.exports={getNextNode:y,getPreviousNode:g,hasPrettierIgnore:v,isLastNodeOfSiblings:i,isNextNodeOfSomeType:h,isNodeOfSomeType:p,isParentOfSomeType:d,isPreviousNodeOfSomeType:f,isVoid:l,isWhitespaceNode:c}}}),ci=F({"src/language-handlebars/printer-glimmer.js"(e,t){L();var{builders:{dedent:n,fill:r,group:i,hardline:s,ifBreak:o,indent:a,join:u,line:l,softline:c},utils:{getDocParts:p,replaceTextEndOfLine:d}}=ee(),{getPreferredQuote:f,isNonEmptyArray:h}=Ae(),{locStart:m,locEnd:g}=oi(),y=ai(),{getNextNode:D,getPreviousNode:v,hasPrettierIgnore:b,isLastNodeOfSiblings:E,isNextNodeOfSomeType:C,isNodeOfSomeType:A,isParentOfSomeType:S,isPreviousNodeOfSomeType:x,isVoid:w,isWhitespaceNode:F}=li(),T=2;function N(e,t,o){let p=e.getValue();if(!p)return"";if(b(e))return t.originalText.slice(m(p),g(p));let h=t.singleQuote?"'":'"';switch(p.type){case"Block":case"Program":case"Template":return i(e.map(o,"body"));case"ElementNode":{let n=i(k(e,o)),r="ignore"===t.htmlWhitespaceSensitivity&&C(e,["ElementNode"])?c:"";if(w(p))return[n,r];let u=["</",p.tag,">"];return 0===p.children.length?[n,a(u),r]:"ignore"===t.htmlWhitespaceSensitivity?[n,a(O(e,t,o)),s,a(u),r]:[n,a(i(O(e,t,o))),a(u),r]}case"BlockStatement":{let n=e.getParentNode(1);return n&&n.inverse&&1===n.inverse.body.length&&n.inverse.body[0]===p&&n.inverse.body[0].path.parts[0]===n.path.parts[0]?[$(e,o,n.inverse.body[0].path.parts[0]),Y(e,o,t),Q(e,o,t)]:[W(e,o),i([Y(e,o,t),Q(e,o,t),H(e,o,t)])]}case"ElementModifierStatement":return i(["{{",le(e,o),"}}"]);case"MustacheStatement":return i([I(p),le(e,o),B(p)]);case"SubExpression":return i(["(",ue(e,o),c,")"]);case"AttrNode":{let e="TextNode"===p.value.type;if(e&&""===p.value.chars&&m(p.value)===g(p.value))return p.name;let t=e?f(p.value.chars,h).quote:"ConcatStatement"===p.value.type?f(p.value.parts.filter((e=>"TextNode"===e.type)).map((e=>e.chars)).join(""),h).quote:"",n=o("value");return[p.name,"=",t,"class"===p.name&&t?i(a(n)):n,t]}case"ConcatStatement":return e.map(o,"parts");case"Hash":return u(l,e.map(o,"pairs"));case"HashPair":return[p.key,"=",o("value")];case"TextNode":{let i=p.chars.replace(/{{/g,"\\{{"),s=te(e);if(s){if("class"===s){let t=i.trim().split(/\s+/).join(" "),n=!1,r=!1;return S(e,["ConcatStatement"])&&(x(e,["MustacheStatement"])&&/^\s/.test(i)&&(n=!0),C(e,["MustacheStatement"])&&/\s$/.test(i)&&""!==t&&(r=!0)),[n?l:"",t,r?l:""]}return d(i)}let o=/^[\t\n\f\r ]*$/.test(i),a=!v(e),u=!D(e);if("ignore"!==t.htmlWhitespaceSensitivity){let t=/^[\t\n\f\r ]*/,s=/[\t\n\f\r ]*$/,c=u&&S(e,["Template"]),p=a&&S(e,["Template"]);if(o){if(p||c)return"";let t=[l],r=ne(i);return r&&(t=se(r)),E(e)&&(t=t.map((e=>n(e)))),t}let[d]=i.match(t),[f]=i.match(s),h=[];if(d){h=[l];let e=ne(d);e&&(h=se(e)),i=i.replace(t,"")}let m=[];if(f){if(!c){m=[l];let t=ne(f);t&&(m=se(t)),E(e)&&(m=m.map((e=>n(e))))}i=i.replace(s,"")}return[...h,r(X(i)),...m]}let c=ne(i),f=re(i),h=ie(i);if((a||u)&&o&&S(e,["Block","ElementNode","Template"]))return"";o&&c?(f=Math.min(c,T),h=0):(C(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1)),x(e,["BlockStatement","ElementNode"])&&(f=Math.max(f,1)));let m="",g="";return 0===h&&C(e,["MustacheStatement"])&&(g=" "),0===f&&x(e,["MustacheStatement"])&&(m=" "),a&&(f=0,m=""),u&&(h=0,g=""),i=i.replace(/^[\t\n\f\r ]+/g,m).replace(/[\t\n\f\r ]+$/,g),[...se(f),r(X(i)),...se(h)]}case"MustacheCommentStatement":{let e=m(p),n=g(p),r="~"===t.originalText.charAt(e+2),i="~"===t.originalText.charAt(n-3),s=p.value.includes("}}")?"--":"";return["{{",r?"~":"","!",s,p.value,s,i?"~":"","}}"]}case"PathExpression":return p.original;case"BooleanLiteral":case"NumberLiteral":return String(p.value);case"CommentStatement":return["\x3c!--",p.value,"--\x3e"];case"StringLiteral":if(ae(e)){let e=t.singleQuote?'"':"'";return oe(p.value,e)}return oe(p.value,h);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(p.type))}}function _(e,t){return m(e)-m(t)}function k(e,t){let n=e.getValue(),r=["attributes","modifiers","comments"].filter((e=>h(n[e]))),i=r.flatMap((e=>n[e])).sort(_);for(let s of r)e.each((e=>{let n=i.indexOf(e.getValue());i.splice(n,1,[l,t()])}),s);return h(n.blockParams)&&i.push(l,de(n)),["<",n.tag,a(i),P(n)]}function O(e,t,n){let r=e.getValue().children.every((e=>F(e)));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map(((e,r)=>{let i=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[c,i]:i}),"children")}function P(e){return w(e)?o([c,"/>"],[" />",c]):o([c,">"],">")}function I(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function B(e){let t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function M(e){return[I(e),e.openStrip.open?"~":"","#"]}function j(e){let t=B(e);return[e.openStrip.close?"~":"",t]}function R(e){return[I(e),e.closeStrip.open?"~":"","/"]}function V(e){let t=B(e);return[e.closeStrip.close?"~":"",t]}function q(e){return[I(e),e.inverseStrip.open?"~":""]}function U(e){let t=B(e);return[e.inverseStrip.close?"~":"",t]}function W(e,t){let n=e.getValue(),r=[],s=pe(e,t);return s&&r.push(i(s)),h(n.program.blockParams)&&r.push(de(n.program)),i([M(n),ce(e,t),r.length>0?a([l,u(l,r)]):"",c,j(n)])}function K(e,t){return["ignore"===t.htmlWhitespaceSensitivity?s:"",q(e),"else",U(e)]}function $(e,t,n){let r=e.getValue(),s=e.getParentNode(1);return i([q(s),["else"," ",n],a([l,i(pe(e,t)),...h(r.program.blockParams)?[l,de(r.program)]:[]]),c,U(s)])}function H(e,t,n){let r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[J(r)?c:s,R(r),t("path"),V(r)]:[R(r),t("path"),V(r)]}function J(e){return A(e,["BlockStatement"])&&e.program.body.every((e=>F(e)))}function G(e){return z(e)&&1===e.inverse.body.length&&A(e.inverse.body[0],["BlockStatement"])&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function z(e){return A(e,["BlockStatement"])&&e.inverse}function Y(e,t,n){if(J(e.getValue()))return"";let r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?a([s,r]):a(r)}function Q(e,t,n){let r=e.getValue(),i=t("inverse"),o="ignore"===n.htmlWhitespaceSensitivity?[s,i]:i;return G(r)?o:z(r)?[K(r,n),a(o)]:""}function X(e){return p(u(l,Z(e)))}function Z(e){return e.split(/[\t\n\f\r ]+/)}function te(e){for(let t=0;t<2;t++){let n=e.getParentNode(t);if(n&&"AttrNode"===n.type)return n.name.toLowerCase()}}function ne(e){return(e="string"==typeof e?e:"").split("\n").length-1}function re(e){return ne(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}function ie(e){return ne(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,T)}).fill(s)}function oe(e,t){let{quote:n,regex:r}=f(e,t);return[n,e.replace(r,"\\".concat(n)),n]}function ae(e){let t=0,n=e.getParentNode(t);for(;n&&A(n,["SubExpression"]);)t++,n=e.getParentNode(t);return!!(n&&A(e.getParentNode(t+1),["ConcatStatement"])&&A(e.getParentNode(t+2),["AttrNode"]))}function ue(e,t){let n=ce(e,t),r=pe(e,t);return r?a([n,l,i(r)]):n}function le(e,t){let n=ce(e,t),r=pe(e,t);return r?[a([n,l,r]),c]:n}function ce(e,t){return t("path")}function pe(e,t){let n=e.getValue(),r=[];if(n.params.length>0){let n=e.map(t,"params");r.push(...n)}if(n.hash&&n.hash.pairs.length>0){let e=t("hash");r.push(e)}return 0===r.length?"":u(l,r)}function de(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:N,massageAstNode:y}}}),pi=F({"src/language-handlebars/parsers.js"(){L()}}),di=F({"node_modules/linguist-languages/data/Handlebars.json"(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),fi=F({"src/language-handlebars/index.js"(e,t){L();var n=ln(),r=ci(),i=pi(),s=[n(di(),(()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],o={glimmer:r};t.exports={languages:s,printers:o,parsers:i}}}),hi=F({"src/language-graphql/pragma.js"(e,t){function n(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function r(e){return"# @format\n\n"+e}L(),t.exports={hasPragma:n,insertPragma:r}}}),mi=F({"src/language-graphql/loc.js"(e,t){function n(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start}function r(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}L(),t.exports={locStart:n,locEnd:r}}}),gi=F({"src/language-graphql/printer-graphql.js"(e,t){L();var{builders:{join:n,hardline:r,line:i,softline:s,group:o,indent:a,ifBreak:u}}=ee(),{isNextLineEmpty:l,isNonEmptyArray:c}=Ae(),{insertPragma:p}=hi(),{locStart:d,locEnd:f}=mi();function h(e,t,p){let h=e.getValue();if(!h)return"";if("string"==typeof h)return h;switch(h.kind){case"Document":{let n=[];return e.each(((e,i,s)=>{n.push(p()),i!==s.length-1&&(n.push(r),l(t.originalText,e.getValue(),f)&&n.push(r))}),"definitions"),[...n,r]}case"OperationDefinition":{let r="{"!==t.originalText[d(h)],i=Boolean(h.name);return[r?h.operation:"",r&&i?[" ",p("name")]:"",r&&!i&&c(h.variableDefinitions)?" ":"",c(h.variableDefinitions)?o(["(",a([s,n([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):"",m(e,p,h),h.selectionSet&&(r||i)?" ":"",p("selectionSet")]}case"FragmentDefinition":return["fragment ",p("name"),c(h.variableDefinitions)?o(["(",a([s,n([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):""," on ",p("typeCondition"),m(e,p,h)," ",p("selectionSet")];case"SelectionSet":return["{",a([r,n(r,g(e,t,p,"selections"))]),r,"}"];case"Field":return o([h.alias?[p("alias"),": "]:"",p("name"),h.arguments.length>0?o(["(",a([s,n([u("",", "),s],g(e,t,p,"arguments"))]),s,")"]):"",m(e,p,h),h.selectionSet?" ":"",p("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return h.value;case"StringValue":if(h.block){let e=h.value.replace(/"""/g,"\\$&").split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every((e=>""===e))&&(e.length=0),n(r,['"""',...e,'"""'])}return['"',h.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return h.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",p("name")];case"ListValue":return o(["[",a([s,n([u("",", "),s],e.map(p,"values"))]),s,"]"]);case"ObjectValue":return o(["{",t.bracketSpacing&&h.fields.length>0?" ":"",a([s,n([u("",", "),s],e.map(p,"fields"))]),s,u("",t.bracketSpacing&&h.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[p("name"),": ",p("value")];case"Directive":return["@",p("name"),h.arguments.length>0?o(["(",a([s,n([u("",", "),s],g(e,t,p,"arguments"))]),s,")"]):""];case"NamedType":return p("name");case"VariableDefinition":return[p("variable"),": ",p("type"),h.defaultValue?[" = ",p("defaultValue")]:"",m(e,p,h)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[p("description"),h.description?r:"","ObjectTypeExtension"===h.kind?"extend ":"","type ",p("name"),h.interfaces.length>0?[" implements ",...v(e,t,p)]:"",m(e,p,h),h.fields.length>0?[" {",a([r,n(r,g(e,t,p,"fields"))]),r,"}"]:""];case"FieldDefinition":return[p("description"),h.description?r:"",p("name"),h.arguments.length>0?o(["(",a([s,n([u("",", "),s],g(e,t,p,"arguments"))]),s,")"]):"",": ",p("type"),m(e,p,h)];case"DirectiveDefinition":return[p("description"),h.description?r:"","directive ","@",p("name"),h.arguments.length>0?o(["(",a([s,n([u("",", "),s],g(e,t,p,"arguments"))]),s,")"]):"",h.repeatable?" repeatable":""," on ",n(" | ",e.map(p,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[p("description"),h.description?r:"","EnumTypeExtension"===h.kind?"extend ":"","enum ",p("name"),m(e,p,h),h.values.length>0?[" {",a([r,n(r,g(e,t,p,"values"))]),r,"}"]:""];case"EnumValueDefinition":return[p("description"),h.description?r:"",p("name"),m(e,p,h)];case"InputValueDefinition":return[p("description"),h.description?h.description.block?r:i:"",p("name"),": ",p("type"),h.defaultValue?[" = ",p("defaultValue")]:"",m(e,p,h)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[p("description"),h.description?r:"","InputObjectTypeExtension"===h.kind?"extend ":"","input ",p("name"),m(e,p,h),h.fields.length>0?[" {",a([r,n(r,g(e,t,p,"fields"))]),r,"}"]:""];case"SchemaExtension":return["extend schema",m(e,p,h),...h.operationTypes.length>0?[" {",a([r,n(r,g(e,t,p,"operationTypes"))]),r,"}"]:[]];case"SchemaDefinition":return[p("description"),h.description?r:"","schema",m(e,p,h)," {",h.operationTypes.length>0?a([r,n(r,g(e,t,p,"operationTypes"))]):"",r,"}"];case"OperationTypeDefinition":return[p("operation"),": ",p("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[p("description"),h.description?r:"","InterfaceTypeExtension"===h.kind?"extend ":"","interface ",p("name"),h.interfaces.length>0?[" implements ",...v(e,t,p)]:"",m(e,p,h),h.fields.length>0?[" {",a([r,n(r,g(e,t,p,"fields"))]),r,"}"]:""];case"FragmentSpread":return["...",p("name"),m(e,p,h)];case"InlineFragment":return["...",h.typeCondition?[" on ",p("typeCondition")]:"",m(e,p,h)," ",p("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return o([p("description"),h.description?r:"",o(["UnionTypeExtension"===h.kind?"extend ":"","union ",p("name"),m(e,p,h),h.types.length>0?[" =",u(""," "),a([u([i," "]),n([i,"| "],e.map(p,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[p("description"),h.description?r:"","ScalarTypeExtension"===h.kind?"extend ":"","scalar ",p("name"),m(e,p,h)];case"NonNullType":return[p("type"),"!"];case"ListType":return["[",p("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(h.kind))}}function m(e,t,r){if(0===r.directives.length)return"";let u=n(i,e.map(t,"directives"));return"FragmentDefinition"===r.kind||"OperationDefinition"===r.kind?o([i,u]):[" ",o(a([s,u]))]}function g(e,t,n,i){return e.map(((e,i,s)=>{let o=n();return i<s.length-1&&l(t.originalText,e.getValue(),f)?[o,r]:o}),i)}function y(e){return e.kind&&"Comment"!==e.kind}function D(e){let t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function v(e,t,n){let r=e.getNode(),s=[],{interfaces:o}=r,a=e.map((e=>n(e)),"interfaces");for(let u=0;u<o.length;u++){let e=o[u];s.push(a[u]);let n=o[u+1];if(n){let r=t.originalText.slice(e.loc.end,n.loc.start),o=r.includes("#"),a=r.replace(/#.*/g,"").trim();s.push(","===a?",":" &",o?i:" ")}}return s}function b(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=t.value.trim())}function E(e){var t;let n=e.getValue();return null==n||null===(t=n.comments)||void 0===t?void 0:t.some((e=>"prettier-ignore"===e.value.trim()))}b.ignoredProperties=new Set(["loc","comments"]),t.exports={print:h,massageAstNode:b,hasPrettierIgnore:E,insertPragma:p,printComment:D,canAttachComment:y}}}),yi=F({"src/language-graphql/options.js"(e,t){L();var n=_r();t.exports={bracketSpacing:n.bracketSpacing}}}),Di=F({"src/language-graphql/parsers.js"(){L()}}),vi=F({"node_modules/linguist-languages/data/GraphQL.json"(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),bi=F({"src/language-graphql/index.js"(e,t){L();var n=ln(),r=gi(),i=yi(),s=Di(),o=[n(vi(),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],a={graphql:r};t.exports={languages:o,options:i,printers:a,parsers:s}}}),Ei=F({"node_modules/collapse-white-space/index.js"(e,t){function n(e){return String(e).replace(/\s+/g," ")}L(),t.exports=n}}),Ci=F({"src/language-markdown/loc.js"(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}L(),t.exports={locStart:n,locEnd:r}}}),Ai=F({"src/language-markdown/constants.evaluate.js"(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\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])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",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]"}}}),Si=F({"src/language-markdown/utils.js"(e,t){L();var{getLast:n}=Ae(),{locStart:r,locEnd:i}=Ci(),{cjkPattern:s,kPattern:o,punctuationPattern:a}=Ai(),u=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],l=[...u,"tableCell","paragraph","heading"],c=new RegExp(o),p=new RegExp(a);function d(e,t){let r="non-cjk",i="cj-letter",o="k-letter",a="cjk-punctuation",u=[],l=("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(s,")\n(").concat(s,")"),"g"),"$1$2")).split(/([\t\n ]+)/);for(let[f,h]of l.entries()){if(f%2===1){u.push({type:"whitespace",value:/\n/.test(h)?"\n":" "});continue}if((0===f||f===l.length-1)&&""===h)continue;let e=h.split(new RegExp("(".concat(s,")")));for(let[t,s]of e.entries())if(0!==t&&t!==e.length-1||""!==s){if(t%2===0){""!==s&&d({type:"word",value:s,kind:r,hasLeadingPunctuation:p.test(s[0]),hasTrailingPunctuation:p.test(n(s))});continue}d(p.test(s)?{type:"word",value:s,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:c.test(s)?o:i,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return u;function d(e){let t=n(u);function s(n,r){return t.kind===n&&e.kind===r||t.kind===r&&e.kind===n}t&&"word"===t.type&&(t.kind===r&&e.kind===i&&!t.hasTrailingPunctuation||t.kind===i&&e.kind===r&&!e.hasLeadingPunctuation?u.push({type:"whitespace",value:" "}):!s(r,a)&&![t.value,e.value].some((e=>/\u3000/.test(e)))&&u.push({type:"whitespace",value:""})),u.push(e)}}function f(e,t){let[,n,r,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:i}}function h(e,t){if(!e.ordered||e.children.length<2)return!1;let n=Number(f(e.children[0],t.originalText).numberText),r=Number(f(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){let n=Number(f(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r}function m(e,t){let{value:n}=e;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n}function g(e,t){return function e(n,r,i){let s=Object.assign({},t(n,r,i));return s.children&&(s.children=s.children.map(((t,n)=>e(t,n,[s,...i])))),s}(e,null,[])}function y(e){if("link"!==(null==e?void 0:e.type)||1!==e.children.length)return!1;let[t]=e.children;return r(e)===r(t)&&i(e)===i(t)}t.exports={mapAst:g,splitText:d,punctuationPattern:a,getFencedCodeBlockValue:m,getOrderedListItemInfo:f,hasGitDiffFriendlyOrderedList:h,INLINE_NODE_TYPES:u,INLINE_NODE_WRAPPER_TYPES:l,isAutolink:y}}}),xi=F({"src/language-markdown/embed.js"(e,t){L();var{inferParserByLanguage:n,getMaxContinuousCount:r}=Ae(),{builders:{hardline:i,markAsRoot:s},utils:{replaceEndOfLine:o}}=ee(),a=qr(),{getFencedCodeBlockValue:u}=Si();function l(e,t,l,c){let p=e.getValue();if("code"===p.type&&null!==p.lang){let e=n(p.lang,c);if(e){let t=c.__inJsTemplate?"~":"`",n=t.repeat(Math.max(3,r(p.value,t)+1)),a={parser:e};"tsx"===p.lang&&(a.filepath="dummy.tsx");let d=l(u(p,c.originalText),a,{stripTrailingHardline:!0});return s([n,p.lang,p.meta?" "+p.meta:"",i,o(d),i,n])}}switch(p.type){case"front-matter":return a(p,l);case"importExport":return[l(p.value,{parser:"babel"},{stripTrailingHardline:!0}),i];case"jsx":return l("<$>".concat(p.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}t.exports=l}}),wi=F({"src/language-markdown/pragma.js"(e,t){L();var n=Wr(),r=["format","prettier"];function i(e){let t="@(".concat(r.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"{\\s*\\/\\*\\s*".concat(t,"\\s*\\*\\/\\s*}"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),i=e.match(n);return 0===(null==i?void 0:i.index)}t.exports={startWithPragma:i,hasPragma:e=>i(n(e).content.trimStart()),insertPragma:e=>{let t=n(e),i="\x3c!-- @".concat(r[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(i,"\n\n").concat(t.content):"".concat(i,"\n\n").concat(t.content)}}}}),Fi=F({"src/language-markdown/print-preprocess.js"(e,t){L();var n=j(),{getOrderedListItemInfo:r,mapAst:i,splitText:s}=Si(),o=/^.$/su;function a(e,t){return e=p(e=u(e=h(e=g(e=m(e=l(e=f(e=c(e,t)),t),t),t),t)))}function u(e){return i(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"})))}function l(e,t){return i(e,(e=>"inlineCode"!==e.type||"preserve"===t.proseWrap?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")})))}function c(e,t){return i(e,(e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&o.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e))}function p(e){return d(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}})))}function d(e,t,r){return i(e,(e=>{if(!e.children)return e;let i=e.children.reduce(((e,i)=>{let s=n(e);return s&&t(s,i)?e.splice(-1,1,r(s,i)):e.push(i),e}),[]);return Object.assign(Object.assign({},e),{},{children:i})}))}function f(e){return d(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}})))}function h(e,t){return i(e,((e,n,r)=>{let[i]=r;if("text"!==e.type)return e;let{value:o}=e;return"paragraph"===i.type&&(0===n&&(o=o.trimStart()),n===i.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:s(o,t)}}))}function m(e,t){return i(e,((e,n,r)=>{if("code"===e.type){let 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<r.length;e++){let t=r[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e}))}function g(e,t){return i(e,((e,t,n)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t<n.length;t++){let r=n[t];if("list"===r.type&&!r.isAligned)return e.isAligned=!1,e}e.isAligned=s(e)}return e}));function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function s(e){if(!e.ordered)return!0;let[i,s]=e.children;if(r(i,t.originalText).leadingSpaces.length>1)return!0;let o=n(i);return-1!==o&&(1===e.children.length?o%t.tabWidth===0:o===n(s)&&(o%t.tabWidth===0||r(s,t.originalText).leadingSpaces.length>1))}}t.exports=a}}),Ti=F({"src/language-markdown/clean.js"(e,t){L();var n=Ei(),{isFrontMatterNode:r}=Ae(),{startWithPragma:i}=wi(),s=new Set(["position","raw"]);function o(e,t,s){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type||"imageReference"===e.type)&&(t.label=n(e.label)),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),s&&"root"===s.type&&s.children.length>0&&(s.children[0]===e||r(s.children[0])&&s.children[1]===e)&&"html"===e.type&&i(e.value)))return null}o.ignoredProperties=s,t.exports=o}}),Ni=F({"src/language-markdown/printer-markdown.js"(e,t){L();var n=Ei(),{getLast:r,getMinNotPresentContinuousCount:i,getMaxContinuousCount:s,getStringWidth:o,isNonEmptyArray:a}=Ae(),{builders:{breakParent:u,join:l,line:c,literalline:p,markAsRoot:d,hardline:f,softline:h,ifBreak:m,fill:g,align:y,indent:D,group:v,hardlineWithoutBreakParent:b},utils:{normalizeDoc:E,replaceTextEndOfLine:C},printer:{printDocToString:A}}=ee(),S=xi(),{insertPragma:x}=wi(),{locStart:w,locEnd:F}=Ci(),T=Fi(),N=Ti(),{getFencedCodeBlockValue:_,hasGitDiffFriendlyOrderedList:k,splitText:O,punctuationPattern:P,INLINE_NODE_TYPES:I,INLINE_NODE_WRAPPER_TYPES:B,isAutolink:M}=Si(),j=new Set(["importExport"]),R=["heading","tableCell","link","wikiLink"],V=new Set(["listItem","definition","footnoteDefinition"]);function q(e,t,n){let o=e.getValue();if(se(e))return O(t.originalText.slice(o.position.start.offset,o.position.end.offset),t).map((n=>"word"===n.type?n.value:""===n.value?"":G(e,n.value,t)));switch(o.type){case"front-matter":return t.originalText.slice(o.position.start.offset,o.position.end.offset);case"root":return 0===o.children.length?"":[E(Y(e,t,n)),j.has(Z(o).type)?"":f];case"paragraph":return Q(e,t,n,{postprocessor:g});case"sentence":return Q(e,t,n);case"word":{let t=o.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(P,")(_+)"),"(_+)(".concat(P,"|$)")].join("|"),"g"),((e,t,n,r,i)=>(n?"".concat(t).concat(n):"".concat(r).concat(i)).replace(/_/g,"\\_"))),n=(e,t,n)=>"sentence"===e.type&&0===n,r=(e,t,n)=>M(e.children[n-1]);return t!==o.value&&(e.match(void 0,n,r)||e.match(void 0,n,((e,t,n)=>"emphasis"===e.type&&0===n),r))&&(t=t.replace(/^(\\?[*_])+/,(e=>e.replace(/\\/g,"")))),t}case"whitespace":{let n=e.getParentNode(),r=n.children.indexOf(o),i=n.children[r+1],s=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(i.value)?"never":t.proseWrap;return G(e,o.value,{proseWrap:s})}case"emphasis":{let i;if(M(o.children[0]))i=t.originalText[o.position.start.offset];else{let t=e.getParentNode(),n=t.children.indexOf(o),s=t.children[n-1],a=t.children[n+1];i=s&&"sentence"===s.type&&s.children.length>0&&"word"===r(s.children).type&&!r(s.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||J(e,"emphasis")?"*":"_"}return[i,Q(e,t,n),i]}case"strong":return["**",Q(e,t,n),"**"];case"delete":return["~~",Q(e,t,n),"~~"];case"inlineCode":{let e=i(o.value,"`"),t="`".repeat(e||1),n=e&&!/^\s/.test(o.value)?" ":"";return[t,n,o.value,n,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?o.value:o.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[o.position.start.offset]){case"<":{let e="mailto:";return["<",o.url.startsWith(e)&&t.originalText.slice(o.position.start.offset+1,o.position.start.offset+1+e.length)!==e?o.url.slice(e.length):o.url,">"]}case"[":return["[",Q(e,t,n),"](",oe(o.url,")"),ae(o.title,t),")"];default:return t.originalText.slice(o.position.start.offset,o.position.end.offset)}case"image":return[""),ae(o.title,t),")"];case"blockquote":return["> ",y("> ",Q(e,t,n))];case"heading":return["#".repeat(o.depth)+" ",Q(e,t,n)];case"code":{if(o.isIndented){let e=" ".repeat(4);return y(e,[e,...C(o.value,f)])}let e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,s(o.value,e)+1));return[n,o.lang||"",o.meta?" "+o.meta:"",f,...C(_(o,t.originalText),f),f,n]}case"html":{let t=e.getParentNode(),n="root"===t.type&&r(t.children)===o?o.value.trimEnd():o.value,i=/^<!--.*-->$/s.test(n);return C(n,i?f:d(p))}case"list":{let r=K(o,e.getParentNode()),i=k(o,t);return Q(e,t,n,{processor:(e,s)=>{let a=l(),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?[a,U(e,t,n,a)]:[a,y(" ".repeat(a.length),U(e,t,n,a))];function l(){let e=o.ordered?(0===s?o.start:i?1:o.start+s)+(r%2===0?". ":") "):r%2===0?"- ":"* ";return o.isAligned||o.hasIndentedCodeblock?W(e,t):e}}})}case"thematicBreak":{let t=H(e,"list");return-1===t?"---":K(e.getParentNode(t),e.getParentNode(t+1))%2===0?"***":"---"}case"linkReference":return["[",Q(e,t,n),"]","full"===o.referenceType?ce(o):"collapsed"===o.referenceType?"[]":""];case"imageReference":return"full"===o.referenceType?["![",o.alt||"","]",ce(o)]:["![",o.alt,"]","collapsed"===o.referenceType?"[]":""];case"definition":{let e="always"===t.proseWrap?c:" ";return v([ce(o),":",D([e,oe(o.url),null===o.title?"":[e,ae(o.title,t,!1)]])])}case"footnote":return["[^",Q(e,t,n),"]"];case"footnoteReference":return pe(o);case"footnoteDefinition":{let r=e.getParentNode().children[e.getName()+1],i=1===o.children.length&&"paragraph"===o.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&o.children[0].position.start.line===o.children[0].position.end.line);return[pe(o),": ",i?Q(e,t,n):v([y(" ".repeat(4),Q(e,t,n,{processor:(e,t)=>0===t?v([h,n()]):n()})),r&&"footnoteDefinition"===r.type?h:""])]}case"table":return z(e,t,n);case"tableCell":return Q(e,t,n);case"break":return/\s/.test(t.originalText[o.position.start.offset])?[" ",d(p)]:["\\",f];case"liquidNode":return C(o.value,f);case"importExport":return[o.value,f];case"esComment":return["{/* ",o.value," */}"];case"jsx":return o.value;case"math":return["$$",f,o.value?[...C(o.value,f),f]:"","$$"];case"inlineMath":return t.originalText.slice(w(o),F(o));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(o.type)))}}function U(e,t,n,r){let i=e.getValue(),s=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[s,Q(e,t,n,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return y(" ".repeat(s.length),n());let o=" ".repeat(ue(t.tabWidth-r.length,0,3));return[o,y(o,n())]}})]}function W(e,t){let n=r();return e+" ".repeat(n>=4?0:n);function r(){let n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}function K(e,t){return $(e,t,(t=>t.ordered===e.ordered))}function $(e,t,n){let r=-1;for(let i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}function H(e,t){let n,r=Array.isArray(t)?t:[t],i=-1;for(;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function J(e,t){let n=H(e,t);return-1===n?null:e.getParentNode(n)}function G(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return f;let r="always"===n.proseWrap&&!J(e,R);return""!==t?r?c:" ":r?h:""}function z(e,t,n){let r=e.getValue(),i=[],s=e.map((e=>e.map(((e,r)=>{let s=A(n(),t).formatted,a=o(s);return i[r]=Math.max(i[r]||3,a),{text:s,width:a}}),"children")),"children"),a=p(!1);if("never"!==t.proseWrap)return[u,a];let c=p(!0);return[u,v(m(c,a))];function p(e){let t=[f(s[0],e),d(e)];return s.length>1&&t.push(l(b,s.slice(1).map((t=>f(t,e))))),l(b,t)}function d(e){return"| ".concat(i.map(((t,n)=>{let i=r.align[n],s="center"===i||"left"===i?":":"-",o="center"===i||"right"===i?":":"-",a=e?"-":"-".repeat(t-2);return"".concat(s).concat(a).concat(o)})).join(" | ")," |")}function f(e,t){return"| ".concat(e.map(((e,n)=>{let{text:s,width:o}=e;if(t)return s;let a=i[n]-o,u=r.align[n],l=0;"right"===u?l=a:"center"===u&&(l=Math.floor(a/2));let c=a-l;return"".concat(" ".repeat(l)).concat(s).concat(" ".repeat(c))})).join(" | ")," |")}}function Y(e,t,n){let r=[],i=null,{children:s}=e.getValue();for(let[o,a]of s.entries())switch(te(a)){case"start":null===i&&(i={index:o,offset:a.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:o,offset:a.position.start.offset}}),i=null)}return Q(e,t,n,{processor:(e,i)=>{if(r.length>0){let e=r[0];if(i===e.start.index)return[X(s[e.start.index]),t.originalText.slice(e.start.offset,e.end.offset),X(s[e.end.index])];if(e.start.index<i&&i<e.end.index)return!1;if(i===e.end.index)return r.shift(),!1}return n()}})}function Q(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{postprocessor:s}=i,o=i.processor||(()=>n()),a=e.getValue(),u=[];return e.each(((e,n)=>{let i=e.getValue(),s=o(e,n);if(!1!==s){let e={parts:u,prevNode:r,parentNode:a,options:t};ne(i,e)&&(u.push(f),r&&j.has(r.type)||(re(i,e)||ie(i,e))&&u.push(f),ie(i,e)&&u.push(f)),u.push(s),r=i}}),"children"),s?s(u):u}function X(e){return"html"===e.type?e.value:"paragraph"===e.type&&Array.isArray(e.children)&&1===e.children.length&&"esComment"===e.children[0].type?["{/* ",e.children[0].value," */}"]:void 0}function Z(e){let t=e;for(;a(t.children);)t=r(t.children);return t}function te(e){let t;if("html"===e.type)t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let n;"esComment"===e.type?n=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(n=e.children[0]),n&&(t=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]||"next")}function ne(e,t){let n=0===t.parts.length,r=I.includes(e.type),i="html"===e.type&&B.includes(t.parentNode.type);return!n&&!r&&!i}function re(e,t){var n,r,i;let s=(t.prevNode&&t.prevNode.type)===e.type&&V.has(e.type),o="listItem"===t.parentNode.type&&!t.parentNode.loose,a="listItem"===(null===(n=t.prevNode)||void 0===n?void 0:n.type)&&t.prevNode.loose,u="next"===te(t.prevNode),l="html"===e.type&&"html"===(null===(r=t.prevNode)||void 0===r?void 0:r.type)&&t.prevNode.position.end.line+1===e.position.start.line,c="html"===e.type&&"listItem"===t.parentNode.type&&"paragraph"===(null===(i=t.prevNode)||void 0===i?void 0:i.type)&&t.prevNode.position.end.line+1===e.position.start.line;return a||!(s||o||u||l||c)}function ie(e,t){let n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function se(e){let t=J(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}function oe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[" ",...Array.isArray(t)?t:[t]];return new RegExp(n.map((e=>"\\".concat(e))).join("|")).test(e)?"<".concat(e,">"):e}function ae(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+ae(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");let n=e.split("'").length-1,r=e.split('"').length-1,i=n>r?'"':r>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}function ue(e,t,n){return e<t?t:e>n?n:e}function le(e){let t=Number(e.getName());return 0!==t&&"next"===te(e.getParentNode().children[t-1])}function ce(e){return"[".concat(n(e.label),"]")}function pe(e){return"[^".concat(e.label,"]")}t.exports={preprocess:T,print:q,embed:S,massageAstNode:N,hasPrettierIgnore:le,insertPragma:x}}}),_i=F({"src/language-markdown/options.js"(e,t){L();var n=_r();t.exports={proseWrap:n.proseWrap,singleQuote:n.singleQuote}}}),ki=F({"src/language-markdown/parsers.js"(){L()}}),Li=F({"node_modules/linguist-languages/data/Markdown.json"(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),Oi=F({"src/language-markdown/index.js"(e,t){L();var n=ln(),r=Ni(),i=_i(),s=ki(),o=[n(Li(),(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter((e=>".mdx"!==e))}))),n(Li(),(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))],a={mdast:r};t.exports={languages:o,options:i,printers:a,parsers:s}}}),Pi=F({"src/language-html/clean.js"(e,t){L();var{isFrontMatterNode:n}=Ae(),r=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function i(e,t){if("text"===e.type||"comment"===e.type||n(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}i.ignoredProperties=r,t.exports=i}}),Ii=F({"src/language-html/constants.evaluate.js"(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",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",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"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"}}}),Bi=F({"src/language-html/utils/is-unknown-namespace.js"(e,t){function n(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}L(),t.exports=n}}),Mi=F({"src/language-html/utils/index.js"(e,t){L();var{inferParserByLanguage:n,isFrontMatterNode:r}=Ae(),{builders:{line:i,hardline:s,join:o},utils:{getDocParts:a,replaceTextEndOfLine:u}}=ee(),{CSS_DISPLAY_TAGS:l,CSS_DISPLAY_DEFAULT:c,CSS_WHITE_SPACE_TAGS:p,CSS_WHITE_SPACE_DEFAULT:d}=Ii(),f=Bi(),h=new Set(["\t","\n","\f","\r"," "]),m=e=>e.replace(/^[\t\n\f\r ]+/,""),g=e=>e.replace(/[\t\n\f\r ]+$/,""),y=e=>m(g(e)),D=e=>e.replace(/^[\t\f\r ]*\n/g,""),v=e=>D(g(e)),b=e=>e.split(/[\t\n\f\r ]+/),E=e=>e.match(/^[\t\n\f\r ]*/)[0],C=e=>{let[,t,n,r]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:r,text:n}},A=e=>/[\t\n\f\r ]/.test(e);function S(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||re(e)&&e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))||me(e,t)&&!T(e)&&"interpolation"!==e.type)}function x(e){return!("attribute"===e.type||!e.parent||!e.prev)&&w(e.prev)}function w(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function F(e){return"text"===e.type||"comment"===e.type}function T(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||f(e)&&("script"===e.name||"style"===e.name))}function N(e){return e.children&&!T(e)}function _(e){return T(e)||"interpolation"===e.type||k(e)}function k(e){return ae(e).startsWith("pre")}function O(e,t){let n=i();return n&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:n;function i(){return!r(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!re(e.parent)||!(!e.prev&&("root"===e.parent.type||re(e)&&e.parent||T(e.parent)||fe(e.parent,t)||!Q(e.parent.cssDisplay))||e.prev&&!te(e.prev.cssDisplay))))}}function P(e,t){return!r(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!re(e.parent)||!(!e.next&&("root"===e.parent.type||re(e)&&e.parent||T(e.parent)||fe(e.parent,t)||!X(e.parent.cssDisplay))||e.next&&!Z(e.next.cssDisplay))))}function I(e){return ne(e.cssDisplay)&&!T(e)}function B(e){return r(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function M(e){return j(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>H(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&U(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||W(e.lastChild))}function j(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function R(e){return K(e)||e.prev&&V(e.prev)||q(e)}function V(e){return K(e)||"element"===e.type&&"br"===e.fullName||q(e)}function q(e){return U(e)&&W(e)}function U(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function W(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function K(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function $(e){return e.lastChild?$(e.lastChild):e}function H(e){return e.children&&e.children.some((e=>"text"!==e.type))}function J(e){let{type:t,lang:n}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===n?"babel":"application/x-typescript"===t||"ts"===n||"tsx"===n?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))||"speculationrules"===t?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function G(e,t){let{lang:r}=e.attrMap;return r&&"postcss"!==r&&"css"!==r?"scss"===r?"scss":"less"===r?"less":"stylus"===r?n("stylus",t):void 0:"css"}function z(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?G(e,t):t&&me(e,t)?J(e)||!("src"in e.attrMap)&&n(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?J(e):"babel"}function Y(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Q(e){return!Y(e)&&"inline-block"!==e}function X(e){return!Y(e)&&"inline-block"!==e}function Z(e){return!Y(e)}function te(e){return!Y(e)}function ne(e){return!Y(e)&&"inline-block"!==e}function re(e){return ae(e).startsWith("pre")}function ie(e,t){let n=0;for(let r=e.stack.length-1;r>=0;r--){let i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n}function se(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function oe(e,t){if(e.prev&&"comment"===e.prev.type){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!se(e,(e=>"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"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||n||f(e))&&l[e.name]||c}}function ae(e){return"element"===e.type&&(!e.namespace||f(e))&&p[e.name]||d}function ue(e){let t=Number.POSITIVE_INFINITY;for(let n of e.split("\n")){if(0===n.length)continue;if(!h.has(n[0]))return 0;let e=E(n).length;n.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}function le(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue(e);return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")}function ce(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function pe(e){return e.replace(/'/g,"'").replace(/"/g,'"')}var de=new Set(["template","style","script"]);function fe(e,t){return he(e,t)&&!de.has(e.fullName)}function he(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function me(e,t){return he(e,t)&&(fe(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function ge(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}function ye(e,t){let n=e.parent;if(!he(n,t))return!1;let r=n.fullName,i=e.fullName;return"script"===r&&"setup"===i||"style"===r&&"vars"===i}function De(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?u(t):u(le(v(t)),s):a(o(i,b(t)))}function ve(e,t){return he(e,t)&&"script"===e.name}t.exports={htmlTrim:y,htmlTrimPreserveIndentation:v,hasHtmlWhitespace:A,getLeadingAndTrailingHtmlWhitespace:C,canHaveInterpolation:N,countChars:ce,countParents:ie,dedentString:le,forceBreakChildren:j,forceBreakContent:M,forceNextEmptyLine:B,getLastDescendant:$,getNodeCssStyleDisplay:oe,getNodeCssStyleWhiteSpace:ae,hasPrettierIgnore:x,inferScriptParser:z,isVueCustomBlock:fe,isVueNonHtmlBlock:me,isVueScriptTag:ve,isVueSlotAttribute:ge,isVueSfcBindingsAttribute:ye,isVueSfcBlock:he,isDanglingSpaceSensitiveNode:I,isIndentationSensitiveNode:k,isLeadingSpaceSensitiveNode:O,isPreLikeNode:re,isScriptLikeTag:T,isTextLikeNode:F,isTrailingSpaceSensitiveNode:P,isWhitespaceSensitiveNode:_,isUnknownNamespace:f,preferHardlineAsLeadingSpaces:R,preferHardlineAsTrailingSpaces:V,shouldPreserveContent:S,unescapeQuoteEntities:pe,getTextValueParts:De}}}),ji=F({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP}function n(t){return e.$0<=t&&t<=e.$9}function r(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z}function i(t){return t>=e.$a&&t<=e.$f||t>=e.$A&&t<=e.$F||n(t)}function s(t){return t===e.$LF||t===e.$CR}function o(t){return e.$0<=t&&t<=e.$7}L(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=t,e.isDigit=n,e.isAsciiLetter=r,e.isAsciiHexDigit=i,e.isNewLine=s,e.isOctalDigit=o}}),Ri=F({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,n){this.filePath=e,this.name=t,this.members=n}assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}};e.StaticSymbol=t;var n=class{constructor(){this.cache=new Map}get(e,n,r){let i=(r=r||[]).length?".".concat(r.join(".")):"",s='"'.concat(e,'".').concat(n).concat(i),o=this.cache.get(s);return o||(o=new t(e,n,r),this.cache.set(s,o)),o}};e.StaticSymbolCache=n}}),Vi=F({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function n(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function r(e,t){return s(e,":",t)}function i(e,t){return s(e,".",t)}function s(e,t,n){let r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function o(e,t,n){return Array.isArray(e)?t.visitArray(e,n):D(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}function a(e){return null!=e}function u(e){return void 0===e?null:e}e.dashCaseToCamelCase=n,e.splitAtColon=r,e.splitAtPeriod=i,e.visitValue=o,e.isDefined=a,e.noUndefined=u;var l=class{visitArray(e,t){return e.map((e=>o(e,this,t)))}visitStringMap(e,t){let n={};return Object.keys(e).forEach((r=>{n[r]=o(e[r],this,t)})),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}};function c(e){throw new Error("Internal Error: ".concat(e))}function p(e,t){let n=Error(e);return n[d]=!0,t&&(n[f]=t),n}e.ValueTransformer=l,e.SyncAsync={assertSync:e=>{if(C(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>C(e)?e.then(t):t(e),all:e=>e.some(C)?Promise.all(e):e},e.error=c,e.syntaxError=p;var d="ngSyntaxError",f="ngParseErrors";function h(e){return e[d]}function m(e){return e[f]||[]}function g(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}e.isSyntaxError=h,e.getParseErrors=m,e.escapeRegExp=g;var y=Object.getPrototypeOf({});function D(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===y}function v(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function b(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(b).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);if(!e.toString)return"object";let t=e.toString();if(null==t)return""+t;let n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function E(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function C(e){return!!e&&"function"==typeof e.then}e.utf8Encode=v,e.stringify=b,e.resolveForwardRef=E,e.isPromise=C;var A=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};e.Version=A;var S=typeof window<"u"&&window,x=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,w=typeof globalThis<"u"&&globalThis||S||x;e.global=w}}),qi=F({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ri(),n=Vi(),r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=i;var s,o,a=0;function u(e){if(!e||!e.reference)return null;let r=e.reference;if(r instanceof t.StaticSymbol)return r.name;if(r.__anonymousType)return r.__anonymousType;let s=n.stringify(r);return s.indexOf("(")>=0?(s="anonymous_".concat(a++),r.__anonymousType=s):s=i(s),s}function l(e){let r=e.reference;return r instanceof t.StaticSymbol?r.filePath:"./".concat(n.stringify(r))}function c(e,t){return"View_".concat(u({reference:e}),"_").concat(t)}function p(e){return"RenderType_".concat(u({reference:e}))}function d(e){return"HostView_".concat(u({reference:e}))}function f(e){return"".concat(u({reference:e}),"NgFactory")}function h(e){return null!=e.value?i(e.value):u(e.identifier)}function m(e){return null!=e.identifier?e.identifier.reference:e.value}e.identifierName=u,e.identifierModuleUrl=l,e.viewClassName=c,e.rendererTypeName=p,e.hostViewClassName=d,e.componentFactoryName=f,(o=s=e.CompileSummaryKind||(e.CompileSummaryKind={}))[o.Pipe=0]="Pipe",o[o.Directive=1]="Directive",o[o.NgModule=2]="NgModule",o[o.Injectable=3]="Injectable",e.tokenName=h,e.tokenReference=m;var g=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=A(t),this.styleUrls=A(n)}};e.CompileStylesheetMetadata=g;var y=class{constructor(e){let{encapsulation:t,template:n,templateUrl:r,htmlAst:i,styles:s,styleUrls:o,externalStylesheets:a,animations:u,ngContentSelectors:l,interpolation:c,isInline:p,preserveWhitespaces:d}=e;if(this.encapsulation=t,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=A(s),this.styleUrls=A(o),this.externalStylesheets=A(a),this.animations=u?x(u):[],this.ngContentSelectors=l||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=p,this.preserveWhitespaces=d}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=y;var D=class{static create(e){let{isHost:t,type:i,isComponent:s,selector:o,exportAs:a,changeDetection:u,inputs:l,outputs:c,host:p,providers:d,viewProviders:f,queries:h,guards:m,viewQueries:g,entryComponents:y,template:v,componentViewType:b,rendererType:E,componentFactory:C}=e,A={},S={},x={};null!=p&&Object.keys(p).forEach((e=>{let t=p[e],n=e.match(r);null===n?x[e]=t:null!=n[1]?S[n[1]]=t:null!=n[2]&&(A[n[2]]=t)}));let w={};null!=l&&l.forEach((e=>{let t=n.splitAtColon(e,[e,e]);w[t[0]]=t[1]}));let F={};return null!=c&&c.forEach((e=>{let t=n.splitAtColon(e,[e,e]);F[t[0]]=t[1]})),new D({isHost:t,type:i,isComponent:!!s,selector:o,exportAs:a,changeDetection:u,inputs:w,outputs:F,hostListeners:A,hostProperties:S,hostAttributes:x,providers:d,viewProviders:f,queries:h,guards:m,viewQueries:g,entryComponents:y,template:v,componentViewType:b,rendererType:E,componentFactory:C})}constructor(e){let{isHost:t,type:n,isComponent:r,selector:i,exportAs:s,changeDetection:o,inputs:a,outputs:u,hostListeners:l,hostProperties:c,hostAttributes:p,providers:d,viewProviders:f,queries:h,guards:m,viewQueries:g,entryComponents:y,template:D,componentViewType:v,rendererType:b,componentFactory:E}=e;this.isHost=!!t,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=s,this.changeDetection=o,this.inputs=a,this.outputs=u,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=p,this.providers=A(d),this.viewProviders=A(f),this.queries=A(h),this.guards=m,this.viewQueries=A(g),this.entryComponents=A(y),this.template=D,this.componentViewType=v,this.rendererType=b,this.componentFactory=E}toSummary(){return{summaryKind:s.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=D;var v=class{constructor(e){let{type:t,name:n,pure:r}=e;this.type=t,this.name=n,this.pure=!!r}toSummary(){return{summaryKind:s.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompilePipeMetadata=v;var b=class{};e.CompileShallowModuleMetadata=b;var E=class{constructor(e){let{type:t,providers:n,declaredDirectives:r,exportedDirectives:i,declaredPipes:s,exportedPipes:o,entryComponents:a,bootstrapComponents:u,importedModules:l,exportedModules:c,schemas:p,transitiveModule:d,id:f}=e;this.type=t||null,this.declaredDirectives=A(r),this.exportedDirectives=A(i),this.declaredPipes=A(s),this.exportedPipes=A(o),this.providers=A(n),this.entryComponents=A(a),this.bootstrapComponents=A(u),this.importedModules=A(l),this.exportedModules=A(c),this.schemas=A(p),this.id=f||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:s.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};e.CompileNgModuleMetadata=E;var C=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function A(e){return e||[]}e.TransitiveCompileNgModuleMetadata=C;var S=class{constructor(e,t){let{useClass:n,useValue:r,useExisting:i,useFactory:s,deps:o,multi:a}=t;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=s||null,this.dependencies=o||null,this.multi=!!a}};function x(e){return e.reduce(((e,t)=>{let n=Array.isArray(t)?x(t):t;return e.concat(n)}),[])}function w(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function F(e,n,r){let i;return i=r.isInline?n.type.reference instanceof t.StaticSymbol?"".concat(n.type.reference.filePath,".").concat(n.type.reference.name,".html"):"".concat(u(e),"/").concat(u(n.type),".html"):r.templateUrl,n.type.reference instanceof t.StaticSymbol?i:w(i)}function T(e,t){let n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return w("css/".concat(t).concat(r,".ngstyle.js"))}function N(e){return w("".concat(u(e.type),"/module.ngfactory.js"))}function _(e,t){return w("".concat(u(e),"/").concat(u(t.type),".ngfactory.js"))}e.ProviderMeta=S,e.flatten=x,e.templateSourceUrl=F,e.sharedStylesheetJitUrl=T,e.ngModuleJitUrl=N,e.templateJitUrl=_}}),Ui=F({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){L(),Object.defineProperty(e,"__esModule",{value:!0});var t=ji(),n=qi(),r=class{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}moveBy(e){let n=this.file.content,i=n.length,s=this.offset,o=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,n.charCodeAt(s)==t.$LF){o--;let e=n.substr(0,s-1).lastIndexOf(String.fromCharCode(t.$LF));a=e>0?s-e:s}else a--;for(;s<i&&e>0;){let r=n.charCodeAt(s);s++,e--,r==t.$LF?(o++,a=0):a++}return new r(this.file,s,o,a)}getContext(e,t){let n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let i=r,s=0,o=0;for(;s<e&&r>0&&(r--,s++,"\n"!=n[r]||++o!=t););for(s=0,o=0;s<e&&i<n.length-1&&(i++,s++,"\n"!=n[i]||++o!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}};e.ParseLocation=r;var i=class{constructor(e,t){this.content=e,this.url=t}};e.ParseSourceFile=i;var s,o,a=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new r(new i("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(o=s=e.ParseErrorLevel||(e.ParseErrorLevel={}))[o.WARNING=0]="WARNING",o[o.ERROR=1]="ERROR";var u=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.ERROR;this.span=e,this.msg=t,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(s[this.level]," ->]").concat(e.after,'")'):this.msg}toString(){let e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}};function l(e,t){let s=n.identifierModuleUrl(t),o=null!=s?"in ".concat(e," ").concat(n.identifierName(t)," in ").concat(s):"in ".concat(e," ").concat(n.identifierName(t)),u=new i("",o);return new a(new r(u,-1,-1,-1),new r(u,-1,-1,-1))}function c(e,t,n){let s="in ".concat(e," ").concat(t," in ").concat(n),o=new i("",s);return new a(new r(o,-1,-1,-1),new r(o,-1,-1,-1))}e.ParseError=u,e.typeSourceSpan=l,e.r3JitTypeSourceSpan=c}}),Wi=F({"src/language-html/print-preprocess.js"(e,t){L();var{ParseSourceSpan:n}=Ui(),{htmlTrim:r,getLeadingAndTrailingHtmlWhitespace:i,hasHtmlWhitespace:s,canHaveInterpolation:o,getNodeCssStyleDisplay:a,isDanglingSpaceSensitiveNode:u,isIndentationSensitiveNode:l,isLeadingSpaceSensitiveNode:c,isTrailingSpaceSensitiveNode:p,isWhitespaceSensitiveNode:d,isVueScriptTag:f}=Mi(),h=[g,y,v,E,C,x,A,S,w,b,F];function m(e,t){for(let n of h)n(e,t);return e}function g(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))}function y(e){let 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;e.walk((e=>{if(e.children)for(let r=0;r<e.children.length;r++){let i=e.children[r];if(!t(i))continue;let s=i.prev,o=i.firstChild;e.removeChild(s),r--;let a=new n(s.sourceSpan.start,o.sourceSpan.end),u=new n(a.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=u,i.startSourceSpan=a,i.removeChild(o)}}))}function D(e,t,r){e.walk((e=>{if(e.children)for(let i=0;i<e.children.length;i++){let s=e.children[i];if("text"!==s.type&&!t(s))continue;"text"!==s.type&&(s.type="text",s.value=r(s));let o=s.prev;!o||"text"!==o.type||(o.value+=s.value,o.sourceSpan=new n(o.sourceSpan.start,s.sourceSpan.end),e.removeChild(s),i--)}}))}function v(e){return D(e,(e=>"cdata"===e.type),(e=>"<![CDATA[".concat(e.value,"]]>")))}function b(e){let t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!s(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;e.walk((e=>{if(e.children)for(let r=0;r<e.children.length;r++){let i=e.children[r];if(!t(i))continue;let s=i.prev,o=i.next;s.value+="<".concat(i.rawName,">")+i.firstChild.value+"</".concat(i.rawName,">")+o.value,s.sourceSpan=new n(s.sourceSpan.start,o.sourceSpan.end),s.isTrailingSpaceSensitive=o.isTrailingSpaceSensitive,s.hasTrailingSpaces=o.hasTrailingSpaces,e.removeChild(i),r--,e.removeChild(o)}}))}function E(e,t){if("html"===t.parser)return;let r=/{{(.+?)}}/s;e.walk((e=>{if(o(e))for(let t of e.children){if("text"!==t.type)continue;let i=t.sourceSpan.start,s=null,o=t.value.split(r);for(let r=0;r<o.length;r++,i=s){let a=o[r];r%2!==0?(s=i.moveBy(a.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new n(i,s),children:0===a.length?[]:[{type:"text",value:a,sourceSpan:new n(i.moveBy(2),s.moveBy(-2))}]})):(s=i.moveBy(a.length),a.length>0&&e.insertChildBefore(t,{type:"text",value:a,sourceSpan:new n(i,s)}))}e.removeChild(t)}}))}function C(e){e.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===r(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=d(e),s=l(e);if(!t)for(let r=0;r<e.children.length;r++){let t=e.children[r];if("text"!==t.type)continue;let{leadingWhitespace:s,text:o,trailingWhitespace:a}=i(t.value),u=t.prev,l=t.next;o?(t.value=o,t.sourceSpan=new n(t.sourceSpan.start.moveBy(s.length),t.sourceSpan.end.moveBy(-a.length)),s&&(u&&(u.hasTrailingSpaces=!0),t.hasLeadingSpaces=!0),a&&(t.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(t),r--,(s||a)&&(u&&(u.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=s}))}function A(e){e.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))}function S(e,t){e.walk((e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))}function x(e,t){e.walk((e=>{e.cssDisplay=a(e,t)}))}function w(e,t){e.walk((e=>{let{children:n}=e;if(n){if(0===n.length)return void(e.isDanglingSpaceSensitive=u(e));for(let e of n)e.isLeadingSpaceSensitive=c(e,t),e.isTrailingSpaceSensitive=p(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===n.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}}))}function F(e,t){if("vue"===t.parser){let n=e.children.find((e=>f(e,t)));if(!n)return;let{lang:r}=n.attrMap;("ts"===r||"typescript"===r)&&(t.__should_parse_vue_template_with_ts=!0)}}t.exports=m}}),Ki=F({"src/language-html/pragma.js"(e,t){function n(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function r(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}L(),t.exports={hasPragma:n,insertPragma:r}}}),$i=F({"src/language-html/loc.js"(e,t){function n(e){return e.sourceSpan.start.offset}function r(e){return e.sourceSpan.end.offset}L(),t.exports={locStart:n,locEnd:r}}}),Hi=F({"src/language-html/print/tag.js"(e,t){L();var n=en(),{isNonEmptyArray:r}=Ae(),{builders:{indent:i,join:s,line:o,softline:a,hardline:u},utils:{replaceTextEndOfLine:l}}=ee(),{locStart:c,locEnd:p}=$i(),{isTextLikeNode:d,getLastDescendant:f,isPreLikeNode:h,hasPrettierIgnore:m,shouldPreserveContent:g,isVueSfcBlock:y}=Mi();function D(e,t){return[e.isSelfClosing?"":v(e,t),b(e,t)]}function v(e,t){return e.lastChild&&T(e.lastChild)?"":[E(e,t),A(e,t)]}function b(e,t){return(e.next?w(e.next):F(e.parent))?"":[S(e,t),C(e,t)]}function E(e,t){return F(e)?S(e.lastChild,t):""}function C(e,t){return T(e)?A(e.parent,t):N(e)?j(e.next):""}function A(e,t){if(n(!e.isSelfClosing),x(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function S(e,t){if(x(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function x(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(m(e)||g(e.parent,t))}function w(e){return e.prev&&"docType"!==e.prev.type&&!d(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function F(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!d(f(e.lastChild))&&!h(e)}function T(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&d(f(e))}function N(e){return e.next&&!d(e.next)&&d(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function _(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!t&&(!t[1]||t[1].split(/\s+/))}function k(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function O(e,t,n){let d=e.getValue();if(!r(d.attrs))return d.isSelfClosing?" ":"";let f=d.prev&&"comment"===d.prev.type&&_(d.prev.value),h="boolean"==typeof f?()=>f:Array.isArray(f)?e=>f.includes(e.rawName):()=>!1,m=e.map((e=>{let r=e.getValue();return h(r)?l(t.originalText.slice(c(r),p(r))):n()}),"attrs"),g="element"===d.type&&"script"===d.fullName&&1===d.attrs.length&&"src"===d.attrs[0].fullName&&0===d.children.length,D=t.singleAttributePerLine&&d.attrs.length>1&&!y(d,t)?u:o,v=[i([g?" ":o,s(D,m)])];return d.firstChild&&k(d.firstChild)||d.isSelfClosing&&F(d.parent)||g?v.push(d.isSelfClosing?" ":""):v.push(t.bracketSameLine?d.isSelfClosing?" ":"":d.isSelfClosing?o:a),v}function P(e){return e.firstChild&&k(e.firstChild)?"":R(e)}function I(e,t,n){let r=e.getValue();return[B(r,t),O(e,t,n),r.isSelfClosing?"":P(r)]}function B(e,t){return e.prev&&N(e.prev)?"":[M(e,t),j(e)]}function M(e,t){return k(e)?R(e.parent):w(e)?S(e.prev,t):""}function j(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function R(e){switch(n(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}t.exports={printClosingTag:D,printClosingTagStart:v,printClosingTagStartMarker:A,printClosingTagEndMarker:S,printClosingTagSuffix:C,printClosingTagEnd:b,needsToBorrowLastChildClosingTagEndMarker:F,needsToBorrowParentClosingTagStartMarker:T,needsToBorrowPrevClosingTagEndMarker:w,printOpeningTag:I,printOpeningTagStart:B,printOpeningTagPrefix:M,printOpeningTagStartMarker:j,printOpeningTagEndMarker:R,needsToBorrowNextOpeningTagStartMarker:N,needsToBorrowParentOpeningTagEndMarker:k}}}),Ji=F({"node_modules/parse-srcset/src/parse-srcset.js"(n,o){var a;L(),a=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var n,r=t.exec(e.substring(y));if(r)return n=r[0],y+=n.length,n}for(var s,o,a,u,l,c=e.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,y=0,D=[];;){if(i(d),y>=c)return D;s=i(f),o=[],","===s.slice(-1)?(s=s.replace(h,""),b()):v()}function v(){for(i(p),a="",u="in descriptor";;){if(l=e.charAt(y),"in descriptor"===u)if(r(l))a&&(o.push(a),a="",u="after descriptor");else{if(","===l)return y+=1,a&&o.push(a),void b();if("("===l)a+=l,u="in parens";else{if(""===l)return a&&o.push(a),void b();a+=l}}else if("in parens"===u)if(")"===l)a+=l,u="in descriptor";else{if(""===l)return o.push(a),void b();a+=l}else if("after descriptor"===u&&!r(l)){if(""===l)return void b();u="in descriptor",y-=1}y+=1}}function b(){var t,r,i,a,u,l,c,p,d,f=!1,h={};for(a=0;a<o.length;a++)l=(u=o[a])[u.length-1],c=u.substring(0,u.length-1),p=parseInt(c,10),d=parseFloat(c),m.test(c)&&"w"===l?((t||r)&&(f=!0),0===p?f=!0:t=p):g.test(c)&&"x"===l?((t||r||i)&&(f=!0),d<0?f=!0:r=d):m.test(c)&&"h"===l?((i||r)&&(f=!0),0===p?f=!0:i=p):f=!0;f?n&&n.error&&n.error("Invalid srcset descriptor found in '"+e+"' at '"+u+"'."):(h.url=s,t&&(h.w=t),r&&(h.d=r),i&&(h.h=i),D.push(h))}}},i=[],void 0===(s="function"===typeof(r=a)?r.apply(t,i):r)||(e.exports=s)}}),Gi=F({"src/language-html/syntax-attribute.js"(e,t){L();var n=Ji(),{builders:{ifBreak:r,join:i,line:s}}=ee();function o(e){let t=n(e,{logger:{error(e){throw new Error(e)}}}),o=t.some((e=>{let{w:t}=e;return t})),a=t.some((e=>{let{h:t}=e;return t}));if(o+a+t.some((e=>{let{d:t}=e;return t}))>1)throw new Error("Mixed descriptor in srcset is not supported");let u=o?"w":a?"h":"d",l=o?"w":a?"h":"x",c=e=>Math.max(...e),p=t.map((e=>e.url)),d=c(p.map((e=>e.length))),f=t.map((e=>e[u])).map((e=>e?e.toString():"")),h=f.map((e=>{let t=e.indexOf(".");return-1===t?e.length:t})),m=c(h);return i([",",s],p.map(((e,t)=>{let n=[e],i=f[t];if(i){let s=d-e.length+1,o=m-h[t],a=" ".repeat(s+o);n.push(r(a," "),i+l)}return n})))}function a(e){return e.trim().split(/\s+/).join(" ")}t.exports={printImgSrcset:o,printClassNames:a}}}),zi=F({"src/language-html/syntax-vue.js"(e,t){L();var{builders:{group:n}}=ee();function r(e,t){let{left:r,operator:s,right:o}=i(e);return[n(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",s," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function i(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,i=e.match(t);if(!i)return;let s={};if(s.for=i[3].trim(),!s.for)return;let o=i[1].trim().replace(r,""),a=o.match(n);a?(s.alias=o.replace(n,""),s.iterator1=a[1].trim(),a[2]&&(s.iterator2=a[2].trim())):s.alias=o;let u=[s.alias,s.iterator1,s.iterator2];return u.some(((e,t)=>!e&&(0===t||u.slice(t+1).some(Boolean))))?void 0:{left:u.filter(Boolean).join(","),operator:i[2],right:s.for}}function s(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}function o(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,n=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,r=e.trim();return t.test(r)||n.test(r)}t.exports={isVueEventBindingExpression:o,printVueFor:r,printVueBindings:s}}}),Yi=F({"src/language-html/get-node-content.js"(e,t){L();var{needsToBorrowParentClosingTagStartMarker:n,printClosingTagStartMarker:r,needsToBorrowLastChildClosingTagEndMarker:i,printClosingTagEndMarker:s,needsToBorrowParentOpeningTagEndMarker:o,printOpeningTagEndMarker:a}=Hi();function u(e,t){let u=e.startSourceSpan.end.offset;e.firstChild&&o(e.firstChild)&&(u-=a(e).length);let l=e.endSourceSpan.start.offset;return e.lastChild&&n(e.lastChild)?l+=r(e,t).length:i(e)&&(l-=s(e.lastChild,t).length),t.originalText.slice(u,l)}t.exports=u}}),Qi=F({"src/language-html/embed.js"(e,t){L();var{builders:{breakParent:n,group:r,hardline:i,indent:s,line:o,fill:a,softline:u},utils:{mapDoc:l,replaceTextEndOfLine:c}}=ee(),p=qr(),{printClosingTag:d,printClosingTagSuffix:f,needsToBorrowPrevClosingTagEndMarker:h,printOpeningTagPrefix:m,printOpeningTag:g}=Hi(),{printImgSrcset:y,printClassNames:D}=Gi(),{printVueFor:v,printVueBindings:b,isVueEventBindingExpression:E}=zi(),{isScriptLikeTag:C,isVueNonHtmlBlock:A,inferScriptParser:S,htmlTrimPreserveIndentation:x,dedentString:w,unescapeQuoteEntities:F,isVueSlotAttribute:T,isVueSfcBindingsAttribute:N,getTextValueParts:_}=Mi(),k=Yi();function O(e,t,n){let i=t=>new RegExp(t.join("|")).test(e.fullName),l=()=>F(e.value),p=!1,d=(e,t)=>{let 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))&&(p=!0)},f=e=>r(e),h=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r([s([u,e]),t?u:""])},m=e=>p?f(e):h(e),g=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:d,__embeddedInHtml:!0},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return h(y(l()));if("class"===e.fullName&&!n.parentParser){let e=l();if(!e.includes("{{"))return D(e)}if("style"===e.fullName&&!n.parentParser){let e=l();if(!e.includes("{{"))return h(g(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return v(l(),g);if(T(e)||N(e,n))return b(l(),g);let t=["^:","^v-bind:"],r=["^v-"];if(i(["^@","^v-on:"])){let e=l(),t=E(e)?"__js_expression":n.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return m(g(e,{parser:t}))}if(i(t))return m(g(l(),{parser:"__vue_expression"}));if(i(r))return m(g(l(),{parser:"__js_expression"}))}if("angular"===n.parser){let t=(e,t)=>g(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"})),n=["^\\*"],u=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],p=["^i18n(-.+)?$"];if(i(["^\\(.+\\)$","^on-"]))return m(t(l(),{parser:"__ng_action"}));if(i(u))return m(t(l(),{parser:"__ng_binding"}));if(i(p)){let t=l().trim();return h(a(_(e,t)),!t.includes("@@"))}if(i(n))return m(t(l(),{parser:"__ng_directive"}));let d=/{{(.+?)}}/s,f=l();if(d.test(f)){let e=[];for(let[n,i]of f.split(d).entries())if(n%2===0)e.push(c(i));else try{e.push(r(["{{",s([o,t(i,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),o,"}}"]))}catch{e.push("{{",c(i),"}}")}return r(e)}}return null}function P(e,t,a,u){let c=e.getValue();switch(c.type){case"element":if(C(c)||"interpolation"===c.type)return;if(!c.isSelfClosing&&A(c,u)){let n=S(c,u);if(!n)return;let s=k(c,u),o=/^\s*$/.test(s),l="";return o||(l=a(x(s),{parser:n,__embeddedInHtml:!0},{stripTrailingHardline:!0}),o=""===l),[m(c,u),r(g(e,u,t)),o?"":i,l,o?"":i,d(c,u),f(c,u)]}break;case"text":if(C(c.parent)){let e=S(c.parent,u);if(e){let t="markdown"===e?w(c.value.replace(/^[^\S\n]*\n/,"")):c.value,r={parser:e,__embeddedInHtml:!0};if("html"===u.parser&&"babel"===e){let e="script",{attrMap:t}=c.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),r.__babelSourceType=e}return[n,m(c,u),a(t,r,{stripTrailingHardline:!0}),f(c,u)]}}else if("interpolation"===c.parent.type){let e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===u.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===u.parser?e.parser=u.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":e.parser="__js_expression",[s([o,a(c.value,e,{stripTrailingHardline:!0})]),c.parent.next&&h(c.parent.next)?" ":o]}break;case"attribute":{if(!c.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];if("lwc"===u.parser&&/^{.*}$/s.test(u.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];let e=O(c,((e,t)=>a(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})),u);if(e)return[c.rawName,'="',r(l(e,(e=>"string"==typeof e?e.replace(/"/g,"""):e))),'"'];break}case"front-matter":return p(c,a)}}t.exports=P}}),Xi=F({"src/language-html/print/children.js"(e,t){L();var{builders:{breakParent:n,group:r,ifBreak:i,line:s,softline:o,hardline:a},utils:{replaceTextEndOfLine:u}}=ee(),{locStart:l,locEnd:c}=$i(),{forceBreakChildren:p,forceNextEmptyLine:d,isTextLikeNode:f,hasPrettierIgnore:h,preferHardlineAsLeadingSpaces:m}=Mi(),{printOpeningTagPrefix:g,needsToBorrowNextOpeningTagStartMarker:y,printOpeningTagStartMarker:D,needsToBorrowPrevClosingTagEndMarker:v,printClosingTagEndMarker:b,printClosingTagSuffix:E,needsToBorrowParentClosingTagStartMarker:C}=Hi();function A(e,t,n){let r=e.getValue();return h(r)?[g(r,t),...u(t.originalText.slice(l(r)+(r.prev&&y(r.prev)?D(r).length:0),c(r)-(r.next&&v(r.next)?b(r,t).length:0))),E(r,t)]:n()}function S(e,t){return f(e)&&f(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?m(t)?a:s:"":m(t)?a:o:y(e)&&(h(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&v(t)?"":!t.isLeadingSpaceSensitive||m(t)||v(t)&&e.lastChild&&C(e.lastChild)&&e.lastChild.lastChild&&C(e.lastChild.lastChild)?a:t.hasLeadingSpaces?s:o}function x(e,t,s){let u=e.getValue();if(p(u))return[n,...e.map((e=>{let n=e.getValue(),r=n.prev?S(n.prev,n):"";return[r?[r,d(n.prev)?a:""]:"",A(e,t,s)]}),"children")];let l=u.children.map((()=>Symbol("")));return e.map(((e,n)=>{let u=e.getValue();if(f(u)){if(u.prev&&f(u.prev)){let n=S(u.prev,u);if(n)return d(u.prev)?[a,a,A(e,t,s)]:[n,A(e,t,s)]}return A(e,t,s)}let c=[],p=[],h=[],m=[],g=u.prev?S(u.prev,u):"",y=u.next?S(u,u.next):"";return g&&(d(u.prev)?c.push(a,a):g===a?c.push(a):f(u.prev)?p.push(g):p.push(i("",o,{groupId:l[n-1]}))),y&&(d(u)?f(u.next)&&m.push(a,a):y===a?f(u.next)&&m.push(a):h.push(y)),[...c,r([...p,r([A(e,t,s),...h],{id:l[n]})]),...m]}),"children")}t.exports={printChildren:x}}}),Zi=F({"src/language-html/print/element.js"(e,t){L();var{builders:{breakParent:n,dedentToRoot:r,group:i,ifBreak:s,indentIfBreak:o,indent:a,line:u,softline:l},utils:{replaceTextEndOfLine:c}}=ee(),p=Yi(),{shouldPreserveContent:d,isScriptLikeTag:f,isVueCustomBlock:h,countParents:m,forceBreakContent:g}=Mi(),{printOpeningTagPrefix:y,printOpeningTag:D,printClosingTagSuffix:v,printClosingTag:b,needsToBorrowPrevClosingTagEndMarker:E,needsToBorrowLastChildClosingTagEndMarker:C}=Hi(),{printChildren:A}=Xi();function S(e,t,S){let x=e.getValue();if(d(x,t))return[y(x,t),i(D(e,t,S)),...c(p(x,t)),...b(x,t),v(x,t)];let w=1===x.children.length&&"interpolation"===x.firstChild.type&&x.firstChild.isLeadingSpaceSensitive&&!x.firstChild.hasLeadingSpaces&&x.lastChild.isTrailingSpaceSensitive&&!x.lastChild.hasTrailingSpaces,F=Symbol("element-attr-group-id"),T=n=>i([i(D(e,t,S),{id:F}),n,b(x,t)]),N=e=>w?o(e,{groupId:F}):!f(x)&&!h(x,t)||"root"!==x.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?a(e):e,_=()=>w?s(l,"",{groupId:F}):x.firstChild.hasLeadingSpaces&&x.firstChild.isLeadingSpaceSensitive?u:"text"===x.firstChild.type&&x.isWhitespaceSensitive&&x.isIndentationSensitive?r(l):l,k=()=>(x.next?E(x.next):C(x.parent))?x.lastChild.hasTrailingSpaces&&x.lastChild.isTrailingSpaceSensitive?" ":"":w?s(l,"",{groupId:F}):x.lastChild.hasTrailingSpaces&&x.lastChild.isTrailingSpaceSensitive?u:("comment"===x.lastChild.type||"text"===x.lastChild.type&&x.isWhitespaceSensitive&&x.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*m(e,(e=>e.parent&&"root"!==e.parent.type)),"}$")).test(x.lastChild.value)?"":l;return 0===x.children.length?T(x.hasDanglingSpaces&&x.isDanglingSpaceSensitive?u:""):T([g(x)?n:"",N([_(),A(e,t,S)]),k()])}t.exports={printElement:S}}}),es=F({"src/language-html/printer-html.js"(e,t){L();var{builders:{fill:n,group:r,hardline:i,literalline:s},utils:{cleanDoc:o,getDocParts:a,isConcat:u,replaceTextEndOfLine:l}}=ee(),c=Pi(),{countChars:p,unescapeQuoteEntities:d,getTextValueParts:f}=Mi(),h=Wi(),{insertPragma:m}=Ki(),{locStart:g,locEnd:y}=$i(),D=Qi(),{printClosingTagSuffix:v,printClosingTagEnd:b,printOpeningTagPrefix:E,printOpeningTagStart:C}=Hi(),{printElement:A}=Zi(),{printChildren:S}=Xi();function x(e,t,c){let h=e.getValue();switch(h.type){case"front-matter":return l(h.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(h),[r(S(e,t,c)),i];case"element":case"ieConditionalComment":return A(e,t,c);case"ieConditionalStartComment":case"ieConditionalEndComment":return[C(h),b(h)];case"interpolation":return[C(h,t),...e.map(c,"children"),b(h,t)];case"text":{if("interpolation"===h.parent.type){let e=/\n[^\S\n]*$/,t=e.test(h.value),n=t?h.value.replace(e,""):h.value;return[...l(n),t?i:""]}let e=o([E(h,t),...f(h),v(h,t)]);return u(e)||"fill"===e.type?n(a(e)):e}case"docType":return[r([C(h,t)," ",h.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),b(h,t)];case"comment":return[E(h,t),...l(t.originalText.slice(g(h),y(h)),s),v(h,t)];case"attribute":{if(null===h.value)return h.rawName;let e=d(h.value),t=p(e,"'")<p(e,'"')?"'":'"';return[h.rawName,"=",t,...l('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'")),t]}default:throw new Error("Unexpected node type ".concat(h.type))}}t.exports={preprocess:h,print:x,insertPragma:m,massageAstNode:c,embed:D}}}),ts=F({"src/language-html/options.js"(e,t){L();var n=_r(),r="HTML";t.exports={bracketSameLine:n.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:r,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."}]},singleAttributePerLine:n.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:r,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),ns=F({"src/language-html/parsers.js"(){L()}}),rs=F({"node_modules/linguist-languages/data/HTML.json"(e,t){t.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),is=F({"node_modules/linguist-languages/data/Vue.json"(e,t){t.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),ss=F({"src/language-html/index.js"(e,t){L();var n=ln(),r=es(),i=ts(),s=ns(),o=[n(rs(),(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),n(rs(),(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]}))),n(rs(),(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),n(is(),(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))],a={html:r};t.exports={languages:o,printers:a,options:i,parsers:s}}}),os=F({"src/language-yaml/pragma.js"(e,t){function n(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function r(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)}function i(e){return"# @format\n\n".concat(e)}L(),t.exports={isPragma:n,hasPragma:r,insertPragma:i}}}),as=F({"src/language-yaml/loc.js"(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}L(),t.exports={locStart:n,locEnd:r}}}),us=F({"src/language-yaml/embed.js"(e,t){function n(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(r.filepath))return n(r.originalText,Object.assign(Object.assign({},r),{},{parser:"json"}))}L(),t.exports=n}}),ls=F({"src/language-yaml/utils.js"(e,t){L();var{getLast:n,isNonEmptyArray:r}=Ae();function i(e,t){let n=0,r=e.stack.length-1;for(let i=0;i<r;i++){let r=e.stack[i];s(r)&&t(r)&&n++}return n}function s(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function o(e,t,n){return t("children"in e?Object.assign(Object.assign({},e),{},{children:e.children.map((n=>o(n,t,e)))}):e,n)}function a(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function u(e,t){let n=0,r=t.length;for(let i=e.position.end.offset-1;i<r;i++){let e=t[i];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0}return!1}function l(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let n=1;n<t;n++){let t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"==typeof t&&t!==r.length-1)return!1}return!0}function c(e){return r(e.children)?c(n(e.children)):e}function p(e){return"prettier-ignore"===e.value.trim()}function d(e){let t=e.getValue();if("documentBody"===t.type){let t=e.getParentNode();return v(t.head)&&p(n(t.head.endComments))}return m(t)&&p(n(t.leadingComments))}function f(e){return!r(e.children)&&!h(e)}function h(e){return m(e)||g(e)||y(e)||D(e)||v(e)}function m(e){return r(null==e?void 0:e.leadingComments)}function g(e){return r(null==e?void 0:e.middleComments)}function y(e){return null==e?void 0:e.indicatorComment}function D(e){return null==e?void 0:e.trailingComment}function v(e){return r(null==e?void 0:e.endComments)}function b(e){let t,n=[];for(let r of e.split(/( +)/))" "!==r?" "===t?n.push(r):n.push((n.pop()||"")+r):void 0===t&&n.unshift(""),t=r;return" "===t&&n.push((n.pop()||"")+" "),""===n[0]&&(n.shift(),n.unshift(" "+(n.shift()||""))),n}function E(e,t,r){let i=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"===r.proseWrap?i.map((e=>0===e.length?[]:[e])):i.map((e=>0===e.length?[]:b(e))).reduce(((t,r,s)=>0!==s&&i[s-1].length>0&&r.length>0&&("quoteDouble"!==e||!n(n(t)).endsWith("\\"))?[...t.slice(0,-1),[...n(t),...r]]:[...t,r]),[]).map((e=>"never"===r.proseWrap?[e.join(" ")]:e))}function C(e,t){let r,{parentIndent:i,isLastDescendant:s,options:o}=t,a=e.position.start.line===e.position.end.line?"":o.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1];if(null===e.indent){let e=a.match(/^(?<leadingSpace> *)[^\n\r ]/m);r=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else r=e.indent-1+i;let u=a.split("\n").map((e=>e.slice(r)));return"preserve"===o.proseWrap||"blockLiteral"===e.type?l(u.map((e=>0===e.length?[]:[e]))):l(u.map((e=>0===e.length?[]:b(e))).reduce(((e,t,r)=>0!==r&&u[r-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(n(e))?[...e.slice(0,-1),[...n(e),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/.test(n(e))?[...e.slice(0,-1),n(e)+" "+t]:[...e,t]),[]))).map((e=>"never"===o.proseWrap?[e.join(" ")]:e)));function l(t){if("keep"===e.chomping)return 0===n(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&&!s?t.slice(0,-(r-1)):t.slice(0,-r)}}function A(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}}t.exports={getLast:n,getAncestorCount:i,isNode:s,isEmptyNode:f,isInlineNode:A,mapNode:o,defineShortcut:a,isNextLineEmpty:u,isLastDescendantNode:l,getBlockValueLineContents:C,getFlowScalarLineContents:E,getLastDescendantNode:c,hasPrettierIgnore:d,hasLeadingComments:m,hasMiddleComments:g,hasIndicatorComment:y,hasTrailingComment:D,hasEndComments:v}}}),cs=F({"src/language-yaml/print-preprocess.js"(e,t){L();var{defineShortcut:n,mapNode:r}=ls();function i(e){return r(e,s)}function s(e){switch(e.type){case"document":n(e,"head",(()=>e.children[0])),n(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":n(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":n(e,"key",(()=>e.children[0])),n(e,"value",(()=>e.children[1]))}return e}t.exports=i}}),ps=F({"src/language-yaml/print/misc.js"(e,t){L();var{builders:{softline:n,align:r}}=ee(),{hasEndComments:i,isNextLineEmpty:s,isNode:o}=ls(),a=new WeakMap;function u(e,t){let r,i=e.getValue(),o=e.stack[0];return a.has(o)?r=a.get(o):(r=new Set,a.set(o,r)),r.has(i.position.end.line)||(r.add(i.position.end.line),!s(i,t)||l(e.getParentNode()))?"":n}function l(e){return i(e)&&!o(e,["documentHead","documentBody","flowMapping","flowSequence"])}function c(e,t){return r(" ".repeat(e),t)}t.exports={alignWithSpaces:c,shouldPrintEndComments:l,printNextEmptyLine:u}}}),ds=F({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){L();var{builders:{ifBreak:n,line:r,softline:i,hardline:s,join:o}}=ee(),{isEmptyNode:a,getLast:u,hasEndComments:l}=ls(),{printNextEmptyLine:c,alignWithSpaces:p}=ps();function d(e,t,c){let d=e.getValue(),h="flowMapping"===d.type,m=h?"{":"[",g=h?"}":"]",y=i;h&&d.children.length>0&&c.bracketSpacing&&(y=r);let D=u(d.children),v=D&&"flowMappingItem"===D.type&&a(D.key)&&a(D.value);return[m,p(c.tabWidth,[y,f(e,t,c),"none"===c.trailingComma?"":n(","),l(d)?[s,o(s,e.map(t,"endComments"))]:""]),v?"":y,g]}function f(e,t,n){let i=e.getValue();return e.map(((e,s)=>[t(),s===i.children.length-1?"":[",",r,i.children[s].position.start.line!==i.children[s+1].position.start.line?c(e,n.originalText):""]]),"children")}t.exports={printFlowMapping:d,printFlowSequence:d}}}),fs=F({"src/language-yaml/print/mapping-item.js"(e,t){L();var{builders:{conditionalGroup:n,group:r,hardline:i,ifBreak:s,join:o,line:a}}=ee(),{hasLeadingComments:u,hasMiddleComments:l,hasTrailingComment:c,hasEndComments:p,isNode:d,isEmptyNode:f,isInlineNode:h}=ls(),{alignWithSpaces:m}=ps();function g(e,t,g,b,E){let{key:C,value:A}=e,S=f(C),x=f(A);if(S&&x)return": ";let w=b("key"),F=D(e)?" ":"";if(x)return"flowMappingItem"===e.type&&"flowMapping"===t.type?w:"mappingItem"!==e.type||!y(C.content,E)||c(C.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",m(2,w)]:[w,F,":"];let T=b("value");if(S)return[": ",m(2,T)];if(u(A)||!h(C.content))return["? ",m(2,w),i,o("",g.map(b,"value","leadingComments").map((e=>[e,i]))),": ",m(2,T)];if(v(C.content)&&!u(C.content)&&!l(C.content)&&!c(C.content)&&!p(C)&&!u(A.content)&&!l(A.content)&&!p(A)&&y(A.content,E))return[w,F,": ",T];let N=Symbol("mappingKey"),_=r([s("? "),r(m(2,w),{id:N})]),k=[i,": ",m(2,T)],L=[F,":"];u(A.content)||p(A)&&A.content&&!d(A.content,["mapping","sequence"])||"mapping"===t.type&&c(C.content)&&h(A.content)||d(A.content,["mapping","sequence"])&&null===A.content.tag&&null===A.content.anchor?L.push(i):A.content&&L.push(a),L.push(T);let O=m(E.tabWidth,L);return!y(C.content,E)||u(C.content)||l(C.content)||p(C)?n([[_,s(k,O,{groupId:N})]]):n([[w,O]])}function y(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 D(e){return e.key.content&&"alias"===e.key.content.type}function v(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}}t.exports=g}}),hs=F({"src/language-yaml/print/block.js"(e,t){L();var{builders:{dedent:n,dedentToRoot:r,fill:i,hardline:s,join:o,line:a,literalline:u,markAsRoot:l},utils:{getDocParts:c}}=ee(),{getAncestorCount:p,getBlockValueLineContents:d,hasIndicatorComment:f,isLastDescendantNode:h,isNode:m}=ls(),{alignWithSpaces:g}=ps();function y(e,t,y){let D=e.getValue(),v=p(e,(e=>m(e,["sequence","mapping"]))),b=h(e),E=["blockFolded"===D.type?">":"|"];null!==D.indent&&E.push(D.indent.toString()),"clip"!==D.chomping&&E.push("keep"===D.chomping?"+":"-"),f(D)&&E.push(" ",t("indicatorComment"));let C=d(D,{parentIndent:v,isLastDescendant:b,options:y}),A=[];for(let[n,p]of C.entries())0===n&&A.push(s),A.push(i(c(o(a,p)))),n!==C.length-1?A.push(0===p.length?s:l(u)):"keep"===D.chomping&&b&&A.push(r(0===p.length?s:u));return null===D.indent?E.push(n(g(y.tabWidth,A))):E.push(r(g(D.indent-1+v,A))),E}t.exports=y}}),ms=F({"src/language-yaml/printer-yaml.js"(e,t){L();var{builders:{breakParent:n,fill:r,group:i,hardline:s,join:o,line:a,lineSuffix:u,literalline:l},utils:{getDocParts:c,replaceTextEndOfLine:p}}=ee(),{isPreviousLineEmpty:d}=Ae(),{insertPragma:f,isPragma:h}=os(),{locStart:m}=as(),g=us(),{getFlowScalarLineContents:y,getLastDescendantNode:D,hasLeadingComments:v,hasMiddleComments:b,hasTrailingComment:E,hasEndComments:C,hasPrettierIgnore:A,isLastDescendantNode:S,isNode:x,isInlineNode:w}=ls(),F=cs(),{alignWithSpaces:T,printNextEmptyLine:N,shouldPrintEndComments:_}=ps(),{printFlowMapping:k,printFlowSequence:O}=ds(),P=fs(),I=hs();function B(e,t,r){let a=e.getValue(),c=[];"mappingValue"!==a.type&&v(a)&&c.push([o(s,e.map(r,"leadingComments")),s]);let{tag:f,anchor:h}=a;f&&c.push(r("tag")),f&&h&&c.push(" "),h&&c.push(r("anchor"));let g="";x(a,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!S(e)&&(g=N(e,t.originalText)),(f||h)&&(x(a,["sequence","mapping"])&&!b(a)?c.push(s):c.push(" ")),b(a)&&c.push([1===a.middleComments.length?"":s,o(s,e.map(r,"middleComments")),s]);let y=e.getParentNode();return A(e)?c.push(p(t.originalText.slice(a.position.start.offset,a.position.end.offset).trimEnd(),l)):c.push(i(M(a,y,e,t,r))),E(a)&&!x(a,["document","documentHead"])&&c.push(u(["mappingValue"!==a.type||a.content?" ":"","mappingKey"===y.type&&"mapping"===e.getParentNode(2).type&&w(a)?"":n,r("trailingComment")])),_(a)&&c.push(T("sequenceItem"===a.type?2:0,[s,o(s,e.map((e=>[d(t.originalText,e.getValue(),m)?s:"",r()]),"endComments"))])),c.push(g),c}function M(e,t,n,r,i){switch(e.type){case"root":{let{children:t}=e,r=[];n.each(((e,n)=>{let o=t[n],a=t[n+1];0!==n&&r.push(s),r.push(i()),R(o,a)?(r.push(s,"..."),E(o)&&r.push(" ",i("trailingComment"))):a&&!E(a.head)&&r.push(s,"---")}),"children");let o=D(e);return(!x(o,["blockLiteral","blockFolded"])||"keep"!==o.chomping)&&r.push(s),r}case"document":{let a=[];return"head"===V(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&a.push(i("head")),E(e.head)?a.push(["---"," ",i(["head","trailingComment"])]):a.push("---")),j(e)&&a.push(i("body")),o(s,a)}case"documentHead":return o(s,[...n.map(i,"children"),...n.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:r}=e,a="";if(t.length>0&&r.length>0){let t=D(e);x(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(a=[s,s]):a=s}return[o(s,n.map(i,"children")),a,o(s,n.map(i,"endComments"))]}case"directive":return["%",o(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return q(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{let 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)){let s="quoteDouble"===e.type?n:t;return[s,q(e.type,i,r),s]}if(i.includes(n))return[t,q(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):i,r),t];if(i.includes(t))return[n,q(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,r),n];let s=r.singleQuote?t:n;return[s,q(e.type,i,r),s]}case"blockFolded":case"blockLiteral":return I(n,i,r);case"mapping":case"sequence":return o(s,n.map(i,"children"));case"sequenceItem":return["- ",T(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return P(e,t,n,i,r);case"flowMapping":return k(n,i,r);case"flowSequence":return O(n,i,r);case"flowSequenceItem":return i("content");default:throw new Error("Unexpected node type ".concat(e.type))}}function j(e){return e.body.children.length>0||C(e.body)}function R(e,t){return E(e)||t&&(t.head.children.length>0||C(t.head))}function V(e,t,n,r){return n.children[0]===e&&/---(?:\s|$)/.test(r.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||C(e.head)||E(e.head)?"head":!R(e,t)&&!!t&&"root"}function q(e,t,n){let i=y(e,t,n);return o(s,i.map((e=>r(c(o(a,e))))))}function U(e,t){if(x(t))switch(delete t.position,t.type){case"comment":if(h(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}}t.exports={preprocess:F,embed:g,print:B,massageAstNode:U,insertPragma:f}}}),gs=F({"src/language-yaml/options.js"(e,t){L();var n=_r();t.exports={bracketSpacing:n.bracketSpacing,singleQuote:n.singleQuote,proseWrap:n.proseWrap}}}),ys=F({"src/language-yaml/parsers.js"(){L()}}),Ds=F({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),vs=F({"src/language-yaml/index.js"(e,t){L();var n=ln(),r=ms(),i=gs(),s=ys(),o=[n(Ds(),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter((e=>"yarn.lock"!==e)),".prettierrc",".stylelintrc",".lintstagedrc"]})))];t.exports={languages:o,printers:{yaml:r},options:i,parsers:s}}}),bs=F({"src/languages.js"(e,t){L(),t.exports=[Rr(),si(),fi(),bi(),Oi(),ss(),vs()]}});L();var{version:Es}=O(),Cs=an(),{getSupportInfo:As}=ge(),Ss=un(),xs=bs(),ws=ee();function Fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];let s=r[t]||{},o=s.plugins||[];return r[t]=Object.assign(Object.assign({},s),{},{plugins:[...xs,...Array.isArray(o)?o:Object.values(o)]}),e(...r)}}var Ts=Fs(Cs.formatWithCursor);f.exports={formatWithCursor:Ts,format:(e,t)=>Ts(e,t).formatted,check(e,t){let{formatted:n}=Ts(e,t);return n===e},doc:ws,getSupportInfo:Fs(As,0),version:Es,util:Ss,__debug:{parse:Fs(Cs.parse),formatAST:Fs(Cs.formatAST),formatDoc:Fs(Cs.formatDoc),printToDoc:Fs(Cs.printToDoc),printDocToString:Fs(Cs.printDocToString)}}}));return Qe()}()},133:e=>{"use strict";function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,l=o<u?o:u,c=-1,p=0;p<=l;++p){if(p===l){if(u>l){if(47===n.charCodeAt(a+p))return n.slice(a+p+1);if(0===p)return n.slice(a+p)}else o>l&&(47===e.charCodeAt(i+p)?c=p:0===p&&(c=0));break}var d=e.charCodeAt(i+p);if(d!==n.charCodeAt(a+p))break;47===d&&(c=p)}var f="";for(p=i+c+1;p<=s;++p)p!==s&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!==typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===u&&(o=!1,u=r+1),a>=0&&(l===n.charCodeAt(a)?-1===--a&&(s=r):(a=-1,s=u))}return i===s?s=u:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(s=!1,i=a+1),46===u?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,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){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,u=-1,l=!0,c=e.length-1,p=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===u&&(l=!1,u=c+1),46===i?-1===o?o=c:1!==p&&(p=1):-1!==o&&(p=-1);else if(!l){a=c+1;break}return-1===o||-1===u||0===p||1===p&&o===u-1&&o===a+1?-1!==u&&(n.base=n.name=0===a&&s?e.slice(1,u):e.slice(a,u)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,u)):(n.name=e.slice(a,o),n.base=e.slice(a,u)),n.ext=e.slice(o,u)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},166:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var s=Object.create(null);n.r(s);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(s,o),s}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(a.isErrorNoTelemetry(e))throw new a(e.message+"\n\n"+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 t(t){s(t)||e.onUnexpectedError(t)}function r(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:a.isErrorNoTelemetry(e)}}return e}const i="Canceled";function s(e){return e instanceof o||e instanceof Error&&e.name===i&&e.message===i}class o extends Error{constructor(){super(i),this.name=this.message}}Error;class a extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof a)return e;const t=new a;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class u extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,u.prototype)}}function l(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}var c;!function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield 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){let n=0;for(const r of e)yield t(r,n++)},e.concat=function*(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)yield*r},e.reduce=function(e,t,n){let r=n;for(const i of e)r=t(r,i);return r},e.slice=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return function*(){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}()},e.consume=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]}}(c||(c={}));let p=null;function d(e){return null===p||void 0===p||p.trackDisposable(e),e}function f(e){null===p||void 0===p||p.markAsDisposed(e)}function h(e,t){null===p||void 0===p||p.setParent(e,t)}function m(e){if(c.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=y((()=>m(t)));return function(e,t){if(p)for(const n of e)p.setParent(n,t)}(t,r),r}function y(e){const t=d({dispose:l((()=>{f(t),e()}))});return t}class D{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(f(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return h(e,this),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}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),h(e,null))}}D.DISABLE_DISPOSED_WARNING=!1;class v{constructor(){this._store=new D,d(this),h(this._store,this)}dispose(){f(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}v.None=Object.freeze({dispose(){}});Symbol.iterator;class b{constructor(e){this.element=e,this.next=b.Undefined,this.prev=b.Undefined}}b.Undefined=new b(void 0);class E{constructor(){this._first=b.Undefined,this._last=b.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===b.Undefined}clear(){let e=this._first;for(;e!==b.Undefined;){const t=e.next;e.prev=b.Undefined,e.next=b.Undefined,e=t}this._first=b.Undefined,this._last=b.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new b(e);if(this._first===b.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!==b.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==b.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==b.Undefined&&e.next!==b.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===b.Undefined&&e.next===b.Undefined?(this._first=b.Undefined,this._last=b.Undefined):e.next===b.Undefined?(this._last=this._last.prev,this._last.next=b.Undefined):e.prev===b.Undefined&&(this._first=this._first.next,this._first.prev=b.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==b.Undefined;)yield e.element,e=e.next}}const C=globalThis.performance&&"function"===typeof globalThis.performance.now;class A{static create(e){return new A(e)}constructor(e){this._now=C&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var S;!function(e){function t(e){false}function n(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=!1;return n=e((e=>{if(!i)return n?n.dispose():i=!0,t.call(r,e)}),null,arguments.length>2?arguments[2]:void 0),i&&n.dispose(),n}}function r(e,t,n){return s((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>n.call(r,t(e))),null,arguments.length>2?arguments[2]:void 0)}),n)}function i(e,t,n){return s((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>t(e)&&n.call(r,e)),null,arguments.length>2?arguments[2]:void 0)}),n)}function s(e,n){let r;const i={onWillAddFirstListener(){r=e(s.fire,s)},onDidRemoveLastListener(){null===r||void 0===r||r.dispose()}};n||t();const s=new N(i);return null===n||void 0===n||n.add(s),s.event}function o(e,n){let r,i,s,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>6?arguments[6]:void 0,p=0;const d={leakWarningThreshold:arguments.length>5?arguments[5]:void 0,onWillAddFirstListener(){r=e((e=>{p++,i=n(i,e),u&&!s&&(f.fire(i),i=void 0),o=()=>{const e=i;i=void 0,s=void 0,(!u||p>1)&&f.fire(e),p=0},"number"===typeof a?(clearTimeout(s),s=setTimeout(o,a)):void 0===s&&(s=0,queueMicrotask(o))}))},onWillRemoveListener(){l&&p>0&&(null===o||void 0===o||o())},onDidRemoveLastListener(){o=void 0,r.dispose()}};c||t();const f=new N(d);return null===c||void 0===c||c.add(f),f.event}e.None=()=>v.None,e.defer=function(e,t){return o(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.map=r,e.forEach=function(e,t,n){return s((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e((e=>{t(e),n.call(r,e)}),null,arguments.length>2?arguments[2]:void 0)}),n)},e.filter=i,e.signal=function(e){return e},e.any=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}(g(...t.map((t=>t((t=>e.call(n,t)))))),r)}},e.reduce=function(e,t,n,i){let s=n;return r(e,(e=>(s=t(s,e),s)),i)},e.debounce=o,e.accumulate=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,t)=>e===t,r=!0;return i(e,(e=>{const i=r||!n(e,t);return r=!1,t=e,i}),arguments.length>2?arguments[2]:void 0)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).slice(),i=e((e=>{r?r.push(e):o.fire(e)}));n&&n.add(i);const s=()=>{null===r||void 0===r||r.forEach((e=>o.fire(e))),r=null},o=new N({onWillAddFirstListener(){i||(i=e((e=>o.fire(e))),n&&n.add(i))},onDidAddFirstListener(){r&&(t?setTimeout(s):s())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return n&&n.add(o),o.event},e.chain=function(e,t){return(n,r,i)=>{const s=t(new u);return e((function(e){const t=s.evaluate(e);t!==a&&n.call(r,t)}),void 0,i)}};const a=Symbol("HaltChainable");class u{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:a)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(e,t)=>e===t,n=!0;return this.steps.push((r=>{const i=n||!t(r,e);return n=!1,e=r,i?r:a})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;const r=function(){return i.fire(n(...arguments))},i=new N({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;const r=function(){return i.fire(n(...arguments))},i=new N({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new N;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))},e.runAndSubscribeWithStore=function(e,t){let n=null;function r(e){null===n||void 0===n||n.dispose(),n=new D,t(e,n)}r(void 0);const i=e((e=>r(e)));return y((()=>{i.dispose(),null===n||void 0===n||n.dispose()}))};class l{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new N(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new l(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,s=!1;const o={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),s&&(s=!1,t.call(n)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(o),e.reportChanges();const a={dispose(){e.removeObserver(o)}};return r instanceof D?r.add(a):Array.isArray(r)&&r.push(a),a}}}(S||(S={}));class x{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name="".concat(e,"_").concat(x._idPool++),x.all.add(this)}start(e){this._stopWatch=new A,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}x.all=new Set,x._idPool=0;class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random().toString(18).slice(2,5);this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*n;let r=0;for(const[t,n]of this._stacks)(!e||r<n)&&(e=t,r=n);console.warn("[".concat(this.name,"] potential listener LEAK detected, having ").concat(t," listeners already. MOST frequent listener (").concat(r,"):")),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class F{static create(){var e;return new F(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class T{constructor(e){this.value=e}}class N{constructor(e){var t,n,r,i,s;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new w(null!==(r=null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)&&void 0!==r?r:-1):void 0,this._perfMon=(null===(i=this._options)||void 0===i?void 0:i._profName)?new x(this._options._profName):void 0,this._deliveryQueue=null===(s=this._options)||void 0===s?void 0:s.deliveryQueue}dispose(){var e,t,n,r;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(n=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===n||n.call(t),null===(r=this._leakageMon)||void 0===r||r.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,n)=>{var r,i,s,o,a;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn("[".concat(this._leakageMon.name,"] REFUSES to accept new listeners because it exceeded its threshold by far")),v.None;if(this._disposed)return v.None;t&&(e=e.bind(t));const u=new T(e);let l;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(u.stack=F.create(),l=this._leakageMon.check(u.stack,this._size+1)),this._listeners?this._listeners instanceof T?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new _),this._listeners=[this._listeners,u]):this._listeners.push(u):(null===(i=null===(r=this._options)||void 0===r?void 0:r.onWillAddFirstListener)||void 0===i||i.call(r,this),this._listeners=u,null===(o=null===(s=this._options)||void 0===s?void 0:s.onDidAddFirstListener)||void 0===o||o.call(s,this)),this._size++;const c=y((()=>{null===l||void 0===l||l(),this._removeListener(u)}));return n instanceof D?n.add(c):Array.isArray(n)&&n.push(c),c}),this._event}_removeListener(e){var t,n,r,i;if(null===(n=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===n||n.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(i=null===(r=this._options)||void 0===r?void 0:r.onDidRemoveLastListener)||void 0===i||i.call(r,this),void(this._size=0);const s=this._listeners,o=s.indexOf(e);if(-1===o)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[o]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=s.length){let e=0;for(let t=0;t<s.length;t++)s[t]?s[e++]=s[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);s.length=e}}_deliver(e,n){var r;if(!e)return;const i=(null===(r=this._options)||void 0===r?void 0:r.onListenerError)||t;if(i)try{e.value(n)}catch(s){i(s)}else e.value(n)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,n,r,i;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(n=this._perfMon)||void 0===n||n.stop()),null===(r=this._perfMon)||void 0===r||r.start(this._size),this._listeners)if(this._listeners instanceof T)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(i=this._perfMon)||void 0===i||i.stop()}hasListeners(){return this._size>0}}class _{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}Object.prototype.hasOwnProperty;function k(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}let L="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function O(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"===typeof i?s=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(s=String(i)),s})),L&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function P(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(t,r)}var I;const B="en";let M,j,R=!1,V=!1,q=!1,U=!1,W=!1,K=!1,$=!1,H=!1,J=!1,G=!1,z=null,Y=null,Q=null;const X=globalThis;let Z;"undefined"!==typeof X.vscode&&"undefined"!==typeof X.vscode.process?Z=X.vscode.process:"undefined"!==typeof process&&(Z=process);const ee="string"===typeof(null===(I=null===Z||void 0===Z?void 0:Z.versions)||void 0===I?void 0:I.electron),te=ee&&"renderer"===(null===Z||void 0===Z?void 0:Z.type);if("object"!==typeof navigator||te)if("object"===typeof Z){R="win32"===Z.platform,V="darwin"===Z.platform,q="linux"===Z.platform,U=q&&!!Z.env.SNAP&&!!Z.env.SNAP_REVISION,$=ee,J=!!Z.env.CI||!!Z.env.BUILD_ARTIFACTSTAGINGDIRECTORY,M=B,z=B;const e=Z.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];M=t.locale,Y=t.osLocale,z=n||B,Q=t._translationsConfigFile}catch(qf){}W=!0}else console.error("Unable to resolve platform.");else{j=navigator.userAgent,R=j.indexOf("Windows")>=0,V=j.indexOf("Macintosh")>=0,H=(j.indexOf("Macintosh")>=0||j.indexOf("iPad")>=0||j.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,q=j.indexOf("Linux")>=0,G=(null===j||void 0===j?void 0:j.indexOf("Mobi"))>=0,K=!0;M=void P({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")||B,z=M,Y=navigator.language}let ne=0;V?ne=1:R?ne=3:q&&(ne=2);const re=R,ie=V,se=(K&&"function"===typeof X.importScripts&&X.origin,j),oe="function"===typeof X.postMessage&&!X.importScripts;(()=>{if(oe){const e=[];X.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),X.postMessage({vscodeScheduleAsyncWork:r},"*")}}})();const ae=!!(se&&se.indexOf("Chrome")>=0);se&&se.indexOf("Firefox"),!ae&&se&&se.indexOf("Safari"),se&&se.indexOf("Edg/"),se&&se.indexOf("Android");class ue{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var le;function ce(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function pe(e){return e>=65&&e<=90}function de(e){return 55296<=e&&e<=56319}function fe(e){return 56320<=e&&e<=57343}function he(e,t){return t-56320+(e-55296<<10)+65536}function me(e,t,n){const r=e.charCodeAt(n);if(de(r)&&n+1<t){const t=e.charCodeAt(n+1);if(fe(t))return he(r,t)}return r}const ge=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class ye{static getInstance(){return ye._INSTANCE||(ye._INSTANCE=new ye),ye._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,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,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,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,129008,129008,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,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,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,2192,2193,1,2250,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,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,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,6862,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,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,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,9775,9775,14,9784,9785,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,9874,14,9876,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,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,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,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,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,118528,118573,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,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}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(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}ye._INSTANCE=null;class De{static getInstance(e){return le.cache.get(Array.from(e))}static getLocales(){return le._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}le=De,De.ambiguousCharacterData=new ue((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),De.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,i]of e)t.has(r)&&n.set(r,i);return n}const r=le.ambiguousCharacterData.value;let i,s=e.filter((e=>!e.startsWith("_")&&e in r));0===s.length&&(s=["_default"]);for(const a of s){i=n(i,t(r[a]))}const o=function(e,t){const n=new Map(e);for(const[r,i]of t)n.set(r,i);return n}(t(r._common),i);return new le(o)})),De._locales=new ue((()=>Object.keys(le.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class ve{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ve.getRawData())),this._data}static isInvisibleCharacter(e){return ve.getData().has(e)}static get codePoints(){return ve.getData()}}ve._data=void 0;const be="$initialize";let Ee;class Ce{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class Ae{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class Se{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class xe{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class we{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Fe{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send(new Ce(this._workerId,n,e,t))}))}listen(e,t){let n=null;const r=new N({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new Se(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new we(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Ae(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=r(e.detail)),this._send(new Ae(this._workerId,t,void 0,r(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new xe(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}function Te(e){return"o"===e[0]&&"n"===e[1]&&pe(e.charCodeAt(2))}function Ne(e){return/^onDynamic/.test(e)&&pe(e.charCodeAt(9))}function _e(e,t,n){const r=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i=e=>function(t){return n(e,t)},s={};for(const o of e)Ne(o)?s[o]=i(o):Te(o)?s[o]=n(o,void 0):s[o]=r(o);return s}class ke{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Fe({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===be)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(qf){return Promise.reject(qf)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Ne(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!==typeof n)throw new Error("Missing dynamic event ".concat(e," on request handler."));return n}if(Te(e)){const t=this._requestHandler[e];if("function"!==typeof t)throw new Error("Missing event ".concat(e," on request handler."));return t}throw new Error("Malformed event name ".concat(e))}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=_e(r,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(k(this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(i),this._requestHandler?e(k(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class Le{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 Oe(e,t){return(t<<5)-t+e|0}function Pe(e,t){t=Oe(149417,t);for(let n=0,r=e.length;n<r;n++)t=Oe(e.charCodeAt(n),t);return t}function Ie(e,t){const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:32)-t;return(e<<t|(~((1<<n)-1)&e)>>>n)>>>0}function Be(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(let i=0;i<n;i++)e[t+i]=r}function Me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class je{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,s=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(r=o,i=-1,o=0):(r=e.charCodeAt(0),i=0);;){let a=r;if(de(r)){if(!(i+1<t)){o=r;break}{const t=e.charCodeAt(i+1);fe(t)?(i++,a=he(r,t)):a=65533}}else fe(r)&&(a=65533);if(s=this._push(n,s,a),i++,!(i<t))break;r=e.charCodeAt(i)}this._buffLen=s,this._leftoverHighSurrogate=o}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>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()),Me(this._h0)+Me(this._h1)+Me(this._h2)+Me(this._h3)+Me(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Be(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Be(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=je._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,Ie(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,r,i,s=this._h0,o=this._h1,a=this._h2,u=this._h3,l=this._h4;for(let c=0;c<80;c++)c<20?(n=o&a|~o&u,r=1518500249):c<40?(n=o^a^u,r=1859775393):c<60?(n=o&a|o&u|a&u,r=2400959708):(n=o^a^u,r=3395469782),i=Ie(s,5)+n+l+r+e.getUint32(4*c,!1)&4294967295,l=u,u=a,a=Ie(o,30),o=s,s=i;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+l&4294967295}}je._bigBlock32=new DataView(new ArrayBuffer(320));class Re{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function Ve(e,t,n){return new Ke(new Re(e),new Re(t)).ComputeDiff(n).changes}class qe{static Assert(e,t){if(!e)throw new Error(t)}}class Ue{static Copy(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}static Copy2(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}}class We{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Le(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 Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,s]=Ke._getElements(e),[o,a,u]=Ke._getElements(t);this._hasStrings=s&&u,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,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(Ke._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=Pe(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return Ke._getStrictElement(this._originalSequence,e)===Ke._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,r,s);return i&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(qe.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new Le(e,0,n,r-n+1)]):e<=t?(qe.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new Le(e,t-e+1,n,0)]):(qe.Assert(e===t+1,"originalStart should only be one more than originalEnd"),qe.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const s=[0],o=[0],a=this.ComputeRecursionPoint(e,t,n,r,s,o,i),u=s[0],l=o[0];if(null!==a)return a;if(!i[0]){const s=this.ComputeDiffRecursive(e,u,n,l,i);let o=[];return o=i[0]?[new Le(u+1,t-(u+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(u+1,t,l+1,r,i),this.ConcatenateChanges(s,o)}return[new Le(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,s,o,a,u,l,c,p,d,f,h,m,g,y){let D=null,v=null,b=new We,E=t,C=n,A=d[0]-m[0]-r,S=-1073741824,x=this.m_forwardHistory.length-1;do{const t=A+e;t===E||t<C&&u[t-1]<u[t+1]?(f=(c=u[t+1])-A-r,c<S&&b.MarkNextChange(),S=c,b.AddModifiedElement(c+1,f),A=t+1-e):(f=(c=u[t-1]+1)-A-r,c<S&&b.MarkNextChange(),S=c-1,b.AddOriginalElement(c,f+1),A=t-1-e),x>=0&&(e=(u=this.m_forwardHistory[x])[0],E=1,C=u.length-1)}while(--x>=-1);if(D=b.getReverseChanges(),y[0]){let e=d[0]+1,t=m[0]+1;if(null!==D&&D.length>0){const n=D[D.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}v=[new Le(e,p-e+1,t,h-t+1)]}else{b=new We,E=s,C=o,A=d[0]-m[0]-a,S=1073741824,x=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+i;e===E||e<C&&l[e-1]>=l[e+1]?(f=(c=l[e+1]-1)-A-a,c>S&&b.MarkNextChange(),S=c+1,b.AddOriginalElement(c+1,f+1),A=e+1-i):(f=(c=l[e-1])-A-a,c>S&&b.MarkNextChange(),S=c,b.AddModifiedElement(c+1,f+1),A=e-1-i),x>=0&&(i=(l=this.m_reverseHistory[x])[0],E=1,C=l.length-1)}while(--x>=-1);v=b.getChanges()}return this.ConcatenateChanges(D,v)}ComputeRecursionPoint(e,t,n,r,i,s,o){let a=0,u=0,l=0,c=0,p=0,d=0;e--,n--,i[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(r-n),h=f+1,m=new Int32Array(h),g=new Int32Array(h),y=r-n,D=t-e,v=e-n,b=t-r,E=(D-y)%2===0;m[y]=e,g[D]=t,o[0]=!1;for(let C=1;C<=f/2+1;C++){let f=0,A=0;l=this.ClipDiagonalBound(y-C,C,y,h),c=this.ClipDiagonalBound(y+C,C,y,h);for(let e=l;e<=c;e+=2){a=e===l||e<c&&m[e-1]<m[e+1]?m[e+1]:m[e-1]+1,u=a-(e-y)-v;const n=a;for(;a<t&&u<r&&this.ElementsAreEqual(a+1,u+1);)a++,u++;if(m[e]=a,a+u>f+A&&(f=a,A=u),!E&&Math.abs(e-D)<=C-1&&a>=g[e])return i[0]=a,s[0]=u,n<=g[e]&&C<=1448?this.WALKTRACE(y,l,c,v,D,p,d,b,m,g,a,t,i,u,r,s,E,o):null}const S=(f-e+(A-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,S))return o[0]=!0,i[0]=f,s[0]=A,S>0&&C<=1448?this.WALKTRACE(y,l,c,v,D,p,d,b,m,g,a,t,i,u,r,s,E,o):(e++,n++,[new Le(e,t-e+1,n,r-n+1)]);p=this.ClipDiagonalBound(D-C,C,D,h),d=this.ClipDiagonalBound(D+C,C,D,h);for(let h=p;h<=d;h+=2){a=h===p||h<d&&g[h-1]>=g[h+1]?g[h+1]-1:g[h-1],u=a-(h-D)-b;const f=a;for(;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(g[h]=a,E&&Math.abs(h-y)<=C&&a<=m[h])return i[0]=a,s[0]=u,f>=m[h]&&C<=1448?this.WALKTRACE(y,l,c,v,D,p,d,b,m,g,a,t,i,u,r,s,E,o):null}if(C<=1447){let e=new Int32Array(c-l+2);e[0]=y-l+1,Ue.Copy2(m,l,e,1,c-l+1),this.m_forwardHistory.push(e),e=new Int32Array(d-p+2),e[0]=D-p+1,Ue.Copy2(g,p,e,1,d-p+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,l,c,v,D,p,d,b,m,g,a,t,i,u,r,s,E,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=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 s=n.originalLength>0,o=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,l=n.modifiedStart-e;if(t<r||l<i)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+n.modifiedLength))break;const c=(t===r&&l===i?5:0)+this._boundaryScore(t,n.originalLength,l,n.modifiedLength);c>u&&(u=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const l=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],l)&&(e[t-1]=l[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=r.originalStart+r.originalLength,a=o-s,u=n.modifiedStart,l=r.modifiedStart+r.modifiedLength,c=l-u;if(i<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,u,c,i);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=s+i,r.originalLength=o-r.originalStart,r.modifiedLength=l-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const s=e+t-i+1,o=n+r-i+1;let a=0,u=0,l=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,i);t>0&&t>a&&(a=t,u=c,l=e)}return a>0?[u,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=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){const 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 Ue.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],Ue.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return Ue.Copy(e,0,n,0,e.length),Ue.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(qe.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),qe.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 s=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Le(r,i,s,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2===0;if(e<0){return i===(n%2===0)?0:1}return i===((r-n-1)%2===0)?r-1:r-2}}const $e=globalThis.vscode;if("undefined"!==typeof $e&&"undefined"!==typeof $e.process){const e=$e.process;Ee={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else Ee="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URI:"https://api.chillicream.com",REACT_APP_DB_NAME:"chillicream-nitro",REACT_APP_SCHEME:"chillicream-nitro",REACT_APP_TUNNEL_URI:"https://tunnel.bananacakepop.com",REACT_APP_BCP_CLIENT_ID:"3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5",REACT_APP_API_ENDPOINT:"https://api.chillicream.com/graphql",REACT_APP_CLOUD_URI_PATTERN:"^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)",REACT_APP_GRAPHQL_CLIENT_ID:"Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",REACT_APP_IDENTITY_DOMAIN:"https://identity.chillicream.com",REACT_APP_IDENTITY_SCOPE:"openid offline_access documents:read documents:write workspace:manage",REACT_APP_MUI_X_LICENSE_KEY:"985282257ba1430a6c388f85a1dad858Tz05OTQ0OSxFPTE3NTk4MzQwMzUwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLFBWPWluaXRpYWwsS1Y9Mg=="}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URI:"https://api.chillicream.com",REACT_APP_DB_NAME:"chillicream-nitro",REACT_APP_SCHEME:"chillicream-nitro",REACT_APP_TUNNEL_URI:"https://tunnel.bananacakepop.com",REACT_APP_BCP_CLIENT_ID:"3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5",REACT_APP_API_ENDPOINT:"https://api.chillicream.com/graphql",REACT_APP_CLOUD_URI_PATTERN:"^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)",REACT_APP_GRAPHQL_CLIENT_ID:"Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",REACT_APP_IDENTITY_DOMAIN:"https://identity.chillicream.com",REACT_APP_IDENTITY_SCOPE:"openid offline_access documents:read documents:write workspace:manage",REACT_APP_MUI_X_LICENSE_KEY:"985282257ba1430a6c388f85a1dad858Tz05OTQ0OSxFPTE3NTk4MzQwMzUwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLFBWPWluaXRpYWwsS1Y9Mg=="}.VSCODE_CWD||process.cwd())}:{get platform(){return re?"win32":ie?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const He=Ee.cwd,Je=(Ee.env,Ee.platform),Ge=46,ze=47,Ye=92,Qe=58;class Xe extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s='The "'.concat(e,'" ').concat(i," ").concat(r," of type ").concat(t);s+=". Received type ".concat(typeof n),super(s),this.code="ERR_INVALID_ARG_TYPE"}}function Ze(e,t){if("string"!==typeof e)throw new Xe(t,"string",e)}const et="win32"===Je;function tt(e){return e===ze||e===Ye}function nt(e){return e===ze}function rt(e){return e>=65&&e<=90||e>=97&&e<=122}function it(e,t,n,r){let i="",s=0,o=-1,a=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=ze}if(r(u)){if(o===l-1||1===a);else if(2===a){if(i.length<2||2!==s||i.charCodeAt(i.length-1)!==Ge||i.charCodeAt(i.length-2)!==Ge){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}if(0!==i.length){i="",s=0,o=l,a=0;continue}}t&&(i+=i.length>0?"".concat(n,".."):"..",s=2)}else i.length>0?i+="".concat(n).concat(e.slice(o+1,l)):i=e.slice(o+1,l),s=l-o-1;o=l,a=0}else u===Ge&&-1!==a?++a:a=-1}return i}function st(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new Xe(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||"".concat(t.name||"").concat(t.ext||"");return n?n===t.root?"".concat(n).concat(r):"".concat(n).concat(e).concat(r):r}const ot={resolve(){let e="",t="",n=!1;for(let r=arguments.length-1;r>=-1;r--){let i;if(r>=0){if(i=r<0||arguments.length<=r?void 0:arguments[r],Ze(i,"path"),0===i.length)continue}else 0===e.length?i=He():(i={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URI:"https://api.chillicream.com",REACT_APP_DB_NAME:"chillicream-nitro",REACT_APP_SCHEME:"chillicream-nitro",REACT_APP_TUNNEL_URI:"https://tunnel.bananacakepop.com",REACT_APP_BCP_CLIENT_ID:"3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5",REACT_APP_API_ENDPOINT:"https://api.chillicream.com/graphql",REACT_APP_CLOUD_URI_PATTERN:"^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)",REACT_APP_GRAPHQL_CLIENT_ID:"Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",REACT_APP_IDENTITY_DOMAIN:"https://identity.chillicream.com",REACT_APP_IDENTITY_SCOPE:"openid offline_access documents:read documents:write workspace:manage",REACT_APP_MUI_X_LICENSE_KEY:"985282257ba1430a6c388f85a1dad858Tz05OTQ0OSxFPTE3NTk4MzQwMzUwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLFBWPWluaXRpYWwsS1Y9Mg=="}["=".concat(e)]||He(),(void 0===i||i.slice(0,2).toLowerCase()!==e.toLowerCase()&&i.charCodeAt(2)===Ye)&&(i="".concat(e,"\\")));const s=i.length;let o=0,a="",u=!1;const l=i.charCodeAt(0);if(1===s)tt(l)&&(o=1,u=!0);else if(tt(l))if(u=!0,tt(i.charCodeAt(1))){let e=2,t=e;for(;e<s&&!tt(i.charCodeAt(e));)e++;if(e<s&&e!==t){const n=i.slice(t,e);for(t=e;e<s&&tt(i.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!tt(i.charCodeAt(e));)e++;e!==s&&e===t||(a="\\\\".concat(n,"\\").concat(i.slice(t,e)),o=e)}}}else o=1;else rt(l)&&i.charCodeAt(1)===Qe&&(a=i.slice(0,2),o=2,s>2&&tt(i.charCodeAt(2))&&(u=!0,o=3));if(a.length>0)if(e.length>0){if(a.toLowerCase()!==e.toLowerCase())continue}else e=a;if(n){if(e.length>0)break}else if(t="".concat(i.slice(o),"\\").concat(t),n=u,u&&e.length>0)break}return t=it(t,!n,"\\",tt),n?"".concat(e,"\\").concat(t):"".concat(e).concat(t)||"."},normalize(e){Ze(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return nt(s)?"\\":e;if(tt(s))if(i=!0,tt(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!tt(e.charCodeAt(i));)i++;if(i<t&&i!==s){const o=e.slice(s,i);for(s=i;i<t&&tt(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!tt(e.charCodeAt(i));)i++;if(i===t)return"\\\\".concat(o,"\\").concat(e.slice(s),"\\");i!==s&&(n="\\\\".concat(o,"\\").concat(e.slice(s,i)),r=i)}}}else r=1;else rt(s)&&e.charCodeAt(1)===Qe&&(n=e.slice(0,2),r=2,t>2&&tt(e.charCodeAt(2))&&(i=!0,r=3));let o=r<t?it(e.slice(r),!i,"\\",tt):"";return 0!==o.length||i||(o="."),o.length>0&&tt(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?"\\".concat(o):o:i?"".concat(n,"\\").concat(o):"".concat(n).concat(o)},isAbsolute(e){Ze(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return tt(n)||t>2&&rt(n)&&e.charCodeAt(1)===Qe&&tt(e.charCodeAt(2))},join(){if(0===arguments.length)return".";let e,t;for(let i=0;i<arguments.length;++i){const n=i<0||arguments.length<=i?void 0:arguments[i];Ze(n,"path"),n.length>0&&(void 0===e?e=t=n:e+="\\".concat(n))}if(void 0===e)return".";let n=!0,r=0;if("string"===typeof t&&tt(t.charCodeAt(0))){++r;const e=t.length;e>1&&tt(t.charCodeAt(1))&&(++r,e>2&&(tt(t.charCodeAt(2))?++r:n=!1))}if(n){for(;r<e.length&&tt(e.charCodeAt(r));)r++;r>=2&&(e="\\".concat(e.slice(r)))}return ot.normalize(e)},relative(e,t){if(Ze(e,"from"),Ze(t,"to"),e===t)return"";const n=ot.resolve(e),r=ot.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Ye;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===Ye;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===Ye;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Ye;)u--;const l=u-a,c=o<l?o:l;let p=-1,d=0;for(;d<c;d++){const n=e.charCodeAt(i+d);if(n!==t.charCodeAt(a+d))break;n===Ye&&(p=d)}if(d!==c){if(-1===p)return r}else{if(l>c){if(t.charCodeAt(a+d)===Ye)return r.slice(a+d+1);if(2===d)return r.slice(a+d)}o>c&&(e.charCodeAt(i+d)===Ye?p=d:2===d&&(p=3)),-1===p&&(p=0)}let f="";for(d=i+p+1;d<=s;++d)d!==s&&e.charCodeAt(d)!==Ye||(f+=0===f.length?"..":"\\..");return a+=p,f.length>0?"".concat(f).concat(r.slice(a,u)):(r.charCodeAt(a)===Ye&&++a,r.slice(a,u))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=ot.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ye){if(t.charCodeAt(1)===Ye){const e=t.charCodeAt(2);if(63!==e&&e!==Ge)return"\\\\?\\UNC\\".concat(t.slice(2))}}else if(rt(t.charCodeAt(0))&&t.charCodeAt(1)===Qe&&t.charCodeAt(2)===Ye)return"\\\\?\\".concat(t);return e},dirname(e){Ze(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return tt(i)?e:".";if(tt(i)){if(n=r=1,tt(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!tt(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&tt(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!tt(e.charCodeAt(i));)i++;if(i===t)return e;i!==s&&(n=r=i+1)}}}}else rt(i)&&e.charCodeAt(1)===Qe&&(n=t>2&&tt(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(tt(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&Ze(t,"ext"),Ze(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&rt(e.charCodeAt(0))&&e.charCodeAt(1)===Qe&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const u=e.charCodeAt(n);if(tt(u)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(u===t.charCodeAt(o)?-1===--o&&(i=n):(o=-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(tt(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){Ze(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===Qe&&rt(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(tt(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===Ge?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:st.bind(null,"\\"),parse(e){Ze(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 tt(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(tt(i)){if(r=1,tt(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!tt(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&tt(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!tt(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(rt(i)&&e.charCodeAt(1)===Qe){if(n<=2)return t.root=t.dir=e,t;if(r=2,tt(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,u=!0,l=e.length-1,c=0;for(;l>=r;--l)if(i=e.charCodeAt(l),tt(i)){if(!u){o=l+1;break}}else-1===a&&(u=!1,a=l+1),i===Ge?-1===s?s=l:1!==c&&(c=1):-1!==s&&(c=-1);return-1!==a&&(-1===s||0===c||1===c&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},at=(()=>{if(et){const e=/\\/g;return()=>{const t=He().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>He()})(),ut={resolve(){let e="",t=!1;for(let n=arguments.length-1;n>=-1&&!t;n--){const r=n>=0?n<0||arguments.length<=n?void 0:arguments[n]:at();Ze(r,"path"),0!==r.length&&(e="".concat(r,"/").concat(e),t=r.charCodeAt(0)===ze)}return e=it(e,!t,"/",nt),t?"/".concat(e):e.length>0?e:"."},normalize(e){if(Ze(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ze,n=e.charCodeAt(e.length-1)===ze;return 0===(e=it(e,!t,"/",nt)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/".concat(e):e)},isAbsolute:e=>(Ze(e,"path"),e.length>0&&e.charCodeAt(0)===ze),join(){if(0===arguments.length)return".";let e;for(let t=0;t<arguments.length;++t){const n=t<0||arguments.length<=t?void 0:arguments[t];Ze(n,"path"),n.length>0&&(void 0===e?e=n:e+="/".concat(n))}return void 0===e?".":ut.normalize(e)},relative(e,t){if(Ze(e,"from"),Ze(t,"to"),e===t)return"";if((e=ut.resolve(e))===(t=ut.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===ze&&(o=a)}if(a===s)if(i>s){if(t.charCodeAt(1+a)===ze)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===ze?o=a:0===a&&(o=0));let u="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==ze||(u+=0===u.length?"..":"/..");return"".concat(u).concat(t.slice(1+o))},toNamespacedPath:e=>e,dirname(e){if(Ze(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ze;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===ze){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&Ze(t,"ext"),Ze(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(u===ze){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(u===t.charCodeAt(o)?-1===--o&&(i=n):(o=-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(e.charCodeAt(n)===ze){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){Ze(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==ze)-1===r&&(i=!1,r=o+1),a===Ge?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:st.bind(null,"/"),parse(e){Ze(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===ze;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,u=e.length-1,l=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(t!==ze)-1===o&&(a=!1,o=u+1),t===Ge?-1===i?i=u:1!==l&&(l=1):-1!==i&&(l=-1);else if(!a){s=u+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===l||1===l&&i===o-1&&i===s+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ut.win32=ot.win32=ot,ut.posix=ot.posix=ut;et?ot.normalize:ut.normalize,et?ot.resolve:ut.resolve,et?ot.relative:ut.relative,et?ot.dirname:ut.dirname,et?ot.basename:ut.basename,et?ot.extname:ut.extname,et?ot.sep:ut.sep;const lt=/^\w[\w\d+.-]*$/,ct=/^\//,pt=/^\/\//;const dt="",ft="/",ht=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class mt{static isUri(e){return e instanceof mt||!!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)}constructor(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];"object"===typeof e?(this.scheme=e.scheme||dt,this.authority=e.authority||dt,this.path=e.path||dt,this.query=e.query||dt,this.fragment=e.fragment||dt):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||dt,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ft&&(t=ft+t):t=ft}return t}(this.scheme,n||dt),this.query=r||dt,this.fragment=i||dt,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!lt.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ct.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(pt.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,s))}get fsPath(){return Et(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=dt),void 0===n?n=this.authority:null===n&&(n=dt),void 0===r?r=this.path:null===r&&(r=dt),void 0===i?i=this.query:null===i&&(i=dt),void 0===s?s=this.fragment:null===s&&(s=dt),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new yt(t,n,r,i,s)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=ht.exec(e);return n?new yt(n[2]||dt,xt(n[4]||dt),xt(n[5]||dt),xt(n[7]||dt),xt(n[9]||dt),t):new yt(dt,dt,dt,dt,dt)}static file(e){let t=dt;if(re&&(e=e.replace(/\\/g,ft)),e[0]===ft&&e[1]===ft){const n=e.indexOf(ft,2);-1===n?(t=e.substring(2),e=ft):(t=e.substring(2,n),e=e.substring(n)||ft)}return new yt("file",t,e,dt,dt)}static from(e,t){return new yt(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t=re&&"file"===e.scheme?mt.file(ot.join(Et(e,!0),...r)).path:ut.join(e.path,...r),e.with({path:t})}toString(){return Ct(this,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof mt)return e;{const r=new yt(e);return r._formatted=null!==(t=e.external)&&void 0!==t?t:null,r._fsPath=e._sep===gt&&null!==(n=e.fsPath)&&void 0!==n?n:null,r}}return e}}const gt=re?1:void 0;class yt extends mt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Et(this,!1)),this._fsPath}toString(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Ct(this,!0):(this._formatted||(this._formatted=Ct(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=gt),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 Dt={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 vt(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=Dt[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function bt(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=Dt[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function Et(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(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,re&&(n=n.replace(/\//g,"\\")),n}function Ct(e,t){const n=t?bt:vt;let r="",{scheme:i,authority:s,path:o,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=ft,r+=ft),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o="/".concat(String.fromCharCode(e+32),":").concat(o.substr(3)))}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o="".concat(String.fromCharCode(e+32),":").concat(o.substr(2)))}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),u&&(r+="#",r+=t?u:vt(u,!1,!1)),r}function At(e){try{return decodeURIComponent(e)}catch(I){return e.length>3?e.substr(0,3)+At(e.substr(3)):e}}const St=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xt(e){return e.match(St)?e.replace(St,(e=>At(e))):e}class wt{constructor(e,t){this.lineNumber=e,this.column=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new wt(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return wt.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return wt.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return wt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new wt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new wt(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Ft{constructor(e,t,n,r){e>n||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 Ft.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ft.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return Ft.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return Ft.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return Ft.plusRange(this,e)}static plusRange(e,t){let n,r,i,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,s=e.endColumn),new Ft(n,r,i,s)}intersectRanges(e){return Ft.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,s=e.endColumn;const o=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,l=t.endColumn;return n<o?(n=o,r=a):n===o&&(r=Math.max(r,a)),i>u?(i=u,s=l):i===u&&(s=Math.min(s,l)),n>i||n===i&&r>s?null:new Ft(n,r,i,s)}equalsRange(e){return Ft.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Ft.getEndPosition(this)}static getEndPosition(e){return new wt(e.endLineNumber,e.endColumn)}getStartPosition(){return Ft.getStartPosition(this)}static getStartPosition(e){return new wt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Ft(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Ft(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Ft.collapseToStart(this)}static collapseToStart(e){return new Ft(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Ft.collapseToEnd(this)}static collapseToEnd(e){return new Ft(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Ft(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new Ft(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Ft(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.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}var Tt;function Nt(e,t){return(n,r)=>t(e(n),e(r))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(Tt||(Tt={}));const _t=(e,t)=>e-t;class kt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new kt((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new kt((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((r=>((n||Tt.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}function Lt(e){return e<0?0:e>255?255:0|e}function Ot(e){return e<0?0:e>4294967295?4294967295:0|e}kt.empty=new kt((e=>{}));class Pt{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Ot(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<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=Ot(e),t=Ot(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Ot(e),t=Ot(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const 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<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Ot(e),this._getPrefixSum(e))}_getPrefixSum(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.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e<s)n=r-1;else{if(!(e>=i))break;t=r+1}return new It(r,e-s)}}class It{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Bt{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 n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new wt(n.range.startLineNumber,n.range.startColumn),n.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;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Pt(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const r=new Uint32Array(n.length-1);for(let i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const Mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function jt(e){let t=Mt;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}const Rt=new E;function Vt(e,t,n,r,i){if(t=jt(t),i||(i=c.first(Rt)),n.length>i.maxLen){let s=e-i.maxLen/2;return s<0?s=0:r+=s,Vt(e,t,n=n.substring(s,e+i.maxLen/2),r,i)}const s=Date.now(),o=e-1-r;let a=-1,u=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){const e=o-i.windowSize*l;t.lastIndex=Math.max(0,e);const r=qt(t,n,o,a);if(!r&&u)break;if(u=r,e<=0)break;a=e}if(u){const e={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,e}return null}function qt(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}Rt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class Ut{constructor(e){const t=Lt(e);this._defaultValue=t,this._asciiMap=Ut._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=Lt(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}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Wt{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;i<s;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class Kt{constructor(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++){const[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const r=new Wt(n,t,0);for(let i=0,s=e.length;i<s;i++){const[t,n,s]=e[i];r.set(t,n,s)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let $t=null;let Ht=null;class Jt{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null===$t&&($t=new Kt([[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]])),$t);const n=function(){if(null===Ht){Ht=new Ut(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)Ht.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Ht.set(t.charCodeAt(n),2)}return Ht}(),r=[];for(let i=1,s=e.getLineCount();i<=s;i++){const s=e.getLineContent(i),o=s.length;let a=0,u=0,l=0,c=1,p=!1,d=!1,f=!1,h=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:p=!0,t=0;break;case 41:t=p?0:1;break;case 91:f=!0,d=!0,t=0;break;case 93:f=!1,t=d?0:1;break;case 123:h=!0,t=0;break;case 125:t=h?0:1;break;case 39:case 34:case 96:t=l===o?1:39===l||34===l||96===l?0:1;break;case 42:t=42===l?1:0;break;case 124:t=124===l?1:0;break;case 32:t=f?0:1;break;default:t=n.get(o)}1===t&&(r.push(Jt._createLink(n,s,i,u,a)),e=!0)}else if(12===c){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,p=!1,d=!1,h=!1,u=a+1,l=o),a++}13===c&&r.push(Jt._createLink(n,s,i,u,o))}return r}}class Gt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,r,i){if(e&&t){const n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,s=e.length;null===r&&i<s;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}Gt.INSTANCE=new Gt;const zt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Yt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof Qt||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:S.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:zt})}(Yt||(Yt={}));class Qt{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?zt:(this._emitter||(this._emitter=new N),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Xt{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 Qt),this._token}cancel(){this._token?this._token instanceof Qt&&this._token.cancel():this._token=Yt.Cancelled}dispose(){var e;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.cancel(),null===(e=this._parentListener)||void 0===e||e.dispose(),this._token?this._token instanceof Qt&&this._token.dispose():this._token=Yt.None}}class Zt{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 en=new Zt,tn=new Zt,nn=new Zt,rn=new Array(230),sn={},on=[],an=Object.create(null),un=Object.create(null),ln=[],cn=[];for(let n=0;n<=193;n++)ln[n]=-1;for(let n=0;n<=132;n++)cn[n]=-1;var pn;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[e,t,s,o,a,u,l,c,p]=i;if(r[t]||(r[t]=!0,on[t]=s,an[s]=t,un[s.toLowerCase()]=t,e&&(ln[t]=o,0!==o&&3!==o&&5!==o&&4!==o&&6!==o&&57!==o&&(cn[o]=t))),!n[o]){if(n[o]=!0,!a)throw new Error("String representation missing for key code ".concat(o," around scan code ").concat(s));en.define(o,a),tn.define(o,c||a),nn.define(o,p||c||a)}u&&(rn[u]=o),l&&(sn[l]=o)}cn[3]=46}(),function(e){e.toString=function(e){return en.keyCodeToStr(e)},e.fromString=function(e){return en.strToKeyCode(e)},e.toUserSettingsUS=function(e){return tn.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return nn.keyCodeToStr(e)},e.fromUserSettings=function(e){return tn.strToKeyCode(e)||nn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return en.keyCodeToStr(e)}}(pn||(pn={}));class dn extends Ft{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 dn.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 dn(this.startLineNumber,this.startColumn,e,t):new dn(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new wt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new wt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new dn(e,t,this.endLineNumber,this.endColumn):new dn(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new dn(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new dn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new dn(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new dn(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<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new dn(e,t,n,r):new dn(n,r,e,t)}}function fn(e){return"string"===typeof e}const hn=Object.create(null);function mn(e,t){if(fn(t)){const n=hn[t];if(void 0===n)throw new Error("".concat(e," references an unknown codicon: ").concat(t));t=n}return hn[e]=t,{id:e}}const gn={add:mn("add",6e4),plus:mn("plus",6e4),gistNew:mn("gist-new",6e4),repoCreate:mn("repo-create",6e4),lightbulb:mn("lightbulb",60001),lightBulb:mn("light-bulb",60001),repo:mn("repo",60002),repoDelete:mn("repo-delete",60002),gistFork:mn("gist-fork",60003),repoForked:mn("repo-forked",60003),gitPullRequest:mn("git-pull-request",60004),gitPullRequestAbandoned:mn("git-pull-request-abandoned",60004),recordKeys:mn("record-keys",60005),keyboard:mn("keyboard",60005),tag:mn("tag",60006),tagAdd:mn("tag-add",60006),tagRemove:mn("tag-remove",60006),gitPullRequestLabel:mn("git-pull-request-label",60006),person:mn("person",60007),personFollow:mn("person-follow",60007),personOutline:mn("person-outline",60007),personFilled:mn("person-filled",60007),gitBranch:mn("git-branch",60008),gitBranchCreate:mn("git-branch-create",60008),gitBranchDelete:mn("git-branch-delete",60008),sourceControl:mn("source-control",60008),mirror:mn("mirror",60009),mirrorPublic:mn("mirror-public",60009),star:mn("star",60010),starAdd:mn("star-add",60010),starDelete:mn("star-delete",60010),starEmpty:mn("star-empty",60010),comment:mn("comment",60011),commentAdd:mn("comment-add",60011),alert:mn("alert",60012),warning:mn("warning",60012),search:mn("search",60013),searchSave:mn("search-save",60013),logOut:mn("log-out",60014),signOut:mn("sign-out",60014),logIn:mn("log-in",60015),signIn:mn("sign-in",60015),eye:mn("eye",60016),eyeUnwatch:mn("eye-unwatch",60016),eyeWatch:mn("eye-watch",60016),circleFilled:mn("circle-filled",60017),primitiveDot:mn("primitive-dot",60017),closeDirty:mn("close-dirty",60017),debugBreakpoint:mn("debug-breakpoint",60017),debugBreakpointDisabled:mn("debug-breakpoint-disabled",60017),debugHint:mn("debug-hint",60017),primitiveSquare:mn("primitive-square",60018),edit:mn("edit",60019),pencil:mn("pencil",60019),info:mn("info",60020),issueOpened:mn("issue-opened",60020),gistPrivate:mn("gist-private",60021),gitForkPrivate:mn("git-fork-private",60021),lock:mn("lock",60021),mirrorPrivate:mn("mirror-private",60021),close:mn("close",60022),removeClose:mn("remove-close",60022),x:mn("x",60022),repoSync:mn("repo-sync",60023),sync:mn("sync",60023),clone:mn("clone",60024),desktopDownload:mn("desktop-download",60024),beaker:mn("beaker",60025),microscope:mn("microscope",60025),vm:mn("vm",60026),deviceDesktop:mn("device-desktop",60026),file:mn("file",60027),fileText:mn("file-text",60027),more:mn("more",60028),ellipsis:mn("ellipsis",60028),kebabHorizontal:mn("kebab-horizontal",60028),mailReply:mn("mail-reply",60029),reply:mn("reply",60029),organization:mn("organization",60030),organizationFilled:mn("organization-filled",60030),organizationOutline:mn("organization-outline",60030),newFile:mn("new-file",60031),fileAdd:mn("file-add",60031),newFolder:mn("new-folder",60032),fileDirectoryCreate:mn("file-directory-create",60032),trash:mn("trash",60033),trashcan:mn("trashcan",60033),history:mn("history",60034),clock:mn("clock",60034),folder:mn("folder",60035),fileDirectory:mn("file-directory",60035),symbolFolder:mn("symbol-folder",60035),logoGithub:mn("logo-github",60036),markGithub:mn("mark-github",60036),github:mn("github",60036),terminal:mn("terminal",60037),console:mn("console",60037),repl:mn("repl",60037),zap:mn("zap",60038),symbolEvent:mn("symbol-event",60038),error:mn("error",60039),stop:mn("stop",60039),variable:mn("variable",60040),symbolVariable:mn("symbol-variable",60040),array:mn("array",60042),symbolArray:mn("symbol-array",60042),symbolModule:mn("symbol-module",60043),symbolPackage:mn("symbol-package",60043),symbolNamespace:mn("symbol-namespace",60043),symbolObject:mn("symbol-object",60043),symbolMethod:mn("symbol-method",60044),symbolFunction:mn("symbol-function",60044),symbolConstructor:mn("symbol-constructor",60044),symbolBoolean:mn("symbol-boolean",60047),symbolNull:mn("symbol-null",60047),symbolNumeric:mn("symbol-numeric",60048),symbolNumber:mn("symbol-number",60048),symbolStructure:mn("symbol-structure",60049),symbolStruct:mn("symbol-struct",60049),symbolParameter:mn("symbol-parameter",60050),symbolTypeParameter:mn("symbol-type-parameter",60050),symbolKey:mn("symbol-key",60051),symbolText:mn("symbol-text",60051),symbolReference:mn("symbol-reference",60052),goToFile:mn("go-to-file",60052),symbolEnum:mn("symbol-enum",60053),symbolValue:mn("symbol-value",60053),symbolRuler:mn("symbol-ruler",60054),symbolUnit:mn("symbol-unit",60054),activateBreakpoints:mn("activate-breakpoints",60055),archive:mn("archive",60056),arrowBoth:mn("arrow-both",60057),arrowDown:mn("arrow-down",60058),arrowLeft:mn("arrow-left",60059),arrowRight:mn("arrow-right",60060),arrowSmallDown:mn("arrow-small-down",60061),arrowSmallLeft:mn("arrow-small-left",60062),arrowSmallRight:mn("arrow-small-right",60063),arrowSmallUp:mn("arrow-small-up",60064),arrowUp:mn("arrow-up",60065),bell:mn("bell",60066),bold:mn("bold",60067),book:mn("book",60068),bookmark:mn("bookmark",60069),debugBreakpointConditionalUnverified:mn("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:mn("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:mn("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:mn("debug-breakpoint-data-unverified",60072),debugBreakpointData:mn("debug-breakpoint-data",60073),debugBreakpointDataDisabled:mn("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:mn("debug-breakpoint-log-unverified",60074),debugBreakpointLog:mn("debug-breakpoint-log",60075),debugBreakpointLogDisabled:mn("debug-breakpoint-log-disabled",60075),briefcase:mn("briefcase",60076),broadcast:mn("broadcast",60077),browser:mn("browser",60078),bug:mn("bug",60079),calendar:mn("calendar",60080),caseSensitive:mn("case-sensitive",60081),check:mn("check",60082),checklist:mn("checklist",60083),chevronDown:mn("chevron-down",60084),dropDownButton:mn("drop-down-button",60084),chevronLeft:mn("chevron-left",60085),chevronRight:mn("chevron-right",60086),chevronUp:mn("chevron-up",60087),chromeClose:mn("chrome-close",60088),chromeMaximize:mn("chrome-maximize",60089),chromeMinimize:mn("chrome-minimize",60090),chromeRestore:mn("chrome-restore",60091),circle:mn("circle",60092),circleOutline:mn("circle-outline",60092),debugBreakpointUnverified:mn("debug-breakpoint-unverified",60092),circleSlash:mn("circle-slash",60093),circuitBoard:mn("circuit-board",60094),clearAll:mn("clear-all",60095),clippy:mn("clippy",60096),closeAll:mn("close-all",60097),cloudDownload:mn("cloud-download",60098),cloudUpload:mn("cloud-upload",60099),code:mn("code",60100),collapseAll:mn("collapse-all",60101),colorMode:mn("color-mode",60102),commentDiscussion:mn("comment-discussion",60103),compareChanges:mn("compare-changes",60157),creditCard:mn("credit-card",60105),dash:mn("dash",60108),dashboard:mn("dashboard",60109),database:mn("database",60110),debugContinue:mn("debug-continue",60111),debugDisconnect:mn("debug-disconnect",60112),debugPause:mn("debug-pause",60113),debugRestart:mn("debug-restart",60114),debugStart:mn("debug-start",60115),debugStepInto:mn("debug-step-into",60116),debugStepOut:mn("debug-step-out",60117),debugStepOver:mn("debug-step-over",60118),debugStop:mn("debug-stop",60119),debug:mn("debug",60120),deviceCameraVideo:mn("device-camera-video",60121),deviceCamera:mn("device-camera",60122),deviceMobile:mn("device-mobile",60123),diffAdded:mn("diff-added",60124),diffIgnored:mn("diff-ignored",60125),diffModified:mn("diff-modified",60126),diffRemoved:mn("diff-removed",60127),diffRenamed:mn("diff-renamed",60128),diff:mn("diff",60129),discard:mn("discard",60130),editorLayout:mn("editor-layout",60131),emptyWindow:mn("empty-window",60132),exclude:mn("exclude",60133),extensions:mn("extensions",60134),eyeClosed:mn("eye-closed",60135),fileBinary:mn("file-binary",60136),fileCode:mn("file-code",60137),fileMedia:mn("file-media",60138),filePdf:mn("file-pdf",60139),fileSubmodule:mn("file-submodule",60140),fileSymlinkDirectory:mn("file-symlink-directory",60141),fileSymlinkFile:mn("file-symlink-file",60142),fileZip:mn("file-zip",60143),files:mn("files",60144),filter:mn("filter",60145),flame:mn("flame",60146),foldDown:mn("fold-down",60147),foldUp:mn("fold-up",60148),fold:mn("fold",60149),folderActive:mn("folder-active",60150),folderOpened:mn("folder-opened",60151),gear:mn("gear",60152),gift:mn("gift",60153),gistSecret:mn("gist-secret",60154),gist:mn("gist",60155),gitCommit:mn("git-commit",60156),gitCompare:mn("git-compare",60157),gitMerge:mn("git-merge",60158),githubAction:mn("github-action",60159),githubAlt:mn("github-alt",60160),globe:mn("globe",60161),grabber:mn("grabber",60162),graph:mn("graph",60163),gripper:mn("gripper",60164),heart:mn("heart",60165),home:mn("home",60166),horizontalRule:mn("horizontal-rule",60167),hubot:mn("hubot",60168),inbox:mn("inbox",60169),issueClosed:mn("issue-closed",60324),issueReopened:mn("issue-reopened",60171),issues:mn("issues",60172),italic:mn("italic",60173),jersey:mn("jersey",60174),json:mn("json",60175),bracket:mn("bracket",60175),kebabVertical:mn("kebab-vertical",60176),key:mn("key",60177),law:mn("law",60178),lightbulbAutofix:mn("lightbulb-autofix",60179),linkExternal:mn("link-external",60180),link:mn("link",60181),listOrdered:mn("list-ordered",60182),listUnordered:mn("list-unordered",60183),liveShare:mn("live-share",60184),loading:mn("loading",60185),location:mn("location",60186),mailRead:mn("mail-read",60187),mail:mn("mail",60188),markdown:mn("markdown",60189),megaphone:mn("megaphone",60190),mention:mn("mention",60191),milestone:mn("milestone",60192),gitPullRequestMilestone:mn("git-pull-request-milestone",60192),mortarBoard:mn("mortar-board",60193),move:mn("move",60194),multipleWindows:mn("multiple-windows",60195),mute:mn("mute",60196),noNewline:mn("no-newline",60197),note:mn("note",60198),octoface:mn("octoface",60199),openPreview:mn("open-preview",60200),package:mn("package",60201),paintcan:mn("paintcan",60202),pin:mn("pin",60203),play:mn("play",60204),run:mn("run",60204),plug:mn("plug",60205),preserveCase:mn("preserve-case",60206),preview:mn("preview",60207),project:mn("project",60208),pulse:mn("pulse",60209),question:mn("question",60210),quote:mn("quote",60211),radioTower:mn("radio-tower",60212),reactions:mn("reactions",60213),references:mn("references",60214),refresh:mn("refresh",60215),regex:mn("regex",60216),remoteExplorer:mn("remote-explorer",60217),remote:mn("remote",60218),remove:mn("remove",60219),replaceAll:mn("replace-all",60220),replace:mn("replace",60221),repoClone:mn("repo-clone",60222),repoForcePush:mn("repo-force-push",60223),repoPull:mn("repo-pull",60224),repoPush:mn("repo-push",60225),report:mn("report",60226),requestChanges:mn("request-changes",60227),rocket:mn("rocket",60228),rootFolderOpened:mn("root-folder-opened",60229),rootFolder:mn("root-folder",60230),rss:mn("rss",60231),ruby:mn("ruby",60232),saveAll:mn("save-all",60233),saveAs:mn("save-as",60234),save:mn("save",60235),screenFull:mn("screen-full",60236),screenNormal:mn("screen-normal",60237),searchStop:mn("search-stop",60238),server:mn("server",60240),settingsGear:mn("settings-gear",60241),settings:mn("settings",60242),shield:mn("shield",60243),smiley:mn("smiley",60244),sortPrecedence:mn("sort-precedence",60245),splitHorizontal:mn("split-horizontal",60246),splitVertical:mn("split-vertical",60247),squirrel:mn("squirrel",60248),starFull:mn("star-full",60249),starHalf:mn("star-half",60250),symbolClass:mn("symbol-class",60251),symbolColor:mn("symbol-color",60252),symbolCustomColor:mn("symbol-customcolor",60252),symbolConstant:mn("symbol-constant",60253),symbolEnumMember:mn("symbol-enum-member",60254),symbolField:mn("symbol-field",60255),symbolFile:mn("symbol-file",60256),symbolInterface:mn("symbol-interface",60257),symbolKeyword:mn("symbol-keyword",60258),symbolMisc:mn("symbol-misc",60259),symbolOperator:mn("symbol-operator",60260),symbolProperty:mn("symbol-property",60261),wrench:mn("wrench",60261),wrenchSubaction:mn("wrench-subaction",60261),symbolSnippet:mn("symbol-snippet",60262),tasklist:mn("tasklist",60263),telescope:mn("telescope",60264),textSize:mn("text-size",60265),threeBars:mn("three-bars",60266),thumbsdown:mn("thumbsdown",60267),thumbsup:mn("thumbsup",60268),tools:mn("tools",60269),triangleDown:mn("triangle-down",60270),triangleLeft:mn("triangle-left",60271),triangleRight:mn("triangle-right",60272),triangleUp:mn("triangle-up",60273),twitter:mn("twitter",60274),unfold:mn("unfold",60275),unlock:mn("unlock",60276),unmute:mn("unmute",60277),unverified:mn("unverified",60278),verified:mn("verified",60279),versions:mn("versions",60280),vmActive:mn("vm-active",60281),vmOutline:mn("vm-outline",60282),vmRunning:mn("vm-running",60283),watch:mn("watch",60284),whitespace:mn("whitespace",60285),wholeWord:mn("whole-word",60286),window:mn("window",60287),wordWrap:mn("word-wrap",60288),zoomIn:mn("zoom-in",60289),zoomOut:mn("zoom-out",60290),listFilter:mn("list-filter",60291),listFlat:mn("list-flat",60292),listSelection:mn("list-selection",60293),selection:mn("selection",60293),listTree:mn("list-tree",60294),debugBreakpointFunctionUnverified:mn("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:mn("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:mn("debug-breakpoint-function-disabled",60296),debugStackframeActive:mn("debug-stackframe-active",60297),circleSmallFilled:mn("circle-small-filled",60298),debugStackframeDot:mn("debug-stackframe-dot",60298),debugStackframe:mn("debug-stackframe",60299),debugStackframeFocused:mn("debug-stackframe-focused",60299),debugBreakpointUnsupported:mn("debug-breakpoint-unsupported",60300),symbolString:mn("symbol-string",60301),debugReverseContinue:mn("debug-reverse-continue",60302),debugStepBack:mn("debug-step-back",60303),debugRestartFrame:mn("debug-restart-frame",60304),callIncoming:mn("call-incoming",60306),callOutgoing:mn("call-outgoing",60307),menu:mn("menu",60308),expandAll:mn("expand-all",60309),feedback:mn("feedback",60310),gitPullRequestReviewer:mn("git-pull-request-reviewer",60310),groupByRefType:mn("group-by-ref-type",60311),ungroupByRefType:mn("ungroup-by-ref-type",60312),account:mn("account",60313),gitPullRequestAssignee:mn("git-pull-request-assignee",60313),bellDot:mn("bell-dot",60314),debugConsole:mn("debug-console",60315),library:mn("library",60316),output:mn("output",60317),runAll:mn("run-all",60318),syncIgnored:mn("sync-ignored",60319),pinned:mn("pinned",60320),githubInverted:mn("github-inverted",60321),debugAlt:mn("debug-alt",60305),serverProcess:mn("server-process",60322),serverEnvironment:mn("server-environment",60323),pass:mn("pass",60324),stopCircle:mn("stop-circle",60325),playCircle:mn("play-circle",60326),record:mn("record",60327),debugAltSmall:mn("debug-alt-small",60328),vmConnect:mn("vm-connect",60329),cloud:mn("cloud",60330),merge:mn("merge",60331),exportIcon:mn("export",60332),graphLeft:mn("graph-left",60333),magnet:mn("magnet",60334),notebook:mn("notebook",60335),redo:mn("redo",60336),checkAll:mn("check-all",60337),pinnedDirty:mn("pinned-dirty",60338),passFilled:mn("pass-filled",60339),circleLargeFilled:mn("circle-large-filled",60340),circleLarge:mn("circle-large",60341),circleLargeOutline:mn("circle-large-outline",60341),combine:mn("combine",60342),gather:mn("gather",60342),table:mn("table",60343),variableGroup:mn("variable-group",60344),typeHierarchy:mn("type-hierarchy",60345),typeHierarchySub:mn("type-hierarchy-sub",60346),typeHierarchySuper:mn("type-hierarchy-super",60347),gitPullRequestCreate:mn("git-pull-request-create",60348),runAbove:mn("run-above",60349),runBelow:mn("run-below",60350),notebookTemplate:mn("notebook-template",60351),debugRerun:mn("debug-rerun",60352),workspaceTrusted:mn("workspace-trusted",60353),workspaceUntrusted:mn("workspace-untrusted",60354),workspaceUnspecified:mn("workspace-unspecified",60355),terminalCmd:mn("terminal-cmd",60356),terminalDebian:mn("terminal-debian",60357),terminalLinux:mn("terminal-linux",60358),terminalPowershell:mn("terminal-powershell",60359),terminalTmux:mn("terminal-tmux",60360),terminalUbuntu:mn("terminal-ubuntu",60361),terminalBash:mn("terminal-bash",60362),arrowSwap:mn("arrow-swap",60363),copy:mn("copy",60364),personAdd:mn("person-add",60365),filterFilled:mn("filter-filled",60366),wand:mn("wand",60367),debugLineByLine:mn("debug-line-by-line",60368),inspect:mn("inspect",60369),layers:mn("layers",60370),layersDot:mn("layers-dot",60371),layersActive:mn("layers-active",60372),compass:mn("compass",60373),compassDot:mn("compass-dot",60374),compassActive:mn("compass-active",60375),azure:mn("azure",60376),issueDraft:mn("issue-draft",60377),gitPullRequestClosed:mn("git-pull-request-closed",60378),gitPullRequestDraft:mn("git-pull-request-draft",60379),debugAll:mn("debug-all",60380),debugCoverage:mn("debug-coverage",60381),runErrors:mn("run-errors",60382),folderLibrary:mn("folder-library",60383),debugContinueSmall:mn("debug-continue-small",60384),beakerStop:mn("beaker-stop",60385),graphLine:mn("graph-line",60386),graphScatter:mn("graph-scatter",60387),pieChart:mn("pie-chart",60388),bracketDot:mn("bracket-dot",60389),bracketError:mn("bracket-error",60390),lockSmall:mn("lock-small",60391),azureDevops:mn("azure-devops",60392),verifiedFilled:mn("verified-filled",60393),newLine:mn("newline",60394),layout:mn("layout",60395),layoutActivitybarLeft:mn("layout-activitybar-left",60396),layoutActivitybarRight:mn("layout-activitybar-right",60397),layoutPanelLeft:mn("layout-panel-left",60398),layoutPanelCenter:mn("layout-panel-center",60399),layoutPanelJustify:mn("layout-panel-justify",60400),layoutPanelRight:mn("layout-panel-right",60401),layoutPanel:mn("layout-panel",60402),layoutSidebarLeft:mn("layout-sidebar-left",60403),layoutSidebarRight:mn("layout-sidebar-right",60404),layoutStatusbar:mn("layout-statusbar",60405),layoutMenubar:mn("layout-menubar",60406),layoutCentered:mn("layout-centered",60407),layoutSidebarRightOff:mn("layout-sidebar-right-off",60416),layoutPanelOff:mn("layout-panel-off",60417),layoutSidebarLeftOff:mn("layout-sidebar-left-off",60418),target:mn("target",60408),indent:mn("indent",60409),recordSmall:mn("record-small",60410),errorSmall:mn("error-small",60411),arrowCircleDown:mn("arrow-circle-down",60412),arrowCircleLeft:mn("arrow-circle-left",60413),arrowCircleRight:mn("arrow-circle-right",60414),arrowCircleUp:mn("arrow-circle-up",60415),heartFilled:mn("heart-filled",60420),map:mn("map",60421),mapFilled:mn("map-filled",60422),circleSmall:mn("circle-small",60423),bellSlash:mn("bell-slash",60424),bellSlashDot:mn("bell-slash-dot",60425),commentUnresolved:mn("comment-unresolved",60426),gitPullRequestGoToChanges:mn("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:mn("git-pull-request-new-changes",60428),searchFuzzy:mn("search-fuzzy",60429),commentDraft:mn("comment-draft",60430),send:mn("send",60431),sparkle:mn("sparkle",60432),insert:mn("insert",60433),mic:mn("mic",60434),thumbsDownFilled:mn("thumbsdown-filled",60435),thumbsUpFilled:mn("thumbsup-filled",60436),coffee:mn("coffee",60437),snake:mn("snake",60438),game:mn("game",60439),vr:mn("vr",60440),chip:mn("chip",60441),piano:mn("piano",60442),music:mn("music",60443),micFilled:mn("mic-filled",60444),gitFetch:mn("git-fetch",60445),copilot:mn("copilot",60446),lightbulbSparkle:mn("lightbulb-sparkle",60447),lightbulbSparkleAutofix:mn("lightbulb-sparkle-autofix",60447),robot:mn("robot",60448),sparkleFilled:mn("sparkle-filled",60449),diffSingle:mn("diff-single",60450),diffMultiple:mn("diff-multiple",60451),dialogError:mn("dialog-error","error"),dialogWarning:mn("dialog-warning","warning"),dialogInfo:mn("dialog-info","info"),dialogClose:mn("dialog-close","close"),treeItemExpanded:mn("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:mn("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:mn("tree-filter-on-type-off","list-selection"),treeFilterClear:mn("tree-filter-clear","close"),treeItemLoading:mn("tree-item-loading","loading"),menuSelection:mn("menu-selection","check"),menuSubmenu:mn("menu-submenu","chevron-right"),menuBarMore:mn("menubar-more","more"),scrollbarButtonLeft:mn("scrollbar-button-left","triangle-left"),scrollbarButtonRight:mn("scrollbar-button-right","triangle-right"),scrollbarButtonUp:mn("scrollbar-button-up","triangle-up"),scrollbarButtonDown:mn("scrollbar-button-down","triangle-down"),toolBarMore:mn("toolbar-more","more"),quickInputBack:mn("quick-input-back","arrow-left")};class yn extends v{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Dn{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var vn,bn,En,Cn;!function(e){const t=new Map;t.set(0,gn.symbolMethod),t.set(1,gn.symbolFunction),t.set(2,gn.symbolConstructor),t.set(3,gn.symbolField),t.set(4,gn.symbolVariable),t.set(5,gn.symbolClass),t.set(6,gn.symbolStruct),t.set(7,gn.symbolInterface),t.set(8,gn.symbolModule),t.set(9,gn.symbolProperty),t.set(10,gn.symbolEvent),t.set(11,gn.symbolOperator),t.set(12,gn.symbolUnit),t.set(13,gn.symbolValue),t.set(15,gn.symbolEnum),t.set(14,gn.symbolConstant),t.set(15,gn.symbolEnum),t.set(16,gn.symbolEnumMember),t.set(17,gn.symbolKeyword),t.set(27,gn.symbolSnippet),t.set(18,gn.symbolText),t.set(19,gn.symbolColor),t.set(20,gn.symbolFile),t.set(21,gn.symbolReference),t.set(22,gn.symbolCustomColor),t.set(23,gn.symbolFolder),t.set(24,gn.symbolTypeParameter),t.set(25,gn.account),t.set(26,gn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=gn.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(vn||(vn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(bn||(bn={}));!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(En||(En={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Cn||(Cn={}));P("Array","array"),P("Boolean","boolean"),P("Class","class"),P("Constant","constant"),P("Constructor","constructor"),P("Enum","enumeration"),P("EnumMember","enumeration member"),P("Event","event"),P("Field","field"),P("File","file"),P("Function","function"),P("Interface","interface"),P("Key","key"),P("Method","method"),P("Module","module"),P("Namespace","namespace"),P("Null","null"),P("Number","number"),P("Object","object"),P("Operator","operator"),P("Package","package"),P("Property","property"),P("String","string"),P("Struct","struct"),P("TypeParameter","type parameter"),P("Variable","variable");var An,Sn,xn;!function(e){const t=new Map;t.set(0,gn.symbolFile),t.set(1,gn.symbolModule),t.set(2,gn.symbolNamespace),t.set(3,gn.symbolPackage),t.set(4,gn.symbolClass),t.set(5,gn.symbolMethod),t.set(6,gn.symbolProperty),t.set(7,gn.symbolField),t.set(8,gn.symbolConstructor),t.set(9,gn.symbolEnum),t.set(10,gn.symbolInterface),t.set(11,gn.symbolFunction),t.set(12,gn.symbolVariable),t.set(13,gn.symbolConstant),t.set(14,gn.symbolString),t.set(15,gn.symbolNumber),t.set(16,gn.symbolBoolean),t.set(17,gn.symbolArray),t.set(18,gn.symbolObject),t.set(19,gn.symbolKey),t.set(20,gn.symbolNull),t.set(21,gn.symbolEnumMember),t.set(22,gn.symbolStruct),t.set(23,gn.symbolEvent),t.set(24,gn.symbolOperator),t.set(25,gn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=gn.symbolProperty),n}}(An||(An={}));class wn{static fromValue(e){switch(e){case"comment":return wn.Comment;case"imports":return wn.Imports;case"region":return wn.Region}return new wn(e)}constructor(e){this.value=e}}wn.Comment=new wn("comment"),wn.Imports=new wn("imports"),wn.Region=new wn("region"),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(Sn||(Sn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(xn||(xn={}));new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new N,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),y((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const r=new yn(this,e,t);return this._factories.set(e,r),y((()=>{const t=this._factories.get(e);t&&t===r&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var Fn,Tn,Nn,_n,kn,Ln,On,Pn,In,Bn,Mn,jn,Rn,Vn,qn,Un,Wn,Kn,$n,Hn,Jn,Gn,zn,Yn,Qn,Xn,Zn,er,tr,nr,rr,ir,sr,or,ar,ur,lr,cr,pr,dr;!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Fn||(Fn={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(Tn||(Tn={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Nn||(Nn={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(_n||(_n={})),function(e){e[e.Deprecated=1]="Deprecated"}(kn||(kn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Ln||(Ln={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(On||(On={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Pn||(Pn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(In||(In={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Bn||(Bn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(Mn||(Mn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"}(jn||(jn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Rn||(Rn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Vn||(Vn={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(qn||(qn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Un||(Un={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Wn||(Wn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Kn||(Kn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}($n||($n={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Hn||(Hn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Jn||(Jn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Gn||(Gn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(zn||(zn={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Yn||(Yn={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Qn||(Qn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Xn||(Xn={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(Zn||(Zn={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(er||(er={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(tr||(tr={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(nr||(nr={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(rr||(rr={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ir||(ir={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(sr||(sr={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(or||(or={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ar||(ar={})),function(e){e[e.Deprecated=1]="Deprecated"}(ur||(ur={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(lr||(lr={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(cr||(cr={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(pr||(pr={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(dr||(dr={}));class fr{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}fr.CtrlCmd=2048,fr.Shift=1024,fr.Alt=512,fr.WinCtrl=256;class hr extends Ut{constructor(e){super(0);for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}!function(e){const t={}}((e=>new hr(e)));var mr,gr,yr,Dr;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(mr||(mr={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(gr||(gr={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(yr||(yr={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Dr||(Dr={}));function vr(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const s=t.charCodeAt(r-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}class br{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){me(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||vr(this._wordSeparators,e,t,r,i))return n}while(n);return null}}function Er(e){throw new Error(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unreachable")}function Cr(e){e()||(e(),t(new u("Assertion Failed")))}function Ar(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}class Sr{static computeUnicodeHighlights(e,t,n){const r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),s=new xr(t),o=s.getCandidateCodePoints();let a;var u;a="allNonBasicAscii"===o?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp("".concat((u=Array.from(o),"[".concat(ce(u.map((e=>String.fromCodePoint(e))).join("")),"]"))),"g");const l=new br(null,a),c=[];let p,d=!1,f=0,h=0,m=0;e:for(let g=r,y=i;g<=y;g++){const t=e.getLineContent(g),n=t.length;l.reset(0);do{if(p=l.next(t),p){let e=p.index,r=p.index+p[0].length;if(e>0){de(t.charCodeAt(e-1))&&e--}if(r+1<n){de(t.charCodeAt(r-1))&&r++}const i=t.substring(e,r);let o=Vt(e+1,Mt,t,0);o&&o.endColumn<=e+1&&(o=null);const a=s.shouldHighlightNonBasicASCII(i,o?o.word:null);if(0!==a){3===a?f++:2===a?h++:1===a?m++:Er(a);const t=1e3;if(c.length>=t){d=!0;break e}c.push(new Ft(g,e+1,g,r+1))}}}while(p)}return{ranges:c,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:h,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new xr(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),s=De.getLocales().filter((e=>!De.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:s}}case 1:return{kind:2}}}}class xr{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=De.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of ve.codePoints)wr(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=(s=o,ge.test(s));r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||ve.isInvisibleCharacter(e)||(i=!0)}var s;return!r&&i?0:this.options.invisibleCharacters&&!wr(e)&&ve.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function wr(e){return" "===e||"\n"===e||"\t"===e}class Fr{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class Tr{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class Nr{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const i=Math.min(e.start,t[n].start),s=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new Nr(i,s))}}static tryCreate(e,t){if(!(e>t))return new Nr(e,t)}static ofLength(e){return new Nr(0,e)}static ofStartAndLength(e,t){return new Nr(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new u("Invalid range: ".concat(this.toString()))}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Nr(this.start+e,this.endExclusive+e)}deltaStart(e){return new Nr(this.start+e,this.endExclusive)}deltaEnd(e){return new Nr(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return"[".concat(this.start,", ").concat(this.endExclusive,")")}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Nr(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new Nr(t,n)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new u("Invalid clipping range: ".concat(this.toString()));return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new u("Invalid clipping range: ".concat(this.toString()));return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}function _r(e,t){const n=kr(e,t);return-1===n?void 0:e[n]}function kr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?n=i+1:r=i}return n-1}function Lr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}class Or{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(Or.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=kr(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}Or.assertInvariants=!1;class Pr{static fromRange(e){return new Pr(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new Pr(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new Ir(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new Ir(e[n].slice()));return t.ranges}static ofLength(e,t){return new Pr(e,e+t)}static deserialize(e){return new Pr(e[0],e[1])}constructor(e,t){if(e>t)throw new u("startLineNumber ".concat(e," cannot be after endLineNumberExclusive ").concat(t));this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new Pr(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new Pr(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new Pr(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return"[".concat(this.startLineNumber,",").concat(this.endLineNumberExclusive,")")}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new Pr(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Ft(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Ft(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new Nr(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Ir{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=Lr(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=kr(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=_r(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=_r(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,i=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],i=e._normalizedRanges[r];t.startLineNumber<i.startLineNumber?(s=t,n++):(s=i,r++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[r],r++);null===i?i=s:i.endLineNumberExclusive>=s.startLineNumber?i=new Pr(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(i),i=s)}return null!==i&&t.push(i),new Ir(t)}subtractFrom(e){const t=Lr(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=kr(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new Ir([e]);const r=[];let i=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>i&&r.push(new Pr(i,e.startLineNumber)),i=e.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new Pr(i,e.endLineNumberExclusive)),new Ir(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[n],s=e._normalizedRanges[r],o=i.intersect(s);o&&!o.isEmpty&&t.push(o),i.endLineNumberExclusive<s.endLineNumberExclusive?n++:r++}return new Ir(t)}getWithDelta(e){return new Ir(this._normalizedRanges.map((t=>t.delta(e))))}}class Br{static inverse(e,t,n){const r=[];let i=1,s=1;for(const a of e){const e=new Mr(new Pr(i,a.original.startLineNumber),new Pr(s,a.modified.startLineNumber),void 0);e.modified.isEmpty||r.push(e),i=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new Mr(new Pr(i,t+1),new Pr(s,n+1),void 0);return o.modified.isEmpty||r.push(o),r}constructor(e,t){this.original=e,this.modified=t}toString(){return"{".concat(this.original.toString(),"->").concat(this.modified.toString(),"}")}flip(){return new Br(this.modified,this.original)}join(e){return new Br(this.original.join(e.original),this.modified.join(e.modified))}}class Mr extends Br{constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){var e;return new Mr(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}}class jr{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return"{".concat(this.originalRange.toString(),"->").concat(this.modifiedRange.toString(),"}")}flip(){return new jr(this.modifiedRange,this.originalRange)}}class Rr{computeDiff(e,t,n){var r;const i=new $r(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let o=null;for(const a of i.changes){let e,t;e=0===a.originalEndLineNumber?new Pr(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new Pr(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new Pr(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new Pr(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new Mr(e,t,null===(r=a.charChanges)||void 0===r?void 0:r.map((e=>new jr(new Ft(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new Ft(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==n.modified.startLineNumber&&o.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new Mr(o.original.join(n.original),o.modified.join(n.modified),o.innerChanges&&n.innerChanges?o.innerChanges.concat(n.innerChanges):void 0),s.pop())),s.push(n),o=n}return Cr((()=>Ar(s,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new Fr(s,[],i.quitEarly)}}function Vr(e,t,n,r){return new Ke(e,t,n).ComputeDiff(r)}class qr{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=Hr(e[r],1),n[r]=Jr(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],u=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=u;e<l;e++)r[o]=t.charCodeAt(e-1),i[o]=a+1,s[o]=e,o++;!e&&a<n&&(r[o]=10,i[o]=a+1,s[o]=t.length+1,o++)}return new Ur(r,i,s)}}class Ur{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+"-(".concat(this._lineNumbers[t],",").concat(this._columns[t],")"))).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class Wr{constructor(e,t,n,r,i,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),u=n.getStartColumn(e.modifiedStart),l=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Wr(r,i,s,o,a,u,l,c)}}class Kr{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,s,o){let a,u,l,c,p;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,u=0):(a=n.getStartLineNumber(t.originalStart),u=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(l=r.getStartLineNumber(t.modifiedStart)-1,c=0):(l=r.getStartLineNumber(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=Vr(s,a,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],s=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}(e)),p=[];for(let t=0,n=e.length;t<n;t++)p.push(Wr.createFromDiffChange(e[t],s,a))}}return new Kr(a,u,l,c,p)}}class $r{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new qr(e),this.modified=new qr(t),this.continueLineDiff=Gr(n.maxComputationTime),this.continueCharDiff=Gr(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Vr(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(Kr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,u=e?e.modifiedStart:this.modifiedLines.length;for(;i<n&&s<u;){const e=this.originalLines[i],t=this.modifiedLines[s];if(e!==t){{let n=Hr(e,1),o=Hr(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=Jr(e,1),o=Jr(t,1);const a=e.length+1,u=t.length+1;for(;n<a&&o<u;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<u)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,s+1,o,u)}}i++,s++}e&&(r.push(Kr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new Wr(t,n,t,r,i,s,i,o)]),e.push(new Kr(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o){const a=e.length;if(0===a)return!1;const u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&(u.originalEndLineNumber===t&&u.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new Wr(t,n,t,r,i,s,i,o)),!0):u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===i&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new Wr(t,n,t,r,i,s,i,o)),!0))}}function Hr(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function Jr(e,t){const n=function(e){for(let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;t>=0;t--){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+2}function Gr(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class zr{static trivial(e,t){return new zr([new Yr(Nr.ofLength(e.length),Nr.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new zr([new Yr(Nr.ofLength(e.length),Nr.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Yr{static invert(e,t){const n=[];return function(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}(e,((e,r)=>{n.push(Yr.fromOffsetPairs(e?e.getEndExclusives():Qr.zero,r?r.getStarts():new Qr(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Yr(new Nr(e.offset1,t.offset1),new Nr(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Yr(this.seq2Range,this.seq1Range)}toString(){return"".concat(this.seq1Range," <-> ").concat(this.seq2Range)}join(e){return new Yr(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Yr(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Yr(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Yr(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Yr(t,n)}getStarts(){return new Qr(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Qr(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Qr{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return"".concat(this.offset1," <-> ").concat(this.offset2)}}Qr.zero=new Qr(0,0),Qr.max=new Qr(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class Xr{isValid(){return!0}}Xr.instance=new Xr;class Zr{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new u("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class ei{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ti(e){return 32===e||9===e}class ni{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=t[i];for(let t=0;t<e.length;t++){r++;const n=e[t],i=ni.getKey(n);this.histogram[i]=(this.histogram[i]||0)+1}r++;const n=ni.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){var t,n;let r=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)r+=Math.abs((null!==(t=this.histogram[s])&&void 0!==t?t:0)-(null!==(n=e.histogram[s])&&void 0!==n?n:0));return 1-r/(this.totalCount+e.totalCount)}}ni.chrKeys=new Map;class ri{compute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xr.instance,r=arguments.length>3?arguments[3]:void 0;if(0===e.length||0===t.length)return zr.trivial(e,t);const i=new ei(e.length,t.length),s=new ei(e.length,t.length),o=new ei(e.length,t.length);for(let f=0;f<e.length;f++)for(let a=0;a<t.length;a++){if(!n.isValid())return zr.trivialTimedOut(e,t);const u=0===f?0:i.get(f-1,a),l=0===a?0:i.get(f,a-1);let c;e.getElement(f)===t.getElement(a)?(c=0===f||0===a?0:i.get(f-1,a-1),f>0&&a>0&&3===s.get(f-1,a-1)&&(c+=o.get(f-1,a-1)),c+=r?r(f,a):1):c=-1;const p=Math.max(u,l,c);if(p===c){const e=f>0&&a>0?o.get(f-1,a-1):0;o.set(f,a,e+1),s.set(f,a,3)}else p===u?(o.set(f,a,0),s.set(f,a,1)):p===l&&(o.set(f,a,0),s.set(f,a,2));i.set(f,a,p)}const a=[];let u=e.length,l=t.length;function c(e,t){e+1===u&&t+1===l||a.push(new Yr(new Nr(e+1,u),new Nr(t+1,l))),u=e,l=t}let p=e.length-1,d=t.length-1;for(;p>=0&&d>=0;)3===s.get(p,d)?(c(p,d),p--,d--):1===s.get(p,d)?p--:d--;return c(-1,-1),a.reverse(),new zr(a,!1)}}class ii{compute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xr.instance;if(0===e.length||0===t.length)return zr.trivial(e,t);const r=e,i=t;function s(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0;const a=new oi;a.set(0,s(0,0));const u=new ai;u.set(0,0===a.get(0)?null:new si(null,0,0,a.get(0)));let l=0;e:for(;;){if(o++,!n.isValid())return zr.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(l=e;l<=t;l+=2){let n=0;const o=l===t?-1:a.get(l+1),c=l===e?-1:a.get(l-1)+1;n++;const p=Math.min(Math.max(o,c),r.length),d=p-l;if(n++,p>r.length||d>i.length)continue;const f=s(p,d);a.set(l,f);const h=p===o?u.get(l+1):u.get(l-1);if(u.set(l,f!==p?new si(h,p,d,f-p):h),a.get(l)===r.length&&a.get(l)-l===i.length)break e}}let c=u.get(l);const p=[];let d=r.length,f=i.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===d&&t===f||p.push(new Yr(new Nr(e,d),new Nr(t,f))),!c)break;d=c.x,f=c.y,c=c.prev}return p.reverse(),new zr(p,!1)}}class si{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class oi{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class ai{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var ui;class li{constructor(e,t){this.uri=e,this.value=t}}class ci{constructor(e,t){if(this[ui]="ResourceMap",e instanceof ci)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:ci.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:ci.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:ci.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new li(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(ui=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}ci.defaultToKey=e=>e.toString();Symbol.toStringTag,Symbol.iterator;class pi{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}class di{constructor(e,t,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let r=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Nr(t.start-1,t.endExclusive),r=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let i=this.lineRange.start;i<this.lineRange.endExclusive;i++){let t=e[i],s=0;if(r)s=t.length,t="",r=!1;else if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(s);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));i<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[i-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return'Slice: "'.concat(this.text,'"')}get text(){return this.getText(new Nr(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=gi(e>0?this.elements[e-1]:-1),n=gi(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=mi(t),r+=mi(n),r}translateOffset(e){if(this.lineRange.isEmpty)return new wt(this.lineRange.start+1,1);const t=kr(this.firstCharOffsetByLine,(t=>t<=e));return new wt(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return Ft.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!fi(this.elements[e]))return;let t=e;for(;t>0&&fi(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&fi(this.elements[n]);)n++;return new Nr(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,n;const r=null!==(t=_r(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,i=null!==(n=function(e,t){const n=Lr(e,t);return n===e.length?void 0:e[n]}(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==n?n:this.elements.length;return new Nr(r,i)}}function fi(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const hi={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function mi(e){return hi[e]}function gi(e){return 10===e?8:13===e?7:ti(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function yi(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=function(e,t,n,r){const i=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new ni(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new ni(e.modified,n,e)))),a=new Set;for(const u of s){let e,t=-1;for(const n of o){const r=u.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(o.delete(e),i.push(new Br(u.range,e.range)),a.add(u.source),a.add(e.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const u=function(e,t,n,r,i,s){const o=[],a=new pi;for(const f of e)for(let e=f.original.startLineNumber;e<f.original.endLineNumberExclusive-2;e++){const n="".concat(t[e-1],":").concat(t[e+1-1],":").concat(t[e+2-1]);a.add(n,{range:new Pr(e,e+3)})}const u=[];e.sort(Nt((e=>e.modified.startLineNumber),_t));for(const f of e){let e=[];for(let t=f.modified.startLineNumber;t<f.modified.endLineNumberExclusive-2;t++){const r="".concat(n[t-1],":").concat(n[t+1-1],":").concat(n[t+2-1]),i=new Pr(t,t+3),s=[];a.forEach(r,(t=>{let{range:n}=t;for(const o of e)if(o.originalLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive&&o.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return o.originalLineRange=new Pr(o.originalLineRange.startLineNumber,n.endLineNumberExclusive),o.modifiedLineRange=new Pr(o.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void s.push(o);const r={modifiedLineRange:i,originalLineRange:n};u.push(r),s.push(r)})),e=s}if(!s.isValid())return[]}u.sort((l=Nt((e=>e.modifiedLineRange.length),_t),(e,t)=>-l(e,t)));var l;const c=new Ir,p=new Ir;for(const f of u){const e=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,t=c.subtractFrom(f.modifiedLineRange),n=p.subtractFrom(f.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const i of r.ranges){if(i.length<3)continue;const t=i,n=i.delta(-e);o.push(new Br(n,t)),c.addRange(t),p.addRange(n)}}o.sort(Nt((e=>e.original.startLineNumber),_t));const d=new Or(e);for(let f=0;f<o.length;f++){const t=o[f],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=_r(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),u=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),l=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),h=_r(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(l.original.endLineNumberExclusive-t.original.endLineNumberExclusive,h.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let g,y;for(g=0;g<u;g++){const e=t.original.startLineNumber-g-1,n=t.modified.startLineNumber-g-1;if(e>r.length||n>i.length)break;if(c.contains(n)||p.contains(e))break;if(!Di(r[e-1],i[n-1],s))break}for(g>0&&(p.addRange(new Pr(t.original.startLineNumber-g,t.original.startLineNumber)),c.addRange(new Pr(t.modified.startLineNumber-g,t.modified.startLineNumber))),y=0;y<m;y++){const e=t.original.endLineNumberExclusive+y,n=t.modified.endLineNumberExclusive+y;if(e>r.length||n>i.length)break;if(c.contains(n)||p.contains(e))break;if(!Di(r[e-1],i[n-1],s))break}y>0&&(p.addRange(new Pr(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+y)),c.addRange(new Pr(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+y))),(g>0||y>0)&&(o[f]=new Br(new Pr(t.original.startLineNumber-g,t.original.endLineNumberExclusive+y),new Pr(t.modified.startLineNumber-g,t.modified.endLineNumberExclusive+y)))}return o}(e.filter((e=>!a.has(e))),r,i,t,n,s);return function(e,t){for(const n of t)e.push(n)}(o,u),o=function(e){if(0===e.length)return e;e.sort(Nt((e=>e.original.startLineNumber),_t));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new Or(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new Br(new Pr(1,1),new Pr(1,1)))!==_r(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function Di(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new ii).compute(new di([e],new Nr(0,1),!1),new di([t],new Nr(0,1),!1),n);let i=0;const s=Yr.invert(r.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ti(e.charCodeAt(t))||i++}));const o=function(t){let n=0;for(let r=0;r<e.length;r++)ti(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return i/o>.6&&o>10}function vi(e,t,n){let r=n;return r=bi(e,t,r),r=bi(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new Nr(i?i.seq1Range.start+1:0,o?o.seq1Range.endExclusive-1:e.length),u=new Nr(i?i.seq2Range.start+1:0,o?o.seq2Range.endExclusive-1:t.length);s.seq1Range.isEmpty?n[r]=Ei(s,e,t,a,u):s.seq2Range.isEmpty&&(n[r]=Ei(s.swap(),t,e,u,a).swap())}return n}(e,t,r),r}function bi(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const i=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-i.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){r[r.length-1]=new Yr(new Nr(i.seq1Range.start,o.seq1Range.endExclusive-n),new Nr(i.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const n=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<i&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===i){r[s+1]=new Yr(new Nr(o.seq1Range.start+i,n.seq1Range.endExclusive),new Nr(o.seq2Range.start+i,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Ei(e,t,n,r,i){let s=1;for(;e.seq1Range.start-s>=r.start&&e.seq2Range.start-s>=i.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,u=-1;for(let l=-s;l<=o;l++){const r=e.seq2Range.start+l,i=e.seq2Range.endExclusive+l,s=e.seq1Range.start+l,o=t.getBoundaryScore(s)+n.getBoundaryScore(r)+n.getBoundaryScore(i);o>u&&(u=o,a=l)}return e.delta(a)}class Ci{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:Ai(this.lines[e-1]))+(e===this.lines.length?0:Ai(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function Ai(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Si{constructor(){this.dynamicProgrammingDiffing=new ri,this.myersDiffingAlgorithm=new ii}computeDiff(e,t,n){if(e.length<=1&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}(e,t,((e,t)=>e===t)))return new Fr([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new Fr([new Mr(new Pr(1,e.length+1),new Pr(1,t.length+1),[new jr(new Ft(1,1,e.length,e[0].length+1),new Ft(1,1,t.length,t[0].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?Xr.instance:new Zr(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),u=t.map((e=>o(e.trim()))),l=new Ci(a,e),c=new Ci(u,t),p=(()=>l.length+c.length<1700?this.dynamicProgrammingDiffing.compute(l,c,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(l,c))();let d=p.diffs,f=p.hitTimeout;d=vi(l,c,d),d=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const o=[r[0]];for(let a=1;a<r.length;a++){const u=r[a],l=o[o.length-1];function c(t,n){const r=new Nr(l.seq1Range.endExclusive,u.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(l,u)?(i=!0,o[o.length-1]=o[o.length-1].join(u)):o.push(u)}r=o}while(s++<10&&i);return r}(l,0,d);const h=[],m=n=>{if(i)for(let s=0;s<n;s++){const n=g+s,o=y+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Yr(new Nr(n,n+1),new Nr(o,o+1)),r,i);for(const e of s.mappings)h.push(e);s.hitTimeout&&(f=!0)}}};let g=0,y=0;for(const b of d){Cr((()=>b.seq1Range.start-g===b.seq2Range.start-y));m(b.seq1Range.start-g),g=b.seq1Range.endExclusive,y=b.seq2Range.endExclusive;const n=this.refineDiff(e,t,b,r,i);n.hitTimeout&&(f=!0);for(const e of n.mappings)h.push(e)}m(e.length-g);const D=xi(h,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(D,e,t,a,u,r,i)),Cr((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const i of D){if(!i.innerChanges)return!1;for(const r of i.innerChanges){if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1}if(!r(i.modified,t)||!r(i.original,e))return!1}return!0})),new Fr(D,v,f)}computeMoves(e,t,n,r,i,s,o){return yi(e,t,n,r,i,s).map((e=>{const r=xi(this.refineDiff(t,n,new Yr(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new Tr(e,r)}))}refineDiff(e,t,n,r,i){const s=new di(e,n.seq1Range,i),o=new di(t,n.seq2Range,i),a=s.length+o.length<500?this.dynamicProgrammingDiffing.compute(s,o,r):this.myersDiffingAlgorithm.compute(s,o,r);let u=a.diffs;u=vi(s,o,u),u=function(e,t,n){const r=[];let i;function s(){if(!i)return;const e=i.s1Range.length-i.deleted;i.s2Range.length,i.added,Math.max(i.deleted,i.added)+(i.count-1)>e&&r.push(new Yr(i.s1Range,i.s2Range)),i=void 0}for(const o of n){function a(e,t){var n,r,a,u;if(!i||!i.s1Range.containsRange(e)||!i.s2Range.containsRange(t))if(!i||i.s1Range.endExclusive<e.start&&i.s2Range.endExclusive<t.start)s(),i={added:0,deleted:0,count:0,s1Range:e,s2Range:t};else{const s=Nr.tryCreate(i.s1Range.endExclusive,e.start),o=Nr.tryCreate(i.s2Range.endExclusive,t.start);i.deleted+=null!==(n=null===s||void 0===s?void 0:s.length)&&void 0!==n?n:0,i.added+=null!==(r=null===o||void 0===o?void 0:o.length)&&void 0!==r?r:0,i.s1Range=i.s1Range.join(e),i.s2Range=i.s2Range.join(t)}const l=e.intersect(o.seq1Range),c=t.intersect(o.seq2Range);i.count++,i.deleted+=null!==(a=null===l||void 0===l?void 0:l.length)&&void 0!==a?a:0,i.added+=null!==(u=null===c||void 0===c?void 0:c.length)&&void 0!==u?u:0}const u=e.findWordContaining(o.seq1Range.start-1),l=t.findWordContaining(o.seq2Range.start-1),c=e.findWordContaining(o.seq1Range.endExclusive),p=t.findWordContaining(o.seq2Range.endExclusive);u&&c&&l&&p&&u.equals(c)&&l.equals(p)?a(u,l):(u&&l&&a(u,l),c&&p&&a(c,p))}return s(),function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;s=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(s,o,u),u=function(e,t,n){const r=[];for(const i of n){const e=r[r.length-1];e&&(i.seq1Range.start-e.seq1Range.endExclusive<=2||i.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new Yr(e.seq1Range.join(i.seq1Range),e.seq2Range.join(i.seq2Range)):r.push(i)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const a=[r[0]];for(let u=1;u<r.length;u++){const l=r[u],c=a[a.length-1];function p(n,r){const i=new Nr(c.seq1Range.endExclusive,l.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const s=e.getText(i).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),p=n.seq2Range.length,d=e.countLinesIn(r.seq1Range),f=r.seq1Range.length,h=t.countLinesIn(r.seq2Range),m=r.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*o+a),1.5)+Math.pow(g(40*u+p),1.5),1.5)+Math.pow(Math.pow(g(40*d+f),1.5)+Math.pow(g(40*h+m),1.5),1.5)>74184.96480721243}p(c,l)?(i=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(s++<10&&i);const o=[];return function(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}(r,((t,n,r)=>{let i=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),u=e.getText(new Nr(a.start,n.seq1Range.start));s(u)&&(i=i.deltaStart(-u.length));const l=e.getText(new Nr(n.seq1Range.endExclusive,a.endExclusive));s(l)&&(i=i.deltaEnd(l.length));const c=Yr.fromOffsetPairs(t?t.getEndExclusives():Qr.zero,r?r.getStarts():Qr.max),p=i.intersect(c);o.push(p)})),o}(s,o,u);return{mappings:u.map((e=>new jr(s.translateRange(e.seq1Range),o.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function xi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=[];for(const s of function*(e,t){let n,r;for(const i of e)void 0!==r&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}(e.map((e=>function(e,t,n){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new Pr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new Pr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new Mr(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];i.push(new Mr(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return Cr((()=>!(!r&&i.length>0&&i[0].original.startLineNumber!==i[0].modified.startLineNumber)&&Ar(i,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),i}const wi=()=>new Rr,Fi=()=>new Si;function Ti(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Ni{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Ti(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class _i{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Ti(Math.max(Math.min(1,t),0),3),this.l=Ti(Math.max(Math.min(1,n),0),3),this.a=Ti(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=e.a,s=Math.max(t,n,r),o=Math.min(t,n,r);let a=0,u=0;const l=(o+s)/2,c=s-o;if(c>0){switch(u=Math.min(l<=.5?c/(2*l):c/(2-2*l),1),s){case t:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-t)/c+2;break;case r:a=(t-n)/c+4}a*=60,a=Math.round(a)}return new _i(a,u,l,i)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:i}=e;let s,o,a;if(0===n)s=o=a=r;else{const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;s=_i._hue2rgb(i,e,t+1/3),o=_i._hue2rgb(i,e,t),a=_i._hue2rgb(i,e,t-1/3)}return new Ni(Math.round(255*s),Math.round(255*o),Math.round(255*a),i)}}class ki{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Ti(Math.max(Math.min(1,t),0),3),this.v=Ti(Math.max(Math.min(1,n),0),3),this.a=Ti(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),s=i-Math.min(t,n,r),o=0===i?0:s/i;let a;return a=0===s?0:i===t?((n-r)/s%6+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,new ki(Math.round(60*a),o,i,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:i}=e,s=r*n,o=s*(1-Math.abs(t/60%2-1)),a=r-s;let[u,l,c]=[0,0,0];return t<60?(u=s,l=o):t<120?(u=o,l=s):t<180?(l=s,c=o):t<240?(l=o,c=s):t<300?(u=o,c=s):t<=360&&(u=s,c=o),u=Math.round(255*(u+a)),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),new Ni(u,l,c,i)}}class Li{static fromHex(e){return Li.Format.CSS.parseHex(e)||Li.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:_i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ki.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Ni)this.rgba=e;else if(e instanceof _i)this._hsla=e,this.rgba=_i.toRGBA(e);else{if(!(e instanceof ki))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=ki.toRGBA(e)}}equals(e){return!!e&&Ni.equals(this.rgba,e.rgba)&&_i.equals(this.hsla,e.hsla)&&ki.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Ti(.2126*Li._relativeLuminanceForComponent(this.rgba.r)+.7152*Li._relativeLuminanceForComponent(this.rgba.g)+.0722*Li._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Li(new _i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Li(new _i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:i}=this.rgba;return new Li(new Ni(t,n,r,i*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Li(new Ni(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:i}=this.rgba;return new Li(new Ni(e.rgba.r-i*(e.rgba.r-t),e.rgba.g-i*(e.rgba.g-n),e.rgba.b-i*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Li.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}}function Oi(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Pi(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ii(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Bi(e,t){if(!e)return;const n=Li.Format.CSS.parseHex(t);return n?{range:e,color:Pi(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Mi(e,t,n){if(!e||1!==t.length)return;const r=Oi(t[0].values());return{range:e,color:Pi(r[0],r[1],r[2],n?r[3]:1)}}function ji(e,t,n){if(!e||1!==t.length)return;const r=Oi(t[0].values()),i=new Li(new _i(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Pi(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Ri(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Vi(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Ri(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),i=n[1],s=n[2];if(!s)continue;let o;if("rgb"===i){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Mi(Ii(e,r),Ri(s,t),!1)}else if("rgba"===i){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Mi(Ii(e,r),Ri(s,t),!0)}else if("hsl"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=ji(Ii(e,r),Ri(s,t),!1)}else if("hsla"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=ji(Ii(e,r),Ri(s,t),!0)}else"#"===i&&(o=Bi(Ii(e,r),i+s));o&&t.push(o)}return t}(e):[]}Li.white=new Li(new Ni(255,255,255,1)),Li.black=new Li(new Ni(0,0,0,1)),Li.red=new Li(new Ni(255,0,0,1)),Li.blue=new Li(new Ni(0,0,255,1)),Li.green=new Li(new Ni(0,255,0,1)),Li.cyan=new Li(new Ni(0,255,255,1)),Li.lightgrey=new Li(new Ni(211,211,211,1)),Li.transparent=new Li(new Ni(0,0,0,0)),function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?"rgb(".concat(t.rgba.r,", ").concat(t.rgba.g,", ").concat(t.rgba.b,")"):e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return"rgba(".concat(e.rgba.r,", ").concat(e.rgba.g,", ").concat(e.rgba.b,", ").concat(+e.rgba.a.toFixed(2),")")},t.formatHSL=function(t){return 1===t.hsla.a?"hsl(".concat(t.hsla.h,", ").concat((100*t.hsla.s).toFixed(2),"%, ").concat((100*t.hsla.l).toFixed(2),"%)"):e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return"hsla(".concat(e.hsla.h,", ").concat((100*e.hsla.s).toFixed(2),"%, ").concat((100*e.hsla.l).toFixed(2),"%, ").concat(e.hsla.a.toFixed(2),")")},t.formatHex=function(e){return"#".concat(n(e.rgba.r)).concat(n(e.rgba.g)).concat(n(e.rgba.b))},t.formatHexA=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#".concat(n(t.rgba.r)).concat(n(t.rgba.g)).concat(n(t.rgba.b)).concat(n(Math.round(255*t.rgba.a)))},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),s=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new Ni(n,i,s,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),s=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),o=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new Ni(n,i,s,o/255))}if(4===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),s=r(t.charCodeAt(3));return new e(new Ni(16*n+n,16*i+i,16*s+s))}if(5===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),s=r(t.charCodeAt(3)),o=r(t.charCodeAt(4));return new e(new Ni(16*n+n,16*i+i,16*s+s,(16*o+o)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(Li||(Li={}));class qi extends Bt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],i=this.offsetAt(new wt(n+1,1)),s=r.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=Vt(e.column,jt(t),this._lines[e.lineNumber-1],0);return n?new Ft(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=i.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(r<t.length))break;i=t[r],o=n(i,e),s=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const s of r)i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<r;s++)i.push(this._lines[s]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!wt.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const 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 Ui{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(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new qi(mt.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]}async computeUnicodeHighlights(e,t,n){const r=this._getModel(e);return r?Sr.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(e,t,n,r){const i=this._getModel(e),s=this._getModel(t);return i&&s?Ui.computeDiff(i,s,n,r):null}static computeDiff(e,t,n,r){const i="advanced"===r?Fi():wi(),s=e.getLinesContent(),o=t.getLinesContent(),a=i.computeDiff(s,o,n);function u(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:u(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,u(e.changes)]))}}static _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}async computeMoreMinimalEdits(e,t,n){const r=this._getModel(e);if(!r)return t;const i=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return Ft.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let o=0;for(let a=1;a<t.length;a++)Ft.getEndPosition(t[o].range).equals(Ft.getStartPosition(t[a].range))?(t[o].range=Ft.fromPositions(Ft.getStartPosition(t[o].range),Ft.getEndPosition(t[a].range)),t[o].text+=t[a].text):(o++,t[o]=t[a]);t.length=o+1;for(let{range:a,text:u,eol:l}of t){if("number"===typeof l&&(s=l),Ft.isEmpty(a)&&!u)continue;const e=r.getValueInRange(a);if(u=u.replace(/\r\n|\n|\r/g,r.eol),e===u)continue;if(Math.max(u.length,e.length)>Ui._diffLimit){i.push({range:a,text:u});continue}const t=Ve(e,u,n),o=r.offsetAt(Ft.lift(a).getStartPosition());for(const n of t){const e=r.positionAt(o+n.originalStart),t=r.positionAt(o+n.originalStart+n.originalLength),s={text:u.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"===typeof s&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Jt.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Vi(t):null}async textualSuggest(e,t,n,r){const i=new A,s=new RegExp(n,r),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Ui._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async computeWordRanges(e,t,n,r){const i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=i.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async navigateValueSet(e,t,n,r,i){const s=this._getModel(e);if(!s)return null;const o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),u=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!u)return null;const l=s.getValueInRange(u);return Gt.INSTANCE.navigateValueSet(t,a,u,l,n)}loadForeignModule(e,t,n){const r=function(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const i of e)r[i]=n(i);return r}(n,((e,t)=>this._host.fhr(e,t))),i={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(k(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(qf){return Promise.reject(qf)}}}Ui._diffLimit=1e5,Ui._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Xt,Emitter:N,KeyCode:Hn,KeyMod:fr,Position:wt,Range:Ft,Selection:dn,SelectionDirection:ir,MarkerSeverity:Jn,MarkerTag:Gn,Uri:mt,Token:Dn});let Wi=!1;function Ki(e){if(Wi)return;Wi=!0;const t=new ke((e=>{globalThis.postMessage(e)}),(t=>new Ui(t,e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}globalThis.onmessage=e=>{Wi||Ki(null)};class $i{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(let n of e)if($i.isIncremental(n)){const e=Yi(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=zi(n.text,!1,t);if(s-i===a.length)for(let n=0,l=a.length;n<l;n++)o[n+i+1]=a[n];else a.length<1e4?o.splice(i+1,s-i,...a):this._lineOffsets=o=o.slice(0,i+1).concat(a,o.slice(s+1));const u=n.text.length-(r-t);if(0!==u)for(let n=i+1+a.length,l=o.length;n<l;n++)o[n]=o[n]+u}else{if(!$i.isFull(n))throw new Error("Unknown change event received");this._content=n.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=zi(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var Hi,Ji;function Gi(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Gi(r,t),Gi(i,t);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;){let n=t(r[s],i[o]);e[a++]=n<=0?r[s++]:i[o++]}for(;s<r.length;)e[a++]=r[s++];for(;o<i.length;)e[a++]=i[o++];return e}function zi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=t?[n]:[];for(let i=0;i<e.length;i++){let t=e.charCodeAt(i);13!==t&&10!==t||(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function Yi(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Qi(e){const t=Yi(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Xi(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.length;let r=0,i="",s=0,o=16,a=0,u=0,l=0,c=0,p=0;function d(t,n){let i=0,s=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)s=16*s+t-48;else if(t>=65&&t<=70)s=16*s+t-65+10;else{if(!(t>=97&&t<=102))break;s=16*s+t-97+10}r++,i++}return i<t&&(s=-1),s}function f(){if(i="",p=0,s=r,u=a,c=l,r>=n)return s=n,o=17;let t=e.charCodeAt(r);if(Zi(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Zi(t));return o=15}if(es(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,l=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),p=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(i,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(es(s)){t+=e.substring(i,r),p=2;break}p=6}r++}else{if(t+=e.substring(i,r),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:const e=d(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}i=r}}return t}(),o=10;case 47:const u=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!es(e.charCodeAt(r));)r++;return i=e.substring(u,r),o=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let s=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,s=!0;break}r++,es(t)&&(13===t&&10===e.charCodeAt(r)&&r++,a++,l=r)}return s||(r++,p=1),i=e.substring(u,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!ts(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&ts(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&ts(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&ts(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&ts(e.charCodeAt(r))){for(r++;r<e.length&&ts(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),o=11;default:for(;r<n&&h(t);)r++,t=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function h(e){if(Zi(e)||es(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",s=0,o=16,p=0},getPosition:()=>r,scan:t?function(){let e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-c,getTokenError:()=>p}}function Zi(e){return 32===e||9===e}function es(e){return 10===e||13===e}function ts(e){return e>=48&&e<=57}!function(e){e.create=function(e,t,n,r){return new $i(e,t,n,r)},e.update=function(e,t,n){if(e instanceof $i)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=Gi(t.map(Qi),((e,t)=>{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 s=[];for(const o of r){let t=e.offsetAt(o.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&s.push(n.substring(i,t)),o.newText.length&&s.push(o.newText),i=e.offsetAt(o.range.end)}return s.push(n.substr(i)),s.join("")}}(Hi||(Hi={})),function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(Ji||(Ji={}));new Array(20).fill(0).map(((e,t)=>" ".repeat(t)));const ns=200;new Array(ns).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),new Array(ns).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),new Array(ns).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t))),new Array(ns).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),new Array(ns).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),new Array(ns).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)));var rs;function is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rs.DEFAULT;const r=Xi(e,!1),i=[];function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}function a(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}const l=o(t.onObjectBegin),c=u(t.onObjectProperty),p=s(t.onObjectEnd),d=o(t.onArrayBegin),f=s(t.onArrayEnd),h=u(t.onLiteralValue),m=a(t.onSeparator),g=s(t.onComment),y=a(t.onError),D=n&&n.disallowComments,v=n&&n.allowTrailingComma;function b(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:D||E(11);break;case 2:E(12);break;case 6:E(16)}switch(e){case 12:case 13:D?E(10):g();break;case 16:E(1);break;case 15:case 14:break;default:return e}}}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(y(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){b();break}if(-1!==n.indexOf(e))break;e=b()}}}function C(e){const t=r.getTokenValue();return e?h(t):(c(t),i.push(t)),b(),!0}function A(){switch(r.getToken()){case 3:return function(){d(),b();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||E(4,[],[]),m(","),b(),4===r.getToken()&&v)break}else t&&E(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,A()||E(4,[],[4,5]),t=!0}return f(),e||i.pop(),4!==r.getToken()?E(8,[4],[]):b(),!0}();case 1:return function(){l(),b();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||E(4,[],[]),m(","),b(),2===r.getToken()&&v)break}else e&&E(6,[],[]);(10!==r.getToken()?(E(3,[],[2,5]),0):(C(!1),6===r.getToken()?(m(":"),b(),A()||E(4,[],[2,5])):E(5,[],[2,5]),i.pop(),1))||E(4,[],[2,5]),e=!0}return p(),2!==r.getToken()?E(7,[2],[]):b(),!0}();case 10:return C(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(E(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return b(),!0}()}}return b(),17===r.getToken()?!!n.allowEmptyContent||(E(4,[],[]),!1):A()?(17!==r.getToken()&&E(9,[],[]),!0):(E(4,[],[]),!1)}!function(e){e.DEFAULT={allowTrailingComma:!1}}(rs||(rs={}));const ss=Xi;var os,as;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(os||(os={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(as||(as={}));const us=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rs.DEFAULT,r=null,i=[];const s=[];function o(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return is(e,{onObjectBegin:()=>{const e={};o(e),s.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const e=[];o(e),s.push(i),i=e,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:o,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]},ls=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const i=t.children;if(Array.isArray(i))for(let t=0;t<i.length&&i[t].offset<=n;t++){const s=e(i[t],n,r);if(s)return s}return t}},cs=function e(t){if(!t.parent||!t.parent.children)return[];const n=e(t.parent);if("property"===t.parent.type){const e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){const e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n},ps=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};var ds,fs;function hs(e){return hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hs(e)}function ms(e){var t=function(e,t){if("object"!=hs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hs(t)?t:t+""}function gs(e,t,n){return(t=ms(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(ds||(ds={})),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,l=o<u?o:u,c=-1,p=0;p<=l;++p){if(p===l){if(u>l){if(47===n.charCodeAt(a+p))return n.slice(a+p+1);if(0===p)return n.slice(a+p)}else o>l&&(47===e.charCodeAt(i+p)?c=p:0===p&&(c=0));break}var d=e.charCodeAt(i+p);if(d!==n.charCodeAt(a+p))break;47===d&&(c=p)}var f="";for(p=i+c+1;p<=s;++p)p!==s&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===u&&(o=!1,u=r+1),a>=0&&(l===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=u))}return i===s?s=u:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(s=!1,i=a+1),46===u?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,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+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,u=-1,l=!0,c=e.length-1,p=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===u&&(l=!1,u=c+1),46===i?-1===o?o=c:1!==p&&(p=1):-1!==o&&(p=-1);else if(!l){a=c+1;break}return-1===o||-1===u||0===p||1===p&&o===u-1&&o===a+1?-1!==u&&(n.base=n.name=0===a&&s?e.slice(1,u):e.slice(a,u)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,u)):(n.name=e.slice(a,o),n.base=e.slice(a,u)),n.ext=e.slice(o,u)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>c,Utils:()=>S}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.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(s.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 ("//")')}const a="",u="/",l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!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}constructor(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];gs(this,"scheme",void 0),gs(this,"authority",void 0),gs(this,"path",void 0),gs(this,"query",void 0),gs(this,"fragment",void 0),"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||a),this.query=r||a,this.fragment=i||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===i?i=this.query:null===i&&(i=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new d(t,n,r,i,s)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=l.exec(e);return n?new d(n[2]||a,b(n[4]||a),b(n[5]||a),b(n[7]||a),b(n[9]||a),t):new d(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,u)),t[0]===u&&t[1]===u){const e=t.indexOf(u,2);-1===e?(n=t.substring(2),t=u):(n=t.substring(2,e),t=t.substring(e)||u)}return new d("file",n,t,a,a)}static from(e){const t=new d(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(){return y(this,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new d(e);return t._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t}}return e}}const p=e?1:void 0;class d extends c{constructor(){super(...arguments),gs(this,"_formatted",null),gs(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),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 f={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 h(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=f[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function m(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=f[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?"//".concat(t.authority).concat(t.path):47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function y(e,t){const n=t?m:h;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=u,r+=u),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o="/".concat(String.fromCharCode(e+32),":").concat(o.substr(3)))}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o="".concat(String.fromCharCode(e+32),":").concat(o.substr(2)))}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:h(l,!1,!1)),r}function D(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+D(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(v)?e.replace(v,(e=>D(e))):e}var E=n(470);const C=E.posix||E,A="/";var S;!function(e){e.joinPath=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.with({path:C.join(e.path,...n)})},e.resolvePath=function(e){let t=e.path,n=!1;t[0]!==A&&(t=A+t,n=!0);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];let o=C.resolve(t,...i);return n&&o[0]===A&&!e.authority&&(o=o.substring(1)),e.with({path:o})},e.dirname=function(e){if(0===e.path.length||e.path===A)return e;let t=C.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return C.basename(e.path)},e.extname=function(e){return C.extname(e.path)}}(S||(S={}))})(),fs=r})();const{URI:ys,Utils:Ds}=fs;var vs,bs,Es,Cs,As,Ss,xs,ws,Fs,Ts,Ns,_s,ks,Ls,Os,Ps,Is,Bs,Ms,js,Rs,Vs,qs,Us,Ws,Ks,$s,Hs,Js,Gs,zs,Ys,Qs,Xs,Zs,eo,to,no,ro,io,so,oo,ao,uo,lo,co,po,fo,ho,mo,go,yo,Do,vo,bo,Eo,Co,Ao,So,xo,wo,Fo,To,No,_o,ko,Lo,Oo,Po,Io,Bo,Mo,jo,Ro,Vo,qo,Uo,Wo;!function(e){e.is=function(e){return"string"===typeof e}}(vs||(vs={})),function(e){e.is=function(e){return"string"===typeof e}}(bs||(bs={})),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}}(Es||(Es={})),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}}(Cs||(Cs={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=Cs.MAX_VALUE),t===Number.MAX_VALUE&&(t=Cs.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return $o.objectLiteral(t)&&$o.uinteger(t.line)&&$o.uinteger(t.character)}}(As||(As={})),function(e){e.create=function(e,t,n,r){if($o.uinteger(e)&&$o.uinteger(t)&&$o.uinteger(n)&&$o.uinteger(r))return{start:As.create(e,t),end:As.create(n,r)};if(As.is(e)&&As.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){let t=e;return $o.objectLiteral(t)&&As.is(t.start)&&As.is(t.end)}}(Ss||(Ss={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return $o.objectLiteral(t)&&Ss.is(t.range)&&($o.string(t.uri)||$o.undefined(t.uri))}}(xs||(xs={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return $o.objectLiteral(t)&&Ss.is(t.targetRange)&&$o.string(t.targetUri)&&Ss.is(t.targetSelectionRange)&&(Ss.is(t.originSelectionRange)||$o.undefined(t.originSelectionRange))}}(ws||(ws={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return $o.objectLiteral(t)&&$o.numberRange(t.red,0,1)&&$o.numberRange(t.green,0,1)&&$o.numberRange(t.blue,0,1)&&$o.numberRange(t.alpha,0,1)}}(Fs||(Fs={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return $o.objectLiteral(t)&&Ss.is(t.range)&&Fs.is(t.color)}}(Ts||(Ts={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return $o.objectLiteral(t)&&$o.string(t.label)&&($o.undefined(t.textEdit)||js.is(t))&&($o.undefined(t.additionalTextEdits)||$o.typedArray(t.additionalTextEdits,js.is))}}(Ns||(Ns={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(_s||(_s={})),function(e){e.create=function(e,t,n,r,i,s){const o={startLine:e,endLine:t};return $o.defined(n)&&(o.startCharacter=n),$o.defined(r)&&(o.endCharacter=r),$o.defined(i)&&(o.kind=i),$o.defined(s)&&(o.collapsedText=s),o},e.is=function(e){const t=e;return $o.objectLiteral(t)&&$o.uinteger(t.startLine)&&$o.uinteger(t.startLine)&&($o.undefined(t.startCharacter)||$o.uinteger(t.startCharacter))&&($o.undefined(t.endCharacter)||$o.uinteger(t.endCharacter))&&($o.undefined(t.kind)||$o.string(t.kind))}}(ks||(ks={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return $o.defined(t)&&xs.is(t.location)&&$o.string(t.message)}}(Ls||(Ls={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Os||(Os={})),function(e){e.Unnecessary=1,e.Deprecated=2}(Ps||(Ps={})),function(e){e.is=function(e){const t=e;return $o.objectLiteral(t)&&$o.string(t.href)}}(Is||(Is={})),function(e){e.create=function(e,t,n,r,i,s){let o={range:e,message:t};return $o.defined(n)&&(o.severity=n),$o.defined(r)&&(o.code=r),$o.defined(i)&&(o.source=i),$o.defined(s)&&(o.relatedInformation=s),o},e.is=function(e){var t;let n=e;return $o.defined(n)&&Ss.is(n.range)&&$o.string(n.message)&&($o.number(n.severity)||$o.undefined(n.severity))&&($o.integer(n.code)||$o.string(n.code)||$o.undefined(n.code))&&($o.undefined(n.codeDescription)||$o.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&($o.string(n.source)||$o.undefined(n.source))&&($o.undefined(n.relatedInformation)||$o.typedArray(n.relatedInformation,Ls.is))}}(Bs||(Bs={})),function(e){e.create=function(e,t){let n={title:e,command:t};for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return $o.defined(i)&&i.length>0&&(n.arguments=i),n},e.is=function(e){let t=e;return $o.defined(t)&&$o.string(t.title)&&$o.string(t.command)}}(Ms||(Ms={})),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){const t=e;return $o.objectLiteral(t)&&$o.string(t.newText)&&Ss.is(t.range)}}(js||(js={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return $o.objectLiteral(t)&&$o.string(t.label)&&($o.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&($o.string(t.description)||void 0===t.description)}}(Rs||(Rs={})),function(e){e.is=function(e){const t=e;return $o.string(t)}}(Vs||(Vs={})),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){const t=e;return js.is(t)&&(Rs.is(t.annotationId)||Vs.is(t.annotationId))}}(qs||(qs={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return $o.defined(t)&&zs.is(t.textDocument)&&Array.isArray(t.edits)}}(Us||(Us={})),function(e){e.create=function(e,t,n){let 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){let t=e;return t&&"create"===t.kind&&$o.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||$o.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$o.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Vs.is(t.annotationId))}}(Ws||(Ws={})),function(e){e.create=function(e,t,n,r){let 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){let t=e;return t&&"rename"===t.kind&&$o.string(t.oldUri)&&$o.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||$o.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$o.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Vs.is(t.annotationId))}}(Ks||(Ks={})),function(e){e.create=function(e,t,n){let 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){let t=e;return t&&"delete"===t.kind&&$o.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||$o.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||$o.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Vs.is(t.annotationId))}}($s||($s={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>$o.string(e.kind)?Ws.is(e)||Ks.is(e)||$s.is(e):Us.is(e))))}}(Hs||(Hs={}));!function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return $o.defined(t)&&$o.string(t.uri)}}(Js||(Js={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return $o.defined(t)&&$o.string(t.uri)&&$o.integer(t.version)}}(Gs||(Gs={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return $o.defined(t)&&$o.string(t.uri)&&(null===t.version||$o.integer(t.version))}}(zs||(zs={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return $o.defined(t)&&$o.string(t.uri)&&$o.string(t.languageId)&&$o.integer(t.version)&&$o.string(t.text)}}(Ys||(Ys={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(Qs||(Qs={})),function(e){e.is=function(e){const t=e;return $o.objectLiteral(e)&&Qs.is(t.kind)&&$o.string(t.value)}}(Xs||(Xs={})),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}(Zs||(Zs={})),function(e){e.PlainText=1,e.Snippet=2}(eo||(eo={})),function(e){e.Deprecated=1}(to||(to={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&$o.string(t.newText)&&Ss.is(t.insert)&&Ss.is(t.replace)}}(no||(no={})),function(e){e.asIs=1,e.adjustIndentation=2}(ro||(ro={})),function(e){e.is=function(e){const t=e;return t&&($o.string(t.detail)||void 0===t.detail)&&($o.string(t.description)||void 0===t.description)}}(io||(io={})),function(e){e.create=function(e){return{label:e}}}(so||(so={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(oo||(oo={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return $o.string(t)||$o.objectLiteral(t)&&$o.string(t.language)&&$o.string(t.value)}}(ao||(ao={})),function(e){e.is=function(e){let t=e;return!!t&&$o.objectLiteral(t)&&(Xs.is(t.contents)||ao.is(t.contents)||$o.typedArray(t.contents,ao.is))&&(void 0===e.range||Ss.is(e.range))}}(uo||(uo={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(lo||(lo={})),function(e){e.create=function(e,t){let n={label:e};$o.defined(t)&&(n.documentation=t);for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return $o.defined(i)?n.parameters=i:n.parameters=[],n}}(co||(co={})),function(e){e.Text=1,e.Read=2,e.Write=3}(po||(po={})),function(e){e.create=function(e,t){let n={range:e};return $o.number(t)&&(n.kind=t),n}}(fo||(fo={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ho||(ho={})),function(e){e.Deprecated=1}(mo||(mo={})),function(e){e.create=function(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s}}(go||(go={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(yo||(yo={})),function(e){e.create=function(e,t,n,r,i,s){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},e.is=function(e){let t=e;return t&&$o.string(t.name)&&$o.number(t.kind)&&Ss.is(t.range)&&Ss.is(t.selectionRange)&&(void 0===t.detail||$o.string(t.detail))&&(void 0===t.deprecated||$o.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Do||(Do={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(vo||(vo={})),function(e){e.Invoked=1,e.Automatic=2}(bo||(bo={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return $o.defined(t)&&$o.typedArray(t.diagnostics,Bs.is)&&(void 0===t.only||$o.typedArray(t.only,$o.string))&&(void 0===t.triggerKind||t.triggerKind===bo.Invoked||t.triggerKind===bo.Automatic)}}(Eo||(Eo={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):Ms.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&$o.string(t.title)&&(void 0===t.diagnostics||$o.typedArray(t.diagnostics,Bs.is))&&(void 0===t.kind||$o.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Ms.is(t.command))&&(void 0===t.isPreferred||$o.boolean(t.isPreferred))&&(void 0===t.edit||Hs.is(t.edit))}}(Co||(Co={})),function(e){e.create=function(e,t){let n={range:e};return $o.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return $o.defined(t)&&Ss.is(t.range)&&($o.undefined(t.command)||Ms.is(t.command))}}(Ao||(Ao={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return $o.defined(t)&&$o.uinteger(t.tabSize)&&$o.boolean(t.insertSpaces)}}(So||(So={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return $o.defined(t)&&Ss.is(t.range)&&($o.undefined(t.target)||$o.string(t.target))}}(xo||(xo={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return $o.objectLiteral(n)&&Ss.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(wo||(wo={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(Fo||(Fo={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(To||(To={})),function(e){e.is=function(e){const t=e;return $o.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])}}(No||(No={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return void 0!==t&&null!==t&&Ss.is(t.range)&&$o.string(t.text)}}(_o||(_o={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return void 0!==t&&null!==t&&Ss.is(t.range)&&$o.boolean(t.caseSensitiveLookup)&&($o.string(t.variableName)||void 0===t.variableName)}}(ko||(ko={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return void 0!==t&&null!==t&&Ss.is(t.range)&&($o.string(t.expression)||void 0===t.expression)}}(Lo||(Lo={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return $o.defined(t)&&Ss.is(e.stoppedLocation)}}(Oo||(Oo={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Po||(Po={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return $o.objectLiteral(t)&&(void 0===t.tooltip||$o.string(t.tooltip)||Xs.is(t.tooltip))&&(void 0===t.location||xs.is(t.location))&&(void 0===t.command||Ms.is(t.command))}}(Io||(Io={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return $o.objectLiteral(t)&&As.is(t.position)&&($o.string(t.label)||$o.typedArray(t.label,Io.is))&&(void 0===t.kind||Po.is(t.kind))&&void 0===t.textEdits||$o.typedArray(t.textEdits,js.is)&&(void 0===t.tooltip||$o.string(t.tooltip)||Xs.is(t.tooltip))&&(void 0===t.paddingLeft||$o.boolean(t.paddingLeft))&&(void 0===t.paddingRight||$o.boolean(t.paddingRight))}}(Bo||(Bo={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Mo||(Mo={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(jo||(jo={})),function(e){e.create=function(e){return{items:e}}}(Ro||(Ro={})),function(e){e.Invoked=0,e.Automatic=1}(Vo||(Vo={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(qo||(qo={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Uo||(Uo={})),function(e){e.is=function(e){const t=e;return $o.objectLiteral(t)&&bs.is(t.uri)&&$o.string(t.name)}}(Wo||(Wo={}));var Ko,$o;!function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);let o=0,a=0,u=0;for(;o<i.length&&a<s.length;){let t=n(i[o],s[a]);e[u++]=t<=0?i[o++]:s[a++]}for(;o<i.length;)e[u++]=i[o++];for(;a<s.length;)e[u++]=s[a++];return e}e.create=function(e,t,n,r){return new Ho(e,t,n,r)},e.is=function(e){let t=e;return!!($o.defined(t)&&$o.string(t.uri)&&($o.undefined(t.languageId)||$o.string(t.languageId))&&$o.uinteger(t.lineCount)&&$o.func(t.getText)&&$o.func(t.positionAt)&&$o.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");r=r.substring(0,o)+n.newText+r.substring(a,r.length),s=o}return r}}(Ko||(Ko={}));class Ho{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return As.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return As.create(i,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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}($o||($o={}));const Jo=Symbol.for("yaml.alias"),Go=Symbol.for("yaml.document"),zo=Symbol.for("yaml.map"),Yo=Symbol.for("yaml.pair"),Qo=Symbol.for("yaml.scalar"),Xo=Symbol.for("yaml.seq"),Zo=Symbol.for("yaml.node.type"),ea=e=>!!e&&"object"===typeof e&&e[Zo]===Jo,ta=e=>!!e&&"object"===typeof e&&e[Zo]===Go,na=e=>!!e&&"object"===typeof e&&e[Zo]===zo,ra=e=>!!e&&"object"===typeof e&&e[Zo]===Yo,ia=e=>!!e&&"object"===typeof e&&e[Zo]===Qo,sa=e=>!!e&&"object"===typeof e&&e[Zo]===Xo;function oa(e){if(e&&"object"===typeof e)switch(e[Zo]){case zo:case Xo:return!0}return!1}function aa(e){if(e&&"object"===typeof e)switch(e[Zo]){case Jo:case zo:case Qo:case Xo:return!0}return!1}const ua=e=>(ia(e)||oa(e))&&!!e.anchor,la=Symbol("break visit"),ca=Symbol("skip children"),pa=Symbol("remove node");function da(e,t){const n=ga(t);if(ta(e)){fa(null,e.contents,n,Object.freeze([e]))===pa&&(e.contents=null)}else fa(null,e,n,Object.freeze([]))}function fa(e,t,n,r){const i=ya(e,t,n,r);if(aa(i)||ra(i))return Da(e,r,i),fa(e,i,n,r);if("symbol"!==typeof i)if(oa(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=fa(e,t.items[e],n,r);if("number"===typeof i)e=i-1;else{if(i===la)return la;i===pa&&(t.items.splice(e,1),e-=1)}}}else if(ra(t)){r=Object.freeze(r.concat(t));const e=fa("key",t.key,n,r);if(e===la)return la;e===pa&&(t.key=null);const i=fa("value",t.value,n,r);if(i===la)return la;i===pa&&(t.value=null)}return i}async function ha(e,t){const n=ga(t);if(ta(e)){await ma(null,e.contents,n,Object.freeze([e]))===pa&&(e.contents=null)}else await ma(null,e,n,Object.freeze([]))}async function ma(e,t,n,r){const i=await ya(e,t,n,r);if(aa(i)||ra(i))return Da(e,r,i),ma(e,i,n,r);if("symbol"!==typeof i)if(oa(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=await ma(e,t.items[e],n,r);if("number"===typeof i)e=i-1;else{if(i===la)return la;i===pa&&(t.items.splice(e,1),e-=1)}}}else if(ra(t)){r=Object.freeze(r.concat(t));const e=await ma("key",t.key,n,r);if(e===la)return la;e===pa&&(t.key=null);const i=await ma("value",t.value,n,r);if(i===la)return la;i===pa&&(t.value=null)}return i}function ga(e){return"object"===typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function ya(e,t,n,r){var i,s,o,a,u;return"function"===typeof n?n(e,t,r):na(t)?null===(i=n.Map)||void 0===i?void 0:i.call(n,e,t,r):sa(t)?null===(s=n.Seq)||void 0===s?void 0:s.call(n,e,t,r):ra(t)?null===(o=n.Pair)||void 0===o?void 0:o.call(n,e,t,r):ia(t)?null===(a=n.Scalar)||void 0===a?void 0:a.call(n,e,t,r):ea(t)?null===(u=n.Alias)||void 0===u?void 0:u.call(n,e,t,r):void 0}function Da(e,t,n){const r=t[t.length-1];if(oa(r))r.items[e]=n;else if(ra(r))"key"===e?r.key=n:r.value=n;else{if(!ta(r)){const e=ea(r)?"alias":"scalar";throw new Error("Cannot replace node with ".concat(e," parent"))}r.contents=n}}da.BREAK=la,da.SKIP=ca,da.REMOVE=pa,ha.BREAK=la,ha.SKIP=ca,ha.REMOVE=pa;const va={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class ba{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ba.defaultYaml,e),this.tags=Object.assign({},ba.defaultTags,t)}clone(){const e=new ba(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new ba(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ba.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ba.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:ba.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ba.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{const n=/^\d+\.\d+$/.test(e);return t(6,"Unsupported YAML version ".concat(e),n),!1}}default:return t(0,"Unknown directive ".concat(r),!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t("Not a valid tag: ".concat(e)),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t("Verbatim tags aren't resolved, so ".concat(e," is invalid.")),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t("The ".concat(e," tag has no suffix"));const i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(s){return t(String(s)),null}return"!"===n?e:(t("Could not resolve tag: ".concat(e)),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>va[e]));return"!"===e[0]?e:"!<".concat(e,">")}toString(e){const t=this.yaml.explicit?["%YAML ".concat(this.yaml.version||"1.2")]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&aa(e.contents)){const t={};da(e.contents,((e,n)=>{aa(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,s]of n)"!!"===i&&"tag:yaml.org,2002:"===s||e&&!r.some((e=>e.startsWith(s)))||t.push("%TAG ".concat(i," ").concat(s));return t.join("\n")}}function Ea(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e),n="Anchor must not contain whitespace or control characters: ".concat(t);throw new Error(n)}return!0}function Ca(e){const t=new Set;return da(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Aa(e,t){for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.has(r))return r}}function Sa(e,t,n,r){if(r&&"object"===typeof r)if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const t=r[i],n=Sa(e,r,String(i),t);void 0===n?delete r[i]:n!==t&&(r[i]=n)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const t=r.get(i),n=Sa(e,r,i,t);void 0===n?r.delete(i):n!==t&&r.set(i,n)}else if(r instanceof Set)for(const i of Array.from(r)){const t=Sa(e,r,i,i);void 0===t?r.delete(i):t!==i&&(r.delete(i),r.add(t))}else for(const[i,s]of Object.entries(r)){const t=Sa(e,r,i,s);void 0===t?delete r[i]:t!==s&&(r[i]=t)}return e.call(t,n,r)}function xa(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>xa(e,String(t),n)));if(e&&"function"===typeof e.toJSON){if(!n||!ua(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!==typeof e||null!==n&&void 0!==n&&n.keep?e:Number(e)}ba.defaultYaml={explicit:!1,version:"1.2"},ba.defaultTags={"!!":"tag:yaml.org,2002:"};class wa{constructor(e){Object.defineProperty(this,Zo,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e){let{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ta(e))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"===typeof n?n:100},o=xa(this,"",s);if("function"===typeof r)for(const{count:a,res:u}of s.anchors.values())r(u,a);return"function"===typeof i?Sa(i,{"":o},"",o):o}}class Fa extends wa{constructor(e){super(Jo),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return da(e,{Node:(e,n)=>{if(n===this)return da.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=t,s=this.resolve(r);if(!s){const e="Unresolved alias (the anchor must be set before the alias): ".concat(this.source);throw new ReferenceError(e)}let o=n.get(s);if(o||(xa(s,null,t),o=n.get(s)),!o||void 0===o.res){throw new ReferenceError("This should not happen: Alias anchor was not resolved?")}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=Ta(r,s,n)),o.count*o.aliasCount>i)){throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return o.res}toString(e,t,n){const r="*".concat(this.source);if(e){if(Ea(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e="Unresolved alias (the anchor must be set before the alias): ".concat(this.source);throw new Error(e)}if(e.implicitKey)return"".concat(r," ")}return r}}function Ta(e,t,n){if(ea(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(oa(t)){let r=0;for(const i of t.items){const t=Ta(e,i,n);t>r&&(r=t)}return r}if(ra(t)){const r=Ta(e,t.key,n),i=Ta(e,t.value,n);return Math.max(r,i)}return 1}const Na=e=>!e||"function"!==typeof e&&"object"!==typeof e;class _a extends wa{constructor(e){super(Qo),this.value=e}toJSON(e,t){return null!==t&&void 0!==t&&t.keep?this.value:xa(this.value,e,t)}toString(){return String(this.value)}}_a.BLOCK_FOLDED="BLOCK_FOLDED",_a.BLOCK_LITERAL="BLOCK_LITERAL",_a.PLAIN="PLAIN",_a.QUOTE_DOUBLE="QUOTE_DOUBLE",_a.QUOTE_SINGLE="QUOTE_SINGLE";const ka="tag:yaml.org,2002:";function La(e,t,n){var r,i,s;if(ta(e)&&(e=e.contents),aa(e))return e;if(ra(e)){var o,a;const t=null===(o=(a=n.schema[zo]).createNode)||void 0===o?void 0:o.call(a,n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:u,onAnchor:l,onTagObj:c,schema:p,sourceObjects:d}=n;let f;if(u&&e&&"object"===typeof e){if(f=d.get(e),f)return f.anchor||(f.anchor=l(e)),new Fa(f.anchor);f={anchor:null,node:null},d.set(e,f)}null!==(r=t)&&void 0!==r&&r.startsWith("!!")&&(t=ka+t.slice(2));let h=function(e,t,n){if(t){var r;const e=n.filter((e=>e.tag===t)),i=null!==(r=e.find((e=>!e.format)))&&void 0!==r?r:e[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find((t=>{var n;return(null===(n=t.identify)||void 0===n?void 0:n.call(t,e))&&!t.format}))}(e,t,p.tags);if(!h){if(e&&"function"===typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==typeof e){const t=new _a(e);return f&&(f.node=t),t}h=e instanceof Map?p[zo]:Symbol.iterator in Object(e)?p[Xo]:p[zo]}c&&(c(h),delete n.onTagObj);const m=null!==(i=h)&&void 0!==i&&i.createNode?h.createNode(n.schema,e,n):"function"===typeof(null===(s=h)||void 0===s||null===(s=s.nodeClass)||void 0===s?void 0:s.from)?h.nodeClass.from(n.schema,e,n):new _a(e);return t?m.tag=t:h.default||(m.tag=h.tag),f&&(f.node=m),m}function Oa(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const e=t[i];if("number"===typeof e&&Number.isInteger(e)&&e>=0){const t=[];t[e]=r,r=t}else r=new Map([[e,r]])}return La(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Pa=e=>null==e||"object"===typeof e&&!!e[Symbol.iterator]().next().done;class Ia extends wa{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>aa(t)||ra(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Pa(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(oa(i))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,Oa(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(oa(r))return r.deleteIn(n);throw new Error("Expected YAML collection at ".concat(t,". Remaining path: ").concat(n))}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&ia(i)?i.value:i:oa(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!ra(t))return!1;const n=t.value;return null==n||e&&ia(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!oa(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(oa(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error("Expected YAML collection at ".concat(n,". Remaining path: ").concat(r));this.set(n,Oa(this.schema,r,t))}}}}Ia.maxFlowStringSingleLineLength=60;const Ba=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ma(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ja=(e,t,n)=>e.endsWith("\n")?Ma(n,t):n.includes("\n")?"\n"+Ma(n,t):(e.endsWith(" ")?"":" ")+n,Ra="flow",Va="block",qa="quoted";function Ua(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!i||i<0)return e;const u=Math.max(1+s,1+i-t.length);if(e.length<=u)return e;const l=[],c={};let p,d,f=i-t.length;"number"===typeof r&&(r>i-Math.max(2,s)?l.push(0):f=i-r);let h=!1,m=-1,g=-1,y=-1;n===Va&&(m=Wa(e,m,t.length),-1!==m&&(f=m+u));for(let v;v=e[m+=1];){if(n===qa&&"\\"===v){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}y=m}if("\n"===v)n===Va&&(m=Wa(e,m,t.length)),f=m+t.length+u,p=void 0;else{if(" "===v&&d&&" "!==d&&"\n"!==d&&"\t"!==d){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=m)}if(m>=f)if(p)l.push(p),f=p+u,p=void 0;else if(n===qa){for(;" "===d||"\t"===d;)d=v,v=e[m+=1],h=!0;const t=m>y+1?m-2:g-1;if(c[t])return e;l.push(t),c[t]=!0,f=t+u,p=void 0}else h=!0}d=v}if(h&&a&&a(),0===l.length)return e;o&&o();let D=e.slice(0,l[0]);for(let v=0;v<l.length;++v){const r=l[v],i=l[v+1]||e.length;0===r?D="\n".concat(t).concat(e.slice(0,i)):(n===qa&&c[r]&&(D+="".concat(e[r],"\\")),D+="\n".concat(t).concat(e.slice(r+1,i)))}return D}function Wa(e,t,n){let r=t,i=t+1,s=e[i];for(;" "===s||"\t"===s;)if(t<i+n)s=e[++t];else{do{s=e[++t]}while(s&&"\n"!==s);r=t,i=t+1,s=e[i]}return r}const Ka=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),$a=e=>/^(%|---|\.\.\.)/m.test(e);function Ha(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||($a(e)?" ":"");let o="",a=0;for(let u=0,l=n[u];l;l=n[++u])if(" "===l&&"\\"===n[u+1]&&"n"===n[u+2]&&(o+=n.slice(a,u)+"\\ ",u+=1,a=u,l="\\"),"\\"===l)switch(n[u+1]){case"u":{o+=n.slice(a,u);const e=n.substr(u+2,4);switch(e){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===e.substr(0,2)?o+="\\x"+e.substr(2):o+=n.substr(u,6)}u+=5,a=u+1}break;case"n":if(r||'"'===n[u+2]||n.length<i)u+=1;else{for(o+=n.slice(a,u)+"\n\n";"\\"===n[u+2]&&"n"===n[u+3]&&'"'!==n[u+4];)o+="\n",u+=2;o+=s," "===n[u+2]&&(o+="\\"),u+=1,a=u+1}break;default:u+=1}return o=a?o+n.slice(a):n,r?o:Ua(o,s,qa,Ka(t,!1))}function Ja(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Ha(e,t);const n=t.indent||($a(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:Ua(r,n,Ra,Ka(t,!1))}function Ga(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=Ha;else{const t=e.includes('"'),i=e.includes("'");r=t&&!i?Ja:i&&!t?Ha:n?Ja:Ha}return r(e,t)}let za;try{za=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{za=/\n+(?!\n|$)/g}function Ya(e,t,n,r){let{comment:i,type:s,value:o}=e;const{blockQuote:a,commentString:u,lineWidth:l}=t.options;if(!a||/\n[\t ]+$/.test(o)||/^\s*$/.test(o))return Ga(o,t);const c=t.indent||(t.forceBlockIndent||$a(o)?" ":""),p="literal"===a||"folded"!==a&&s!==_a.BLOCK_FOLDED&&(s===_a.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if("\n"===e[s]){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}(o,l,c.length));if(!o)return p?"|\n":">\n";let d,f;for(f=o.length;f>0;--f){const e=o[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=o.substring(f);const m=h.indexOf("\n");-1===m?d="-":o===h||m!==h.length-1?(d="+",r&&r()):d="",h&&(o=o.slice(0,-h.length),"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(za,"$&".concat(c)));let g,y=!1,D=-1;for(g=0;g<o.length;++g){const e=o[g];if(" "===e)y=!0;else{if("\n"!==e)break;D=g}}let v=o.substring(0,D<g?D+1:g);v&&(o=o.substring(v.length),v=v.replace(/\n+/g,"$&".concat(c)));let b=(p?"|":">")+(y?c?"2":"1":"")+d;if(i&&(b+=" "+u(i.replace(/ ?[\r\n]+/g," ")),n&&n()),p)return o=o.replace(/\n+/g,"$&".concat(c)),"".concat(b,"\n").concat(c).concat(v).concat(o).concat(h);o=o.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(c));const E=Ua("".concat(v).concat(o).concat(h),c,Va,Ka(t,!0));return"".concat(b,"\n").concat(c).concat(E)}function Qa(e,t,n,r){const{implicitKey:i,inFlow:s}=t,o="string"===typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==_a.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=_a.QUOTE_DOUBLE);const u=e=>{switch(e){case _a.BLOCK_FOLDED:case _a.BLOCK_LITERAL:return i||s?Ga(o.value,t):Ya(o,t,n,r);case _a.QUOTE_DOUBLE:return Ha(o.value,t);case _a.QUOTE_SINGLE:return Ja(o.value,t);case _a.PLAIN:return function(e,t,n,r){const{type:i,value:s}=e,{actualString:o,implicitKey:a,indent:u,indentStep:l,inFlow:c}=t;if(a&&s.includes("\n")||c&&/[[\]{},]/.test(s))return Ga(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||c||!s.includes("\n")?Ga(s,t):Ya(e,t,n,r);if(!a&&!c&&i!==_a.PLAIN&&s.includes("\n"))return Ya(e,t,n,r);if($a(s)){if(""===u)return t.forceBlockIndent=!0,Ya(e,t,n,r);if(a&&u===l)return Ga(s,t)}const p=s.replace(/\n+/g,"$&\n".concat(u));if(o){const e=e=>{var t;return e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null===(t=e.test)||void 0===t?void 0:t.test(p))},{compat:n,tags:r}=t.doc.schema;if(r.some(e)||null!==n&&void 0!==n&&n.some(e))return Ga(s,t)}return a?p:Ua(p,u,Ra,Ka(t,!1))}(o,t,n,r);default:return null}};let l=u(a);if(null===l){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=u(r),null===l)throw new Error("Unsupported default string type ".concat(r))}return l}function Xa(e,t){const n=Object.assign({blockQuote:!0,commentString:Ba,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"===typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Za(e,t,n,r){var i;if(ra(e))return e.toString(t,n,r);if(ea(e)){var s;if(t.doc.directives)return e.toString(t);if(null!==(s=t.resolvedAliases)&&void 0!==s&&s.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const a=aa(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o||(o=function(e,t){if(t.tag){var n;const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return null!==(n=r.find((e=>e.format===t.format)))&&void 0!==n?n:r[0]}let r,i;if(ia(t)){var s;i=t.value;const n=e.filter((e=>{var t;return null===(t=e.identify)||void 0===t?void 0:t.call(e,i)}));r=null!==(s=n.find((e=>e.format===t.format)))&&void 0!==s?s:n.find((e=>!e.format))}else i=t,r=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!r){var o,a;const e=null!==(o=null===(a=i)||void 0===a||null===(a=a.constructor)||void 0===a?void 0:a.name)&&void 0!==o?o:typeof i;throw new Error("Tag not resolved for ".concat(e," value"))}return r}(t.doc.schema.tags,a));const u=function(e,t,n){let{anchors:r,doc:i}=n;if(!i.directives)return"";const s=[],o=(ia(e)||oa(e))&&e.anchor;o&&Ea(o)&&(r.add(o),s.push("&".concat(o)));const a=e.tag?e.tag:t.default?null:t.tag;return a&&s.push(i.directives.tagString(a)),s.join(" ")}(a,o,t);u.length>0&&(t.indentAtStart=(null!==(i=t.indentAtStart)&&void 0!==i?i:0)+u.length+1);const l="function"===typeof o.stringify?o.stringify(a,t,n,r):ia(a)?Qa(a,t,n,r):a.toString(t,n,r);return u?ia(a)||"{"===l[0]||"["===l[0]?"".concat(u," ").concat(l):"".concat(u,"\n").concat(t.indent).concat(l):l}function eu(e,t){"debug"!==e&&"warn"!==e||("undefined"!==typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}function tu(e,t,n){let{key:r,value:i}=n;if(null!==e&&void 0!==e&&e.doc.schema.merge&&nu(r))if(i=ea(i)?i.resolve(e.doc):i,sa(i))for(const s of i.items)ru(e,t,s);else if(Array.isArray(i))for(const s of i)ru(e,t,s);else ru(e,t,i);else{const n=xa(r,"",e);if(t instanceof Map)t.set(n,xa(i,n,e));else if(t instanceof Set)t.add(n);else{const s=function(e,t,n){if(null===t)return"";if("object"!==typeof t)return String(t);if(aa(e)&&null!==n&&void 0!==n&&n.doc){const t=Xa(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),eu(n.doc.options.logLevel,"Keys with collection values will be stringified due to JS Object restrictions: ".concat(e,". Set mapAsMap: true to use object keys.")),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(r,n,e),o=xa(i,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}const nu=e=>"<<"===e||ia(e)&&"<<"===e.value&&(!e.type||e.type===_a.PLAIN);function ru(e,t,n){const r=e&&ea(n)?n.resolve(e.doc):n;if(!na(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[s,o]of i)t instanceof Map?t.has(s)||t.set(s,o):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function iu(e,t,n){const r=La(e,void 0,n),i=La(t,void 0,n);return new su(r,i)}class su{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object.defineProperty(this,Zo,{value:Yo}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return aa(t)&&(t=t.clone(e)),aa(n)&&(n=n.clone(e)),new su(t,n)}toJSON(e,t){return tu(t,null!==t&&void 0!==t&&t.mapAsMap?new Map:{},this)}toString(e,t,n){return null!==e&&void 0!==e&&e.doc?function(e,t,n,r){let{key:i,value:s}=e;const{allNullValues:o,doc:a,indent:u,indentStep:l,options:{commentString:c,indentSeq:p,simpleKeys:d}}=t;let f=aa(i)&&i.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(oa(i))throw new Error("With simple keys, collection cannot be used as a key value")}let h=!d&&(!i||f&&null==s&&!t.inFlow||oa(i)||(ia(i)?i.type===_a.BLOCK_FOLDED||i.type===_a.BLOCK_LITERAL:"object"===typeof i));t=Object.assign({},t,{allNullValues:!1,implicitKey:!h&&(d||!o),indent:u+l});let m,g,y,D=!1,v=!1,b=Za(i,t,(()=>D=!0),(()=>v=!0));if(!h&&!t.inFlow&&b.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(t.inFlow){if(o||null==s)return D&&n&&n(),""===b?"?":h?"? ".concat(b):b}else if(o&&!d||null==s&&h)return b="? ".concat(b),f&&!D?b+=ja(b,t.indent,c(f)):v&&r&&r(),b;D&&(f=null),h?(f&&(b+=ja(b,t.indent,c(f))),b="? ".concat(b,"\n").concat(u,":")):(b="".concat(b,":"),f&&(b+=ja(b,t.indent,c(f)))),aa(s)?(m=!!s.spaceBefore,g=s.commentBefore,y=s.comment):(m=!1,g=null,y=null,s&&"object"===typeof s&&(s=a.createNode(s))),t.implicitKey=!1,h||f||!ia(s)||(t.indentAtStart=b.length+1),v=!1,p||!(l.length>=2)||t.inFlow||h||!sa(s)||s.flow||s.tag||s.anchor||(t.indent=t.indent.substring(2));let E=!1;const C=Za(s,t,(()=>E=!0),(()=>v=!0));let A=" ";if(f||m||g){if(A=m?"\n":"",g){const e=c(g);A+="\n".concat(Ma(e,t.indent))}""!==C||t.inFlow?A+="\n".concat(t.indent):"\n"===A&&(A="\n\n")}else if(!h&&oa(s)){var S,x;const e=C[0],n=C.indexOf("\n"),r=-1!==n,i=null!==(S=null!==(x=t.inFlow)&&void 0!==x?x:s.flow)&&void 0!==S?S:0===s.items.length;if(r||!i){let i=!1;if(r&&("&"===e||"!"===e)){let t=C.indexOf(" ");"&"===e&&-1!==t&&t<n&&"!"===C[t+1]&&(t=C.indexOf(" ",t+1)),(-1===t||n<t)&&(i=!0)}i||(A="\n".concat(t.indent))}}else""!==C&&"\n"!==C[0]||(A="");return b+=A+C,t.inFlow?E&&n&&n():y&&!E?b+=ja(b,t.indent,c(y)):v&&r&&r(),b}(this,e,t,n):JSON.stringify(this)}}function ou(e,t,n){var r;return((null!==(r=t.inFlow)&&void 0!==r?r:e.flow)?uu:au)(e,t,n)}function au(e,t,n){let{comment:r,items:i}=e,{blockItemPrefix:s,flowChars:o,itemIndent:a,onChompKeep:u,onComment:l}=n;const{indent:c,options:{commentString:p}}=t,d=Object.assign({},t,{indent:a,type:null});let f=!1;const h=[];for(let g=0;g<i.length;++g){const e=i[g];let n=null;if(aa(e))!f&&e.spaceBefore&&h.push(""),lu(t,h,e.commentBefore,f),e.comment&&(n=e.comment);else if(ra(e)){const n=aa(e.key)?e.key:null;n&&(!f&&n.spaceBefore&&h.push(""),lu(t,h,n.commentBefore,f))}f=!1;let r=Za(e,d,(()=>n=null),(()=>f=!0));n&&(r+=ja(r,a,p(n))),f&&n&&(f=!1),h.push(s+r)}let m;if(0===h.length)m=o.start+o.end;else{m=h[0];for(let e=1;e<h.length;++e){const t=h[e];m+=t?"\n".concat(c).concat(t):"\n"}}return r?(m+="\n"+Ma(p(r),c),l&&l()):f&&u&&u(),m}function uu(e,t,n){let{items:r}=e,{flowChars:i,itemIndent:s}=n;const{indent:o,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=t;s+=a;const c=Object.assign({},t,{indent:s,inFlow:!0,type:null});let p=!1,d=0;const f=[];for(let g=0;g<r.length;++g){const e=r[g];let n=null;if(aa(e))e.spaceBefore&&f.push(""),lu(t,f,e.commentBefore,!1),e.comment&&(n=e.comment);else if(ra(e)){const r=aa(e.key)?e.key:null;r&&(r.spaceBefore&&f.push(""),lu(t,f,r.commentBefore,!1),r.comment&&(p=!0));const i=aa(e.value)?e.value:null;i?(i.comment&&(n=i.comment),i.commentBefore&&(p=!0)):null==e.value&&null!==r&&void 0!==r&&r.comment&&(n=r.comment)}n&&(p=!0);let i=Za(e,c,(()=>n=null));g<r.length-1&&(i+=","),n&&(i+=ja(i,s,l(n))),!p&&(f.length>d||i.includes("\n"))&&(p=!0),f.push(i),d=f.length}const{start:h,end:m}=i;if(0===f.length)return h+m;if(!p){const e=f.reduce(((e,t)=>e+t.length+2),2);p=t.options.lineWidth>0&&e>t.options.lineWidth}if(p){let e=h;for(const t of f)e+=t?"\n".concat(a).concat(o).concat(t):"\n";return"".concat(e,"\n").concat(o).concat(m)}return"".concat(h).concat(u).concat(f.join(" ")).concat(u).concat(m)}function lu(e,t,n,r){let{indent:i,options:{commentString:s}}=e;if(n&&r&&(n=n.replace(/^\n+/,"")),n){const e=Ma(s(n),i);t.push(e.trimStart())}}function cu(e,t){const n=ia(t)?t.value:t;for(const r of e)if(ra(r)){if(r.key===t||r.key===n)return r;if(ia(r.key)&&r.key.value===n)return r}}class pu extends Ia{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(zo,e),this.items=[]}static from(e,t,n){const{keepUndefined:r,replacer:i}=n,s=new this(e),o=(e,o)=>{if("function"===typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||r)&&s.items.push(iu(e,o,n))};if(t instanceof Map)for(const[a,u]of t)o(a,u);else if(t&&"object"===typeof t)for(const a of Object.keys(t))o(a,t[a]);return"function"===typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){var n;let r;r=ra(e)?e:e&&"object"===typeof e&&"key"in e?new su(e.key,e.value):new su(e,null===e||void 0===e?void 0:e.value);const i=cu(this.items,r.key),s=null===(n=this.schema)||void 0===n?void 0:n.sortMapEntries;if(i){if(!t)throw new Error("Key ".concat(r.key," already set"));ia(i.value)&&Na(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=cu(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){var n;const r=cu(this.items,e),i=null===r||void 0===r?void 0:r.value;return null!==(n=!t&&ia(i)?i.value:i)&&void 0!==n?n:void 0}has(e){return!!cu(this.items,e)}set(e,t){this.add(new su(e,t),!0)}toJSON(e,t,n){const r=n?new n:null!==t&&void 0!==t&&t.mapAsMap?new Map:{};null!==t&&void 0!==t&&t.onCreate&&t.onCreate(r);for(const i of this.items)tu(t,r,i);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const r of this.items)if(!ra(r))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(r)," instead"));return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ou(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const du={collection:"map",default:!0,nodeClass:pu,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(na(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>pu.from(e,t,n)};class fu extends Ia{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Xo,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=hu(e);if("number"!==typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=hu(e);if("number"!==typeof n)return;const r=this.items[n];return!t&&ia(r)?r.value:r}has(e){const t=hu(e);return"number"===typeof t&&t<this.items.length}set(e,t){const n=hu(e);if("number"!==typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));const r=this.items[n];ia(r)&&Na(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];null!==t&&void 0!==t&&t.onCreate&&t.onCreate(n);let r=0;for(const i of this.items)n.push(xa(i,String(r++),t));return n}toString(e,t,n){return e?ou(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"===typeof r){const n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}i.items.push(La(s,void 0,n))}}return i}}function hu(e){let t=ia(e)?e.value:e;return t&&"string"===typeof t&&(t=Number(t)),"number"===typeof t&&Number.isInteger(t)&&t>=0?t:null}const mu={collection:"seq",default:!0,nodeClass:fu,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(sa(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>fu.from(e,t,n)},gu={identify:e=>"string"===typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>Qa(e,t=Object.assign({actualString:!0},t),n,r)},yu={identify:e=>null==e,createNode:()=>new _a(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new _a(null),stringify:(e,t)=>{let{source:n}=e;return"string"===typeof n&&yu.test.test(n)?n:t.options.nullStr}},Du={identify:e=>"boolean"===typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new _a("t"===e[0]||"T"===e[0]),stringify(e,t){let{source:n,value:r}=e;if(n&&Du.test.test(n)){if(r===("t"===n[0]||"T"===n[0]))return n}return r?t.options.trueStr:t.options.falseStr}};function vu(e){let{format:t,minFractionDigits:n,tag:r,value:i}=e;if("bigint"===typeof i)return String(i);const s="number"===typeof i?i:Number(i);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let t=n-(o.length-e-1);for(;t-- >0;)o+="0"}return o}const bu={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:vu},Eu={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),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():vu(e)}},Cu={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new _a(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:vu},Au=e=>"bigint"===typeof e||Number.isInteger(e),Su=(e,t,n,r)=>{let{intAsBigInt:i}=r;return i?BigInt(e):parseInt(e.substring(t),n)};function xu(e,t,n){const{value:r}=e;return Au(r)&&r>=0?n+r.toString(t):vu(e)}const wu={identify:e=>Au(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Su(e,2,8,n),stringify:e=>xu(e,8,"0o")},Fu={identify:Au,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Su(e,0,10,n),stringify:vu},Tu={identify:e=>Au(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Su(e,2,16,n),stringify:e=>xu(e,16,"0x")},Nu=[du,mu,gu,yu,Du,wu,Fu,Tu,bu,Eu,Cu];function _u(e){return"bigint"===typeof e||Number.isInteger(e)}const ku=e=>{let{value:t}=e;return JSON.stringify(t)},Lu=[du,mu].concat([{identify:e=>"string"===typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ku},{identify:e=>null==e,createNode:()=>new _a(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ku},{identify:e=>"boolean"===typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:ku},{identify:_u,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,n)=>{let{intAsBigInt:r}=n;return r?BigInt(e):parseInt(e,10)},stringify:e=>{let{value:t}=e;return _u(t)?t.toString():JSON.stringify(t)}},{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:ku}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t("Unresolved plain scalar ".concat(JSON.stringify(e))),e)}),Ou={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"===typeof Buffer)return Buffer.from(e,"base64");if("function"===typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify(e,t,n,r){let{comment:i,type:s,value:o}=e;const a=o;let u;if("function"===typeof Buffer)u=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else{if("function"!==typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<a.length;++t)e+=String.fromCharCode(a[t]);u=btoa(e)}}if(s||(s=_a.BLOCK_LITERAL),s!==_a.QUOTE_DOUBLE){const e=Math.max(t.options.lineWidth-t.indent.length,t.options.minContentWidth),n=Math.ceil(u.length/e),r=new Array(n);for(let t=0,i=0;t<n;++t,i+=e)r[t]=u.substr(i,e);u=r.join(s===_a.BLOCK_LITERAL?"\n":" ")}return Qa({comment:i,type:s,value:u},t,n,r)}};function Pu(e,t){if(sa(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!ra(i)){if(na(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new su(new _a(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?"".concat(i.commentBefore,"\n").concat(e.key.commentBefore):i.commentBefore),i.comment){var n;const t=null!==(n=e.value)&&void 0!==n?n:e.key;t.comment=t.comment?"".concat(i.comment,"\n").concat(t.comment):i.comment}i=e}e.items[r]=ra(i)?i:new su(i)}}else t("Expected a sequence for this tag");return e}function Iu(e,t,n){const{replacer:r}=n,i=new fu(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let o of t){let e,a;if("function"===typeof r&&(o=r.call(t,String(s++),o)),Array.isArray(o)){if(2!==o.length)throw new TypeError("Expected [key, value] tuple: ".concat(o));e=o[0],a=o[1]}else if(o&&o instanceof Object){const t=Object.keys(o);if(1!==t.length)throw new TypeError("Expected tuple with one key, not ".concat(t.length," keys"));e=t[0],a=o[e]}else e=o;i.items.push(iu(e,a,n))}return i}const Bu={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pu,createNode:Iu};class Mu extends fu{constructor(){super(),this.add=pu.prototype.add.bind(this),this.delete=pu.prototype.delete.bind(this),this.get=pu.prototype.get.bind(this),this.has=pu.prototype.has.bind(this),this.set=pu.prototype.set.bind(this),this.tag=Mu.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;null!==t&&void 0!==t&&t.onCreate&&t.onCreate(n);for(const r of this.items){let e,i;if(ra(r)?(e=xa(r.key,"",t),i=xa(r.value,e,t)):e=xa(r,"",t),n.has(e))throw new Error("Ordered maps must not include duplicate keys");n.set(e,i)}return n}static from(e,t,n){const r=Iu(e,t,n),i=new this;return i.items=r.items,i}}Mu.tag="tag:yaml.org,2002:omap";const ju={collection:"seq",identify:e=>e instanceof Map,nodeClass:Mu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Pu(e,t),r=[];for(const{key:i}of n.items)ia(i)&&(r.includes(i.value)?t("Ordered maps must not include duplicate keys: ".concat(i.value)):r.push(i.value));return Object.assign(new Mu,n)},createNode:(e,t,n)=>Mu.from(e,t,n)};function Ru(e,t){let{value:n,source:r}=e;return r&&(n?Vu:qu).test.test(r)?r:n?t.options.trueStr:t.options.falseStr}const Vu={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new _a(!0),stringify:Ru},qu={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new _a(!1),stringify:Ru},Uu={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:vu},Wu={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(e){const t=Number(e.value);return isFinite(t)?t.toExponential():vu(e)}},Ku={identify:e=>"number"===typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new _a(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:vu},$u=e=>"bigint"===typeof e||Number.isInteger(e);function Hu(e,t,n,r){let{intAsBigInt:i}=r;const s=e[0];if("-"!==s&&"+"!==s||(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e="0b".concat(e);break;case 8:e="0o".concat(e);break;case 16:e="0x".concat(e)}const t=BigInt(e);return"-"===s?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===s?-1*o:o}function Ju(e,t,n){const{value:r}=e;if($u(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return vu(e)}const Gu={identify:$u,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Hu(e,2,2,n),stringify:e=>Ju(e,2,"0b")},zu={identify:$u,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Hu(e,1,8,n),stringify:e=>Ju(e,8,"0")},Yu={identify:$u,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Hu(e,0,10,n),stringify:vu},Qu={identify:$u,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Hu(e,2,16,n),stringify:e=>Ju(e,16,"0x")};class Xu extends pu{constructor(e){super(e),this.tag=Xu.tag}add(e){let t;t=ra(e)?e:e&&"object"===typeof e&&"key"in e&&"value"in e&&null===e.value?new su(e.key,null):new su(e,null);cu(this.items,t.key)||this.items.push(t)}get(e,t){const n=cu(this.items,e);return!t&&ra(n)?ia(n.key)?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=cu(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new su(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let s of t)"function"===typeof r&&(s=r.call(t,s,s)),i.items.push(iu(s,null,n));return i}}Xu.tag="tag:yaml.org,2002:set";const Zu={collection:"map",identify:e=>e instanceof Set,nodeClass:Xu,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Xu.from(e,t,n),resolve(e,t){if(na(e)){if(e.hasAllNullValues(!0))return Object.assign(new Xu,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function el(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*s:s}function tl(e){let{value:t}=e,n=e=>e;if("bigint"===typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return vu(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const nl={identify:e=>"bigint"===typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,n)=>{let{intAsBigInt:r}=n;return el(e,r)},stringify:tl},rl={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=>el(e,!1),stringify:tl},il={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){const t=e.match(il.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,r-1,i,s||0,o||0,a||0,u);const c=t[8];if(c&&"Z"!==c){let e=el(c,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:e=>{let{value:t}=e;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}},sl=[du,mu,gu,yu,Vu,qu,Gu,zu,Yu,Qu,Uu,Wu,Ku,Ou,ju,Bu,Zu,nl,rl,il],ol=new Map([["core",Nu],["failsafe",[du,mu,gu]],["json",Lu],["yaml11",sl],["yaml-1.1",sl]]),al={binary:Ou,bool:Du,float:Cu,floatExp:Eu,floatNaN:bu,floatTime:rl,int:Fu,intHex:Tu,intOct:wu,intTime:nl,map:du,null:yu,omap:ju,pairs:Bu,seq:mu,set:Zu,timestamp:il},ul={"tag:yaml.org,2002:binary":Ou,"tag:yaml.org,2002:omap":ju,"tag:yaml.org,2002:pairs":Bu,"tag:yaml.org,2002:set":Zu,"tag:yaml.org,2002:timestamp":il};function ll(e,t){let n=ol.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(ol.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown schema "'.concat(t,'"; use one of ').concat(e," or define customTags array"))}n=[]}if(Array.isArray(e))for(const r of e)n=n.concat(r);else"function"===typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!==typeof e)return e;const t=al[e];if(t)return t;const n=Object.keys(al).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown custom tag "'.concat(e,'"; use one of ').concat(n))}))}const cl=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class pl{constructor(e){let{compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:a}=e;this.compat=Array.isArray(t)?ll(t,"compat"):t?ll(null,t):null,this.merge=!!r,this.name="string"===typeof s&&s||"core",this.knownTags=i?ul:{},this.tags=ll(n,this.name),this.toStringOptions=null!==a&&void 0!==a?a:null,Object.defineProperty(this,zo,{value:du}),Object.defineProperty(this,Qo,{value:gu}),Object.defineProperty(this,Xo,{value:mu}),this.sortMapEntries="function"===typeof o?o:!0===o?cl:null}clone(){const e=Object.create(pl.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class dl{constructor(e,t,n){var r;this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Zo,{value:Go});let i=null;"function"===typeof t||Array.isArray(t)?i=t:void 0===n&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:o}=s;null!==(r=n)&&void 0!==r&&r._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new ba({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,i,n)}clone(){const e=Object.create(dl.prototype,{[Zo]:{value:Go}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=aa(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){fl(this.contents)&&this.contents.add(e)}addIn(e,t){fl(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=Ca(this);e.anchor=!t||n.has(t)?Aa(t||"a",n):t}return new Fa(e.anchor)}createNode(e,t,n){var r;let i;if("function"===typeof t)e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){const e=e=>"number"===typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),i=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:u,onTagObj:l,tag:c}=null!==(r=n)&&void 0!==r?r:{},{onAnchor:p,setAnchors:d,sourceObjects:f}=function(e,t){const n=[],r=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=Ca(e));const s=Aa(t,i);return i.add(s),s},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!==typeof t||!t.anchor||!ia(t.node)&&!oa(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,o||"a"),h=La(e,c,{aliasDuplicateObjects:null===s||void 0===s||s,keepUndefined:null!==u&&void 0!==u&&u,onAnchor:p,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:f});return a&&oa(h)&&(h.flow=!0),d(),h}createPair(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new su(r,i)}delete(e){return!!fl(this.contents)&&this.contents.delete(e)}deleteIn(e){return Pa(e)?null!=this.contents&&(this.contents=null,!0):!!fl(this.contents)&&this.contents.deleteIn(e)}get(e,t){return oa(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Pa(e)?!t&&ia(this.contents)?this.contents.value:this.contents:oa(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!oa(this.contents)&&this.contents.has(e)}hasIn(e){return Pa(e)?void 0!==this.contents:!!oa(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=Oa(this.schema,[e],t):fl(this.contents)&&this.contents.set(e,t)}setIn(e,t){Pa(e)?this.contents=t:null==this.contents?this.contents=Oa(this.schema,Array.from(e),t):fl(this.contents)&&this.contents.setIn(e,t)}setSchema(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch("number"===typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ba({version:"1.1"}),t={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new ba({version:e}),t={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,t=null;break;default:{const t=JSON.stringify(e);throw new Error("Expected '1.1', '1.2' or null as first argument, but found: ".concat(t))}}if(n.schema instanceof Object)this.schema=n.schema;else{if(!t)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new pl(Object.assign(t,n))}}toJS(){let{json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"===typeof r?r:100},a=xa(this.contents,null!==t&&void 0!==t?t:"",o);if("function"===typeof i)for(const{count:u,res:l}of o.anchors.values())i(l,u);return"function"===typeof s?Sa(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error('"indent" option must be a positive integer, not '.concat(t))}return function(e,t){var n;const r=[];let i=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(r.push(t),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const s=Xa(e,t),{commentString:o}=s.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=o(e.commentBefore);r.unshift(Ma(t,""))}let a=!1,u=null;if(e.contents){if(aa(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const t=o(e.contents.commentBefore);r.push(Ma(t,""))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>a=!0;let n=Za(e.contents,s,(()=>u=null),t);u&&(n+=ja(n,"",o(u))),"|"!==n[0]&&">"!==n[0]||"---"!==r[r.length-1]?r.push(n):r[r.length-1]="--- ".concat(n)}else r.push(Za(e.contents,s));if(null!==(n=e.directives)&&void 0!==n&&n.docEnd)if(e.comment){const t=o(e.comment);t.includes("\n")?(r.push("..."),r.push(Ma(t,""))):r.push("... ".concat(t))}else r.push("...");else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&(a&&!u||""===r[r.length-1]||r.push(""),r.push(Ma(o(t),"")))}return r.join("\n")+"\n"}(this,e)}}function fl(e){if(oa(e))return!0;throw new Error("Expected a YAML collection as document contents")}class hl extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class ml extends hl{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class gl extends hl{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const yl=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:i}=n.linePos[0];n.message+=" at line ".concat(r,", column ").concat(i);let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const e=Math.min(s-39,o.length-79);o="\u2026"+o.substring(e),s-=e-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(o.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"\u2026\n"),o=n+o}if(/[^ ]/.test(o)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));const a=" ".repeat(s)+"^".repeat(e);n.message+=":\n\n".concat(o,"\n").concat(a,"\n")}};function Dl(e,t){var n;let{flow:r,indicator:i,next:s,offset:o,onError:a,startOnNewline:u}=t,l=!1,c=u,p=u,d="",f="",h=!1,m=!1,g=!1,y=null,D=null,v=null,b=null,E=null;for(const S of e)switch(g&&("space"!==S.type&&"newline"!==S.type&&"comma"!==S.type&&a(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),S.type){case"space":!r&&c&&"doc-start"!==i&&"\t"===S.source[0]&&a(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),p=!0;break;case"comment":{p||a(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=S.source.substring(1)||" ";d?d+=f+e:d=e,f="",c=!1;break}case"newline":c?d?d+=S.source:l=!0:f+=S.source,c=!0,h=!0,(y||D)&&(m=!0),p=!0;break;case"anchor":y&&a(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&a(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=S,null===E&&(E=S.offset),c=!1,p=!1,g=!0;break;case"tag":D&&a(S,"MULTIPLE_TAGS","A node can have at most one tag"),D=S,null===E&&(E=S.offset),c=!1,p=!1,g=!0;break;case i:(y||D)&&a(S,"BAD_PROP_ORDER","Anchors and tags must be after the ".concat(S.source," indicator")),b&&a(S,"UNEXPECTED_TOKEN","Unexpected ".concat(S.source," in ").concat(null!==r&&void 0!==r?r:"collection")),b=S,c=!1,p=!1;break;case"comma":if(r){v&&a(S,"UNEXPECTED_TOKEN","Unexpected , in ".concat(r)),v=S,c=!1,p=!1;break}default:a(S,"UNEXPECTED_TOKEN","Unexpected ".concat(S.type," token")),c=!1,p=!1}const C=e[e.length-1],A=C?C.offset+C.source.length:o;return g&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&a(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:v,found:b,spaceBefore:l,comment:d,hasNewline:h,hasNewlineAfterProp:m,anchor:y,tag:D,end:A,start:null!==(n=E)&&void 0!==n?n:A}}function vl(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(vl(t.key)||vl(t.value))return!0}return!1;default:return!0}}function bl(e,t,n){if("flow-collection"===(null===t||void 0===t?void 0:t.type)){const r=t.end[0];if(r.indent===e&&("]"===r.source||"}"===r.source)&&vl(t)){n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}function El(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const i="function"===typeof r?r:(t,n)=>t===n||ia(t)&&ia(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}const Cl="All mapping items must start at the same column";function Al(e,t,n,r){let i="";if(e){let s=!1,o="";for(const a of e){const{source:e,type:u}=a;switch(u){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),s=!0;break;default:r(a,"UNEXPECTED_TOKEN","Unexpected ".concat(u," at node end"))}t+=e.length}}return{comment:i,offset:t}}const Sl="Block collections are not allowed within flow collections",xl=e=>e&&("block-map"===e.type||"block-seq"===e.type);function wl(e,t,n,r,i,s){const o="block-map"===n.type?function(e,t,n,r,i){var s,o;let{composeNode:a,composeEmptyNode:u}=e;const l=new(null!==(s=null===i||void 0===i?void 0:i.nodeClass)&&void 0!==s?s:pu)(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,p=null;for(const f of n.items){var d;const{start:e,key:i,sep:s,value:o}=f,h=Dl(e,{indicator:"explicit-key-ind",next:null!==i&&void 0!==i?i:null===s||void 0===s?void 0:s[0],offset:c,onError:r,startOnNewline:!0}),m=!h.found;if(m){if(i&&("block-seq"===i.type?r(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in i&&i.indent!==n.indent&&r(c,"BAD_INDENT",Cl)),!h.anchor&&!h.tag&&!s){p=h.end,h.comment&&(l.comment?l.comment+="\n"+h.comment:l.comment=h.comment);continue}(h.hasNewlineAfterProp||vl(i))&&r(null!==i&&void 0!==i?i:e[e.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else(null===(d=h.found)||void 0===d?void 0:d.indent)!==n.indent&&r(c,"BAD_INDENT",Cl);const g=h.end,y=i?a(t,i,h,r):u(t,g,e,null,h,r);t.schema.compat&&bl(n.indent,i,r),El(t,l.items,y)&&r(g,"DUPLICATE_KEY","Map keys must be unique");const D=Dl(null!==s&&void 0!==s?s:[],{indicator:"map-value-ind",next:o,offset:y.range[2],onError:r,startOnNewline:!i||"block-scalar"===i.type});if(c=D.end,D.found){m&&("block-map"!==(null===o||void 0===o?void 0:o.type)||D.hasNewline||r(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<D.found.offset-1024&&r(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const e=o?a(t,o,D,r):u(t,c,s,null,D,r);t.schema.compat&&bl(n.indent,o,r),c=e.range[2];const i=new su(y,e);t.options.keepSourceTokens&&(i.srcToken=f),l.items.push(i)}else{m&&r(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),D.comment&&(y.comment?y.comment+="\n"+D.comment:y.comment=D.comment);const e=new su(y);t.options.keepSourceTokens&&(e.srcToken=f),l.items.push(e)}}return p&&p<c&&r(p,"IMPOSSIBLE","Map comment with trailing content"),l.range=[n.offset,c,null!==(o=p)&&void 0!==o?o:c],l}(e,t,n,r,s):"block-seq"===n.type?function(e,t,n,r,i){var s,o;let{composeNode:a,composeEmptyNode:u}=e;const l=new(null!==(s=null===i||void 0===i?void 0:i.nodeClass)&&void 0!==s?s:fu)(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,p=null;for(const{start:d,value:f}of n.items){const e=Dl(d,{indicator:"seq-item-ind",next:f,offset:c,onError:r,startOnNewline:!0});if(!e.found){if(!(e.anchor||e.tag||f)){p=e.end,e.comment&&(l.comment=e.comment);continue}f&&"block-seq"===f.type?r(e.end,"BAD_INDENT","All sequence items must start at the same column"):r(c,"MISSING_CHAR","Sequence item without - indicator")}const i=f?a(t,f,e,r):u(t,e.end,d,null,e,r);t.schema.compat&&bl(n.indent,f,r),c=i.range[2],l.items.push(i)}return l.range=[n.offset,c,null!==(o=p)&&void 0!==o?o:c],l}(e,t,n,r,s):function(e,t,n,r,i){var s;let{composeNode:o,composeEmptyNode:a}=e;const u="{"===n.start.source,l=u?"flow map":"flow sequence",c=new(null!==(s=null===i||void 0===i?void 0:i.nodeClass)&&void 0!==s?s:u?pu:fu)(t.schema);c.flow=!0;const p=t.atRoot;p&&(t.atRoot=!1);let d=n.offset+n.start.source.length;for(let D=0;D<n.items.length;++D){const e=n.items[D],{start:i,key:s,sep:p,value:h}=e,m=Dl(i,{flow:l,indicator:"explicit-key-ind",next:null!==s&&void 0!==s?s:null===p||void 0===p?void 0:p[0],offset:d,onError:r,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!p&&!h){0===D&&m.comma?r(m.comma,"UNEXPECTED_TOKEN","Unexpected , in ".concat(l)):D<n.items.length-1&&r(m.start,"UNEXPECTED_TOKEN","Unexpected empty item in ".concat(l)),m.comment&&(c.comment?c.comment+="\n"+m.comment:c.comment=m.comment),d=m.end;continue}!u&&t.options.strict&&vl(s)&&r(s,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===D)m.comma&&r(m.comma,"UNEXPECTED_TOKEN","Unexpected , in ".concat(l));else if(m.comma||r(m.start,"MISSING_CHAR","Missing , between ".concat(l," items")),m.comment){let e="";e:for(const t of i)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){var f;let t=c.items[c.items.length-1];ra(t)&&(t=null!==(f=t.value)&&void 0!==f?f:t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(u||p||m.found){const n=m.end,f=s?o(t,s,m,r):a(t,n,i,null,m,r);xl(s)&&r(f.range,"BLOCK_IN_FLOW",Sl);const g=Dl(null!==p&&void 0!==p?p:[],{flow:l,indicator:"map-value-ind",next:h,offset:f.range[2],onError:r,startOnNewline:!1});if(g.found){if(!u&&!m.found&&t.options.strict){if(p)for(const e of p){if(e===g.found)break;if("newline"===e.type){r(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<g.found.offset-1024&&r(g.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else h&&("source"in h&&h.source&&":"===h.source[0]?r(h,"MISSING_CHAR","Missing space after : in ".concat(l)):r(g.start,"MISSING_CHAR","Missing , or : between ".concat(l," items")));const y=h?o(t,h,g,r):g.found?a(t,g.end,p,null,g,r):null;y?xl(h)&&r(y.range,"BLOCK_IN_FLOW",Sl):g.comment&&(f.comment?f.comment+="\n"+g.comment:f.comment=g.comment);const D=new su(f,y);if(t.options.keepSourceTokens&&(D.srcToken=e),u){const e=c;El(t,e.items,f)&&r(n,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(D)}else{const e=new pu(t.schema);e.flow=!0,e.items.push(D),c.items.push(e)}d=y?y.range[2]:g.end}else{const e=h?o(t,h,m,r):a(t,m.end,p,null,m,r);c.items.push(e),d=e.range[2],xl(h)&&r(e.range,"BLOCK_IN_FLOW",Sl)}}const h=u?"}":"]",[m,...g]=n.end;let y=d;if(m&&m.source===h)y=m.offset+m.source.length;else{const e=l[0].toUpperCase()+l.substring(1);r(d,p?"MISSING_CHAR":"BAD_INDENT",p?"".concat(e," must end with a ").concat(h):"".concat(e," in block collection must be sufficiently indented and end with a ").concat(h)),m&&1!==m.source.length&&g.unshift(m)}if(g.length>0){const e=Al(g,y,t.options.strict,r);e.comment&&(c.comment?c.comment+="\n"+e.comment:c.comment=e.comment),c.range=[n.offset,y,e.offset]}else c.range=[n.offset,y,y];return c}(e,t,n,r,s),a=o.constructor;return"!"===i||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function Fl(e,t,n){const r=e.offset,i=function(e,t,n){let{offset:r,props:i}=e;if("block-scalar-header"!==i[0].type)return n(i[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=i[0],o=s[0];let a=0,u="",l=-1;for(let f=1;f<s.length;++f){const e=s[f];if(u||"-"!==e&&"+"!==e){const t=Number(e);!a&&t?a=t:-1===l&&(l=r+f)}else u=e}-1!==l&&n(l,"UNEXPECTED_TOKEN","Block scalar header includes extra characters: ".concat(s));let c=!1,p="",d=s.length;for(let f=1;f<i.length;++f){const e=i[f];switch(e.type){case"space":c=!0;case"newline":d+=e.source.length;break;case"comment":if(t&&!c){n(e,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")}d+=e.source.length,p=e.source.substring(1);break;case"error":n(e,"UNEXPECTED_TOKEN",e.message),d+=e.source.length;break;default:{n(e,"UNEXPECTED_TOKEN","Unexpected token in block scalar header: ".concat(e.type));const t=e.source;t&&"string"===typeof t&&(d+=t.length)}}}return{mode:o,indent:a,chomp:u,comment:p,length:d}}(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=">"===i.mode?_a.BLOCK_FOLDED:_a.BLOCK_LITERAL,o=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[null!==r&&void 0!==r&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}(e.source):[];let a=o.length;for(let m=o.length-1;m>=0;--m){const e=o[m][1];if(""!==e&&"\r"!==e)break;a=m}if(0===a){const t="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let n=r+i.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:i.comment,range:[r,n,n]}}let u=e.indent+i.indent,l=e.offset+i.length,c=0;for(let m=0;m<a;++m){const[e,t]=o[m];if(""!==t&&"\r"!==t){if(e.length<u){const t="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(l+e.length,"MISSING_CHAR",t)}0===i.indent&&(u=e.length),c=m;break}0===i.indent&&e.length>u&&(u=e.length),l+=e.length+t.length+1}for(let m=o.length-1;m>=a;--m)o[m][0].length>u&&(a=m+1);let p="",d="",f=!1;for(let m=0;m<c;++m)p+=o[m][0].slice(u)+"\n";for(let m=c;m<a;++m){let[e,t]=o[m];l+=e.length+t.length+1;const r="\r"===t[t.length-1];if(r&&(t=t.slice(0,-1)),t&&e.length<u){const s=i.indent?"explicit indentation indicator":"first line",o="Block scalar lines must not be less indented than their ".concat(s);n(l-t.length-(r?2:1),"BAD_INDENT",o),e=""}s===_a.BLOCK_LITERAL?(p+=d+e.slice(u)+t,d="\n"):e.length>u||"\t"===t[0]?(" "===d?d="\n":f||"\n"!==d||(d="\n\n"),p+=d+e.slice(u)+t,d="\n",f=!0):""===t?"\n"===d?p+="\n":d="\n":(p+=d+t,d=" ",f=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;e<o.length;++e)p+="\n"+o[e][0].slice(u);"\n"!==p[p.length-1]&&(p+="\n");break;default:p+="\n"}const h=r+i.length+e.source.length;return{value:p,type:s,comment:i.comment,range:[r,h,h]}}function Tl(e,t,n){const{offset:r,type:i,source:s,end:o}=e;let a,u;const l=(e,t,i)=>n(r+e,t,i);switch(i){case"scalar":a=_a.PLAIN,u=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n="block scalar indicator ".concat(e[0]);break;case"@":case"`":n="reserved character ".concat(e[0])}n&&t(0,"BAD_SCALAR_START","Plain value cannot start with ".concat(n));return Nl(e)}(s,l);break;case"single-quoted-scalar":a=_a.QUOTE_SINGLE,u=function(e,t){"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote");return Nl(e.slice(1,-1)).replace(/''/g,"'")}(s,l);break;case"double-quoted-scalar":a=_a.QUOTE_DOUBLE,u=function(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if("\r"!==i||"\n"!==e[r+1])if("\n"===i){const{fold:t,offset:i}=_l(e,r);n+=t,r=i}else if("\\"===i){let i=e[++r];const s=kl[i];if(s)n+=s;else if("\n"===i)for(i=e[r+1];" "===i||"\t"===i;)i=e[1+ ++r];else if("\r"===i&&"\n"===e[r+1])for(i=e[1+ ++r];" "===i||"\t"===i;)i=e[1+ ++r];else if("x"===i||"u"===i||"U"===i){const s={x:2,u:4,U:8}[i];n+=Ll(e,r+1,s,t),r+=s}else{const i=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE","Invalid escape sequence ".concat(i)),n+=i}}else if(" "===i||"\t"===i){const t=r;let s=e[r+1];for(;" "===s||"\t"===s;)s=e[1+ ++r];"\n"===s||"\r"===s&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):i)}else n+=i}'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote');return n}(s,l);break;default:return n(e,"UNEXPECTED_TOKEN","Expected a flow scalar value, but found: ".concat(i)),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const c=r+s.length,p=Al(o,c,t,n);return{value:u,type:a,comment:p.comment,range:[r,c,p.offset]}}function Nl(e){var t,n;let r,i;try{r=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),i=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(c){r=/(.*?)[ \t]*\r?\n/sy,i=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=r.exec(e);if(!s)return e;let o=s[1],a=" ",u=r.lastIndex;for(i.lastIndex=u;s=i.exec(e);)""===s[1]?"\n"===a?o+=a:a="\n":(o+=a+s[1],a=" "),u=i.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=u,s=l.exec(e),o+a+(null!==(t=null===(n=s)||void 0===n?void 0:n[1])&&void 0!==t?t:"")}function _l(e,t){let n="",r=e[t+1];for(;(" "===r||"\t"===r||"\n"===r||"\r"===r)&&("\r"!==r||"\n"===e[t+2]);)"\n"===r&&(n+="\n"),r=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const kl={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Ll(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const i=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE","Invalid escape sequence ".concat(i)),i}return String.fromCodePoint(s)}function Ol(e,t,n,r){const{value:i,type:s,comment:o,range:a}="block-scalar"===t.type?Fl(t,e.options.strict,r):Tl(t,e.options.strict,r),u=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,l=n&&u?function(e,t,n,r,i){if("!"===n)return e[Qo];const s=[];for(const u of e.tags)if(!u.collection&&u.tag===n){if(!u.default||!u.test)return u;s.push(u)}for(const u of s){var o;if(null!==(o=u.test)&&void 0!==o&&o.test(t))return u}const a=e.knownTags[n];if(a&&!a.collection)return e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a;return i(r,"TAG_RESOLVE_FAILED","Unresolved tag: ".concat(n),"tag:yaml.org,2002:str"!==n),e[Qo]}(e.schema,i,u,n,r):"scalar"===t.type?function(e,t,n,r){let{directives:i,schema:s}=e;const o=s.tags.find((e=>{var n;return e.default&&(null===(n=e.test)||void 0===n?void 0:n.test(t))}))||s[Qo];if(s.compat){var a;const e=null!==(a=s.compat.find((e=>{var n;return e.default&&(null===(n=e.test)||void 0===n?void 0:n.test(t))})))&&void 0!==a?a:s[Qo];if(o.tag!==e.tag){const t=i.tagString(o.tag),s=i.tagString(e.tag);r(n,"TAG_RESOLVE_FAILED","Value may be parsed as either ".concat(t," or ").concat(s),!0)}}return o}(e,i,t,r):e.schema[Qo];let c;try{const s=l.resolve(i,(e=>r(null!==n&&void 0!==n?n:t,"TAG_RESOLVE_FAILED",e)),e.options);c=ia(s)?s:new _a(s)}catch(p){const e=p instanceof Error?p.message:String(p);r(null!==n&&void 0!==n?n:t,"TAG_RESOLVE_FAILED",e),c=new _a(i)}return c.range=a,c.source=i,s&&(c.type=s),u&&(c.tag=u),l.format&&(c.format=l.format),o&&(c.comment=o),c}function Pl(e,t,n){if(t){null===n&&(n=t.length);for(let i=n-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];"space"===(null===(r=n)||void 0===r?void 0:r.type);){var r;e+=n.source.length,n=t[++i]}break}}return e}const Il={composeNode:Bl,composeEmptyNode:Ml};function Bl(e,t,n,r){const{spaceBefore:i,comment:s,anchor:o,tag:a}=n;let u,l=!0;switch(t.type){case"alias":u=function(e,t,n){let{options:r}=e,{offset:i,source:s,end:o}=t;const a=new Fa(s.substring(1));""===a.source&&n(i,"BAD_ALIAS","Alias cannot be an empty string");a.source.endsWith(":")&&n(i+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=i+s.length,l=Al(o,u,r.strict,n);a.range=[i,u,l.offset],l.comment&&(a.comment=l.comment);return a}(e,t,r),(o||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Ol(e,t,a,r),o&&(u.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=function(e,t,n,r,i){var s,o,a,u;const l=r?t.directives.tagName(r.source,(e=>i(r,"TAG_RESOLVE_FAILED",e))):null,c="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!r||!l||"!"===l||l===pu.tagName&&"map"===c||l===fu.tagName&&"seq"===c||!c)return wl(e,t,n,i,l);let p=t.schema.tags.find((e=>e.tag===l&&e.collection===c));if(!p){const s=t.schema.knownTags[l];if(!s||s.collection!==c)return null!==s&&void 0!==s&&s.collection?i(r,"BAD_COLLECTION_TYPE","".concat(s.tag," used for ").concat(c," collection, but expects ").concat(s.collection),!0):i(r,"TAG_RESOLVE_FAILED","Unresolved tag: ".concat(l),!0),wl(e,t,n,i,l);t.schema.tags.push(Object.assign({},s,{default:!1})),p=s}const d=wl(e,t,n,i,l,p),f=null!==(s=null===(o=(a=p).resolve)||void 0===o?void 0:o.call(a,d,(e=>i(r,"TAG_RESOLVE_FAILED",e)),t.options))&&void 0!==s?s:d,h=aa(f)?f:new _a(f);return h.range=d.range,h.tag=l,null!==(u=p)&&void 0!==u&&u.format&&(h.format=p.format),h}(Il,e,t,a,r),o&&(u.anchor=o.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:"Unsupported token (type: ".concat(t.type,")")),u=Ml(e,t.offset,void 0,null,n,r),l=!1}return o&&""===u.anchor&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(u.spaceBefore=!0),s&&("scalar"===t.type&&""===t.source?u.comment=s:u.commentBefore=s),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function Ml(e,t,n,r,i,s){let{spaceBefore:o,comment:a,anchor:u,tag:l,end:c}=i;const p=Ol(e,{type:"scalar",offset:Pl(t,n,r),indent:-1,source:""},l,s);return u&&(p.anchor=u.source.substring(1),""===p.anchor&&s(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=c),p}function jl(e){if("number"===typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"===typeof n?n.length:1)]}function Rl(e){var t;let n="",r=!1,i=!1;for(let s=0;s<e.length;++s){const o=e[s];switch(o[0]){case"#":n+=(""===n?"":i?"\n\n":"\n")+(o.substring(1)||" "),r=!0,i=!1;break;case"%":"#"!==(null===(t=e[s+1])||void 0===t?void 0:t[0])&&(s+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:n,afterEmptyLine:i}}class Vl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const i=jl(e);r?this.warnings.push(new gl(i,t,n)):this.errors.push(new ml(i,t,n))},this.directives=new ba({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Rl(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?"".concat(e.comment,"\n").concat(n):n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(oa(i)&&!i.flow&&i.items.length>0){let e=i.items[0];ra(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?"".concat(n,"\n").concat(t):n}else{const e=i.commentBefore;i.commentBefore=e?"".concat(n,"\n").concat(e):n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Rl(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}compose(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return function*(){for(const n of e)yield*t.next(n);yield*t.end(n,r)}()}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const i=jl(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,n,r){let{offset:i,start:s,value:o,end:a}=n;const u=Object.assign({_directives:t},e),l=new dl(void 0,u),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},p=Dl(s,{indicator:"doc-start",next:null!==o&&void 0!==o?o:null===a||void 0===a?void 0:a[0],offset:i,onError:r,startOnNewline:!0});p.found&&(l.directives.docStart=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||p.hasNewline||r(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=o?Bl(c,o,p,r):Ml(c,p.end,s,null,p,r);const d=l.contents.range[2],f=Al(a,d,!1,r);return f.comment&&(l.comment=f.comment),l.range=[i,d,f.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?"".concat(e.message,": ").concat(JSON.stringify(e.source)):e.message,n=new ml(jl(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new ml(jl(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=Al(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?"".concat(e,"\n").concat(t.comment):t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ml(jl(e),"UNEXPECTED_TOKEN","Unsupported token ".concat(e.type)))}}end(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return function*(){if(e.doc)e.decorate(e.doc,!0),yield e.doc,e.doc=null;else if(t){const t=Object.assign({_directives:e.directives},e.options),r=new dl(void 0,t);e.atDirectives&&e.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,n,n],e.decorate(r,!1),yield r}}()}}const ql=e=>"type"in e?Ul(e):Wl(e);function Ul(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Ul(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Wl(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Wl(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Wl(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Wl(e){let{start:t,key:n,sep:r,value:i}=e,s="";for(const o of t)s+=o.source;if(n&&(s+=Ul(n)),r)for(const o of r)s+=o.source;return i&&(s+=Ul(i)),s}const Kl=Symbol("break visit"),$l=Symbol("skip children"),Hl=Symbol("remove item");function Jl(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),Gl(Object.freeze([]),e,t)}function Gl(e,t,n){let r=n(t,e);if("symbol"===typeof r)return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let t=0;t<s.items.length;++t){const r=Gl(Object.freeze(e.concat([[i,t]])),s.items[t],n);if("number"===typeof r)t=r-1;else{if(r===Kl)return Kl;r===Hl&&(s.items.splice(t,1),t-=1)}}"function"===typeof r&&"key"===i&&(r=r(t,e))}}return"function"===typeof r?r(t,e):r}Jl.BREAK=Kl,Jl.SKIP=$l,Jl.REMOVE=Hl,Jl.itemAtPath=(e,t)=>{let n=e;for(const[i,s]of t){var r;const e=null===(r=n)||void 0===r?void 0:r[i];if(!e||!("items"in e))return;n=e.items[s]}return n},Jl.parentCollection=(e,t)=>{const n=Jl.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=null===n||void 0===n?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};const zl="\x1f",Yl=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function Ql(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const Xl="0123456789ABCDEFabcdef".split(""),Zl="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),ec=",[]{}".split(""),tc=" ,[]{}\n\r\t".split(""),nc=e=>!e||tc.includes(e);class rc{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}lex(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function*(r){e&&(t.buffer=t.buffer?t.buffer+e:e,t.lineEndPos=null),t.atEnd=!n;let i=null!==(r=t.next)&&void 0!==r?r:"stream";for(;i&&(n||t.hasChars(1));)i=yield*t.parseNext(i)}()}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Ql(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!==typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\ufeff"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const r=e[n-1];" "!==r&&"\t"!==r||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&Ql(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&Ql(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ql(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Ql(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(nc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if(-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&Ql(r[3])){if(!(n===this.indentNext-1&&1===this.flowLevel&&("]"===r[0]||"}"===r[0])))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart()}let i=0;for(;","===r[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(nc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||Ql(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2===0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>Ql(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const i=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>i))break;t=e}return yield zl,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(Ql(t)||e&&","===t)break;n=r}else if(Ql(t)){let i=this.buffer[r+1];if("\r"===t&&("\n"===i?(r+=1,t="\n",i=this.buffer[r+1]):n=r),"#"===i||e&&ec.includes(i))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&ec.includes(t))break;n=r}return t||this.atEnd?(yield zl,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(nc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Ql(t)||e&&ec.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Ql(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Zl.includes(t))t=this.buffer[++e];else{if("%"!==t||!Xl.includes(this.buffer[e+1])||!Xl.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class ic{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}function sc(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function oc(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function ac(e){switch(null===e||void 0===e?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function uc(e){switch(e.type){case"document":return e.start;case"block-map":{var t;const n=e.items[e.items.length-1];return null!==(t=n.sep)&&void 0!==t?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function lc(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===(null===(n=e[++t])||void 0===n?void 0:n.type);)var n;return e.splice(t,e.length)}function cc(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||sc(t.start,"explicit-key-ind")||sc(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,ac(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class pc{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new rc,this.onNewLine=e}parse(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function*(){t.onNewLine&&0===t.offset&&t.onNewLine(0);for(const r of t.lexer.lex(e,n))yield*t.next(r);n||(yield*t.end())}()}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case zl:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t="Not a YAML token: ".concat(e);yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=null!==e&&void 0!==e?e:this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&cc(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!sc(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===oc(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:"Unexpected ".concat(this.type," token in YAML stream"),source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==oc(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:"Unexpected ".concat(this.type," token in YAML document"),source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=lc(uc(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===(null===r||void 0===r?void 0:r.type)?null===n||void 0===n||n.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){var n;const r=e.items[e.items.length-2],i=null===r||void 0===r||null===(n=r.value)||void 0===n?void 0:n.end;if(Array.isArray(i))return Array.prototype.push.apply(i,t.start),i.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep&&"seq-item-ind"!==this.type;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;r<t.sep.length;++r){const i=t.sep[r];switch(i.type){case"newline":n.push(r);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||sc(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(sc(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(sc(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(ac(t.key)&&!sc(t.sep,"newline")){const e=lc(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(sc(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=lc(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):sc(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:i,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(i):(Object.assign(t,{key:i,sep:[]}),this.onKeyLine=!0))}default:{const i=this.startBlockValue(e);if(i)return n&&"block-seq"!==i.type&&sc(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(i)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===(null===r||void 0===r?void 0:r.type)?null===n||void 0===n||n.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){var n;const r=e.items[e.items.length-2],i=null===r||void 0===r||null===(n=r.value)||void 0===n?void 0:n.end;if(Array.isArray(i))return Array.prototype.push.apply(i,t.start),i.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||sc(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=lc(uc(t));cc(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=lc(uc(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=lc(uc(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&(!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type)))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function dc(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new ic||null,prettyErrors:t}}function fc(e,t,n){let r;"function"===typeof t?r=t:void 0===n&&t&&"object"===typeof t&&(n=t);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{lineCounter:n,prettyErrors:r}=dc(t),i=new pc(null===n||void 0===n?void 0:n.addNewLine),s=new Vl(t);let o=null;for(const a of s.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new ml(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=a;return r&&n&&(o.errors.forEach(yl(e,n)),o.warnings.forEach(yl(e,n))),o}(e,n);if(!i)return null;if(i.warnings.forEach((e=>eu(i.options.logLevel,e))),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var hc,mc,gc,yc=n(133),Dc=n(4),vc=n(262),bc=n.t(vc,2);function Ec(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Cc(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function Ac(e){return Ec(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function Sc(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===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<e.length;n++)if(!Sc(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var s=[];for(r in t)s.push(r);if(s.sort(),!Sc(i,s))return!1;for(n=0;n<i.length;n++)if(!Sc(e[i[n]],t[i[n]]))return!1}return!0}function xc(e){return"number"===typeof e}function wc(e){return"undefined"!==typeof e}function Fc(e){return"boolean"===typeof e}(mc=hc||(hc={}))[mc.Undefined=0]="Undefined",mc[mc.EnumValueMismatch=1]="EnumValueMismatch",mc[mc.Deprecated=2]="Deprecated",mc[mc.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",mc[mc.UnexpectedEndOfString=258]="UnexpectedEndOfString",mc[mc.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",mc[mc.InvalidUnicode=260]="InvalidUnicode",mc[mc.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",mc[mc.InvalidCharacter=262]="InvalidCharacter",mc[mc.PropertyExpected=513]="PropertyExpected",mc[mc.CommaExpected=514]="CommaExpected",mc[mc.ColonExpected=515]="ColonExpected",mc[mc.ValueExpected=516]="ValueExpected",mc[mc.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",mc[mc.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",mc[mc.TrailingComma=519]="TrailingComma",mc[mc.DuplicateKey=520]="DuplicateKey",mc[mc.CommentNotPermitted=521]="CommentNotPermitted",mc[mc.SchemaResolveError=768]="SchemaResolveError",(gc||(gc={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Qs.Markdown,Qs.PlainText],commitCharactersSupport:!0}}}};var Tc=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return function(e,t){return 0===t.length?e:e.replace(/{(\d+)}/g,((e,n)=>{let[r]=n;return r in t?t[r]:e}))}(t,r)};function Nc(){return Tc}var _c,kc,Lc=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oc=Nc(),Pc={"color-hex":{errorMessage:Oc("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:Oc("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:Oc("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:Oc("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:Oc("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,}))$/}},Ic=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}Lc(t,e)})(Ic),function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}Lc(t,e)}(Ic),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}Lc(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}(Ic),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}Lc(t,e)}(Ic),function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}Lc(t,e)}(Ic),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}Lc(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}(Ic),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}Lc(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}(Ic);function Bc(e){return Fc(e)?e?{}:{not:{}}:e}(kc=_c||(_c={}))[kc.Key=0]="Key",kc[kc.Enum=1]="Enum";var Mc=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||Uc(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),jc=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}(),Rc=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<n.length;t++){var r=n[t];this.merge(r)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===hc.EnumValueMismatch&&(r.message=Oc("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches},e}();function Vc(e){return ps(e)}function qc(e){return cs(e)}function Uc(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}!function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return ls(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(n){var r=e(n),i=n.children;if(Array.isArray(i))for(var s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}},e.prototype.validate=function(e,t,n){if(void 0===n&&(n=Os.Warning),this.root&&t){var r=new Rc;return Wc(this.root,t,r,jc.instance),r.problems.map((function(t){var r,i=Ss.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return Bs.create(i,t.message,null!==(r=t.severity)&&void 0!==r?r:n,t.code)}))}},e.prototype.getMatchingSchemas=function(e,t,n){void 0===t&&(t=-1);var r=new Mc(t,n);return this.root&&e&&Wc(this.root,e,new Rc,r),r.schemas}}();function Wc(e,t,n,r){if(e&&r.include(e)){var i=e;switch(i.type){case"object":!function(e,t,n,r){for(var i=Object.create(null),s=[],o=0,a=e.properties;o<a.length;o++){i[R=(g=a[o]).keyNode.value]=g.valueNode,s.push(R)}if(Array.isArray(t.required))for(var u=0,l=t.required;u<l.length;u++){if(!i[A=l[u]]){var c=e.parent&&"property"===e.parent.type&&e.parent.keyNode,p=c?{offset:c.offset,length:c.length}:{offset:e.offset,length:1};n.problems.push({location:p,message:Oc("MissingRequiredPropWarning",'Missing property "{0}".',A)})}}var d=function(e){for(var t=s.indexOf(e);t>=0;)s.splice(t,1),t=s.indexOf(e)};if(t.properties)for(var f=0,h=Object.keys(t.properties);f<h.length;f++){d(A=h[f]);var m=t.properties[A];if(N=i[A])if(Fc(m))if(m)n.propertiesMatches++,n.propertiesValueMatches++;else{var g=N.parent;n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||Oc("DisallowedExtraPropWarning","Property {0} is not allowed.",A)})}else Wc(N,m,w=new Rc,r),n.mergePropertyMatch(w)}if(t.patternProperties)for(var y=0,D=Object.keys(t.patternProperties);y<D.length;y++)for(var v=D[y],b=Ac(v),E=0,C=s.slice(0);E<C.length;E++){var A=C[E];if(b.test(A))if(d(A),N=i[A])if(Fc(m=t.patternProperties[v]))if(m)n.propertiesMatches++,n.propertiesValueMatches++;else{g=N.parent;n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||Oc("DisallowedExtraPropWarning","Property {0} is not allowed.",A)})}else Wc(N,m,w=new Rc,r),n.mergePropertyMatch(w)}if("object"===typeof t.additionalProperties)for(var S=0,x=s;S<x.length;S++){if(N=i[A=x[S]]){var w=new Rc;Wc(N,t.additionalProperties,w,r),n.mergePropertyMatch(w)}}else if(!1===t.additionalProperties&&s.length>0)for(var F=0,T=s;F<T.length;F++){var N;if(N=i[A=T[F]]){g=N.parent;n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||Oc("DisallowedExtraPropWarning","Property {0} is not allowed.",A)})}}xc(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)});xc(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependencies)for(var _=0,k=Object.keys(t.dependencies);_<k.length;_++){if(i[R=k[_]]){var L=t.dependencies[R];if(Array.isArray(L))for(var O=0,P=L;O<P.length;O++){var I=P[O];i[I]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",I,R)})}else if(m=Bc(L))Wc(e,m,w=new Rc,r),n.mergePropertyMatch(w)}}var B=Bc(t.propertyNames);if(B)for(var M=0,j=e.properties;M<j.length;M++){var R;(R=j[M].keyNode)&&Wc(R,B,n,jc.instance)}}(i,t,n,r);break;case"array":!function(e,t,n,r){if(Array.isArray(t.items)){for(var i=t.items,s=0;s<i.length;s++){var o=Bc(i[s]),a=new Rc;(d=e.items[s])?(Wc(d,o,a,r),n.mergePropertyMatch(a)):e.items.length>=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"===typeof t.additionalItems)for(var u=i.length;u<e.items.length;u++){a=new Rc;Wc(e.items[u],t.additionalItems,a,r),n.mergePropertyMatch(a)}else!1===t.additionalItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",i.length)})}else{var l=Bc(t.items);if(l)for(var c=0,p=e.items;c<p.length;c++){var d;Wc(d=p[c],l,a=new Rc,r),n.mergePropertyMatch(a)}}var f=Bc(t.contains);if(f){e.items.some((function(e){var t=new Rc;return Wc(e,f,t,jc.instance),!t.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||Oc("requiredItemMissingWarning","Array does not contain required item.")})}xc(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)});xc(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){var h=Vc(e);h.some((function(e,t){return t!==h.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n,r){xc(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)});xc(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)});if(i=t.pattern,"string"===typeof i){Ac(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||Oc("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 s=void 0;if(e.value){var o=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);o?o[2]||"uri"!==t.format||(s=Oc("uriSchemeMissing","URI with a scheme is expected.")):s=Oc("uriMissing","URI is expected.")}else s=Oc("uriEmpty","URI expected.");s&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||Oc("uriFormatWarning","String is not a URI: {0}",s)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=Pc[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 s(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(xc(t.multipleOf)){var o=-1;if(Number.isInteger(t.multipleOf))o=i%t.multipleOf;else{var a=s(t.multipleOf),u=s(i);if(a&&u){var l=Math.pow(10,Math.abs(u.multiplier-a.multiplier));u.multiplier<a.multiplier?u.value*=l:a.value*=l,o=u.value%a.value}}0!==o&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function c(e,t){return xc(t)?t:Fc(t)&&t?e:void 0}function p(e,t){if(!Fc(t)||!t)return e}var d=c(t.minimum,t.exclusiveMinimum);xc(d)&&i<=d&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",d)});var f=c(t.maximum,t.exclusiveMaximum);xc(f)&&i>=f&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",f)});var h=p(t.minimum,t.exclusiveMinimum);xc(h)&&i<h&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("minimumWarning","Value is below the minimum of {0}.",h)});var m=p(t.maximum,t.exclusiveMaximum);xc(m)&&i>m&&n.problems.push({location:{offset:e.offset,length:e.length},message:Oc("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return Wc(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||Oc("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||Oc("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(var s=0,o=t.allOf;s<o.length;s++){var a=o[s];Wc(i,Bc(a),n,r)}var u=Bc(t.not);if(u){var l=new Rc,c=r.newSub();Wc(i,u,l,c),l.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},message:Oc("notSchemaWarning","Matches a schema that is not allowed.")});for(var p=0,d=c.schemas;p<d.length;p++){var f=d[p];f.inverted=!f.inverted,r.add(f)}}var h=function(e,t){for(var s=[],o=void 0,a=0,u=e;a<u.length;a++){var l=Bc(u[a]),c=new Rc,p=r.newSub();if(Wc(i,l,c,p),c.hasProblems()||s.push(l),o)if(t||c.hasProblems()||o.validationResult.hasProblems()){var d=c.compare(o.validationResult);d>0?o={schema:l,validationResult:c,matchingSchemas:p}:0===d&&(o.matchingSchemas.merge(p),o.validationResult.mergeEnumValues(c))}else o.matchingSchemas.merge(p),o.validationResult.propertiesMatches+=c.propertiesMatches,o.validationResult.propertiesValueMatches+=c.propertiesValueMatches;else o={schema:l,validationResult:c,matchingSchemas:p}}return s.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:Oc("oneOfWarning","Matches multiple schemas when only one must validate.")}),o&&(n.merge(o.validationResult),n.propertiesMatches+=o.validationResult.propertiesMatches,n.propertiesValueMatches+=o.validationResult.propertiesValueMatches,r.merge(o.matchingSchemas)),s.length};Array.isArray(t.anyOf)&&h(t.anyOf,!1);Array.isArray(t.oneOf)&&h(t.oneOf,!0);var m=function(e){var t=new Rc,s=r.newSub();Wc(i,Bc(e),t,s),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(s)},g=Bc(t.if);g&&function(e,t,n){var s=Bc(e),o=new Rc,a=r.newSub();Wc(i,s,o,a),r.merge(a),o.hasProblems()?n&&m(n):t&&m(t)}(g,Bc(t.then),Bc(t.else));if(Array.isArray(t.enum)){for(var y=Vc(i),D=!1,v=0,b=t.enum;v<b.length;v++){if(Sc(y,b[v])){D=!0;break}}n.enumValues=t.enum,n.enumValueMatch=D,D||n.problems.push({location:{offset:i.offset,length:i.length},code:hc.EnumValueMismatch,message:t.errorMessage||Oc("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}if(wc(t.const)){Sc(y=Vc(i),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:hc.EnumValueMismatch,message:t.errorMessage||Oc("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:Os.Warning,message:t.deprecationMessage,code:hc.Deprecated})}(),r.add({node:i,schema:t})}}function Kc(e,t){if("string"!==typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",s=!!t&&!!t.extended,o=!!t&&!!t.globstar,a=!1,u=t&&"string"===typeof t.flags?t.flags:"",l=0,c=r.length;l<c;l++)switch(n=r[l]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(s){i+=".";break}case"[":case"]":if(s){i+=n;break}case"{":if(s){a=!0,i+="(";break}case"}":if(s){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var p=r[l-1],d=1;"*"===r[l+1];)d++,l++;var f=r[l+1];if(o)d>1&&("/"===p||void 0===p||"{"===p||","===p)&&("/"===f||void 0===f||","===f||"}"===f)?("/"===f?l++:"/"===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 $c=Nc(),Hc=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],s="!"!==i[0];s||(i=i.substring(1)),i.length>0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:Kc("**/"+i,{extended:!0,globstar:!0}),include:s}))}this.uris=t}catch(qf){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],s=i.regexp,o=i.include;s.test(e)&&(t=o)}return t},e.prototype.getURIs=function(){return this.uris},e}(),Jc=function(){function e(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new Gc(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),Gc=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},zc=function(){function e(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return Bc(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"===typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var s=i[r];if(Ac(s).test(n))return this.getSectionRecursive(e,t.patternProperties[s])}else{if("object"===typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var o=parseInt(n,10);if(!isNaN(o)&&t.items[o])return this.getSectionRecursive(e,t.items[o])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),Yc=function(){function e(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){var n=ys.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=Xc(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var s=r.pop(),o=0;o<i.length;o++){var a=i[o];a&&(a.url===s||a.dependencies[s])&&(a.url!==s&&r.push(a.url),a.clearSchema(),i[o]=void 0,n=!0)}return n},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var n in t){var r=Xc(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var i=0,s=e.schemaAssociations;i<s.length;i++){var o=s[i],a=o.uris.map(Xc),u=this.addFilePatternAssociation(o.pattern,a);this.contributionAssociations.push(u)}},e.prototype.addSchemaHandle=function(e,t){var n=new Jc(this,e,t);return this.schemasById[e]=n,n},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var n=new Hc(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=Xc(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},e.prototype.getResolvedSchema=function(e){var t=Xc(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=$c("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Zc(e));return this.promise.resolve(new Gc({},[t]))}return this.requestService(e).then((function(t){if(!t){var n=$c("json.schema.nocontent","Unable to load schema from '{0}': No content.",Zc(e));return new Gc({},[n])}var r,i=[];r=us(t,i);var s=i.length?[$c("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Zc(e),i[0].offset)]:[];return new Gc(r,s)}),(function(t){var n=t.toString(),r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),Cc(n,".")&&(n=n.substr(0,n.length-1)),new Gc({},[$c("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Zc(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),s=e.schema;if(s.$schema){var o=Xc(s.$schema);if("http://json-schema.org/draft-03/schema"===o)return this.promise.resolve(new zc({},[$c("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===o&&i.push($c("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,u=function(e,t,n,r){var s=r?decodeURIComponent(r):void 0,o=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,s);if(o)for(var a in o)o.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=o[a]);else i.push($c("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",s,n))},l=function(e,t,n,s,o){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,s)),t=Xc(t);var l=r.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(r){if(o[t]=!0,r.errors.length){var s=n?t+"#"+n:t;i.push($c("json.schema.problemloadingref","Problems loading reference '{0}': {1}",s,r.errors[0]))}return u(e,r.schema,t,n),c(e,r.schema,t,l.dependencies)}))},c=function(e,t,n,i){if(!e||"object"!==typeof e)return Promise.resolve(null);for(var s=[e],o=[],a=[],c=function(e){for(var r=[];e.$ref;){var o=e.$ref,c=o.split("#",2);if(delete e.$ref,c[0].length>0)return void a.push(l(e,c[0],c[1],n,i));-1===r.indexOf(o)&&(u(e,t,n,c[1]),r.push(o))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"===typeof i&&s.push(i)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if("object"===typeof i)for(var o in i){var a=i[o];"object"===typeof a&&s.push(a)}}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i))for(var o=0,a=i;o<a.length;o++){var u=a[o];"object"===typeof u&&s.push(u)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};s.length;){var p=s.pop();o.indexOf(p)>=0||(o.push(p),c(p))}return r.promise.all(a)};return c(s,s,t,n).then((function(e){return new zc(s,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=Vc(r);if(i&&Ec(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var s=Xc(i);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),a=[],u=function(e){try{return ys.parse(e).with({fragment:null,query:null}).toString()}catch(qf){return e}}(e),l=0,c=this.filePatternAssociations;l<c.length;l++){var p=c[l];if(p.matchesPattern(u))for(var d=0,f=p.getURIs();d<f.length;d++){var h=f[d];o[h]||(a.push(h),o[h]=!0)}}var m=a.length>0?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/"+Qc++;return this.resolveSchemaContent(new Gc(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}(),Qc=0;function Xc(e){try{return ys.parse(e).toString()}catch(qf){return e}}function Zc(e){try{var t=ys.parse(e);if("file"===t.scheme)return t.fsPath}catch(qf){}return e}function ep(e){try{return new RegExp(e,"u")}catch(t){return new RegExp(e)}}function tp(e,t){for(let n=++t;n<e.length;n++){const r=e.charAt(n);if(" "!==r&&"\t"!==r)return t;t++}return t}function np(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===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<e.length;n++)if(!np(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!np(i,s))return!1;for(n=0;n<i.length;n++)if(!np(e[i[n]],t[i[n]]))return!1}return!0}function rp(e){return"number"===typeof e}function ip(e){return"undefined"!==typeof e}function sp(e){return"boolean"===typeof e}function op(e){return"string"===typeof e}function ap(e){return Symbol.iterator in Object(e)}function up(e){var t;return e?e instanceof Error&&null!=(t=e.stack)?t:e.toString():"null"}function lp(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?cp(e.$id):e.$ref||e._$ref?cp(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle}function cp(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error("$ref (".concat(e,") not parsed properly"))),n}function pp(e,t){const n=ys.parse(t);let r=yc.basename(n.fsPath);return yc.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(e,"name")?Object.getOwnPropertyDescriptor(e,"name").value+" (".concat(r,")"):e.title?e.description?e.title+" - "+e.description+" (".concat(r,")"):e.title+" (".concat(r,")"):r}function dp(e){return"object"!==e.type&&!fp(e)}function fp(e){return!!(e.anyOf||e.allOf||e.oneOf)}function hp(e,t,n){if(null!==e&&"object"===typeof e){var r=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";for(var i="[\n",s=0;s<e.length;s++)i+=r+hp(e[s],r,n),s<e.length-1&&(i+=","),i+="\n";return i+=t+"]"}var o=Object.keys(e);if(0===o.length)return"{}";for(i="{\n",s=0;s<o.length;s++){var a=o[s];i+=r+JSON.stringify(a)+": "+hp(e[a],r,n),s<o.length-1&&(i+=","),i+="\n"}return i+=t+"}"}return n(e)}var mp=Nc();(function(){function e(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=Promise),void 0===r&&(r={}),this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}e.prototype.doResolve=function(e){for(var t=this.contributions.length-1;t>=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(),o=e.offsetAt(t),a=n.getNodeFromOffset(o,!0);if(this.isInComment(e,a?a.offset:0,o))return Promise.resolve(i);if(a&&o===a.offset+a.length&&o>0){var u=s[o-1];("object"===a.type&&"}"===u||"array"===a.type&&"]"===u)&&(a=a.parent)}var l,c=this.getCurrentWord(e,o);if(!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type){var p=o-c.length;p>0&&'"'===s[p-1]&&p--,l=Ss.create(e.positionAt(p),t)}else l=Ss.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));var d={},f={add:function(e){var t=e.label,n=d[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"\u21b5")).length>60){var r=t.substr(0,57).trim()+"...";d[r]||(t=r)}l&&void 0!==e.insertText&&(e.textEdit=js.replace(l,e.insertText)),e.label=t,d[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 u=[],p=!0,h="",m=void 0;if(a&&"string"===a.type){var g=a.parent;g&&"property"===g.type&&g.keyNode===a&&(p=!g.valueNode,m=g,h=s.substr(a.offset+1,a.length-2),g&&(a=g.parent))}if(a&&"object"===a.type){if(a.offset===o)return i;a.properties.forEach((function(e){m&&m===e||(d[e.keyNode.value]=so.create("__"))}));var y="";p&&(y=r.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?r.getPropertyCompletions(t,n,a,p,y,f):r.getSchemaLessPropertyCompletions(n,a,h,f);var D=qc(a);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,D,c,p,""===y,f);n&&u.push(n)})),!t&&c.length>0&&'"'!==s.charAt(o-c.length-1)&&(f.add({kind:Zs.Property,label:r.getLabelForValue(c),insertText:r.getInsertTextForProperty(c,void 0,!1,y),insertTextFormat:eo.Snippet,documentation:""}),f.setAsIncomplete())}var v={};return t?r.getValueCompletions(t,n,a,o,e,f,v):r.getSchemaLessValueCompletions(n,a,o,e,f),r.contributions.length>0&&r.getContributedValueCompletions(n,a,o,e,f,u),r.promiseConstructor.all(u).then((function(){if(0===f.getNumberOfProposals()){var t=o;!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type||(t=a.offset+a.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(v,n,f)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,s){var o=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 a={kind:Zs.Property,label:e,insertText:o.getInsertTextForProperty(e,n,r,i),insertTextFormat:eo.Snippet,filterText:o.getFilterTextForValue(e),documentation:o.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(a.sortText=n.suggestSortText),a.insertText&&Cc(a.insertText,"$1"+i)&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(a)}}));var a=e.schema.propertyNames;if("object"===typeof a&&!a.deprecationMessage&&!a.doNotSuggest){var u=function(e,t){void 0===t&&(t=void 0);var n={kind:Zs.Property,label:e,insertText:o.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:eo.Snippet,filterText:o.getFilterTextForValue(e),documentation:t||o.fromMarkup(a.markdownDescription)||a.description||""};void 0!==a.suggestSortText&&(n.sortText=a.suggestSortText),n.insertText&&Cc(n.insertText,"$1"+i)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(n)};if(a.enum)for(var l=0;l<a.enum.length;l++){var c=void 0;a.markdownEnumDescriptions&&l<a.markdownEnumDescriptions.length?c=o.fromMarkup(a.markdownEnumDescriptions[l]):a.enumDescriptions&&l<a.enumDescriptions.length&&(c=a.enumDescriptions[l]),u(a.enum[l],c)}a.const&&u(a.const)}}}))},e.prototype.getSchemaLessPropertyCompletions=function(e,t,n,r){var i=this,s=function(e){e.properties.forEach((function(e){var t=e.keyNode.value;r.add({kind:Zs.Property,label:t,insertText:i.getInsertTextForValue(t,""),insertTextFormat:eo.Snippet,filterText:i.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){var o=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===o&&e.valueNode&&"object"===e.valueNode.type&&s(e.valueNode),!0}))}else"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&s(e)}));else"object"===t.type&&r.add({kind:Zs.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:eo.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(e,t,n,r,i){var s=this,o=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(o=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:eo.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:eo.Snippet,documentation:""});var a=this.evaluateSeparatorAfter(r,o),u=function(e){e.parent&&!Uc(e.parent,n,!0)&&i.add({kind:s.getSuggestionKind(e.type),label:s.getLabelTextForMatchingNode(e,r),insertText:s.getInsertTextForMatchingNode(e,r,a),insertTextFormat:eo.Snippet,documentation:""}),"boolean"===e.type&&s.addBooleanValueCompletion(!e.value,a,i)};if("property"===t.type&&n>(t.colonOffset||0)){var l=t.valueNode;if(l&&(n>l.offset+l.length||"object"===l.type||"array"===l.type))return;var c=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===c&&e.valueNode&&u(e.valueNode),!0})),"$schema"===c&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var p=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===p&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(u),!0}))}else t.items.forEach(u)},e.prototype.getValueCompletions=function(e,t,n,r,i,s,o){var a=r,u=void 0,l=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var c=n.valueNode;if(c&&r>c.offset+c.length)return;u=n.keyNode.value,n=n.parent}if(n&&(void 0!==u||"array"===n.type)){for(var p=this.evaluateSeparatorAfter(i,a),d=0,f=t.getMatchingSchemas(e.schema,n.offset,l);d<f.length;d++){var h=f[d];if(h.node===n&&!h.inverted&&h.schema){if("array"===n.type&&h.schema.items)if(Array.isArray(h.schema.items)){var m=this.findItemAtOffset(n,i,r);m<h.schema.items.length&&this.addSchemaValueCompletions(h.schema.items[m],p,s,o)}else this.addSchemaValueCompletions(h.schema.items,p,s,o);if(void 0!==u){var g=!1;if(h.schema.properties)(b=h.schema.properties[u])&&(g=!0,this.addSchemaValueCompletions(b,p,s,o));if(h.schema.patternProperties&&!g)for(var y=0,D=Object.keys(h.schema.patternProperties);y<D.length;y++){var v=D[y];if(Ac(v).test(u)){g=!0;var b=h.schema.patternProperties[v];this.addSchemaValueCompletions(b,p,s,o)}}if(h.schema.additionalProperties&&!g){b=h.schema.additionalProperties;this.addSchemaValueCompletions(b,p,s,o)}}}}"$schema"!==u||n.parent||this.addDollarSchemaCompletions(p,s),o.boolean&&(this.addBooleanValueCompletion(!0,p,s),this.addBooleanValueCompletion(!1,p,s)),o.null&&this.addNullValueCompletion(p,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o)},e.prototype.getContributedValueCompletions=function(e,t,n,r,i,s){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){var o=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var u=qc(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,u,o,i);t&&s.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&s.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(wc(e.default)){for(var o=e.type,a=e.default,u=r;u>0;u--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:eo.Snippet,detail:mp("json.suggest.default","Default value")}),s=!0}Array.isArray(e.examples)&&e.examples.forEach((function(o){for(var a=e.type,u=o,l=r;l>0;l--)u=[u],a="array";n.add({kind:i.getSuggestionKind(a),label:i.getLabelForValue(u),insertText:i.getInsertTextForValue(u,t),insertTextFormat:eo.Snippet}),s=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(o){var a,u,l=e.type,c=o.body,p=o.label;if(wc(c)){e.type;for(var d=r;d>0;d--)c=[c],"array";a=i.getInsertTextForSnippetValue(c,t),u=i.getFilterTextForSnippetValue(c),p=p||i.getLabelForSnippetValue(c)}else{if("string"!==typeof o.bodyText)return;var f="",h="",m="";for(d=r;d>0;d--)f=f+m+"[\n",h=h+"\n"+m+"]",m+="\t",l="array";a=f+m+o.bodyText.split("\n").join("\n"+m)+h+t,p=p||a,u=a.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(l),label:p,documentation:i.fromMarkup(o.markdownDescription)||o.description,insertText:a,insertTextFormat:eo.Snippet,filterText:u}),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(wc(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:eo.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r<i;r++){var s=e.enum[r],o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(o=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:eo.Snippet,documentation:o})}},e.prototype.collectTypes=function(e,t){if(!Array.isArray(e.enum)&&!wc(e.const)){var n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}},e.prototype.addFillerValueCompletions=function(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:eo.Snippet,detail:mp("defaults.object","New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:eo.Snippet,detail:mp("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:eo.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:eo.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(e,t){var n=this,r=this.schemaService.getRegisteredSchemaIds((function(e){return"http"===e||"https"===e}));r.forEach((function(r){return t.add({kind:Zs.Module,label:n.getLabelForValue(r),filterText:n.getFilterTextForValue(r),insertText:n.getInsertTextForValue(r,e),insertTextFormat:eo.Snippet,documentation:""})}))},e.prototype.getLabelForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(e){return e.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(e,t){var n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)},e.prototype.getInsertTextForSnippetValue=function(e,t){return hp(e,"",(function(e){return"string"===typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)}))+t},e.prototype.getInsertTextForGuessedValue=function(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":var n=JSON.stringify(e);return n=n.substr(1,n.length-2),'"${1:'+(n=this.getInsertTextForPlainText(n))+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)},e.prototype.getSuggestionKind=function(e){if(Array.isArray(e)){var t=e;e=t.length>0?t[0]:void 0}if(!e)return Zs.Value;switch(e){case"string":default:return Zs.Value;case"object":return Zs.Module;case"property":return Zs.Property}},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 s,o=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var u=t.defaultSnippets[0].body;wc(u)&&(s=this.getInsertTextForSnippetValue(u,""))}a+=t.defaultSnippets.length}if(t.enum&&(s||1!==t.enum.length||(s=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),wc(t.default)&&(s||(s=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(s||(s=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var l=Array.isArray(t.type)?t.type[0]:t.type;switch(l||(t.properties?l="object":t.items&&(l="array")),l){case"boolean":s="$1";break;case"string":s='"$1"';break;case"object":s="{$1}";break;case"array":s="[$1]";break;case"number":case"integer":s="${1:0}";break;case"null":s="${1:null}";break;default:return i}}}return(!s||a>1)&&(s="$1"),o+s+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=ss(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=ss(t.getText(),!0),i=e.items,s=i.length-1;s>=0;s--){var o=i[s];if(n>o.offset+o.length)return r.setPosition(o.offset+o.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s;if(n>=o.offset)return s}return 0},e.prototype.isInComment=function(e,t,n){var r=ss(e.getText(),!1);r.setPosition(t);for(var i=r.scan();17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n},e.prototype.fromMarkup=function(e){if(e&&this.doesSupportMarkdown())return{kind:Qs.Markdown,value:e}},e.prototype.doesSupportMarkdown=function(){if(!wc(this.supportsMarkdown)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(Qs.Markdown)}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!wc(this.supportsCommitCharacters)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport}return this.supportsCommitCharacters}})(),function(){function e(e,t,n){void 0===t&&(t=[]),this.schemaService=e,this.contributions=t,this.promise=n||Promise}e.prototype.doHover=function(e,t,n){var r=e.offsetAt(t),i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);var s=i;if("string"===i.type){var o=i.parent;if(o&&"property"===o.type&&o.keyNode===i&&!(i=o.valueNode))return this.promise.resolve(null)}for(var a=Ss.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),u=function(e){return{contents:e,range:a}},l=qc(i),c=this.contributions.length-1;c>=0;c--){var p=this.contributions[c].getInfoContribution(e.uri,l);if(p)return p.then((function(e){return u(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,s=void 0,o=void 0,a=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,s=s||e.schema.markdownDescription||gp(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(Vc(i));e.schema.markdownEnumDescriptions?o=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(o=gp(e.schema.enumDescriptions[t])),o&&"string"!==typeof(a=e.schema.enum[t])&&(a=JSON.stringify(a))}return!0}));var l="";return r&&(l=gp(r)),s&&(l.length>0&&(l+="\n\n"),l+=s),o&&(l.length>0&&(l+="\n\n"),l+="`"+function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(a)+"`: "+o),u([l])}return null}))}}();function gp(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var yp=Nc(),Dp=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:Os.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],o={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;o[t]||(o[t]=!0,s.push(e))},u=function(r){var o=(null===n||void 0===n?void 0:n.trailingCommas)?Cp(n.trailingCommas):Os.Error,u=(null===n||void 0===n?void 0:n.comments)?Cp(n.comments):i.commentSeverity,l=(null===n||void 0===n?void 0:n.schemaValidation)?Cp(n.schemaValidation):Os.Warning,c=(null===n||void 0===n?void 0:n.schemaRequest)?Cp(n.schemaRequest):Os.Warning;if(r){if(r.errors.length&&t.root&&c){var p=t.root,d="object"===p.type?p.properties[0]:void 0;if(d&&"$schema"===d.keyNode.value){var f=d.valueNode||d,h=Ss.create(e.positionAt(f.offset),e.positionAt(f.offset+f.length));a(Bs.create(h,r.errors[0],c,hc.SchemaResolveError))}else{h=Ss.create(e.positionAt(p.offset),e.positionAt(p.offset+1));a(Bs.create(h,r.errors[0],c,hc.SchemaResolveError))}}else if(l){var m=t.validate(e,r.schema,l);m&&m.forEach(a)}bp(r.schema)&&(u=void 0),Ep(r.schema)&&(o=void 0)}for(var g=0,y=t.syntaxErrors;g<y.length;g++){var D=y[g];if(D.code===hc.TrailingComma){if("number"!==typeof o)continue;D.severity=o}a(D)}if("number"===typeof u){var v=yp("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){a(Bs.create(e,v,u,hc.CommentNotPermitted))}))}return s};if(r){var l=r.id||"schemaservice://untitled/"+vp++;return this.jsonSchemaService.resolveSchemaContent(new Gc(r),l,{}).then((function(e){return u(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return u(e)}))},e}(),vp=0;function bp(e){if(e&&"object"===typeof e){if(Fc(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=bp(n[t]);if(Fc(r))return r}}}function Ep(e){if(e&&"object"===typeof e){if(Fc(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Fc(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=Ep(r[n]);if(Fc(i))return i}}}function Cp(e){switch(e){case"error":return Os.Error;case"warning":return Os.Warning;case"ignore":return}}var Ap=48,Sp=57,xp=65,wp=97,Fp=102;function Tp(e){return e<Ap?0:e<=Sp?e-Ap:(e<wp&&(e+=wp-xp),e>=wp&&e<=Fp?e-wp+10:0)}function Np(e){if("#"===e[0])switch(e.length){case 4:return{red:17*Tp(e.charCodeAt(1))/255,green:17*Tp(e.charCodeAt(2))/255,blue:17*Tp(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Tp(e.charCodeAt(1))/255,green:17*Tp(e.charCodeAt(2))/255,blue:17*Tp(e.charCodeAt(3))/255,alpha:17*Tp(e.charCodeAt(4))/255};case 7:return{red:(16*Tp(e.charCodeAt(1))+Tp(e.charCodeAt(2)))/255,green:(16*Tp(e.charCodeAt(3))+Tp(e.charCodeAt(4)))/255,blue:(16*Tp(e.charCodeAt(5))+Tp(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Tp(e.charCodeAt(1))+Tp(e.charCodeAt(2)))/255,green:(16*Tp(e.charCodeAt(3))+Tp(e.charCodeAt(4)))/255,blue:(16*Tp(e.charCodeAt(5))+Tp(e.charCodeAt(6)))/255,alpha:(16*Tp(e.charCodeAt(7))+Tp(e.charCodeAt(8)))/255}}}var _p=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,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||Cc(o.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],u=0,l=i.items;u<l.length;u++){var c=l[u];if("object"===c.type)for(var p=0,d=c.properties;p<d.length;p++){var f=d[p];if("key"===f.keyNode.value&&f.valueNode){var h=xs.create(e.uri,kp(e,c));if(a.push({name:Vc(f.valueNode),kind:ho.Function,location:h}),--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),a}}}return a}for(var m=[{node:i,containerName:""}],g=0,y=!1,D=[],v=function(t,n){"array"===t.type?t.items.forEach((function(e){e&&m.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=xs.create(e.uri,kp(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;D.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:o,containerName:n}),m.push({node:i,containerName:a})}else y=!0}))};g<m.length;){var b=m[g++];v(b.node,b.containerName)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),D},e.prototype.findDocumentSymbols2=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,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||Cc(o.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],u=0,l=i.items;u<l.length;u++){var c=l[u];if("object"===c.type)for(var p=0,d=c.properties;p<d.length;p++){var f=d[p];if("key"===f.keyNode.value&&f.valueNode){var h=kp(e,c),m=kp(e,f.keyNode);if(a.push({name:Vc(f.valueNode),kind:ho.Function,range:h,selectionRange:m}),--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),a}}}return a}for(var g=[],y=[{node:i,result:g}],D=0,v=!1,b=function(t,n){"array"===t.type?t.items.forEach((function(t,i){if(t)if(s>0){s--;var o=kp(e,t),a=o,u={name:String(i),kind:r.getSymbolKind(t.type),range:o,selectionRange:a,children:[]};n.push(u),y.push({result:u.children,node:t})}else v=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=kp(e,t),a=kp(e,t.keyNode),u=[],l={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:o,selectionRange:a,children:u,detail:r.getDetail(i)};n.push(l),y.push({result:u,node:i})}else v=!0}))};D<y.length;){var E=y[D++];b(E.node,E.result)}return v&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),g},e.prototype.getSymbolKind=function(e){switch(e){case"object":return ho.Module;case"string":return ho.String;case"number":return ho.Number;case"array":return ho.Array;case"boolean":return ho.Boolean;default:return ho.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"\u21b5")),t&&t.trim()?t:'"'+t+'"'},e.prototype.getDetail=function(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0},e.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((function(r){var i=[];if(r)for(var s=n&&"number"===typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,o={},a=0,u=t.getMatchingSchemas(r.schema);a<u.length;a++){var l=u[a];if(!l.inverted&&l.schema&&("color"===l.schema.format||"color-hex"===l.schema.format)&&l.node&&"string"===l.node.type){var c=String(l.node.offset);if(!o[c]){var p=Np(Vc(l.node));if(p){var d=kp(e,l.node);i.push({color:p,range:d})}if(o[c]=!0,--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))},e.prototype.getColorPresentations=function(e,t,n,r){var i,s=[],o=Math.round(255*n.red),a=Math.round(255*n.green),u=Math.round(255*n.blue);function l(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return i=1===n.alpha?"#"+l(o)+l(a)+l(u):"#"+l(o)+l(a)+l(u)+l(Math.round(255*n.alpha)),s.push({label:i,textEdit:js.replace(r,JSON.stringify(i))}),s},e}();function kp(e,t){return Ss.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var Lp,Op,Pp,Ip,Bp,Mp=Nc(),jp={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},Rp={id:Mp("schema.json.id","A unique identifier for the schema."),$schema:Mp("schema.json.$schema","The schema to verify this document against."),title:Mp("schema.json.title","A descriptive title of the element."),description:Mp("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Mp("schema.json.default","A default value. Used by suggestions."),multipleOf:Mp("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Mp("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Mp("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Mp("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Mp("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Mp("schema.json.maxLength","The maximum length of a string."),minLength:Mp("schema.json.minLength","The minimum length of a string."),pattern:Mp("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Mp("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:Mp("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:Mp("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Mp("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Mp("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Mp("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Mp("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Mp("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Mp("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:Mp("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Mp("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Mp("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Mp("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:Mp("schema.json.enum","The set of literal values that are valid."),type:Mp("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:Mp("schema.json.format","Describes the format expected for the value."),allOf:Mp("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Mp("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Mp("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Mp("schema.json.not","A schema which must not match."),$id:Mp("schema.json.$id","A unique identifier for the schema."),$ref:Mp("schema.json.$ref","Reference a definition hosted on any location."),$comment:Mp("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Mp("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Mp("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Mp("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Mp("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:Mp("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Mp("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Mp("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Mp("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Mp("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Mp("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Bp in jp.schemas)for(Ip in(Lp=jp.schemas[Bp]).properties)"boolean"===typeof(Op=Lp.properties[Ip])&&(Op=Lp.properties[Ip]={}),(Pp=Rp[Ip])?Op.description=Pp:console.log(Ip+": localize('schema.json."+Ip+'\', "")');function Vp(e,t){var n=[];return t.visit((function(r){var i;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(i=r.valueNode)||void 0===i?void 0:i.type)){var s=r.valueNode.value,o=function(e,t){var n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Wp)}(t);if(!n)return null;return Up(n,e.root)}(t,s);if(o){var a=e.positionAt(o.offset);n.push({target:e.uri+"#"+(a.line+1)+","+(a.character+1),range:qp(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function qp(e,t){return Ss.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Up(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?Up(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?Up(e,s):null}return null}function Wp(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Kp(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return 1===t.documents.length?t.documents[0]:null}function $p(e){const t=["mapping","scalar","sequence"];return e?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 Hp(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 Jp,Gp,zp=Nc(),Yp="Property {0} is not allowed.",Qp={"color-hex":{errorMessage:zp("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:zp("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:zp("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:zp("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:zp("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,}))$/},ipv4:{errorMessage:zp("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:zp("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},Xp="YAML",Zp="yaml-schema: ";(Gp=Jp||(Jp={})).missingRequiredPropWarning="missingRequiredPropWarning",Gp.typeMismatchWarning="typeMismatchWarning",Gp.constWarning="constWarning";var ed,td={[Jp.missingRequiredPropWarning]:'Missing property "{0}".',[Jp.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[Jp.constWarning]:"Value must be {0}."},nd=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=r=>{if(e>=r.offset&&e<=r.offset+r.length){const i=r.children;for(let r=0;r<i.length&&i[r].offset<=e;r++){const e=n(i[r]);e&&t.push(e)}return r}return null},r=n(this);let i=Number.MAX_VALUE,s=null;for(const o of t){const t=o.length+o.offset-e+(e-o.offset);t<i&&(s=o,i=t)}return s||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},rd=class extends nd{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},id=class extends nd{constructor(e,t,n,r,i){super(e,t,r,i),this.type="boolean",this.value=n}},sd=class extends nd{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},od=class extends nd{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},ad=class extends nd{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},ud=class extends nd{constructor(e,t,n,r){super(e,t,n,r),this.type="property",this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},ld=class extends nd{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function cd(e){if(void 0!==e)return sp(e)?e?{}:{not:{}}:("object"!==typeof e&&(console.warn("Wrong schema: ".concat(JSON.stringify(e),", it MUST be an Object or Boolean")),e={type:e}),e)}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(ed||(ed={}));var pd=class e{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){this.schemas.push(...e.schemas)}include(e){return(-1===this.focusOffset||md(e,this.focusOffset))&&e!==this.exclude}newSub(){return new e(-1,this.exclude)}},dd=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};dd.instance=new dd;var fd=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===hc.EnumValueMismatch&&(e.message=zp("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.length)for(const i of t){const t=this.problems.filter((e=>e.problemType===i));for(const n of t){const t=null==(r=e.problems)?void 0:r.find((e=>e.problemType===i&&n.location.offset===e.location.offset&&(i!==Jp.missingRequiredPropWarning||Hp(e.problemArgs,n.problemArgs))));t&&(t.problemArgs.length&&(t.problemArgs.filter((e=>!n.problemArgs.includes(e))).forEach((e=>n.problemArgs.push(e))),n.message=Ed(n.problemType,n.problemArgs)),this.mergeSources(t,n))}}}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(Zp,"");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 hd(e){switch(e.type){case"array":return e.children.map(hd);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const e=r[n],i=e.children[1];i&&(t[e.children[0].value]=hd(i))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function md(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function gd(e,t,n){if(void 0===n&&(n=!1),md(e,t,n)){const r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){const i=gd(r[e],t,n);if(i)return i}return e}}var yd=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.root)return gd(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<i.length&&r;e++)r=t(i[e]);return r};t(this.root)}}validate(e,t){if(this.root&&t){const n=new fd(this.isKubernetes);return Dd(this.root,t,t,n,dd.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map((t=>{const n=Ss.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),r=Bs.create(n,t.message,t.severity,t.code?t.code:hc.Undefined,t.source);return r.data={schemaUri:t.schemaUri,...t.data},r}))}return null}getMatchingSchemas(e){let t=arguments.length>3?arguments[3]:void 0;const n=new pd(arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return this.root&&e&&Dd(this.root,e,e,new fd(this.isKubernetes),n,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:t}),n.schemas}};function Dd(e,t,n,r,i,s){const{isKubernetes:o,callFromAutoComplete:a}=s;if(e&&"object"===typeof t){switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":!function(e,t,r,i){var a;const u=Object.create(null),l=[],c=[...e.properties];for(;c.length>0;){const e=c.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":c.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{e&&ap(e.properties)&&c.push(...e.properties)}))}else u[t]=e.valueNode,l.push(t)}if(Array.isArray(t.required))for(const s of t.required)if(void 0===u[s]){const i=e.parent&&"property"===e.parent.type&&e.parent.keyNode,o=i?{offset:i.offset,length:i.length}:{offset:e.offset,length:1};r.problems.push({location:o,severity:Os.Warning,message:Ed(Jp.missingRequiredPropWarning,[s]),source:vd(t,n),schemaUri:bd(t,n),problemArgs:[s],problemType:Jp.missingRequiredPropWarning})}const p=e=>{let t=l.indexOf(e);for(;t>=0;)l.splice(t,1),t=l.indexOf(e)};if(t.properties)for(const f of Object.keys(t.properties)){p(f);const e=t.properties[f],l=u[f];if(l)if(sp(e))if(e)r.propertiesMatches++,r.propertiesValueMatches++;else{const e=l.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:Os.Warning,message:t.errorMessage||zp("DisallowedExtraPropWarning",Yp,f),source:vd(t,n),schemaUri:bd(t,n)})}else{e.url=null!=(a=t.url)?a:n.url;const u=new fd(o);Dd(l,e,t,u,i,s),r.mergePropertyMatch(u),r.mergeEnumValues(u)}}if(t.patternProperties)for(const f of Object.keys(t.patternProperties)){const e=ep(f);for(const a of l.slice(0))if(e.test(a)){p(a);const e=u[a];if(e){const u=t.patternProperties[f];if(sp(u))if(u)r.propertiesMatches++,r.propertiesValueMatches++;else{const i=e.parent;r.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:Os.Warning,message:t.errorMessage||zp("DisallowedExtraPropWarning",Yp,a),source:vd(t,n),schemaUri:bd(t,n)})}else{const n=new fd(o);Dd(e,u,t,n,i,s),r.mergePropertyMatch(n),r.mergeEnumValues(n)}}}}if("object"===typeof t.additionalProperties)for(const n of l){const e=u[n];if(e){const n=new fd(o);Dd(e,t.additionalProperties,t,n,i,s),r.mergePropertyMatch(n),r.mergeEnumValues(n)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===s.disableAdditionalProperties)&&l.length>0){const e=t.properties&&Object.keys(t.properties).filter((e=>!u[e]));for(const i of l){const s=u[i];if(s){let o=null;"property"!==s.type?(o=s.parent,"object"===o.type&&(o=o.properties[0])):o=s;const a={location:{offset:o.keyNode.offset,length:o.keyNode.length},severity:Os.Warning,message:t.errorMessage||zp("DisallowedExtraPropWarning",Yp,i),source:vd(t,n),schemaUri:bd(t,n)};(null==e?void 0:e.length)&&(a.data={properties:e}),r.problems.push(a)}}}rp(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:vd(t,n),schemaUri:bd(t,n)});rp(t.minProperties)&&e.properties.length<t.minProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties),source:vd(t,n),schemaUri:bd(t,n)});if(t.dependencies)for(const f of Object.keys(t.dependencies)){if(u[f]){const a=t.dependencies[f];if(Array.isArray(a))for(const i of a)u[i]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",i,f),source:vd(t,n),schemaUri:bd(t,n)});else{const n=cd(a);if(n){const a=new fd(o);Dd(e,n,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}}}}const d=cd(t.propertyNames);if(d)for(const n of e.properties){const e=n.keyNode;e&&Dd(e,d,t,r,dd.instance,s)}}(e,t,r,i);break;case"array":!function(e,t,r,i){if(Array.isArray(t.items)){const a=t.items;for(let n=0;n<a.length;n++){const u=cd(a[n]),l=new fd(o),c=e.items[n];c?(Dd(c,u,t,l,i,s),r.mergePropertyMatch(l),r.mergeEnumValues(l)):e.items.length>=a.length&&r.propertiesValueMatches++}if(e.items.length>a.length)if("object"===typeof t.additionalItems)for(let n=a.length;n<e.items.length;n++){const a=new fd(o);Dd(e.items[n],t.additionalItems,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else!1===t.additionalItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",a.length),source:vd(t,n),schemaUri:bd(t,n)})}else{const n=cd(t.items);if(n){const a=new fd(o);e.items.forEach((e=>{if(n.oneOf&&1===n.oneOf.length){const o={...cd(n.oneOf[0])};o.title=t.title,o.closestTitle=t.closestTitle,Dd(e,o,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else Dd(e,n,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}))}}const a=cd(t.contains);if(a){e.items.some((e=>{const n=new fd(o);return Dd(e,a,t,n,dd.instance,s),!n.hasProblems()}))||r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:t.errorMessage||zp("requiredItemMissingWarning","Array does not contain required item."),source:vd(t,n),schemaUri:bd(t,n)})}rp(t.minItems)&&e.items.length<t.minItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems),source:vd(t,n),schemaUri:bd(t,n)});rp(t.maxItems)&&e.items.length>t.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:vd(t,n),schemaUri:bd(t,n)});if(!0===t.uniqueItems){const i=hd(e);i.some(((e,t)=>t!==i.lastIndexOf(e)))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("uniqueItemsWarning","Array has duplicate items."),source:vd(t,n),schemaUri:bd(t,n)})}}(e,t,r,i);break;case"string":!function(e,t,r){rp(t.minLength)&&e.value.length<t.minLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength),source:vd(t,n),schemaUri:bd(t,n)});rp(t.maxLength)&&e.value.length>t.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:vd(t,n),schemaUri:bd(t,n)});if(op(t.pattern)){ep(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:t.patternErrorMessage||t.errorMessage||zp("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:vd(t,n),schemaUri:bd(t,n)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let i;if(e.value)try{ys.parse(e.value).scheme||"uri"!==t.format||(i=zp("uriSchemeMissing","URI with a scheme is expected."))}catch(qf){i=qf.message}else i=zp("uriEmpty","URI expected.");i&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:t.patternErrorMessage||t.errorMessage||zp("uriFormatWarning","String is not a URI: {0}",i),source:vd(t,n),schemaUri:bd(t,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const i=Qp[t.format];e.value&&i.pattern.test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:t.patternErrorMessage||t.errorMessage||i.errorMessage,source:vd(t,n),schemaUri:bd(t,n)})}}}(e,t,r);break;case"number":!function(e,t,r){const i=e.value;rp(t.multipleOf)&&i%t.multipleOf!==0&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:vd(t,n),schemaUri:bd(t,n)});function s(e,t){return rp(t)?t:sp(t)&&t?e:void 0}function o(e,t){if(!sp(t)||!t)return e}const a=s(t.minimum,t.exclusiveMinimum);rp(a)&&i<=a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",a),source:vd(t,n),schemaUri:bd(t,n)});const u=s(t.maximum,t.exclusiveMaximum);rp(u)&&i>=u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",u),source:vd(t,n),schemaUri:bd(t,n)});const l=o(t.minimum,t.exclusiveMinimum);rp(l)&&i<l&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("minimumWarning","Value is below the minimum of {0}.",l),source:vd(t,n),schemaUri:bd(t,n)});const c=o(t.maximum,t.exclusiveMaximum);rp(c)&&i>c&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("maximumWarning","Value is above the maximum of {0}.",c),source:vd(t,n),schemaUri:bd(t,n)})}(e,t,r);break;case"property":return Dd(e.valueNode,t,t,r,i,s)}!function(){function c(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(t.type))t.type.some(c)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:t.errorMessage||zp("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:vd(t,n),schemaUri:bd(t,n)});else if(t.type&&!c(t.type)){const i="object"===t.type?lp(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:t.errorMessage||Ed(Jp.typeMismatchWarning,[i]),source:vd(t,n),schemaUri:bd(t,n),problemType:Jp.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(const n of t.allOf)Dd(e,cd(n),t,r,i,s);const p=cd(t.not);if(p){const a=new fd(o),u=i.newSub();Dd(e,p,t,a,u,s),a.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("notSchemaWarning","Matches a schema that is not allowed."),source:vd(t,n),schemaUri:bd(t,n)});for(const e of u.schemas)e.inverted=!e.inverted,i.add(e)}const d=(c,p)=>{var d;const f=[],h=[],m=[];let g=null;for(const n of c){const r={...cd(n)},c=new fd(o),d=i.newSub();Dd(e,r,t,c,d,s),c.hasProblems()&&!a||(f.push(r),h.push(r),0===c.propertiesMatches&&m.push(r),r.format&&h.pop()),g=g?o?u(c,g,r,d):l(e,p,c,g,r,d):{schema:r,validationResult:c,matchingSchemas:d}}return h.length>1&&(h.length>1||0===m.length)&&p&&r.problems.push({location:{offset:e.offset,length:1},severity:Os.Warning,message:zp("oneOfWarning","Matches multiple schemas when only one must validate."),source:vd(t,n),schemaUri:bd(t,n)}),null!==g&&(r.merge(g.validationResult),r.propertiesMatches+=g.validationResult.propertiesMatches,r.propertiesValueMatches+=g.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||g.validationResult.enumValueMatch,(null==(d=g.validationResult.enumValues)?void 0:d.length)&&(r.enumValues=(r.enumValues||[]).concat(g.validationResult.enumValues)),i.merge(g.matchingSchemas)),f.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1);Array.isArray(t.oneOf)&&d(t.oneOf,!0);const f=(t,n)=>{const a=new fd(o),u=i.newSub();Dd(e,cd(t),n,a,u,s),r.merge(a),r.propertiesMatches+=a.propertiesMatches,r.propertiesValueMatches+=a.propertiesValueMatches,i.merge(u)},h=cd(t.if);h&&((n,r,a,u)=>{const l=cd(n),c=new fd(o),p=i.newSub();Dd(e,l,r,c,p,s),i.merge(p);const{filePatternAssociation:d}=l;d&&(new Kd(d).matchesPattern(s.uri)||c.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,message:zp("ifFilePatternAssociation","filePatternAssociation '".concat(d,"' does not match with doc uri '").concat(s.uri,"'.")),source:vd(t,r),schemaUri:bd(t,r)}));c.hasProblems()?u&&f(u,r):a&&f(a,r)})(h,t,cd(t.then),cd(t.else));if(Array.isArray(t.enum)){const i=hd(e);let s=!1;for(const e of t.enum)if(np(i,e)||a&&op(i)&&op(e)&&i&&e.startsWith(i)){s=!0;break}r.enumValues=t.enum,r.enumValueMatch=s,s||r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,code:hc.EnumValueMismatch,message:t.errorMessage||zp("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", ")),source:vd(t,n),schemaUri:bd(t,n)})}if(ip(t.const)){const i=hd(e);np(i,t.const)||a&&op(i)&&op(t.const)&&t.const.startsWith(i)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:Os.Warning,code:hc.EnumValueMismatch,problemType:Jp.constWarning,message:t.errorMessage||Ed(Jp.constWarning,[JSON.stringify(t.const)]),source:vd(t,n),schemaUri:bd(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1),r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Os.Warning,message:t.deprecationMessage,source:vd(t,n),schemaUri:bd(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 l(e,t,n,r,i,s){if(t||n.hasProblems()||r.validationResult.hasProblems()&&!a){const o=n.compareGeneric(r.validationResult);o>0||0===o&&t&&"object"===r.schema.type&&"null"!==e.type&&e.type!==r.schema.type?r={schema:i,validationResult:n,matchingSchemas:s}:0===o&&(r.matchingSchemas.merge(s),r.validationResult.mergeEnumValues(n),r.validationResult.mergeWarningGeneric(n,[Jp.missingRequiredPropWarning,Jp.typeMismatchWarning,Jp.constWarning]))}else r.matchingSchemas.merge(s),r.validationResult.propertiesMatches+=n.propertiesMatches,r.validationResult.propertiesValueMatches+=n.propertiesValueMatches;return r}}function vd(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(e.closestTitle)r=e.closestTitle;else if(t.closestTitle)r=t.closestTitle;else{const i=null!=(n=e.url)?n:t.url;if(i){const e=ys.parse(i);"file"===e.scheme&&(r=e.fsPath),r=e.toString()}}if(r)return"".concat(Zp).concat(r)}return Xp}function bd(e,t){var n;const r=null!=(n=e.url)?n:t.url;return r?[r]:[]}function Ed(e,t){return zp(e,td[e],t.join(" | "))}var Cd=1e3,Ad=0,Sd=new Set;function xd(e,t,n,r){if(e||(Ad=0),!t)return null;if(na(t))return function(e,t,n,r){let i;i=e.flow&&!e.range?function(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)ra(r)&&(aa(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),aa(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}(e):e.range;const s=new ld(t,e,...Fd(i,r));for(const o of e.items)ra(o)&&s.properties.push(xd(s,o,n,r));return s}(t,e,n,r);if(ra(t))return function(e,t,n,r){const i=e.key,s=e.value,o=i.range[0];let a=i.range[1],u=i.range[2];s&&(a=s.range[1],u=s.range[2]);const l=new ud(t,e,...Fd([o,a,u],r));if(ea(i)){const e=new ad(t,i,...wd(i.range));e.value=i.source,l.keyNode=e}else l.keyNode=xd(l,i,n,r);return l.valueNode=xd(l,s,n,r),l}(t,e,n,r);if(sa(t))return function(e,t,n,r){const i=new sd(t,e,...wd(e.range));for(const s of e.items)if(aa(s)){const e=xd(i,s,n,r);e&&i.children.push(e)}return i}(t,e,n,r);if(ia(t))return function(e,t){if(null===e.value)return new rd(t,e,...wd(e.range));switch(typeof e.value){case"string":{const n=new ad(t,e,...wd(e.range));return n.value=e.value,n}case"boolean":return new id(t,e,e.value,...wd(e.range));case"number":{const n=new od(t,e,...wd(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new ad(t,e,...wd(e.range));return n.value=e.source,n}}}(t,e);if(ea(t)&&!Sd.has(t)&&Ad<Cd){Sd.add(t);const i=function(e,t,n,r){Ad++;const i=e.resolve(n);if(i)return xd(t,i,n,r);{const n=new ad(t,e,...wd(e.range));return n.value=e.source,n}}(t,e,n,r);return Sd.delete(t),i}}function wd(e){return[e[0],e[1]-e[0]]}function Fd(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return n.line===r.line||t.lineStarts.length===r.line&&1!==r.col||i[1]--,i}function Td(e){return void 0!==e.start}function Nd(e,t,n){let r=n(t,e);if("symbol"===typeof r)return r;for(const s of["key","value"]){const i=t[s];if(i&&"items"in i){for(let t=0;t<i.items.length;++t){const r=Nd(Object.freeze(e.concat([[s,t]])),i.items[t],n);if("number"===typeof r)t=r-1;else{if(r===da.BREAK)return da.BREAK;r===da.REMOVE&&(i.items.splice(t,1),t-=1)}}"function"===typeof r&&"key"===s&&(r=r(t,e))}}const i=t.sep;if(i)for(let s=0;s<i.length;++s){const t=Nd(Object.freeze(e),i[s],n);if("number"===typeof t)s=t-1;else{if(t===da.BREAK)return da.BREAK;t===da.REMOVE&&(i.items.splice(s,1),s-=1)}}return"function"===typeof r?r(t,e):r}var _d=class e extends yd{constructor(e){super(null,[]),this.lineCounter=e}clone(){const t=new e(this.lineCounter);return t.isKubernetes=this.isKubernetes,t.disableAdditionalProperties=this.disableAdditionalProperties,t.uri=this.uri,t.currentDocIndex=this.currentDocIndex,t._lineComments=this.lineComments.slice(),t.internalDocument=this._internalDocument.clone(),t}collectLineComments(){if(this._lineComments=[],this._internalDocument.commentBefore){this._internalDocument.commentBefore.split("\n").forEach((e=>this._lineComments.push("#".concat(e))))}da(this.internalDocument,((e,t)=>{if(null==t?void 0:t.commentBefore){(null==t?void 0:t.commentBefore.split("\n")).forEach((e=>this._lineComments.push("#".concat(e))))}(null==t?void 0:t.comment)&&this._lineComments.push("#".concat(t.comment))})),this._internalDocument.comment&&this._lineComments.push("#".concat(this._internalDocument.comment))}updateFromInternalDocument(){this.root=xd(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(e){this._internalDocument=e,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(Od)}get warnings(){return this.internalDocument.warnings.map(Od)}getNodeFromPosition(e,t,n){const r=t.getPosition(e),i=t.getLineContent(r.line);if(0===i.trim().length)return[this.findClosestNode(e,t,n),!0];const s=i.substring(r.character).match(/^([ ]+)\n?$/),o=!!s,a=null==s?void 0:s[1].length;let u;return da(this.internalDocument,((t,n)=>{if(!n)return;const r=n.range;if(!r)return;if(!(r[0]<=e&&r[1]>=e||o&&e+a===r[2]&&ia(n)&&null===n.value))return da.SKIP;u=n})),[u,!1]}findClosestNode(e,t,n){let r,i=this.internalDocument.range[2],s=this.internalDocument.range[0];da(this.internalDocument,((t,n)=>{if(!n)return;const o=n.range;if(!o)return;const a=o[1]-e;s<=o[0]&&a<=0&&Math.abs(a)<=i&&(i=Math.abs(a),s=o[0],r=n)}));const o=t.getPosition(e),a=function(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return t}(t.getLineContent(o.line),o.character);return ia(r)&&null===r.value||a===o.character&&(r=this.getProperParentByIndentation(a,r,t,"",n)),r}getProperParentByIndentation(e,t,n,r,i,s){if(!t)return this.internalDocument.contents;if(i=i||2,aa(t)&&t.range){const o=n.getPosition(t.range[0]),a=n.getLineContent(o.line);if((r=""===r?a.trim():r).startsWith("-")&&e===i&&r===a.trim()&&(o.character+=e),o.character>e&&o.character>0){const o=this.getParent(t);if(o)return this.getProperParentByIndentation(e,o,n,r,i,s)}else{if(!(o.character<e))return t;{const e=this.getParent(t);if(ra(e)&&aa(e.value))return e.value;if(ra(s)&&aa(s.value))return s.value}}}else if(ra(t)){s=t;const o=this.getParent(t);return this.getProperParentByIndentation(e,o,n,r,i,s)}return t}getParent(e){return function(e,t){let n;if(da(e,((e,r,i)=>{if(r===t)return n=i[i.length-1],da.BREAK})),!ta(n))return n}(this.internalDocument,e)}},kd=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Ld=new class{constructor(){this.cache=new Map}getYamlDocument(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.ensureCache(e,null!=t?t:jd,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 kd([],[]),parserOptions:jd});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!Hp(i.parserOptions.customTags,t.customTags)){let r=e.getText();n&&!/\S/.test(r)&&(r="{".concat(r,"}"));const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jd,n=arguments.length>2?arguments[2]:void 0;var r;const i={strict:!1,customTags:Bd(t.customTags),version:null!=(r=t.yamlVersion)?r:jd.yamlVersion,keepSourceTokens:!0},s=new Vl(i),o=new ic;let a=!1;if(n){const t=new Md(n),r=t.getPosition(e.length);a=0===t.getLineContent(r.line).trim().length}const u=(a?new pc:new pc(o.addNewLine)).parse(e),l=Array.from(u),c=s.compose(l,!0,e.length),p=Array.from(c,(e=>function(e,t){const n=new _d(t);return n.internalDocument=e,n}(e,o)));return new kd(p,l)}(r,t,e);i.document=s,i.version=e.version,i.parserOptions=t}}};function Od(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:hc.Undefined}}var Pd=class{constructor(e,t){this.tag=e,this.type=t}get collection(){return"mapping"===this.type?"map":"sequence"===this.type?"seq":void 0}resolve(e){return na(e)&&"mapping"===this.type||sa(e)&&"sequence"===this.type||"string"===typeof e&&"scalar"===this.type?e:void 0}},Id=class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}};function Bd(e){const t=[],n=$p(e);for(const r of n){const e=r.split(" "),n=e[0],i=e[1]&&e[1].toLowerCase()||"scalar";t.push(new Pd(n,i))}return t.push(new Id),t}var Md=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText().length;if(e<0)return 0;return(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return"";const n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(Ss.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},jd={customTags:[],yamlVersion:"1.2"};function Rd(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}var Vd,qd,Ud=Nc(),Wd=(new class{compile(){return()=>!0}}).compile(void 0);(qd=Vd||(Vd={}))[qd.delete=0]="delete",qd[qd.add=1]="add",qd[qd.deleteAll=2]="deleteAll";var Kd=class{constructor(e){try{this.patternRegExp=new RegExp(function(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}(e)+"$")}catch(qf){this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}},$d=class extends Yc{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const i={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:e,description:t,versions:n}=this.schemaUriToNameAndDescription.get(r);i.name=e,i.description=t,i.fromStore=!0,i.versions=n}e.push(i)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let i=e.schema;const s=this.contextService;if(!Wd(i)){const n=[];for(const e of Wd.errors)n.push("".concat(e.instancePath," : ").concat(e.message));r.push("Schema '".concat(pp(e.schema,t),"' is not valid:\n").concat(n.join("\n")))}const o=(e,t,n,i)=>{const s=((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(s)for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&!Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=s[r]);else r.push(Ud("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},a=(e,t,n,i,a)=>{s&&!/^\w+:\/\/.*/.test(t)&&(t=s.resolveRelativePath(t,i)),t=this.normalizeId(t);const l=this.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((i=>{if(a[t]=!0,i.errors.length){const e=n?t+"#"+n:t;r.push(Ud("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,i.errors[0]))}return o(e,i.schema,t,n),e.url=t,u(e,i.schema,t,l.dependencies)}))},u=async(e,t,n,r)=>{if(!e||"object"!==typeof e)return null;const s=[e],u=[],l=[],c=e=>{const i=[];for(;e.$ref;){const s=e.$ref,u=s.split("#",2);if(e._$ref=e.$ref,delete e.$ref,u[0].length>0)return void l.push(a(e,u[0],u[1],n,r));-1===i.indexOf(s)&&(o(e,t,n,u[1]),i.push(s))}!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)"object"===typeof r&&s.push(r)}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)if("object"===typeof r)for(const e in r){const t=r[e];"object"===typeof t&&s.push(t)}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)if(Array.isArray(r))for(const e of r)"object"===typeof e&&s.push(e)}(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(n.indexOf("#")>0){const e=n.split("#",2);if(e[0].length>0&&e[1].length>0){const t={};await a(t,e[0],e[1],n,r);for(const e in i)"required"!==e&&Object.prototype.hasOwnProperty.call(i,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);i=t}}for(;s.length;){const e=s.pop();u.indexOf(e)>=0||(u.push(e),c(e))}return Promise.all(l)};return await u(i,i,t,n),new zc(i,r)}getSchemaForResource(e,t){const n=n=>{const r=super.createCombinedSchema(e,n);return r.getResolvedSchema().then((e=>(e.schema&&"object"===typeof e.schema&&(e.schema.url=r.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new zc(e.schema.schemaSequence[t.currentDocIndex]):e)))},r=()=>{const t=Object.create(null),r=[];for(const n of this.filePatternAssociations)if(n.matchesPattern(e))for(const e of n.getURIs())t[e]||(r.push(e),t[e]=!0);if(r.length>0){const e=this.highestPrioritySchemas(r);return n(e)}return Promise.resolve(null)},i=(()=>{let n=function(e){if(e instanceof _d){const t=e.lineComments.find((e=>Rd(e)));if(void 0!=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(8)}}}(t);if(void 0!==n){if(!n.startsWith("file:")&&!n.startsWith("http")){let t="";if(n.indexOf("#")>0){const e=n.split("#",2);n=e[0],t=e[1]}if(yc.isAbsolute(n))n=ys.file(n).toString();else{const t=ys.parse(e);n=ys.file(yc.resolve(yc.parse(t.fsPath).dir,n)).toString()}t.length>0&&(n+="#"+t)}return n}})();return i?n([i]):this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?r():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{allOf:e.map((e=>e.schema))}})),(()=>r())):e?this.resolveCustomSchema(e,t):r())).then((e=>e),(()=>r())):r()}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)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&"object"===typeof r.schema&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new zc(r.schema.schemaSequence[t.currentDocIndex],r.errors):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,(new Set).add(Of.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach((e=>{this.deleteSchema(e)})),Promise.resolve(void 0)}async deleteSchema(e){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"===typeof n&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"===typeof n&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const i of n)""!==i&&(this.resolveNext(r,i),r=r[i]);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 ys.parse(e).toString()}catch(qf){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then((n=>{if(n.errors&&void 0===n.schema)return t(e).then((t=>{if(!t){const t=Ud("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",Hd(e),n.errors);return new Gc({},[t])}try{const e=fc(t);return new Gc(e,[])}catch(r){const t=Ud("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",Hd(e),r);return new Gc({},[t])}}),(e=>{let t=e.toString();const n=e.toString().split("Error: ");return n.length>1&&(t=n[1]),new Gc({},[t])}));if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:t,description:r,versions:i}=this.schemaUriToNameAndDescription.get(e);n.schema.title=null!=t?t:n.schema.title,n.schema.description=null!=r?r:n.schema.description,n.schema.versions=null!=i?i:n.schema.versions}return n}))}registerExternalSchema(e,t,n,r,i,s){return(r||i)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:i,versions:s}),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 Hd(e){try{const t=ys.parse(e);if("file"===t.scheme)return t.fsPath}catch(qf){}return e}var Jd=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new _p(e),this.jsonDocumentSymbols.getKeyLabel=e=>{const t=e.keyNode.internalNode;let n="";return n=na(t)?"{}":sa(t)?"[]":t.source,n}}findDocumentSymbols(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{resultLimit:Number.MAX_VALUE};var n;let r=[];try{const n=Ld.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(i){null==(n=this.telemetry)||n.sendError("yaml.documentSymbols.error",{error:up(i)})}return r}findHierarchicalDocumentSymbols(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{resultLimit:Number.MAX_VALUE};var n;let r=[];try{const n=Ld.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(i){null==(n=this.telemetry)||n.sendError("yaml.hierarchicalDocumentSymbols.error",{error:up(i)})}return r}};function Gd(e,t){for(const n of e)n.isKubernetes=t}var zd=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.indentation=e.indentation)}doHover(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r;try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const r=Ld.getYamlDocument(e),i=Kp(e.offsetAt(t),r);if(null===i)return Promise.resolve(void 0);Gd(r.documents,n);const s=r.documents.indexOf(i);return i.currentDocIndex=s,this.getHover(e,t,i)}catch(i){null==(r=this.telemetry)||r.sendError("yaml.hover.error",{error:up(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<i.offset+i.length-1)return Promise.resolve(null);const s=i;if("string"===i.type){const e=i.parent;if(e&&"property"===e.type&&e.keyNode===i&&(i=e.valueNode,!i))return Promise.resolve(null)}const o=Ss.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),a=e=>{if(void 0!==this.indentation){const t=new RegExp(" {".concat(this.indentation.length,"}"),"g");e=e.replace(t," ")}return{contents:{kind:Qs.Markdown,value:e},range:o}},u=e=>e.replace(/\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i&&!e.errors.length){const t=n.getMatchingSchemas(e.schema,i.offset);let r,s,o,l;const c=[];t.every((e=>{if((e.node===i||"property"===i.type&&i.valueNode===e.node)&&!e.inverted&&e.schema){if(r=r||e.schema.title||e.schema.closestTitle,s=s||e.schema.markdownDescription||Yd(e.schema.description),e.schema.enum){const t=e.schema.enum.indexOf(hd(i));e.schema.markdownEnumDescriptions?o=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(o=Yd(e.schema.enumDescriptions[t])),o&&(l=e.schema.enum[t],"string"!==typeof l&&(l=JSON.stringify(l)))}e.schema.anyOf&&function(e,t,n){let r=0;for(const i of t)e===i.node&&i.schema!==n&&n.anyOf.forEach((e=>{i.schema.title===e.title&&i.schema.description===e.description&&i.schema.properties===e.properties&&r++}));return r===n.anyOf.length}(i,t,e.schema)&&(r="",s="",e.schema.anyOf.forEach(((t,n)=>{r+=t.title||e.schema.closestTitle||"",s+=t.markdownDescription||Yd(t.description)||"",n!==e.schema.anyOf.length-1&&(r+=" || ",s+=" || ")})),r=u(r),s=u(s)),e.schema.examples&&e.schema.examples.forEach((e=>{c.push(JSON.stringify(e,null,2))}))}return!0}));let p="";return r&&(p="#### "+Yd(r)),s&&(p.length>0&&(p+="\n\n"),p+=s),o&&(p.length>0&&(p+="\n\n"),p+="`".concat(function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(l),"`: ").concat(o)),0!==c.length&&(p.length>0&&(p+="\n\n"),p+="Examples:",c.forEach((e=>{p+="\n\n```".concat(e,"```")}))),p.length>0&&e.schema.url&&(p+="\n\nSource: [".concat(function(e){let t="JSON Schema";const n=e.url;if(n){const e=ys.parse(n);t=yc.basename(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema),"](").concat(e.schema.url,")")),a(p)}return null}))}};function Yd(e){if(e){return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}var Qd=class{validate(e,t){const n=[],r=new Set,i=new Set,s=new Map;da(t.internalDocument,((e,n,o)=>{aa(n)&&((oa(n)||ia(n))&&n.anchor&&(r.add(n),s.set(n,o[o.length-1])),ea(n)&&i.add(n.resolve(t.internalDocument)))}));for(const o of r)if(!i.has(o)){const t=this.getAnchorNode(s.get(o),o);if(t){const r=Ss.create(e.positionAt(t.offset),e.positionAt(t.offset+t.source.length)),i=Bs.create(r,'Unused anchor "'.concat(t.source,'"'),Os.Hint,0);i.tags=[Ps.Unnecessary],n.push(i)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if(Td(n))return Xd(n);if((e=>!!e&&"items"in e)(n))for(const e of n.items){if(t.srcToken!==e.value)continue;const n=Xd(e);if(n)return n}}}};function Xd(e){for(const t of e.start)if("anchor"===t.type)return t;if(e.sep&&Array.isArray(e.sep))for(const t of e.sep)if("anchor"===t.type)return t}var Zd=class{constructor(e){this.forbidMapping="forbid"===e.flowMapping,this.forbidSequence="forbid"===e.flowSequence}validate(e,t){const n=[];return da(t.internalDocument,((t,r)=>{var i,s;this.forbidMapping&&na(r)&&"flow-collection"===(null==(i=r.srcToken)?void 0:i.type)&&n.push(Bs.create(this.getRangeOf(e,r.srcToken),"Flow style mapping is forbidden",Os.Error,"flowMap")),this.forbidSequence&&sa(r)&&"flow-collection"===(null==(s=r.srcToken)?void 0:s.type)&&n.push(Bs.create(this.getRangeOf(e,r.srcToken),"Flow style sequence is forbidden",Os.Error,"flowSeq"))})),n}getRangeOf(e,t){return Ss.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},ef=class{validate(e,t){const n=[];return da(t.internalDocument,((t,r)=>{if(na(r))for(let i=1;i<r.items.length;i++)if(nf(r.items[i-1],r.items[i])>0){const t=tf(e,r.items[i-1]);n.push(Bs.create(t,'Wrong ordering of key "'.concat(r.items[i-1].key,'" in mapping'),Os.Error,"mapKeyOrder"))}})),n}};function tf(e,t){var n,r,i,s,o,a,u,l,c,p,d;const f=null!=(a=null!=(i=null==(n=null==t?void 0:t.srcToken.start[0])?void 0:n.offset)?i:null==(r=null==t?void 0:t.srcToken)?void 0:r.key.offset)?a:null==(o=null==(s=null==t?void 0:t.srcToken)?void 0:s.sep[0])?void 0:o.offset,h=(null==(u=null==t?void 0:t.srcToken)?void 0:u.value.offset)||(null==(c=null==(l=null==t?void 0:t.srcToken)?void 0:l.sep[0])?void 0:c.offset)||(null==(p=null==t?void 0:t.srcToken)?void 0:p.key.offset)||(null==(d=null==t?void 0:t.srcToken.start[t.srcToken.start.length-1])?void 0:d.offset);return Ss.create(e.positionAt(f),e.positionAt(h))}function nf(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}var rf,sf=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?As.create(n.line,new Md(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Bs.create(r,e.message,e.severity,e.code,Xp)},of=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new Dp(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,"forbid"!==e.flowMapping&&"forbid"!==e.flowSequence||this.validators.push(new Zd(e)),e.keyOrdering&&this.validators.push(new ef)),this.validators.push(new Qd)}async doValidation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const n=Ld.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let i=0;for(const s of n.documents){s.isKubernetes=t,s.currentDocIndex=i,s.disableAdditionalProperties=this.disableAdditionalProperties,s.uri=e.uri;const n=await this.jsonValidation.doValidation(e,s),o=s;o.errors.length>0&&r.push(...o.errors),o.warnings.length>0&&r.push(...o.warnings),r.push(...n),r.push(...this.runAdditionalValidators(e,s)),i++}}catch(a){null==(n=this.telemetry)||n.sendError("yaml.validation.error",{error:up(a)})}let i;const s=new Set,o=[];for(let u of r){if(t&&u.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(u,"location")&&(u=sf(u,e)),u.source||(u.source=Xp),i&&i.message===u.message&&i.range.end.line===u.range.start.line&&Math.abs(i.range.end.character-u.range.end.character)>=1){i.range.end=u.range.end;continue}i=u;const n=u.range.start.line+" "+u.range.start.character+" "+u.message;s.has(n)||(o.push(u),s.add(n))}return o}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},af=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:[bc],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=Dc.format(n,r);return[js.replace(Ss.create(As.create(0,0),e.positionAt(n.length)),i)]}catch(n){return[]}}},uf=class{constructor(e){this.telemetry=e}findLinks(e){var t;try{const t=Ld.getYamlDocument(e),n=[];for(const r of t.documents)n.push(Vp(e,r));return Promise.all(n).then((e=>[].concat(...e)))}catch(n){null==(t=this.telemetry)||t.sendError("yaml.documentLink.error",{error:up(n)})}}};function lf(e,t){if(!e)return;const n=[],r=Ld.getYamlDocument(e);for(const s of r.documents)r.documents.length>1&&n.push(cf(e,s.root)),s.visit((t=>{var r;if("object"===t.type&&"array"===(null==(r=t.parent)?void 0:r.type)&&n.push(cf(e,t)),"property"===t.type&&t.valueNode)switch(t.valueNode.type){case"array":case"object":n.push(cf(e,t));break;case"string":{const r=e.positionAt(t.offset),i=e.positionAt(t.valueNode.offset+t.valueNode.length);r.line!==i.line&&n.push(cf(e,t));break}default:return!0}return!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 cf(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText(Ss.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=e.positionAt(t.offset+t.length-s)),ks.create(n.line,r.line,n.character,r.character)}(rf||(rf={})).JUMP_TO_SCHEMA="jumpToSchema";var pf=class{constructor(e){this.indentation=e}write(e){if("flow-collection"!==e.internalNode.srcToken.type)return null;const t=e.internalNode.srcToken,n="flow-map-start"===t.start.type?"block-map":"block-seq",r=e.parent.type,i={type:n,offset:t.offset,indent:t.indent,items:[]};for(const s of t.items)Jl(s,(e=>{let{key:t,sep:s,value:o}=e;if("block-map"===n){const e=[{type:"space",indent:0,offset:t.offset,source:this.indentation}];"property"===r&&e.unshift({type:"newline",indent:0,offset:t.offset,source:"\n"}),i.items.push({start:e,key:t,sep:s,value:o})}else"block-seq"===n&&i.items.push({start:[{type:"newline",indent:0,offset:o.offset,source:"\n"},{type:"space",indent:0,offset:o.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:o.offset,source:"-"},{type:"space",indent:0,offset:o.offset,source:" "}],value:o});if("flow-collection"===o.type)return da.SKIP}));return ql(i)}},df=structuredClone,ff=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.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getKeyOrderActions(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.window)?void 0:n.showDocument)?void 0:r.support)&&i))return[];const o=new Map;for(const u of e){const e=(null==(s=u.data)?void 0:s.schemaUri)||[];for(const t of e)t&&(o.has(t)||o.set(t,[]),o.get(t).push(u))}const a=[];for(const u of o.keys()){const e=Co.create("Jump to schema location (".concat(yc.basename(u),")"),Ms.create("JumpToSchema",rf.JUMP_TO_SCHEMA,u));e.diagnostics=o.get(u),a.push(e)}return a}getTabToSpaceConverting(e,t){const n=[],r=new Md(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 o=0,a="";for(let t=s.range.start.character;t<=s.range.end.character;t++){if("\t"!==e.charAt(t))break;o++,a+=this.indentation}i.push(s.range.start.line);let u=s.range;o!==s.range.end.character-s.range.start.character&&(u=Ss.create(s.range.start,As.create(s.range.end.line,s.range.start.character+o))),n.push(Co.create("Convert Tab to Spaces",mf(t.uri,[js.replace(u,a)]),vo.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;r<n.length;r++){const o=n.charAt(r);if(" "!==o&&"\t"!==o){0!==i&&(e.push(js.replace(Ss.create(t,r-i,t,r),s)),i=0,s="");break}" "!==o||0===i?"\t"===o&&(s+=this.indentation,i++):(e.push(js.replace(Ss.create(t,r-i,t,r),s)),i=0,s="")}0!==i&&e.push(js.replace(Ss.create(t,0,t,r.getLineLength(t)),s))}e.length>0&&n.push(Co.create("Convert all Tabs to Spaces",mf(t.uri,e),vo.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Md(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===Xp){const e=Ss.create(i.range.start,i.range.end),s=r.getText(e),o=tp(r.getLineContent(e.end.line),e.end.character);e.end.character=o;const a=Co.create("Delete unused anchor: ".concat(s),mf(t.uri,[js.del(e)]),vo.QuickFix);a.diagnostics=[i],n.push(a)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if('Incorrect type. Expected "boolean".'===r.message){const e=t.getText(r.range).toLocaleLowerCase();if('"true"'===e||'"false"'===e||"'true'"===e||"'false'"===e){const i=e.includes("true")?"true":"false";n.push(Co.create("Convert to boolean",mf(t.uri,[js.replace(r.range,i)]),vo.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if("flowMap"===r.code||"flowSeq"===r.code){const e=hf(t,r);if(na(e.internalNode)||sa(e.internalNode)){const i=na(e.internalNode)?"map":"sequence",s=new pf(this.indentation);n.push(Co.create("Convert to block style ".concat(i),mf(t.uri,[js.replace(r.range,s.write(e))]),vo.QuickFix))}}return n}getKeyOrderActions(e,t){var n,r,i,s,o,a,u,l,c,p,d,f,h,m;const g=[];for(const y of e)if("mapKeyOrder"===(null==y?void 0:y.code)){let e=hf(t,y);for(;e&&"object"!==e.type;)e=e.parent;if(e&&na(e.internalNode)){const y=df(e.internalNode);if(("block-map"===y.srcToken.type||"flow-collection"===y.srcToken.type)&&("block-map"===e.internalNode.srcToken.type||"flow-collection"===e.internalNode.srcToken.type)){y.srcToken.items.sort(((e,t)=>e.key&&t.key&&Yl(e.key)&&Yl(t.key)?e.key.source.localeCompare(t.key.source):!e.key&&t.key?-1:e.key&&!t.key?1:e.key||t.key?void 0:0));for(let t=0;t<y.srcToken.items.length;t++){const g=y.srcToken.items[t],D=e.internalNode.srcToken.items[t];if(g.start=D.start,"alias"===(null==(n=g.value)?void 0:n.type)||"scalar"===(null==(r=g.value)?void 0:r.type)||"single-quoted-scalar"===(null==(i=g.value)?void 0:i.type)||"double-quoted-scalar"===(null==(s=g.value)?void 0:s.type)){const e=null!=(u=null==(a=null==(o=g.value)?void 0:o.end)?void 0:a.findIndex((e=>"newline"===e.type)))?u:-1;let t=null;"block-scalar"===(null==(l=D.value)?void 0:l.type)?t=null==(p=null==(c=D.value)?void 0:c.props)?void 0:p.find((e=>"newline"===e.type)):Yl(D.value)&&(t=null==(f=null==(d=D.value)?void 0:d.end)?void 0:f.find((e=>"newline"===e.type))),t&&e<0&&(g.value.end=null!=(h=g.value.end)?h:[],g.value.end.push(t)),!t&&e>-1&&g.value.end.splice(e,1)}else if("block-scalar"===(null==(m=g.value)?void 0:m.type)){g.value.props.find((e=>"newline"===e.type))||g.value.props.push({type:"newline",indent:0,offset:g.value.offset,source:"\n"})}}}const D=Ss.create(t.positionAt(e.offset),t.positionAt(e.offset+e.length));g.push(Co.create("Fix key order for this map",mf(t.uri,[js.replace(D,ql(y.srcToken))]),vo.QuickFix))}}return g}};function hf(e,t){const n=Ld.getYamlDocument(e),r=e.offsetAt(t.range.start);return Kp(r,n).getNodeFromOffset(r)}function mf(e,t){const n={};n[e]=t;return{changes:n}}function gf(e,t){const{position:n}=t,r=new Md(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),o=-1!==e.indexOf(" - ");if(0===s.trimRight().length){const r=n.character-(e.length-e.trimLeft().length);if(r===t.options.tabSize&&!o)return;const s=[];return i.length>0&&s.push(js.del(Ss.create(n,As.create(n.line,i.length-1)))),s.push(js.insert(n," ".repeat(t.options.tabSize+(o?2-r:0)))),s}if(o)return[js.insert(n," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[js.insert(n," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[js.insert(n,"- ")];if(e.includes(" - ")&&e.includes(": "))return[js.insert(n," ")]}}function yf(e){const t=new Map;return e?(e.url?e.url.startsWith("schemaservice://combinedSchema/")?Df(e,t):t.set(e.url,e):Df(e,t),t):t}function Df(e,t){e.allOf&&vf(e.allOf,t),e.anyOf&&vf(e.anyOf,t),e.oneOf&&vf(e.oneOf,t)}function vf(e,t){for(const n of e)sp(n)||!n.url||t.has(n.url)||t.set(n.url,n)}var bf=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){var t;const n=[];try{const t=Ld.getYamlDocument(e);let r=new Map;for(const n of t.documents){const t=await this.schemaService.getSchemaForResource(e.uri,n);(null==t?void 0:t.schema)&&(r=new Map([...yf(null==t?void 0:t.schema),...r]))}for(const e of r){const t=Ao.create(Ss.create(0,0,0,0));t.command={title:pp(e[1],e[0]),command:rf.JUMP_TO_SCHEMA,arguments:[e[0]]},n.push(t)}}catch(r){null==(t=this.telemetry)||t.sendError("yaml.codeLens.error",{error:up(r)})}return n}resolveCodeLens(e){return e}},Ef=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function Cf(e,t,n,r,i){let s;for(i.spacesDiff=0,i.looksLikeAlignment=!1,s=0;s<t&&s<r;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let u=0,l=0;for(let d=s;d<r;d++){32===n.charCodeAt(d)?u++:l++}if(o>0&&a>0)return;if(u>0&&l>0)return;const c=Math.abs(a-l),p=Math.abs(o-u);if(0===c)return i.spacesDiff=p,void(p>0&&0<=u-1&&u-1<e.length&&u<n.length&&32!==n.charCodeAt(u)&&32===e.charCodeAt(u-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0));p%c===0&&(i.spacesDiff=p/c)}function Af(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(null!==e&&"object"===typeof e){const o=0===i&&r.shouldIndentWithTab||i>0?t+r.indentation:"";if(Array.isArray(e)){if(s+=1,0===e.length)return"";let a="";for(let u=0;u<e.length;u++){let l=e[u];"object"===typeof e[u]?(Array.isArray(e[u])||(l=Sf(e[u],s)),a+=Af(l,t,n,r,i+=1,s)):a+="\n"+o+"- "+n(e[u])}return a}{const s=Object.keys(e);if(0===s.length)return"";let a=0===i&&r.newLineFirst||i>0?"\n":"",u=!0;for(let l=0;l<s.length;l++){const c=s[l];if(0===i&&r.existingProps.includes(c))continue;const p="object"===typeof e[c],d=p?":":": ",f=o+(p&&/^\s|-/.test(c)?r.indentation:""),h=u?"":"\n";if(0===i&&u&&!r.indentFirstObject){a+=h+t+c+d+Af(e[c],f,n,r,i+1,0)}else{a+=h+o+c+d+Af(e[c],f,n,r,i+1,0)}u=!1}return a}}return n(e)}function Sf(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const i=Object.keys(e)[r];0===r?n["- ".repeat(t)+i]=e[i]:n[" ".repeat(t)+i]=e[i]}return n}var xf=Nc(),wf=/[\\]+"/g,Ff=Zs.Class,Tf="__",Nf=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=""}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];var i;const s=oo.create([],!1);if(!this.completionEnabled)return s;const o=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),a=new Md(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const e=function(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,o="",a=0;const u=[2,4,6,8,3,5,7],l=[0,0,0,0,0,0,0,0,0],c=new Ef;for(let f=1;f<=r;f++){const r=e.getLineLength(f),u=e.getLineContent(f),p=r<=65536;let d=!1,h=0,m=0,g=0;for(let t=0,n=r;t<n;t++){const n=p?u.charCodeAt(t):e.getLineCharCode(f,t);if(9===n)g++;else{if(32!==n){d=!0,h=t;break}m++}}if(!d)continue;if(g>0?i++:m>1&&s++,Cf(o,a,u,h,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const y=c.spacesDiff;y<=8&&l[y]++,o=u,a=h}let p=n;i!==s&&(p=i<s);let d=t;if(p){let e=p?0:.1*r;u.forEach((t=>{const n=l[t];n>e&&(e=n,d=t)})),4===d&&l[4]>0&&l[2]>0&&l[2]>=l[4]/2&&(d=2)}return{insertSpaces:p,tabSize:d}}(a,2,!0);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}Gd(o.documents,n);for(const C of o.documents)C.uri=e.uri;const u=e.offsetAt(t),l=e.getText();if(":"===l.charAt(u-1))return Promise.resolve(s);let c=Kp(u,o);if(null===c)return Promise.resolve(s);c=c.clone();let[p,d]=c.getNodeFromPosition(u,a,this.indentation.length);const f=this.getCurrentWord(e,u);let h=a.getLineContent(t.line);const m=h.substring(t.character),g=/^[ ]+\n?$/.test(m);this.arrayPrefixIndentation="";let y=null;if(g){y=Ss.create(t,As.create(t.line,h.length));const e=0===h.trim().length,n=h.match(/^\s*(-)\s*$/);if(p&&ia(p)&&!e&&!n){const e=h.substring(0,t.character),n=e.match(/^[\s-]*([^:]+)?$/)||e.match(/:[ \t]((?!:[ \t]).*)$/);(null==n?void 0:n[1])&&(y=Ss.create(As.create(t.line,t.character-n[1].length),As.create(t.line,h.length)))}}else if(p&&ia(p)&&"null"===p.value){const t=e.positionAt(p.range[0]);t.character+=1;const n=e.positionAt(p.range[2]);n.character+=1,y=Ss.create(t,n)}else if(p&&ia(p)&&p.value){const t=e.positionAt(p.range[0]);y=Ss.create(t,e.positionAt(p.range[1]))}else if(p&&ia(p)&&null===p.value&&"-"===f)y=Ss.create(t,t),this.arrayPrefixIndentation=" ";else{let n=u-f.length;n>0&&'"'===l[n-1]&&n--,y=Ss.create(e.positionAt(n),t)}const D={},v={add:(e,t)=>{const n=!!e.parent;let r=e.label;if(!r)return void console.warn("Ignoring CompletionItem without label: ".concat(JSON.stringify(e)));if(op(r)||(r=String(r)),r=r.replace(/[\n]/g,"\u21b5"),r.length>60){const e=r.substr(0,57).trim()+"...";D[e]||(r=e)}if(e.insertText.endsWith("$1")&&!n&&(e.insertText=e.insertText.substr(0,e.insertText.length-2)),y&&y.start.line===y.end.line&&(e.textEdit=js.replace(y,e.insertText)),e.label=r,n)return void function(e){var t;if((null==(t=D[e.label])?void 0:t.label)===Tf)return;const n=e.parent.schema,r=lp(n),i=n.markdownDescription||n.description;let o=s.items.find((e=>{var t;return(null==(t=e.parent)?void 0:t.schema)===n&&e.kind===Ff}));o&&o.parent.insertTexts.includes(e.insertText)||(o?o.parent.insertTexts.push(e.insertText):(o={...e,label:r,documentation:i,sortText:"_"+r,kind:Ff},o.label=o.label||e.label,o.parent.insertTexts=[e.insertText],s.items.push(o)))}(e);this.arrayPrefixIndentation&&this.updateCompletionText(e,this.arrayPrefixIndentation+e.insertText);const i=D[r],o=(null==i?void 0:i.label)!==Tf&&(null==i?void 0:i.insertText)!==e.insertText;if(i){if(o){const n=this.mergeSimpleInsertTexts(r,i.insertText,e.insertText,t);n?this.updateCompletionText(i,n):(D[r]=e,s.items.push(e))}}else D[r]=e,s.items.push(e);i&&!i.documentation&&e.documentation&&(i.documentation=e.documentation)},error:e=>{var t;null==(t=this.telemetry)||t.sendError("yaml.completion.error",{error:up(e)})},log:e=>{console.log(e)},getNumberOfProposals:()=>s.items.length,result:s,proposed:D};this.customTags.length>0&&this.getCustomTagValueCompletions(v),h.endsWith("\n")&&(h=h.substr(0,h.length-1));try{const n=await this.schemaService.getSchemaForResource(e.uri,c);if((!n||n.errors.length)&&0===t.line&&0===t.character&&!Rd(h)){const e={kind:Zs.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:eo.PlainText};s.items.push(e)}if(Rd(h)||function(e,t){let n=!1;for(const r of e){if("document"===r.type)Nd([],r,(e=>{var i;if(Td(e)&&"comment"===(null==(i=e.value)?void 0:i.type)){if(r.offset<=t&&e.value.source.length+e.value.offset>=t)return n=!0,da.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return n=!0,da.BREAK}));else if("comment"===r.type&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}(o.tokens,u)){const e=h.indexOf("$schema=");return-1!==e&&e+8<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{var t;const n={kind:Zs.Constant,label:null!=(t=e.name)?t:e.uri,detail:e.description,insertText:e.uri,insertTextFormat:eo.PlainText,insertTextMode:ro.asIs};s.items.push(n)})),s}if(!n||n.errors.length)return s;let i=null;if(!p)if(!c.internalDocument.contents||ia(c.internalDocument.contents)){const e=c.internalDocument.createNode({});e.range=[u,u+1,u+1],c.internalDocument.contents=e,c.updateFromInternalDocument(),p=e}else p=c.findClosestNode(u,a),d=!0;const m=p;if(p)if(0===h.length)p=c.internalDocument.contents;else{const n=c.getParent(p);if(n){if(ia(p)){if(p.value){if(ra(n)){if(n.value===p){if(h.trim().length>0&&h.indexOf(":")<0){const e=this.createTempObjNode(f,p,c),t=c.getParent(n);if(sa(c.internalDocument.contents)){const t=function(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}(c.internalDocument.contents,n);"number"===typeof t&&(c.internalDocument.set(t,e),c.updateFromInternalDocument())}else t&&(na(t)||sa(t))?(t.set(n.key,e),c.updateFromInternalDocument()):(c.internalDocument.set(n.key,e),c.updateFromInternalDocument());i=e.items[0],p=e}else if(0===h.trim().length){const e=c.getParent(n);e&&(p=e)}}else if(n.key===p){const e=c.getParent(n);i=n,e&&(p=e)}}else if(sa(n))if(h.trim().length>0){const e=this.createTempObjNode(f,p,c);n.delete(p),n.add(e),c.updateFromInternalDocument(),p=e}else p=n}else if(null===p.value)if(ra(n)){if(n.key===p)p=n;else if(aa(n.key)&&n.key.range){const r=c.getParent(n);if(d&&r&&na(r)&&function(e){if(e.items.length>1)return!1;const t=e.items[0];return ia(t.key)&&ia(t.value)&&""===t.key.value&&!t.value.value}(r))p=r;else{const s=e.positionAt(n.key.range[0]);if(t.character>s.character&&t.line!==s.line){const e=this.createTempObjNode(f,p,c);r&&(na(r)||sa(r))?(r.set(n.key,e),c.updateFromInternalDocument()):(c.internalDocument.set(n.key,e),c.updateFromInternalDocument()),i=e.items[0],p=e}else s.character===t.character&&r&&(p=r)}}}else if(sa(n))if("-"!==h.charAt(t.character-1)){const e=this.createTempObjNode(f,p,c);n.delete(p),n.add(e),c.updateFromInternalDocument(),p=e}else if("-"===h.charAt(t.character-1)){const e=this.createTempObjNode("",p,c);n.delete(p),n.add(e),c.updateFromInternalDocument(),p=e}else p=n}else if(na(p)&&!d&&0===h.trim().length&&sa(n)){const e=a.getLineContent(t.line+1);a.getLineCount()!==t.line+1&&0!==e.trim().length||(p=n)}}else if(ia(p)){const e=this.createTempObjNode(f,p,c);c.internalDocument.contents=e,c.updateFromInternalDocument(),i=e.items[0],p=e}else if(na(p))for(const e of p.items)aa(e.value)&&e.value.range&&e.value.range[0]===u+1&&(p=e.value);else if(sa(p)&&"-"!==h.charAt(t.character-1)){const e=this.createTempObjNode(f,p,c);e.items=[],c.updateFromInternalDocument();for(const t of p.items)na(t)&&t.items.forEach((t=>{e.items.push(t)}));p=e}}if(p&&na(p)){const e=p.items;for(const t of e)i&&i===t||ia(t.key)&&(D[t.key.value+""]=so.create(Tf));this.addPropertyCompletions(n,c,p,m,"",v,a,y,r),!n&&f.length>0&&'"'!==l.charAt(u-f.length-1)&&v.add({kind:Zs.Property,label:f,insertText:this.getInsertTextForProperty(f,null,""),insertTextFormat:eo.Snippet})}const g={};this.getValueCompletions(n,c,p,u,e,v,g,r)}catch(E){null==(i=this.telemetry)||i.sendError("yaml.completion.error",{error:up(E)})}this.finalizeParentCompletion(s);const b=s.items.filter(((e,t,n)=>t===n.findIndex((t=>t.label===e.label&&t.insertText===e.insertText&&t.kind===e.kind))));return(null==b?void 0:b.length)>0&&(s.items=b),s}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const i=e=>e.includes("\n"),s=e=>{const t=e.indexOf("\n");return t>0&&0===e.substring(t,e.length).trim().length};if(i(t)||i(n))return r&&s(t)&&!s(n)&&!n.startsWith("\n")?n:void 0;const o=this.getValuesFromInsertText(t),a=this.getValuesFromInsertText(n),u=Array.prototype.concat(o,a);return u.length?1===u.length?"".concat(e,": ${1:").concat(u[0],"}"):"".concat(e,": ${1|").concat(u.join(","),"|}"):void 0}getValuesFromInsertText(e){const t=e.substring(e.indexOf(":")+1).trim();if(!t)return[];const n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(","):[t]}finalizeParentCompletion(e){e.items.forEach((e=>{if("parent"in e){const t=e.parent.indent||"";let n=(e=>{let t=0;return e.map((e=>{const n=e.match(/\$([0-9]+)|\${[0-9]+:/g);if(!n)return e;const r=n.map((e=>+e.replace(/\${([0-9]+)[:|]/g,"$1").replace("$",""))).reduce(((e,t)=>t>e?t:e),0),i=e.replace(/\$([0-9]+)/g,((e,n)=>"$"+(+n+t))).replace(/\${([0-9]+)[:|]/g,((e,n)=>"${"+(+n+t)+":"));return t+=r,i}))})(e.parent.insertTexts).join("\n".concat(t));n.endsWith("$1")&&(n=n.substring(0,n.length-2)),e.insertText=this.arrayPrefixIndentation+n,e.textEdit&&(e.textEdit.newText=e.insertText);const r=n.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),i=e.documentation?[e.documentation,"","----",""]:[];e.documentation={kind:Qs.Markdown,value:[...i,"```yaml",t+r,"```"].join("\n")},delete e.parent}}))}createTempObjNode(e,t,n){const r={};r[e]=null;const i=n.internalDocument.createNode(r);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,n,r,i,s,o,a,u){var l,c,p;const d=t.getMatchingSchemas(e.schema,-1,null,u),f=o.getText(a),h=o.getLineContent(a.start.line),m=0===h.trim().length,g=-1!==h.indexOf(":"),y=0===h.trimLeft().indexOf("-"),D=t.getParent(n),v=d.find((e=>e.node.internalNode===r&&e.schema.properties)),b=d.filter((e=>e.schema.oneOf)).map((e=>e.schema.oneOf))[0];let E=!1;(null==b?void 0:b.length)<d.length&&(null==b||b.forEach(((e,t)=>{var n,r;(null==(n=d[t])?void 0:n.schema.oneOf)||(null==(r=d[t])?void 0:r.schema.properties)!==e.properties||(E=!0)})));for(const C of d){if((C.node.internalNode===n&&!v||C.node.internalNode===r&&!g||(null==(l=C.node.parent)?void 0:l.internalNode)===r&&!g)&&!C.inverted){this.collectDefaultSnippets(C.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:y});const e=C.schema.properties;if(e){const t=C.schema.maxProperties;if(void 0===t||void 0===n.items||n.items.length<t||n.items.length===t&&!m)for(const u in e)if(Object.prototype.hasOwnProperty.call(e,u)){const t=e[u];if("object"===typeof t&&!t.deprecationMessage&&!t.doNotSuggest){let e,l="";if(D&&sa(D)&&n.items.length<=1&&!m){const e=o.getText(),t=e.lastIndexOf("-",n.range[0]-1);if(t>=0){const r=a.end.character-a.start.character;l=" "+e.slice(t+1,n.range[1]-r)}}l+=this.arrayPrefixIndentation,"array"===t.type&&(e=n.items.find((e=>ia(e.key)&&e.key.range&&e.key.value===u&&ia(e.value)&&!e.value.value&&o.getPosition(e.key.range[2]).line===a.end.line-1)))&&e&&(Array.isArray(t.items)?this.addSchemaValueCompletions(t.items[0],i,s,{},"property"):"object"===typeof t.items&&"object"===t.items.type&&this.addArrayItemValueCompletion(t.items,i,s));let d=u;u.startsWith(f)&&g||(d=this.getInsertTextForProperty(u,t,i,l+this.indentation));const h=ia(r)&&null===r.value||na(r)&&0===r.items.length,y=(null==(c=C.schema.required)?void 0:c.length)>0;this.parentSkeletonSelectedFirst&&h&&y||s.add({kind:Zs.Property,label:u,insertText:d,insertTextFormat:eo.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description||""},E),(null==(p=C.schema.required)?void 0:p.includes(u))&&s.add({label:u,insertText:this.getInsertTextForProperty(u,t,i,l+this.indentation),insertTextFormat:eo.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description||"",parent:{schema:C.schema,indent:l}})}}}if(D&&sa(D)&&dp(C.schema)&&this.addSchemaValueCompletions(C.schema,i,s,{},"property",Array.isArray(D.items)),C.schema.propertyNames&&C.schema.additionalProperties&&"object"===C.schema.type){const e=cd(C.schema.propertyNames),t=e.title||"property";s.add({kind:Zs.Property,label:t,insertText:"${1:".concat(t,"}: "),insertTextFormat:eo.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description||""})}}D&&C.node.internalNode===D&&C.schema.defaultSnippets&&(1===n.items.length?this.collectDefaultSnippets(C.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(C.schema,i,s,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,s,o,a){let u=null;if(n&&ia(n)&&(n=t.getParent(n)),n){if(ra(n)){const e=n.value;if(e&&e.range&&r>e.range[0]+e.range[2])return;u=ia(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(null!==u||sa(n))){const l="",c=t.getMatchingSchemas(e.schema,-1,null,a);for(const e of c)if(e.node.internalNode===n&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,l,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),sa(n)&&n.items))if(Array.isArray(e.schema.items)){const t=this.findItemAtOffset(n,i,r);t<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[t],l,s,o,"value")}else"object"!==typeof e.schema.items||"object"!==e.schema.items.type&&!fp(e.schema.items)?this.addSchemaValueCompletions(e.schema.items,l,s,o,"value"):this.addSchemaValueCompletions(e.schema.items,l,s,o,"value",!0);if(e.schema.properties){const t=e.schema.properties[u];t&&this.addSchemaValueCompletions(t,l,s,o,"value")}else e.schema.additionalProperties&&this.addSchemaValueCompletions(e.schema.additionalProperties,l,s,o,"value")}o.boolean&&(this.addBooleanValueCompletion(!0,l,s),this.addBooleanValueCompletion(!1,l,s)),o.null&&this.addNullValueCompletion(l,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o,"value")}addArrayItemValueCompletion(e,t,n,r){const i=lp(e),s="- ".concat(this.getInsertTextForObject(e,t).insertText.trimLeft()),o=i?" type `"+i+"`":"",a=e.description?" ("+e.description+")":"",u=this.getDocumentationWithMarkdownText("Create an item of an array".concat(o).concat(a),s);n.add({kind:this.getSuggestionKind(e.type),label:"- (array item) "+(i||r),documentation:u,insertText:s,insertTextFormat:eo.Snippet})}getInsertTextForProperty(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.indentation;const i=this.getInsertTextForValue(e,"","string"),s=i+":";let o,a=0;if(t){let e=Array.isArray(t.type)?t.type[0]:t.type;if(e||(t.properties?e="object":t.items?e="array":t.anyOf&&(e="anyOf")),Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;ip(e)&&(o=this.getInsertTextForSnippetValue(e,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),o.startsWith(" ")||o.startsWith("\n")||(o=" "+o))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=" "+this.getInsertTextForGuessedValue(t.enum[0],"",e)),a+=t.enum.length),t.const&&(o||(o=this.getInsertTextForGuessedValue(t.const,"",e),o=function(e){return e.replace(/\$\{1:(.*)\}/,"$1")}(o),o=" "+o),a++),ip(t.default)&&(o||(o=" "+this.getInsertTextForGuessedValue(t.default,"",e)),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=" "+this.getInsertTextForGuessedValue(t.examples[0],"",e)),a+=t.examples.length),t.properties)return"".concat(s,"\n").concat(this.getInsertTextForObject(t,n,r).insertText);if(t.items)return"".concat(s,"\n").concat(r,"- ").concat(this.getInsertTextForArray(t.items,n,1,r).insertText);if(0===a)switch(e){case"boolean":case"string":case"anyOf":o=" $1";break;case"object":o="\n".concat(r);break;case"array":o="\n".concat(r,"- ");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+n}getInsertTextForObject(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.indentation,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i="";return e.properties?(Object.keys(e.properties).forEach((s=>{const o=e.properties[s];let a=Array.isArray(o.type)?o.type[0]:o.type;if(a||(o.anyOf&&(a="anyOf"),o.properties&&(a="object"),o.items&&(a="array")),e.required&&e.required.indexOf(s)>-1)switch(a){case"boolean":case"string":case"number":case"integer":case"anyOf":{let e=o.default||o.const;e?("string"===a&&(e=kf(e)),i+="".concat(n).concat(s,": ${").concat(r++,":").concat(e,"}\n")):i+="".concat(n).concat(s,": $").concat(r++,"\n");break}case"array":{const e=this.getInsertTextForArray(o.items,t,r++,n),a=e.insertText.split("\n");let u=e.insertText;if(a.length>1){for(let e=1;e<a.length;e++){const t=a[e];a[e]=" ".concat(t)}u=a.join("\n")}r=e.insertIndex,i+="".concat(n).concat(s,":\n").concat(n).concat(this.indentation,"- ").concat(u,"\n")}break;case"object":{const e=this.getInsertTextForObject(o,t,"".concat(n).concat(this.indentation),r++);r=e.insertIndex,i+="".concat(n).concat(s,":\n").concat(e.insertText,"\n")}}else if(!this.disableDefaultProperties&&void 0!==o.default)switch(a){case"boolean":case"number":case"integer":i+="".concat(n).concat("null"===s?this.getInsertTextForValue(s,"","string"):s,": ${").concat(r++,":").concat(o.default,"}\n");break;case"string":i+="".concat(n).concat(s,": ${").concat(r++,":").concat(kf(o.default),"}\n")}})),0===i.trim().length&&(i="".concat(n,"$").concat(r++,"\n")),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i="".concat(n,"$").concat(r++,"\n"),{insertText:i,insertIndex:r})}getInsertTextForArray(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.indentation,i="";if(!e)return i="$".concat(n++),{insertText:i,insertIndex:n};let s=Array.isArray(e.type)?e.type[0]:e.type;switch(s||(e.properties&&(s="object"),e.items&&(s="array")),e.type){case"boolean":i="${".concat(n++,":false}");break;case"number":case"integer":i="${".concat(n++,":0}");break;case"string":i="${".concat(n++,':""}');break;case"object":{const s=this.getInsertTextForObject(e,t,"".concat(r," "),n++);i=s.insertText.trimLeft(),n=s.insertIndex}}return{insertText:i,insertIndex:n}}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=kf(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t,n){if(null===e)return"null";switch(typeof e){case"object":{const n=this.indentation;return this.getInsertTemplateForValue(e,n,{index:1},t)}case"number":case"boolean":return this.getInsertTextForPlainText(e+t)}return"string"===(n=Array.isArray(n)?n[0]:n)&&(e=kf(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let r="\n";for(const i of e)r+="".concat(t,"- ${").concat(n.index++,":").concat(i,"}\n");return r}if("object"===typeof e){let i="\n";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const o=e[s];let a;i+="".concat(t,"${").concat(n.index++,":").concat(s,"}:"),a="object"===typeof o?"".concat(this.getInsertTemplateForValue(o,t+this.indentation,n,r)):" ${".concat(n.index++,":").concat(this.getInsertTextForPlainText(o+r),"}\n"),i+="".concat(a)}return i}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,i,s){"object"===typeof e&&(this.addEnumValueCompletions(e,t,n,s),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),s&&"value"===i&&!fp(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,i,s))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,i,s))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,i,s))))}collectTypes(e,t){if(Array.isArray(e.enum)||ip(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!1;if(ip(e.default)){let s,o=e.type,a=e.default;for(let e=r;e>0;e--)a=[a],o="array";s="object"==typeof a?"Default value":a.toString().replace(wf,'"'),n.add({kind:this.getSuggestionKind(o),label:s,insertText:this.getInsertTextForValue(a,t,o),insertTextFormat:eo.Snippet,detail:xf("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((s=>{let o=e.type,a=s;for(let e=r;e>0;e--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,o),insertTextFormat:eo.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)}addEnumValueCompletions(e,t,n,r){if(ip(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:eo.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let i=0,s=e.enum.length;i<s;i++){const r=e.enum[i];let s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&i<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[i]):e.enumDescriptions&&i<e.enumDescriptions.length&&(s=e.enumDescriptions[i]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(r),insertText:this.getInsertTextForValue(r,t,e.type),insertTextFormat:eo.Snippet,documentation:s})}}getLabelForValue(e){return null===e?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(Array.isArray(e.defaultSnippets))for(const s of e.defaultSnippets){let o,a,u=e.type,l=s.body,c=s.label;if(ip(l)){const a=s.type||e.type;if(0===i&&"array"===a){const e={};Object.keys(l).forEach(((t,n)=>{0!==n||t.startsWith("-")?e[" ".concat(t)]=l[t]:e["- ".concat(t)]=l[t]})),l=e}const u=Object.keys(n.proposed).filter((e=>n.proposed[e].label===Tf));if(o=this.getInsertTextForSnippetValue(l,t,r,u),""===o&&l)continue;c=c||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,u="array";o=e+r+s.bodyText.split("\n").join("\n"+r)+n+t,c=c||o,a=o.replace(/[\n]/g,"")}n.add({kind:s.suggestionKind||this.getSuggestionKind(u),label:c,sortText:s.sortText||s.label,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:o,insertTextFormat:eo.Snippet,filterText:a})}}getInsertTextForSnippetValue(e,t,n,r,i){return Af(e,"",(e=>{if("string"===typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return'"'.concat(e,'"')}return e}),{...n,indentation:this.indentation,existingProps:r},i)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:eo.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:eo.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){$p(this.customTags).forEach((t=>{const n=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",n)}))}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:eo.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),n=this.fromMarkup("".concat(e,"\n ```\n").concat(t,"\n```"))),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Zs.Value;switch(e){case"string":default:return Zs.Value;case"object":return Zs.Module;case"property":return Zs.Property}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:Qs.Markdown,value:e}}doesSupportMarkdown(){if(void 0===this.supportsMarkdown){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(Qs.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let r=e.items.length-1;r>=0;r--){const t=e.items[r];if(aa(t)&&t.range){if(n>t.range[1])return r;if(n>=t.range[0])return r}}return 0}},_f=/^\d+$/;function kf(e){let t;if(t="string"===typeof e?e:""+e,0===t.length)return t;if("true"===t||"false"===t||"null"===t||_f.test(t))return'"'.concat(t,'"');-1!==t.indexOf('"')&&(t=t.replace(wf,'"'));let n=!isNaN(parseInt(t))||"@"===t.charAt(0);if(!n){let e=t.indexOf(":",0);for(;e>0&&e<t.length;e=t.indexOf(":",e+1)){if(e===t.length-1){n=!0;break}const r=t.charAt(e+1);if("\t"===r||" "===r){n=!0;break}}}return n&&(t='"'.concat(t,'"')),t}function Lf(){}var Of,Pf,If=class{constructor(e){this.telemetry=e}getDefinition(e,t){var n;try{const n=Ld.getYamlDocument(e),r=e.offsetAt(t.position),i=Kp(r,n);if(i){const[t]=i.getNodeFromPosition(r,new Md(e));if(t&&ea(t)){const n=t.resolve(i.internalDocument);if(n&&n.range){const t=Ss.create(e.positionAt(n.range[0]),e.positionAt(n.range[2])),r=Ss.create(e.positionAt(n.range[0]),e.positionAt(n.range[1]));return[ws.create(e.uri,t,r)]}}}}catch(r){null==(n=this.telemetry)||n.sendError("yaml.definition.error",{error:up(r)})}}};function Bf(e,t){if(!e)return;const n=Ld.getYamlDocument(e);return t.map((t=>{const r=function(t){const r=e.offsetAt(t),i=[];for(const s of n.documents){let n,o,a=!0;for(s.visit((i=>{if(i.offset+i.length<r)return!0;let s=i.offset;if(s>r){const n=e.positionAt(s);if(n.line!==t.line)return!0;const i={line:n.line,character:0};if(0!==e.getText({start:i,end:n}).trim().length)return!0;if(s=e.offsetAt(i),s>r)return!0}return(!n||s>=n.offset)&&(n=i,o=s),!0}));n;){const t=a?o:n.offset,r=n.offset+n.length,s={start:e.positionAt(t),end:e.positionAt(r)},u=e.getText(s),l=u.trimEnd(),c=u.length-l.length;c>0&&(s.end=e.positionAt(r-c));const p=(e,t)=>l.startsWith(e)&&l.endsWith(t||e);("string"===n.type&&(p("'")||p('"'))||"object"===n.type&&p("{","}")||"array"===n.type&&p("[","]"))&&i.push({start:e.positionAt(t+1),end:e.positionAt(r-1)}),i.push(s),n=n.parent,a=!1}if(i.length>0)break}return i.reverse()}(t);let i;for(const e of r)i=wo.create(e,i);return i||(i=wo.create({start:t,end:t})),i}))}async function Mf(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error("Schema request failed for ".concat(e))}(Pf=Of||(Of={}))[Pf.SchemaStore=1]="SchemaStore",Pf[Pf.SchemaAssociation=2]="SchemaAssociation",Pf[Pf.Settings=3]="Settings";var jf,Rf={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}},Vf={resolveRelativePath:(e,t)=>String(new URL(e,t))};jf=(e,t)=>{let{enableSchemaRequest:n,...r}=t;const i=function(e){const t=new $d(e.schemaRequestService,e.workspaceContext),n=new Nf(t,e.clientCapabilities,Ld,e.telemetry),r=new zd(t,e.telemetry),i=new Jd(t,e.telemetry),s=new of(t,e.telemetry),o=new af,a=new ff(e.clientCapabilities),u=new bf(t,e.telemetry),l=new uf(e.telemetry),c=new If(e.telemetry);return new Lf(t,e.yamlSettings,e.connection),{configure:e=>{t.clearExternalSchemas(),e.schemas&&(t.schemaPriorityMapping=new Map,e.schemas.forEach((e=>{const n=e.priority?e.priority:0;t.addSchemaPriority(e.uri,n),t.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description,e.versions)}))),s.configure(e),r.configure(e),n.configure(e),o.configure(e),a.configure(e)},registerCustomSchemaProvider:e=>{t.registerCustomSchemaProvider(e)},findLinks:l.findLinks.bind(l),doComplete:n.doComplete.bind(n),doValidation:s.doValidation.bind(s),doHover:r.doHover.bind(r),findDocumentSymbols:i.findDocumentSymbols.bind(i),findDocumentSymbols2:i.findHierarchicalDocumentSymbols.bind(i),doDefinition:c.getDefinition.bind(c),resetSchema:e=>t.onResourceChange(e),doFormat:o.format.bind(o),doDocumentOnTypeFormatting:gf,addSchema:(e,n)=>t.saveSchema(e,n),deleteSchema:e=>t.deleteSchema(e),modifySchemaContent:e=>t.addContent(e),deleteSchemaContent:e=>t.deleteContent(e),deleteSchemasWhole:e=>t.deleteSchemas(e),getFoldingRanges:lf,getSelectionRanges:Bf,getCodeAction:(e,t)=>a.getCodeAction(e,t),getCodeLens:e=>u.getCodeLens(e),resolveCodeLens:e=>u.resolveCodeLens(e)}}({schemaRequestService:n?Mf:null,telemetry:Rf,workspaceContext:Vf}),s=t=>function(n){const r=e.getMirrorModels();for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];for(const e of r)if(String(e.uri)===n)return t(Hi.create(n,"yaml",e.version,e.getValue()),...s)};return i.configure(r),{doValidation:s((e=>i.doValidation(e,Boolean(r.isKubernetes)))),doComplete:s(((e,t)=>i.doComplete(e,t,Boolean(r.isKubernetes)))),doDefinition:s(((e,t)=>i.doDefinition(e,{position:t,textDocument:e}))),doHover:s(((e,t)=>i.doHover(e,t))),format:s((e=>i.doFormat(e,{}))),resetSchema:e=>i.resetSchema(e),findDocumentSymbols:s((e=>i.findDocumentSymbols2(e,{}))),findLinks:s((e=>i.findLinks(e))),getCodeAction:s(((e,t,n)=>i.getCodeAction(e,{range:t,textDocument:e,context:n}))),getFoldingRanges:s((e=>i.getFoldingRanges(e,{lineFoldingOnly:!0})))}},self.onmessage=()=>{Ki(((e,t)=>Object.create(jf(e,t))))}})()})();
|