blob: 119527a7abb2d05de4a2c78e1e757cd402169b29 [file] [log] [blame]
/*! For license information please see yaml.worker.worker.js.LICENSE.txt */
(()=>{var e,t,n={410: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,o=-1,s=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(o===a-1||1===s);else if(o!==a-1&&2===s){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("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,i=47===s.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 o=e.length,s=o-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,c=s<u?s:u,l=-1,p=0;p<=c;++p){if(p===c){if(u>c){if(47===n.charCodeAt(a+p))return n.slice(a+p+1);if(0===p)return n.slice(a+p)}else s>c&&(47===e.charCodeAt(i+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(i+p);if(f!==n.charCodeAt(a+p))break;47===f&&(l=p)}var h="";for(p=i+l+1;p<=o;++p)p!==o&&47!==e.charCodeAt(p)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+l):(a+=l,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,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,s=!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 c=e.charCodeAt(r);if(47===c){if(!s){i=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===o&&(s=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(o=!1,i=a+1),46===u?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!o){r=a+1;break}}return-1===n||-1===i||0===s||1===s&&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),o=47===i;o?(n.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,p=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===i?-1===s?s=l:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===p||1===p&&s===u-1&&s===a+1?-1!==u&&(n.base=n.name=0===a&&o?e.slice(1,u):e.slice(a,u)):(0===a&&o?(n.name=e.slice(1,s),n.base=e.slice(1,u)):(n.name=e.slice(a,s),n.base=e.slice(a,u)),n.ext=e.slice(s,u)),a>0?n.dir=e.slice(0,a-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},535:function(e){e.exports=function(){"use strict";function e(e){var t={exports:{}};return e(t,t.exports),t.exports}var t=function(e,n){return(t=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,n)},n=function(){return(n=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}).apply(this,arguments)};function r(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 i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function o(e){return this instanceof o?(this.v=e,this):new o(e)}var s=Object.freeze({__proto__:null,__extends:function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},get __assign(){return n},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},__decorate:function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},__createBinding:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},__values:r,__read:i,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},__spreadArrays:function(){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 o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},__await:o,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){s.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=i[e](t)).value instanceof o?Promise.resolve(n.value.v).then(c,l):p(s[0][2],n)}catch(e){p(s[0][3],e)}var n}function c(e){u("next",e)}function l(e){u("throw",e)}function p(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:o(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=r(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),a=e((function(e,t){var n="\n",r=function(){function e(e){this.string=e;for(var t=[0],r=0;r<e.length;)switch(e[r]){case n:r+=n.length,t.push(r);break;case"\r":e[r+="\r".length]===n&&(r+=n.length),t.push(r);break;default:r++}this.offsets=t}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}();t.__esModule=!0,t.default=r})),u=Object.defineProperty({defineParents:function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}},"__esModule",{value:!0}),c=Object.defineProperty({getPointText:function(e){return e.line+":"+e.column}},"__esModule",{value:!0});function l(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 s=t.position,a=(n=s.start,0),u=[(i=s.end).line].concat(n.line===i.line?[]:n.line);a<u.length;a++){var c=u[a],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){l(e,t)}))}}function p(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||f(e));default:return!1}}function f(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}var h,d=Object.defineProperty({attachComments:function(e){u.defineParents(e);var t=function(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 l(t,e),t}(e),n=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(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();!function(e,t,n){var r=e.position.start.line,i=t[r-1].trailingAttachableNode;if(i){if(i.trailingComment)throw new Error("Unexpected multiple trailing comment at "+c.getPointText(e.position.start));return u.defineParents(e,i),void(i.trailingComment=e)}for(var o=r;o>=n.position.start.line;o--){var s=t[o-1].trailingNode,a=void 0;if(s)a=s;else{if(o===r||!t[o-1].comment)continue;a=t[o-1].comment._parent}if("sequence"!==a.type&&"mapping"!==a.type||(a=a.children[0]),"mappingItem"===a.type){var l=a.children,h=l[0],d=l[1];a=f(h)?h:d}for(;;){if(p(a,e))return u.defineParents(e,a),void a.endComments.push(e);if(!a._parent)break;a=a._parent}break}for(o=r+1;o<=n.position.end.line;o++){var m=t[o-1].leadingAttachableNode;if(m)return u.defineParents(e,m),void m.leadingComments.push(e)}var g=n.children[1];u.defineParents(e,g),g.endComments.push(e)}(e,t,n[0])}))}},"__esModule",{value:!0}),m=Object.defineProperty({createNode:function(e,t){return{type:e,position:t}}},"__esModule",{value:!0}),g=Object.defineProperty({createRoot:function(e,t,n){return s.__assign(s.__assign({},m.createNode("root",e)),{children:t,comments:n})}},"__esModule",{value:!0}),y=Object.defineProperty({removeCstBlankLine:function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}}},"__esModule",{value:!0}),b=Object.defineProperty({createLeadingCommentAttachable:function(){return{leadingComments:[]}}},"__esModule",{value:!0}),v=Object.defineProperty({createTrailingCommentAttachable:function(e){return void 0===e&&(e=null),{trailingComment:e}}},"__esModule",{value:!0}),D=Object.defineProperty({createCommentAttachable:function(){return s.__assign(s.__assign({},b.createLeadingCommentAttachable()),v.createTrailingCommentAttachable())}},"__esModule",{value:!0}),C=Object.defineProperty({createAlias:function(e,t,n){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("alias",e)),D.createCommentAttachable()),t),{value:n})}},"__esModule",{value:!0}),E=Object.defineProperty({transformAlias:function(e,t){var n=e.cstNode;return C.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}},"__esModule",{value:!0}),w=Object.defineProperty({createBlockFolded:function(e){return s.__assign(s.__assign({},e),{type:"blockFolded"})}},"__esModule",{value:!0}),A=Object.defineProperty({createBlockValue:function(e,t,n,r,i,o){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("blockValue",e)),b.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:i,indicatorComment:o})}},"__esModule",{value:!0}),S=e((function(e,t){var n;t.__esModule=!0,(n=t.PropLeadingCharacter||(t.PropLeadingCharacter={})).Tag="!",n.Anchor="&",n.Comment="#"})),x=Object.defineProperty({createAnchor:function(e,t){return s.__assign(s.__assign({},m.createNode("anchor",e)),{value:t})}},"__esModule",{value:!0}),T=Object.defineProperty({createComment:function(e,t){return s.__assign(s.__assign({},m.createNode("comment",e)),{value:t})}},"__esModule",{value:!0}),F=Object.defineProperty({createContent:function(e,t,n){return{anchor:t,tag:e,middleComments:n}}},"__esModule",{value:!0}),N=Object.defineProperty({createTag:function(e,t){return s.__assign(s.__assign({},m.createNode("tag",e)),{value:t})}},"__esModule",{value:!0}),k=Object.defineProperty({transformContent:function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,i=[],o=null,s=null,a=null,u=0,c=r.props;u<c.length;u++){var l=c[u],p=t.text[l.origStart];switch(p){case S.PropLeadingCharacter.Tag:o=o||l,s=N.createTag(t.transformRange(l),e.tag);break;case S.PropLeadingCharacter.Anchor:o=o||l,a=x.createAnchor(t.transformRange(l),r.anchor);break;case S.PropLeadingCharacter.Comment:var f=T.createComment(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(f),!n(f)&&o&&o.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&i.push(f);break;default:throw new Error("Unexpected leading character "+JSON.stringify(p))}}return F.createContent(s,a,i)}},"__esModule",{value:!0});!function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(h||(h={}));var _=Object.defineProperty({transformAstBlockValue:function(e,t){var n=e.cstNode,r="CLIP"===n.chomping?0:1,i=n.header.origEnd-n.header.origStart-1-r!=0,o=t.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),s=null,a=k.transformContent(e,t,(function(e){if(!(o.start.offset<e.position.start.offset&&e.position.end.offset<o.end.offset))return!1;if(s)throw new Error("Unexpected multiple indicator comments at "+c.getPointText(e.position.start));return s=e,!0}));return A.createBlockValue(o,a,h[n.chomping],i?n.blockIndent:null,n.strValue,s)}},"__esModule",{value:!0}),O=Object.defineProperty({transformBlockFolded:function(e,t){return w.createBlockFolded(_.transformAstBlockValue(e,t))}},"__esModule",{value:!0}),L=Object.defineProperty({createBlockLiteral:function(e){return s.__assign(s.__assign({},e),{type:"blockLiteral"})}},"__esModule",{value:!0}),P=Object.defineProperty({transformBlockLiteral:function(e,t){return L.createBlockLiteral(_.transformAstBlockValue(e,t))}},"__esModule",{value:!0}),I=Object.defineProperty({transformComment:function(e,t){return T.createComment(t.transformRange(e.range),e.comment)}},"__esModule",{value:!0}),M=Object.defineProperty({createDirective:function(e,t,n){return s.__assign(s.__assign(s.__assign({},m.createNode("directive",e)),D.createCommentAttachable()),{name:t,parameters:n})}},"__esModule",{value:!0}),B=Object.defineProperty({extractPropComments:function(e,t){for(var n=0,r=e.props;n<r.length;n++){var i=r[n],o=t.text[i.origStart];if(o!==S.PropLeadingCharacter.Comment)throw new Error("Unexpected leading character "+JSON.stringify(o));t.comments.push(T.createComment(t.transformRange(i),t.text.slice(i.origStart+1,i.origEnd)))}}},"__esModule",{value:!0}),j=Object.defineProperty({transformDirective:function(e,t){return B.extractPropComments(e,t),M.createDirective(t.transformRange(e.range),e.name,e.parameters)}},"__esModule",{value:!0}),R=Object.defineProperty({createDocument:function(e,t,n,r){return s.__assign(s.__assign(s.__assign({},m.createNode("document",e)),v.createTrailingCommentAttachable(r)),{children:[t,n]})}},"__esModule",{value:!0}),V=Object.defineProperty({createPosition:function(e,t){return{start:e,end:t}},createEmptyPosition:function(e){return{start:e,end:e}}},"__esModule",{value:!0}),$=Object.defineProperty({createEndCommentAttachable:function(e){return void 0===e&&(e=[]),{endComments:e}}},"__esModule",{value:!0}),U=Object.defineProperty({createDocumentBody:function(e,t,n){return s.__assign(s.__assign(s.__assign({},m.createNode("documentBody",e)),$.createEndCommentAttachable(n)),{children:t?[t]:[]})}},"__esModule",{value:!0}),W=Object.defineProperty({getLast:function(e){return e[e.length-1]}},"__esModule",{value:!0}),q=Object.defineProperty({getMatchIndex:function(e,t){var n=e.match(t);return n?n.index:-1}},"__esModule",{value:!0}),K=Object.defineProperty({transformDocumentBody:function(e,t,n){var r,i=e.cstNode,o=function(e,t,n){for(var r=[],i=[],o=[],s=!1,a=e.contents.length-1;a>=0;a--){var u=e.contents[a];if("COMMENT"===u.type){var l=t.transformNode(u);n&&n.line===l.position.start.line?o.unshift(l):s?r.unshift(l):l.position.start.offset>=e.valueRange.origEnd?i.unshift(l):r.unshift(l)}else s=!0}if(i.length>1)throw new Error("Unexpected multiple document trailing comments at "+c.getPointText(i[1].position.start));if(o.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+c.getPointText(o[1].position.start));return{comments:r,endComments:[],documentTrailingComment:W.getLast(i)||null,documentHeadTrailingComment:W.getLast(o)||null}}(i,t,n),a=o.comments,u=o.endComments,l=o.documentTrailingComment,p=o.documentHeadTrailingComment,f=t.transformNode(e.contents),h=function(e,t,n){var r=q.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),i=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[i-1]&&i--;var o=n.transformRange({origStart:null!==t?t.position.start.offset:i,origEnd:i});return{position:o,documentEndPoint:-1===r?o.end:n.transformOffset(e.valueRange.origEnd+3)}}(i,f,t),d=h.position,m=h.documentEndPoint;return(r=t.comments).push.apply(r,s.__spreadArrays(a,u)),{documentBody:U.createDocumentBody(d,f,u),documentEndPoint:m,documentTrailingComment:l,documentHeadTrailingComment:p}}},"__esModule",{value:!0}),H=Object.defineProperty({createDocumentHead:function(e,t,n,r){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("documentHead",e)),$.createEndCommentAttachable(n)),v.createTrailingCommentAttachable(r)),{children:t})}},"__esModule",{value:!0}),Y=Object.defineProperty({transformDocumentHead:function(e,t){var n,r=e.cstNode,i=function(e,t){for(var n=[],r=[],i=[],o=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?o?r.unshift(a):i.unshift(a):(o=!0,n.unshift(a))}return{directives:n,comments:r,endComments:i}}(r,t),o=i.directives,a=i.comments,u=i.endComments,c=function(e,t,n){var r=q.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);var i=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(i.origStart=t[0].position.start.offset),{position:n.transformRange(i),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,o,t),l=c.position,p=c.endMarkerPoint;return(n=t.comments).push.apply(n,s.__spreadArrays(a,u)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),H.createDocumentHead(l,o,u,e)},documentHeadEndMarkerPoint:p}}},"__esModule",{value:!0}),z=Object.defineProperty({transformDocument:function(e,t){var n=Y.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,i=n.documentHeadEndMarkerPoint,o=K.transformDocumentBody(e,t,i),s=o.documentBody,a=o.documentEndPoint,u=o.documentTrailingComment,c=r(o.documentHeadTrailingComment);return u&&t.comments.push(u),R.createDocument(V.createPosition(c.position.start,a),c,s,u)}},"__esModule",{value:!0}),J=Object.defineProperty({createFlowCollection:function(e,t,n){return s.__assign(s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("flowCollection",e)),D.createCommentAttachable()),$.createEndCommentAttachable()),t),{children:n})}},"__esModule",{value:!0}),G=Object.defineProperty({createFlowMapping:function(e,t,n){return s.__assign(s.__assign({},J.createFlowCollection(e,t,n)),{type:"flowMapping"})}},"__esModule",{value:!0}),Q=Object.defineProperty({createFlowMappingItem:function(e,t,n){return s.__assign(s.__assign(s.__assign({},m.createNode("flowMappingItem",e)),b.createLeadingCommentAttachable()),{children:[t,n]})}},"__esModule",{value:!0}),X=Object.defineProperty({extractComments:function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];o&&"type"in o&&"COMMENT"===o.type?t.comments.push(t.transformNode(o)):n.push(o)}return n}},"__esModule",{value:!0}),Z=Object.defineProperty({getFlowMapItemAdditionalRanges:function(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]}}},"__esModule",{value:!0}),ee=Object.defineProperty({createSlicer:function(e,t){var n=t;return function(t){return e.slice(n,n=t)}}},"__esModule",{value:!0}),te=Object.defineProperty({groupCstFlowCollectionItems:function(e){for(var t=[],n=ee.createSlicer(e,1),r=!1,i=1;i<e.length-1;i++){var o=e[i];"char"in o&&","===o.char?(t.push(n(i)),n(i+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t}},"__esModule",{value:!0}),ne=Object.defineProperty({createMappingKey:function(e,t){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("mappingKey",e)),v.createTrailingCommentAttachable()),$.createEndCommentAttachable()),{children:t?[t]:[]})}},"__esModule",{value:!0}),re=Object.defineProperty({createMappingValue:function(e,t){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("mappingValue",e)),D.createCommentAttachable()),$.createEndCommentAttachable()),{children:t?[t]:[]})}},"__esModule",{value:!0}),ie=Object.defineProperty({transformAstPair:function(e,t,n,r,i){var o=t.transformNode(e.key),s=t.transformNode(e.value),a=o||r?ne.createMappingKey(t.transformRange({origStart:r?r.origStart:o.position.start.offset,origEnd:o?o.position.end.offset:r.origStart+1}),o):null,u=s||i?re.createMappingValue(t.transformRange({origStart:i?i.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:i.origStart+1}),s):null;return n(V.createPosition(a?a.position.start:u.position.start,u?u.position.end:a.position.end),a||ne.createMappingKey(V.createEmptyPosition(u.position.start),null),u||re.createMappingValue(V.createEmptyPosition(a.position.end),null))}},"__esModule",{value:!0}),oe=Object.defineProperty({transformFlowMap:function(e,t){var n=X.extractComments(e.cstNode.items,t),r=te.groupCstFlowCollectionItems(n),i=e.items.map((function(e,n){var i=r[n],o=Z.getFlowMapItemAdditionalRanges(i),s=o.additionalKeyRange,a=o.additionalValueRange;return ie.transformAstPair(e,t,Q.createFlowMappingItem,s,a)})),o=n[0],s=W.getLast(n);return G.createFlowMapping(t.transformRange({origStart:o.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),i)}},"__esModule",{value:!0}),se=Object.defineProperty({createFlowSequence:function(e,t,n){return s.__assign(s.__assign({},J.createFlowCollection(e,t,n)),{type:"flowSequence"})}},"__esModule",{value:!0}),ae=Object.defineProperty({createFlowSequenceItem:function(e,t){return s.__assign(s.__assign({},m.createNode("flowSequenceItem",e)),{children:[t]})}},"__esModule",{value:!0}),ue=Object.defineProperty({transformFlowSeq:function(e,t){var n=X.extractComments(e.cstNode.items,t),r=te.groupCstFlowCollectionItems(n),i=e.items.map((function(e,n){if("PAIR"!==e.type){var i=t.transformNode(e);return ae.createFlowSequenceItem(V.createPosition(i.position.start,i.position.end),i)}var o=r[n],s=Z.getFlowMapItemAdditionalRanges(o),a=s.additionalKeyRange,u=s.additionalValueRange;return ie.transformAstPair(e,t,Q.createFlowMappingItem,a,u)})),o=n[0],s=W.getLast(n);return se.createFlowSequence(t.transformRange({origStart:o.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),i)}},"__esModule",{value:!0}),ce=Object.defineProperty({createMapping:function(e,t,n){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("mapping",e)),b.createLeadingCommentAttachable()),t),{children:n})}},"__esModule",{value:!0}),le=Object.defineProperty({createMappingItem:function(e,t,n){return s.__assign(s.__assign(s.__assign({},m.createNode("mappingItem",e)),b.createLeadingCommentAttachable()),{children:[t,n]})}},"__esModule",{value:!0}),pe=Object.defineProperty({transformMap:function(e,t){var n=e.cstNode;n.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return B.extractPropComments(e,t)}));var r=function(e){for(var t=[],n=ee.createSlicer(e,0),r=!1,i=0;i<e.length;i++)"MAP_VALUE"!==e[i].type?(r&&t.push(n(i)),r=!0):(t.push(n(i+1)),r=!1);return r&&t.push(n(1/0)),t}(X.extractComments(n.items,t)),i=e.items.map((function(e,n){var i=r[n],o="MAP_VALUE"===i[0].type?[null,i[0].range]:[i[0].range,1===i.length?null:i[1].range],s=o[0],a=o[1];return ie.transformAstPair(e,t,le.createMappingItem,s,a)}));return ce.createMapping(V.createPosition(i[0].position.start,W.getLast(i).position.end),t.transformContent(e),i)}},"__esModule",{value:!0}),fe=Object.defineProperty({createPlain:function(e,t,n){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("plain",e)),D.createCommentAttachable()),t),{value:n})}},"__esModule",{value:!0}),he=Object.defineProperty({findLastCharIndex:function(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}},"__esModule",{value:!0}),de=Object.defineProperty({transformPlain:function(e,t){var n=e.cstNode;return fe.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:he.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}},"__esModule",{value:!0}),me=Object.defineProperty({createQuoteDouble:function(e){return s.__assign(s.__assign({},e),{type:"quoteDouble"})}},"__esModule",{value:!0}),ge=Object.defineProperty({createQuoteValue:function(e,t,n){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("quoteValue",e)),t),D.createCommentAttachable()),{value:n})}},"__esModule",{value:!0}),ye=Object.defineProperty({transformAstQuoteValue:function(e,t){var n=e.cstNode;return ge.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}},"__esModule",{value:!0}),be=Object.defineProperty({transformQuoteDouble:function(e,t){return me.createQuoteDouble(ye.transformAstQuoteValue(e,t))}},"__esModule",{value:!0}),ve=Object.defineProperty({createQuoteSingle:function(e){return s.__assign(s.__assign({},e),{type:"quoteSingle"})}},"__esModule",{value:!0}),De=Object.defineProperty({transformQuoteSingle:function(e,t){return ve.createQuoteSingle(ye.transformAstQuoteValue(e,t))}},"__esModule",{value:!0}),Ce=Object.defineProperty({createSequence:function(e,t,n){return s.__assign(s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("sequence",e)),b.createLeadingCommentAttachable()),$.createEndCommentAttachable()),t),{children:n})}},"__esModule",{value:!0}),Ee=Object.defineProperty({createSequenceItem:function(e,t){return s.__assign(s.__assign(s.__assign(s.__assign({},m.createNode("sequenceItem",e)),D.createCommentAttachable()),$.createEndCommentAttachable()),{children:t?[t]:[]})}},"__esModule",{value:!0}),we=Object.defineProperty({transformSeq:function(e,t){var n=X.extractComments(e.cstNode.items,t).map((function(n,r){B.extractPropComments(n,t);var i=t.transformNode(e.items[r]);return Ee.createSequenceItem(V.createPosition(t.transformOffset(n.valueRange.origStart),null===i?t.transformOffset(n.valueRange.origStart+1):i.position.end),i)}));return Ce.createSequence(V.createPosition(n[0].position.start,W.getLast(n).position.end),t.transformContent(e),n)}},"__esModule",{value:!0}),Ae=Object.defineProperty({transformNode:function(e,t){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return E.transformAlias(e,t);case"BLOCK_FOLDED":return O.transformBlockFolded(e,t);case"BLOCK_LITERAL":return P.transformBlockLiteral(e,t);case"COMMENT":return I.transformComment(e,t);case"DIRECTIVE":return j.transformDirective(e,t);case"DOCUMENT":return z.transformDocument(e,t);case"FLOW_MAP":return oe.transformFlowMap(e,t);case"FLOW_SEQ":return ue.transformFlowSeq(e,t);case"MAP":return pe.transformMap(e,t);case"PLAIN":return de.transformPlain(e,t);case"QUOTE_DOUBLE":return be.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return De.transformQuoteSingle(e,t);case"SEQ":return we.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}}},"__esModule",{value:!0}),Se=Object.defineProperty({createError:function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}},"__esModule",{value:!0}),xe=Object.defineProperty({transformError:function(e,t){var n=e.source.range||e.source.valueRange;return Se.createError(e.message,t.text,t.transformRange(n))}},"__esModule",{value:!0}),Te=Object.defineProperty({createPoint:function(e,t,n){return{offset:e,line:t,column:n}}},"__esModule",{value:!0}),Fe=Object.defineProperty({transformOffset:function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return Te.createPoint(e,n.line+1,n.column+1)}},"__esModule",{value:!0}),Ne=Object.defineProperty({transformRange:function(e,t){return V.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))}},"__esModule",{value:!0}),ke=!0;function _e(e,t){if(e&&"object"==typeof e&&t(e)!==ke)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if("context"!==i&&"error"!==i){var o=e[i];Array.isArray(o)?o.forEach((function(e){return _e(e,t)})):_e(o,t)}}}var Oe=Object.defineProperty({addOrigRange:function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,ke):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,ke):void 0};e.forEach((function(e){return _e(e,t)}))}}},"__esModule",{value:!0}),Le=Object.defineProperty({removeFakeNodes:function e(t){if("children"in t){if(1===t.children.length){var n=t.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return t.children.splice(0,1),t}t.children.forEach(e)}return t}},"__esModule",{value:!0}),Pe=Object.defineProperty({createUpdater:function(e,t,n,r){var i=t(e);return function(t){r(i,t)&&n(e,i=t)}}},"__esModule",{value:!0});function Ie(e){return e.start}function Me(e,t){e.start=t}function Be(e){return e.end}function je(e,t){e.end=t}function Re(e,t){return t.offset<e.offset}function Ve(e,t){return t.offset>e.offset}var $e=Object.defineProperty({updatePositions:function e(t){if(null!==t&&"children"in t){var n=t.children;if(n.forEach(e),"document"===t.type){var r=t.children,i=r[0],o=r[1];i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}var s=Pe.createUpdater(t.position,Ie,Me,Re),a=Pe.createUpdater(t.position,Be,je,Ve);"endComments"in t&&0!==t.endComments.length&&(s(t.endComments[0].position.start),a(W.getLast(t.endComments).position.end));var u=n.filter((function(e){return null!==e}));if(0!==u.length){var c=u[0],l=W.getLast(u);s(c.position.start),a(l.position.end),"leadingComments"in c&&0!==c.leadingComments.length&&s(c.leadingComments[0].position.start),"tag"in c&&c.tag&&s(c.tag.position.start),"anchor"in c&&c.anchor&&s(c.anchor.position.start),"trailingComment"in l&&l.trailingComment&&a(l.trailingComment.position.end)}}}},"__esModule",{value:!0});const Ue={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},We={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"};function qe(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function Ke(e){let t,n;return"string"==typeof e?(t=qe(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=qe(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function He(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:r}=Ke(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const i=n.length;return{line:i,col:e-n[i-1]+1}}class Ye{static copy(e){return new Ye(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;const o=i;for(;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}class ze{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=ze.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if(r!==Ue.DIRECTIVES_END&&r!==Ue.DOCUMENT_END)return!1;const o=e[t+1],s=e[t+2];if(o!==r||s!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=ze.endOfIndent(e,n);if(r>n+t)return r;{const t=ze.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:ze.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,i=!1,o="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,o+="\n";break;case"\t":r<=n&&(i=!0),t=ze.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return o||(o=" "),s&&r<=n&&(i=!0),{fold:o,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;const{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,Ue.ANCHOR,!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,Ue.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||ze.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===Ue.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==Ue.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[We.FLOW_MAP,We.FLOW_SEQ,We.QUOTE_DOUBLE,We.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=He(this.range.start,this.context.root);return e?{start:e,end:He(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,Ue.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,r]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{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){const{src:t}=this.context;if(t[e]===Ue.COMMENT){const n=ze.endOfLine(t,e+1),r=new Ye(e,n);return this.props.push(r),n}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(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return ze.addStringTerminator(e,t.end,r)}}class Je extends Error{constructor(e,t,n){if(!(n&&t instanceof ze))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;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new Ye(this.offset,this.offset+1);const t=e&&He(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&function({start:e,end:t},n,r=80){let i=function(e,t){const{lineStarts:n,src:r}=Ke(t);if(!n||!(e>=1)||e>n.length)return null;const i=n[e-1];let o=n[e];for(;o&&o>i&&"\n"===r[o-1];)--o;return r.slice(i,o)}(e.line,n);if(!i)return null;let{col:o}=e;if(i.length>r)if(o<=r-10)i=i.substr(0,r-1)+"…";else{const e=Math.round(r/2);i.length>o+e&&(i=i.substr(0,o+e-1)+"…"),o-=i.length-r,i="…"+i.substr(1-r)}let s=1,a="";t&&(t.line===e.line&&o+(t.col-e.col)<=r+1?s=t.col-e.col:(s=Math.min(i.length+1,r)-o,a="…"));const u=o>1?" ".repeat(o-1):"",c="^".repeat(s);return"".concat(i,"\n").concat(u).concat(c).concat(a)}(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}class Ge extends Je{constructor(e,t){super("YAMLSemanticError",e,t)}}class Qe extends ze{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let i="";for(let r=e;r<t;++r){const e=n[r];if("\n"===e){const{fold:e,offset:t}=ze.foldNewline(n,r,-1);i+=e,r=t}else if(" "===e||"\t"===e){const o=r;let s=n[r+1];for(;r<t&&(" "===s||"\t"===s);)r+=1,s=n[r+1];"\n"!==s&&(i+=r>o?n.slice(o,r+1):e)}else i+=e}const o=n[e];switch(o){case"\t":return{errors:[new Ge(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":{const e="Plain value cannot start with reserved character ".concat(o);return{errors:[new Ge(this,e)],str:i}}default:return i}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let i=e,o=e;for(let e=r[i];"\n"===e&&!ze.atDocumentBoundary(r,i+1);e=r[i]){const e=ze.endOfBlockIndent(r,t,i+1);if(null===e||"#"===r[e])break;"\n"===r[e]?i=e:(o=Qe.endOfLine(r,e,n),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let i=t;const o=r[i];return o&&"#"!==o&&"\n"!==o&&(i=Qe.endOfLine(r,t,n)),this.valueRange=new Ye(t,i),i=ze.endOfWhiteSpace(r,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}}var Xe={Char:Ue,Node:ze,PlainValue:Qe,Range:Ye,Type:We,YAMLError:Je,YAMLReferenceError:class extends Je{constructor(e,t){super("YAMLReferenceError",e,t)}},YAMLSemanticError:Ge,YAMLSyntaxError:class extends Je{constructor(e,t){super("YAMLSyntaxError",e,t)}},YAMLWarning:class extends Je{constructor(e,t){super("YAMLWarning",e,t)}},_defineProperty:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},defaultTagPrefix:"tag:yaml.org,2002:",defaultTags:{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}};class Ze extends Xe.Node{constructor(){super(Xe.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){return this.context=e,this.range=new Xe.Range(t,t+1),t+1}}class et extends Xe.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{atLineStart:i,lineStart:o}=e;i||this.type!==Xe.Type.SEQ_ITEM||(this.error=new Xe.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const s=i?t-o:e.indent;let a=Xe.Node.endOfWhiteSpace(r,t+1),u=r[a];const c="#"===u,l=[];let p=null;for(;"\n"===u||"#"===u;){if("#"===u){const e=Xe.Node.endOfLine(r,a+1);l.push(new Xe.Range(a,e)),a=e}else i=!0,o=a+1,"\n"===r[Xe.Node.endOfWhiteSpace(r,o)]&&0===l.length&&(p=new Ze,o=p.parse({src:r},o)),a=Xe.Node.endOfIndent(r,o);u=r[a]}if(Xe.Node.nextNodeIsIndented(u,a-(o+s),this.type!==Xe.Type.SEQ_ITEM)?this.node=n({atLineStart:i,inCollection:!1,indent:s,lineStart:o,parent:this},a):u&&o>t+1&&(a=o-1),this.node){if(p){const t=e.parent.items||e.parent.contents;t&&t.push(p)}l.length&&Array.prototype.push.apply(this.props,l),a=this.node.range.end}else if(c){const e=l[0];this.props.push(e),a=e.end}else a=Xe.Node.endOfLine(r,t+1);const f=this.node?this.node.valueRange.end:a;return this.valueRange=new Xe.Range(t,f),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:r}=this;if(null!=r)return r;const i=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return Xe.Node.addStringTerminator(e,n.end,i)}}class tt extends Xe.Node{constructor(){super(Xe.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new Xe.Range(t,n),n}}function nt(e){let t=e;for(;t instanceof et;)t=t.node;if(!(t instanceof rt))return null;const n=t.items.length;let r=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===Xe.Type.COMMENT){const{indent:t,lineStart:i}=n.context;if(t>0&&n.range.start>=i+t)break;r=e}else{if(n.type!==Xe.Type.BLANK_LINE)break;r=e}}if(-1===r)return null;const i=t.items.splice(r,n-r),o=i[0].range.start;for(;t.range.end=o,t.valueRange&&t.valueRange.end>o&&(t.valueRange.end=o),t!==e;)t=t.context.parent;return i}class rt extends Xe.Node{static nextContentHasIndent(e,t,n){const r=Xe.Node.endOfLine(e,t)+1,i=e[t=Xe.Node.endOfWhiteSpace(e,r)];return!!i&&(t>=r+n||("#"===i||"\n"===i)&&rt.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===Xe.Type.SEQ_ITEM?Xe.Type.SEQ:Xe.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);const n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];const t=nt(e);t&&Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let i=Xe.Node.startOfLine(r,t);const o=this.items[0];o.context.parent=this,this.valueRange=Xe.Range.copy(o.valueRange);const s=o.range.start-o.context.lineStart;let a=t;a=Xe.Node.normalizeOffset(r,a);let u=r[a],c=Xe.Node.endOfWhiteSpace(r,i)===a,l=!1;for(;u;){for(;"\n"===u||"#"===u;){if(c&&"\n"===u&&!l){const e=new Ze;if(a=e.parse({src:r},a),this.valueRange.end=a,a>=r.length){u=null;break}this.items.push(e),a-=1}else if("#"===u){if(a<i+s&&!rt.nextContentHasIndent(r,a,s))return a;const e=new tt;if(a=e.parse({indent:s,lineStart:i,src:r},a),this.items.push(e),this.valueRange.end=a,a>=r.length){u=null;break}}if(i=a+1,a=Xe.Node.endOfIndent(r,i),Xe.Node.atBlank(r,a)){const e=Xe.Node.endOfWhiteSpace(r,a),t=r[e];t&&"\n"!==t&&"#"!==t||(a=e)}u=r[a],c=!0}if(!u)break;if(a!==i+s&&(c||":"!==u)){if(a<i+s){i>t&&(a=i);break}if(!this.error){const e="All collection items must start at the same column";this.error=new Xe.YAMLSyntaxError(this,e)}}if(o.type===Xe.Type.SEQ_ITEM){if("-"!==u){i>t&&(a=i);break}}else if("-"===u&&!this.error){const e=r[a+1];if(!e||"\n"===e||"\t"===e||" "===e){const e="A collection cannot be both a mapping and a sequence";this.error=new Xe.YAMLSyntaxError(this,e)}}const e=n({atLineStart:c,inCollection:!0,indent:s,lineStart:i,parent:this},a);if(!e)return a;if(this.items.push(e),this.valueRange.end=e.valueRange.end,a=Xe.Node.normalizeOffset(r,e.range.end),u=r[a],c=!1,l=e.includesTrailingLines,u){let e=a-1,t=r[e];for(;" "===t||"\t"===t;)t=r[--e];"\n"===t&&(i=e+1,c=!0)}const p=nt(e);p&&Array.prototype.push.apply(this.items,p)}return a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let i=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const n=t[e],{atLineStart:r,indent:o}=n.context;if(r)for(let e=0;e<o;++e)i+=" ";i+=String(n)}return Xe.Node.addStringTerminator(e,n.end,i)}}class it extends Xe.Node{constructor(){super(Xe.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let 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){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new Xe.Range(e,n),n}parse(e,t){this.context=e;let n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new Xe.Range(t,n),n}}class ot extends Xe.Node{static startCommentOrEndBlankLine(e,t){const n=Xe.Node.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}constructor(){super(Xe.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let n=!0,r=!1,i=e;for(;!Xe.Node.atDocumentBoundary(t,i,Xe.Char.DIRECTIVES_END);)switch(i=ot.startCommentOrEndBlankLine(t,i),t[i]){case"\n":if(n){const e=new Ze;i=e.parse({src:t},i),i<t.length&&this.directives.push(e)}else i+=1,n=!0;break;case"#":{const e=new tt;i=e.parse({src:t},i),this.directives.push(e),n=!1}break;case"%":{const e=new it;i=e.parse({parent:this,src:t},i),this.directives.push(e),r=!0,n=!1}break;default:return r?this.error=new Xe.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return t[i]?(this.directivesEndMarker=new Xe.Range(i,i+3),i+3):(r?this.error=new Xe.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){const{parseNode:t,src:n}=this.context;this.contents||(this.contents=[]);let r=e;for(;"-"===n[r-1];)r-=1;let i=Xe.Node.endOfWhiteSpace(n,e),o=r===e;for(this.valueRange=new Xe.Range(i);!Xe.Node.atDocumentBoundary(n,i,Xe.Char.DOCUMENT_END);){switch(n[i]){case"\n":if(o){const e=new Ze;i=e.parse({src:n},i),i<n.length&&this.contents.push(e)}else i+=1,o=!0;r=i;break;case"#":{const e=new tt;i=e.parse({src:n},i),this.contents.push(e),o=!1}break;default:{const e=Xe.Node.endOfIndent(n,i),s=t({atLineStart:o,indent:-1,inFlow:!1,inCollection:!1,lineStart:r,parent:this},e);if(!s)return this.valueRange.end=e;this.contents.push(s),i=s.range.end,o=!1;const a=nt(s);a&&Array.prototype.push.apply(this.contents,a)}}i=ot.startCommentOrEndBlankLine(n,i)}if(this.valueRange.end=i,n[i]&&(this.documentEndMarker=new Xe.Range(i,i+3),i+=3,n[i])){if(i=Xe.Node.endOfWhiteSpace(n,i),"#"===n[i]){const e=new tt;i=e.parse({src:n},i),this.contents.push(e)}switch(n[i]){case"\n":i+=1;break;case void 0:break;default:this.error=new Xe.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return i}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let 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(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===Xe.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}class st extends Xe.Node{parse(e,t){this.context=e;const{src:n}=e;let r=Xe.Node.endOfIdentifier(n,t+1);return this.valueRange=new Xe.Range(t+1,r),r=Xe.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}const at="KEEP",ut="STRIP";class ct extends Xe.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping="CLIP",this.header=null}get includesTrailingLines(){return this.chomping===at}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:r}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=r[t-1];for(;"\n"===o||"\t"===o||" "===o;){if(t-=1,t<=e){if(this.chomping===at)break;return""}"\n"===o&&(i=t),o=r[t-1]}let s=t+1;i&&(this.chomping===at?(s=i,t=this.valueRange.end):t=i);const a=n+this.blockIndent,u=this.type===Xe.Type.BLOCK_FOLDED;let c=!0,l="",p="",f=!1;for(let n=e;n<t;++n){for(let e=0;e<a&&" "===r[n];++e)n+=1;const e=r[n];if("\n"===e)"\n"===p?l+="\n":p="\n";else{const i=Xe.Node.endOfLine(r,n),o=r.slice(n,i);n=i,u&&(" "===e||"\t"===e)&&n<s?(" "===p?p="\n":f||c||"\n"!==p||(p="\n\n"),l+=p+o,p=i<t&&r[i]||"",f=!0):(l+=p+o,p=u&&n<s?" ":"\n",f=!1),c&&""!==o&&(c=!1)}}return this.chomping===ut?l:l+"\n"}parseBlockHeader(e){const{src:t}=this.context;let n=e+1,r="";for(;;){const i=t[n];switch(i){case"-":this.chomping=ut;break;case"+":this.chomping=at;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=i;break;default:return this.blockIndent=Number(r)||null,this.header=new Xe.Range(e,n),n}n+=1}}parseBlockValue(e){const{indent:t,src:n}=this.context,r=!!this.blockIndent;let i=e,o=e,s=1;for(let e=n[i];"\n"===e&&(i+=1,!Xe.Node.atDocumentBoundary(n,i));e=n[i]){const e=Xe.Node.endOfBlockIndent(n,t,i);if(null===e)break;const a=n[e],u=e-(i+t);if(this.blockIndent){if(a&&"\n"!==a&&u<this.blockIndent){if("#"===n[e])break;if(!this.error){const e="Block scalars must not be less indented than their ".concat(r?"explicit indentation indicator":"first line");this.error=new Xe.YAMLSemanticError(this,e)}}}else if("\n"!==n[e]){if(u<s){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new Xe.YAMLSemanticError(this,e)}this.blockIndent=u}else u>s&&(s=u);i="\n"===n[e]?e:o=Xe.Node.endOfLine(n,e)}return this.chomping!==at&&(i=n[o]?o+1:o),this.valueRange=new Xe.Range(e+1,i),i}parse(e,t){this.context=e;const{src:n}=e;let r=this.parseBlockHeader(t);return r=Xe.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class lt extends Xe.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===Xe.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{indent:i,lineStart:o}=e,s=r[t];this.items=[{char:s,offset:t}];let a=Xe.Node.endOfWhiteSpace(r,t+1);for(s=r[a];s&&"]"!==s&&"}"!==s;){switch(s){case"\n":if(o=a+1,"\n"===r[Xe.Node.endOfWhiteSpace(r,o)]){const e=new Ze;o=e.parse({src:r},o),this.items.push(e)}if(a=Xe.Node.endOfIndent(r,o),a<=o+i&&(s=r[a],a<o+i||"]"!==s&&"}"!==s)){const e="Insufficient indentation in flow collection";this.error=new Xe.YAMLSemanticError(this,e)}break;case",":this.items.push({char:s,offset:a}),a+=1;break;case"#":{const e=new tt;a=e.parse({src:r},a),this.items.push(e)}break;case"?":case":":{const e=r[a+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===s&&this.prevNodeIsJsonLike()){this.items.push({char:s,offset:a}),a+=1;break}}default:{const e=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},a);if(!e)return this.valueRange=new Xe.Range(t,a),a;this.items.push(e),a=Xe.Node.normalizeOffset(r,e.range.end)}}a=Xe.Node.endOfWhiteSpace(r,a),s=r[a]}return this.valueRange=new Xe.Range(t,a+1),s&&(this.items.push({char:s,offset:a}),a=Xe.Node.endOfWhiteSpace(r,a+1),a=this.parseComment(a)),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{if(n instanceof Xe.Node)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const i=t.filter((e=>e instanceof Xe.Node));let o="",s=n.start;return i.forEach((t=>{const n=e.slice(s,t.range.start);s=t.range.end,o+=n+String(t),"\n"===o[o.length-1]&&"\n"!==e[s-1]&&"\n"===e[s]&&(s+=1)})),o+=e.slice(s,n.end),Xe.Node.addStringTerminator(e,n.end,o)}}class pt extends Xe.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;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:i}=this.context;'"'!==i[n-1]&&e.push(new Xe.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let s=t+1;s<n-1;++s){const t=i[s];if("\n"===t){Xe.Node.atDocumentBoundary(i,s+1)&&e.push(new Xe.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:a}=Xe.Node.foldNewline(i,s,r);o+=t,s=n,a&&e.push(new Xe.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===t)switch(s+=1,i[s]){case"0":o+="\0";break;case"a":o+="";break;case"b":o+="\b";break;case"e":o+="";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+="…";break;case"_":o+=" ";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(s+1,2,e),s+=2;break;case"u":o+=this.parseCharCode(s+1,4,e),s+=4;break;case"U":o+=this.parseCharCode(s+1,8,e),s+=8;break;case"\n":for(;" "===i[s+1]||"\t"===i[s+1];)s+=1;break;default:e.push(new Xe.YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(s-1,2)))),o+="\\"+i[s]}else if(" "===t||"\t"===t){const e=s;let n=i[s+1];for(;" "===n||"\t"===n;)s+=1,n=i[s+1];"\n"!==n&&(o+=s>e?i.slice(e,s+1):t)}else o+=t}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,t,n){const{src:r}=this.context,i=r.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(n.push(new Xe.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:n}=e;let r=pt.endOfQuote(n,t+1);return this.valueRange=new Xe.Range(t,r),r=Xe.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class ft extends Xe.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;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:i}=this.context;"'"!==i[n-1]&&e.push(new Xe.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let s=t+1;s<n-1;++s){const t=i[s];if("\n"===t){Xe.Node.atDocumentBoundary(i,s+1)&&e.push(new Xe.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:a}=Xe.Node.foldNewline(i,s,r);o+=t,s=n,a&&e.push(new Xe.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===t)o+=t,s+=1,"'"!==i[s]&&e.push(new Xe.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===t||"\t"===t){const e=s;let n=i[s+1];for(;" "===n||"\t"===n;)s+=1,n=i[s+1];"\n"!==n&&(o+=s>e?i.slice(e,s+1):t)}else o+=t}return e.length>0?{errors:e,str:o}:o}parse(e,t){this.context=e;const{src:n}=e;let r=ft.endOfQuote(n,t+1);return this.valueRange=new Xe.Range(t,r),r=Xe.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class ht{static parseType(e,t,n){switch(e[t]){case"*":return Xe.Type.ALIAS;case">":return Xe.Type.BLOCK_FOLDED;case"|":return Xe.Type.BLOCK_LITERAL;case"{":return Xe.Type.FLOW_MAP;case"[":return Xe.Type.FLOW_SEQ;case"?":return!n&&Xe.Node.atBlank(e,t+1,!0)?Xe.Type.MAP_KEY:Xe.Type.PLAIN;case":":return!n&&Xe.Node.atBlank(e,t+1,!0)?Xe.Type.MAP_VALUE:Xe.Type.PLAIN;case"-":return!n&&Xe.Node.atBlank(e,t+1,!0)?Xe.Type.SEQ_ITEM:Xe.Type.PLAIN;case'"':return Xe.Type.QUOTE_DOUBLE;case"'":return Xe.Type.QUOTE_SINGLE;default:return Xe.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:r,indent:i,lineStart:o,parent:s}={}){Xe._defineProperty(this,"parseNode",((e,t)=>{if(Xe.Node.atDocumentBoundary(this.src,t))return null;const n=new ht(this,e),{props:r,type:i,valueStart:o}=n.parseProps(t),s=function(e,t){switch(e){case Xe.Type.ALIAS:return new st(e,t);case Xe.Type.BLOCK_FOLDED:case Xe.Type.BLOCK_LITERAL:return new ct(e,t);case Xe.Type.FLOW_MAP:case Xe.Type.FLOW_SEQ:return new lt(e,t);case Xe.Type.MAP_KEY:case Xe.Type.MAP_VALUE:case Xe.Type.SEQ_ITEM:return new et(e,t);case Xe.Type.COMMENT:case Xe.Type.PLAIN:return new Xe.PlainValue(e,t);case Xe.Type.QUOTE_DOUBLE:return new pt(e,t);case Xe.Type.QUOTE_SINGLE:return new ft(e,t);default:return null}}(i,r);let a=s.parse(n,o);if(s.range=new Xe.Range(t,a),a<=t&&(s.error=new Error("Node#parse consumed no characters"),s.error.parseEnd=a,s.error.source=s,s.range.end=t+1),n.nodeStartsCollection(s)){s.error||n.atLineStart||n.parent.type!==Xe.Type.DOCUMENT||(s.error=new Xe.YAMLSyntaxError(s,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new rt(s);return a=e.parse(new ht(n),a),e.range=new Xe.Range(t,a),e}return s})),this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=n?n:e.inCollection||!1,this.inFlow=null!=r?r:e.inFlow||!1,this.indent=null!=i?i:e.indent,this.lineStart=null!=o?o:e.lineStart,this.parent=null!=s?s:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof et)return!0;let i=e.range.end;return"\n"!==r[i]&&"\n"!==r[i-1]&&(i=Xe.Node.endOfWhiteSpace(r,i),":"===r[i])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,i=[];let o=!1,s=r[e=this.atLineStart?Xe.Node.endOfIndent(r,e):Xe.Node.endOfWhiteSpace(r,e)];for(;s===Xe.Char.ANCHOR||s===Xe.Char.COMMENT||s===Xe.Char.TAG||"\n"===s;){if("\n"===s){let t,i=e;do{t=i+1,i=Xe.Node.endOfIndent(r,t)}while("\n"===r[i]);const s=i-(t+this.indent),a=n.type===Xe.Type.SEQ_ITEM&&n.context.atLineStart;if("#"!==r[i]&&!Xe.Node.nextNodeIsIndented(r[i],s,!a))break;this.atLineStart=!0,this.lineStart=t,o=!1,e=i}else if(s===Xe.Char.COMMENT){const t=Xe.Node.endOfLine(r,e+1);i.push(new Xe.Range(e,t)),e=t}else{let t=Xe.Node.endOfIdentifier(r,e+1);s===Xe.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=Xe.Node.endOfIdentifier(r,t+5)),i.push(new Xe.Range(e,t)),o=!0,e=Xe.Node.endOfWhiteSpace(r,t)}s=r[e]}return o&&":"===s&&Xe.Node.atBlank(r,e+1,!0)&&(e-=1),{props:i,type:ht.parseType(r,e,t),valueStart:e}}}var dt={parse:function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new ot,i=new ht({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 e=1;e<t.length;++e)t[e]-=e;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}};function mt(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}class gt{}function yt(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>yt(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class bt extends gt{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:yt(this.value,e,t)}toString(){return String(this.value)}}function vt(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const Dt=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class Ct extends gt{constructor(e){super(),Xe._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(Dt(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(i instanceof Ct)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,vt(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof Ct)return n.deleteIn(t);throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t))}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof bt?r.value:r:r instanceof Ct?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof bt&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof Ct&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof Ct)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error("Expected YAML collection at ".concat(e,". Remaining path: ").concat(t));this.set(e,vt(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:r,itemIndent:i},o,s){const{indent:a,indentStep:u,stringify:c}=e,l=this.type===Xe.Type.FLOW_MAP||this.type===Xe.Type.FLOW_SEQ||e.inFlow;l&&(i+=u);const p=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:p,indent:i,inFlow:l,type:null});let f=!1,h=!1;const d=this.items.reduce(((t,n,r)=>{let o;n&&(!f&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:"#".concat(e)})})),n.comment&&(o=n.comment),l&&(!f&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(h=!0)),f=!1;let s=c(n,e,(()=>o=null),(()=>f=!0));return l&&!h&&s.includes("\n")&&(h=!0),l&&r<this.items.length-1&&(s+=","),s=mt(s,i,o),f&&(o||l)&&(f=!1),t.push({type:"item",str:s}),t}),[]);let m;if(0===d.length)m=n.start+n.end;else if(l){const{start:e,end:t}=n,r=d.map((e=>e.str));if(h||r.reduce(((e,t)=>e+t.length+2),2)>Ct.maxFlowStringSingleLineLength){m=e;for(const e of r)m+=e?"\n".concat(u).concat(a).concat(e):"\n";m+="\n".concat(a).concat(t)}else m="".concat(e," ").concat(r.join(" ")," ").concat(t)}else{const e=d.map(t);m=e.shift();for(const t of e)m+=t?"\n".concat(a).concat(t):"\n"}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(a,"#")),o&&o()):f&&s&&s(),m}}function Et(e){let t=e instanceof bt?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}Xe._defineProperty(Ct,"maxFlowStringSingleLineLength",60);class wt extends Ct{add(e){this.items.push(e)}delete(e){const t=Et(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=Et(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof bt?r.value:r}has(e){const t=Et(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=Et(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(yt(e,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)}}class At extends gt{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=At.Type.PAIR}get commentBefore(){return this.key instanceof gt?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new bt(null)),!(this.key instanceof gt))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){const n=yt(this.key,"",e);if(t instanceof Map){const r=yt(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{const r=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof gt&&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))(this.key,n,e),i=yt(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){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:i,simpleKeys:o}=e.doc.options;let{key:s,value:a}=this,u=s instanceof gt&&s.comment;if(o){if(u)throw new Error("With simple keys, key nodes cannot have comments");if(s instanceof Ct)throw new Error("With simple keys, collection cannot be used as a key value")}let c=!o&&(!s||u||(s instanceof gt?s instanceof Ct||s.type===Xe.Type.BLOCK_FOLDED||s.type===Xe.Type.BLOCK_LITERAL:"object"==typeof s));const{doc:l,indent:p,indentStep:f,stringify:h}=e;e=Object.assign({},e,{implicitKey:!c,indent:p+f});let d=!1,m=h(s,e,(()=>u=null),(()=>d=!0));if(m=mt(m,e.indent,u),!c&&m.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");c=!0}if(e.allNullValues&&!o)return this.comment?(m=mt(m,e.indent,this.comment),t&&t()):d&&!u&&n&&n(),e.inFlow&&!c?m:"? ".concat(m);m=c?"? ".concat(m,"\n").concat(p,":"):"".concat(m,":"),this.comment&&(m=mt(m,e.indent,this.comment),t&&t());let g="",y=null;if(a instanceof gt){if(a.spaceBefore&&(g="\n"),a.commentBefore){const t=a.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));g+="\n".concat(t)}y=a.comment}else a&&"object"==typeof a&&(a=l.schema.createNode(a,!0));e.implicitKey=!1,!c&&!this.comment&&a instanceof bt&&(e.indentAtStart=m.length+1),d=!1,!i&&r>=2&&!e.inFlow&&!c&&a instanceof wt&&a.type!==Xe.Type.FLOW_SEQ&&!a.tag&&!l.anchors.getName(a)&&(e.indent=e.indent.substr(2));const b=h(a,e,(()=>y=null),(()=>d=!0));let v=" ";return g||this.comment?v="".concat(g,"\n").concat(e.indent):!c&&a instanceof Ct?("["===b[0]||"{"===b[0])&&!b.includes("\n")||(v="\n".concat(e.indent)):"\n"===b[0]&&(v=""),d&&!y&&n&&n(),mt(m+v+b,e.indent,y)}}Xe._defineProperty(At,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const St=(e,t)=>{if(e instanceof xt){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof Ct){let n=0;for(const r of e.items){const e=St(r,t);e>n&&(n=e)}return n}if(e instanceof At){const n=St(e.key,t),r=St(e.value,t);return Math.max(n,r)}return 1};class xt extends gt{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:o}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&o&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return"*".concat(s).concat(i?" ":"");const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(a," [").concat(e,"]"))}constructor(e){super(),this.source=e,this.type=Xe.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return yt(this.source,e,t);const{anchors:n,maxAliasCount:r}=t,i=n.get(this.source);if(!i||void 0===i.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new Xe.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=St(this.source,n)),i.count*i.aliasCount>r)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new Xe.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return i.res}toString(e){return xt.stringify(this,e)}}function Tt(e,t){const n=t instanceof bt?t.value:t;for(const r of e)if(r instanceof At){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}Xe._defineProperty(xt,"default",!0);class Ft extends Ct{add(e,t){e?e instanceof At||(e=new At(e.key||e,e.value)):e=new At(e);const n=Tt(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){const 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){const t=Tt(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=Tt(this.items,e),r=n&&n.value;return!t&&r instanceof bt?r.value:r}has(e){return!!Tt(this.items,e)}set(e,t){this.add(new At(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof At))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"));return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class Nt extends At{constructor(e){if(e instanceof At){let t=e.value;t instanceof wt||(t=new wt,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new bt("<<"),new wt);this.type=At.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof Ft))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[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){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const kt={defaultType:Xe.Type.BLOCK_LITERAL,lineWidth:76},_t={defaultType:Xe.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Ot(e,t,n){for(const{format:n,test:r,resolve:i}of t)if(r){const t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof bt||(e=new bt(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new bt(e)}const Lt="flow",Pt="block",It="quoted",Mt=(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 Bt(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}){if(!i||i<0)return e;const u=Math.max(1+o,1+i-t.length);if(e.length<=u)return e;const c=[],l={};let p,f,h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?c.push(0):h=i-r);let d,m=!1,g=-1,y=-1,b=-1;for(n===Pt&&(g=Mt(e,g),-1!==g&&(h=g+u));d=e[g+=1];){if(n===It&&"\\"===d){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===d)n===Pt&&(g=Mt(e,g)),h=g+u,p=void 0;else{if(" "===d&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[g+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=g)}if(g>=h)if(p)c.push(p),h=p+u,p=void 0;else if(n===It){for(;" "===f||"\t"===f;)f=d,d=e[g+=1],m=!0;const t=g>b+1?g-2:y-1;if(l[t])return e;c.push(t),l[t]=!0,h=t+u,p=void 0}else m=!0}f=d}if(m&&a&&a(),0===c.length)return e;s&&s();let v=e.slice(0,c[0]);for(let r=0;r<c.length;++r){const i=c[r],o=c[r+1]||e.length;0===i?v="\n".concat(t).concat(e.slice(0,o)):(n===It&&l[i]&&(v+="".concat(e[i],"\\")),v+="\n".concat(t).concat(e.slice(i+1,o)))}return v}const jt=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},_t.fold):_t.fold,Rt=e=>/^(%|---|\.\.\.)/m.test(e);function Vt(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=_t.doubleQuoted,o=JSON.stringify(e);if(r)return o;const s=t.indent||(Rt(e)?" ":"");let a="",u=0;for(let e=0,t=o[e];t;t=o[++e])if(" "===t&&"\\"===o[e+1]&&"n"===o[e+2]&&(a+=o.slice(u,e)+"\\ ",e+=1,u=e,t="\\"),"\\"===t)switch(o[e+1]){case"u":{a+=o.slice(u,e);const t=o.substr(e+2,4);switch(t){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"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=o.substr(e,6)}e+=5,u=e+1}break;case"n":if(n||'"'===o[e+2]||o.length<i)e+=1;else{for(a+=o.slice(u,e)+"\n\n";"\\"===o[e+2]&&"n"===o[e+3]&&'"'!==o[e+4];)a+="\n",e+=2;a+=s," "===o[e+2]&&(a+="\\"),e+=1,u=e+1}break;default:e+=1}return a=u?a+o.slice(u):o,n?a:Bt(a,s,It,jt(t))}function $t(e,t){if(t.implicitKey){if(/\n/.test(e))return Vt(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Vt(e,t);const n=t.indent||(Rt(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:Bt(r,n,Lt,jt(t))}function Ut({comment:e,type:t,value:n},r,i,o){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Vt(n,r);const s=r.indent||(r.forceBlockIndent||Rt(n)?" ":""),a=s?"2":"1",u=t!==Xe.Type.BLOCK_FOLDED&&(t===Xe.Type.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 t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,_t.fold.lineWidth,s.length));let c=u?"|":">";if(!n)return c+"\n";let l="",p="";if(n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?c+="-":n!==e&&t===e.length-1||(c+="+",o&&o()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(c+=a);const t=e.match(/ +$/);return t?(l=e.slice(0,-t[0].length),t[0]):(l=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(s))),l&&(l=l.replace(/\n+/g,"$&".concat(s))),e&&(c+=" #"+e.replace(/ ?[\r\n]+/g," "),i&&i()),!n)return"".concat(c).concat(a,"\n").concat(s).concat(p);if(u)return n=n.replace(/\n+/g,"$&".concat(s)),"".concat(c,"\n").concat(s).concat(l).concat(n).concat(p);n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(s));const f=Bt("".concat(l).concat(n).concat(p),s,Pt,_t.fold);return"".concat(c,"\n").concat(s).concat(f)}function Wt(e,t){let n,r,i;switch(t.type){case Xe.Type.FLOW_MAP:n="}",r="flow map";break;case Xe.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new Xe.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==Xe.Type.COMMENT){i=n;break}}if(i&&i.char!==n){const o="Expected ".concat(r," to end with ").concat(n);let s;"number"==typeof i.offset?(s=new Xe.YAMLSemanticError(t,o),s.offset=i.offset+1):(s=new Xe.YAMLSemanticError(i,o),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),e.push(s)}}function qt(e,t){const n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){const n="Comments must be separated from other tokens by white space characters";e.push(new Xe.YAMLSemanticError(t,n))}}function Kt(e,t){const n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new Xe.YAMLSemanticError(e,'The "'.concat(r,'" key is too long'))}function Ht(e,t){for(const{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}function Yt(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function zt(e,t,n){const{tags:r}=e.schema,i=[];for(const o of r)if(o.tag===n){if(!o.test){const n=o.resolve(e,t);return n instanceof Ct?n:new bt(n)}i.push(o)}const o=Yt(e,t);return"string"==typeof o&&i.length>0?Ot(o,i,r.scalarFallback):null}function Jt(e,t){if(!t)return null;t.error&&e.errors.push(t.error);const{comments:n,hasAnchor:r,hasTag:i}=function(e,t){const n={before:[],after:[]};let r=!1,i=!1;const o=(e=>{if(!e)return!1;const{type:t}=e;return t===Xe.Type.MAP_KEY||t===Xe.Type.MAP_VALUE||t===Xe.Type.SEQ_ITEM})(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:s,end:a}of o)switch(t.context.src[s]){case Xe.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(s)){const n="Comments must be separated from other tokens by white space characters";e.push(new Xe.YAMLSemanticError(t,n))}const{header:r,valueRange:i}=t;(i&&(s>i.start||r&&s>r.start)?n.after:n.before).push(t.context.src.slice(s+1,a));break}case Xe.Char.ANCHOR:if(r){const n="A node can have at most one anchor";e.push(new Xe.YAMLSemanticError(t,n))}r=!0;break;case Xe.Char.TAG:if(i){const n="A node can have at most one tag";e.push(new Xe.YAMLSemanticError(t,n))}i=!0}return{comments:n,hasAnchor:r,hasTag:i}}(e.errors,t);if(r){const{anchors:n}=e,r=t.anchor,i=n.getNode(r);i&&(n.map[n.newName(r)]=i),n.map[r]=t}if(t.type===Xe.Type.ALIAS&&(r||i)){const n="An alias node must not specify any properties";e.errors.push(new Xe.YAMLSemanticError(t,n))}const o=function(e,t){const{anchors:n,errors:r,schema:i}=e;if(t.type===Xe.Type.ALIAS){const e=t.rawValue,i=n.getNode(e);if(!i){const n="Aliased anchor not found: ".concat(e);return r.push(new Xe.YAMLReferenceError(t,n)),null}const o=new xt(i);return n._cstAliases.push(o),o}const o=function(e,t){const{tag:n,type:r}=t;let i=!1;if(n){const{handle:r,suffix:o,verbatim:s}=n;if(s){if("!"!==s&&"!!"!==s)return s;const n="Verbatim tags aren't resolved, so ".concat(s," is invalid.");e.errors.push(new Xe.YAMLSemanticError(t,n))}else if("!"!==r||o)try{return function(e,t){const{handle:n,suffix:r}=t.tag;let i=e.tagPrefixes.find((e=>e.handle===n));if(!i){const r=e.getDefaults().tagPrefixes;if(r&&(i=r.find((e=>e.handle===n))),!i)throw new Xe.YAMLSemanticError(t,"The ".concat(n," tag handle is non-default and was not declared."))}if(!r)throw new Xe.YAMLSemanticError(t,"The ".concat(n," tag has no suffix."));if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===r[0])return e.warnings.push(new Xe.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?"tag:".concat(e[1],".yaml.org,2002:").concat(e[2]):"tag:".concat(r)}}return i.prefix+decodeURIComponent(r)}(e,t)}catch(t){e.errors.push(t)}else i=!0}switch(r){case Xe.Type.BLOCK_FOLDED:case Xe.Type.BLOCK_LITERAL:case Xe.Type.QUOTE_DOUBLE:case Xe.Type.QUOTE_SINGLE:return Xe.defaultTags.STR;case Xe.Type.FLOW_MAP:case Xe.Type.MAP:return Xe.defaultTags.MAP;case Xe.Type.FLOW_SEQ:case Xe.Type.SEQ:return Xe.defaultTags.SEQ;case Xe.Type.PLAIN:return i?Xe.defaultTags.STR:null;default:return null}}(e,t);if(o)return function(e,t,n){try{const r=zt(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{const r=function({type:e}){switch(e){case Xe.Type.FLOW_MAP:case Xe.Type.MAP:return Xe.defaultTags.MAP;case Xe.Type.FLOW_SEQ:case Xe.Type.SEQ:return Xe.defaultTags.SEQ;default:return Xe.defaultTags.STR}}(t);if(!r)throw new Error("The tag ".concat(n," is unavailable"));const i="The tag ".concat(n," is unavailable, falling back to ").concat(r);e.warnings.push(new Xe.YAMLWarning(t,i));const o=zt(e,t,r);return o.tag=n,o}catch(n){const r=new Xe.YAMLReferenceError(t,n.message);return r.stack=n.stack,e.errors.push(r),null}}(e,t,o);if(t.type!==Xe.Type.PLAIN){const e="Failed to resolve ".concat(t.type," node here");return r.push(new Xe.YAMLSyntaxError(t,e)),null}try{return Ot(Yt(e,t),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(o){o.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(o.cstNode=t),e.options.keepNodeTypes&&(o.type=t.type);const r=n.before.join("\n");r&&(o.commentBefore=o.commentBefore?"".concat(o.commentBefore,"\n").concat(r):r);const i=n.after.join("\n");i&&(o.comment=o.comment?"".concat(o.comment,"\n").concat(i):i)}return t.resolved=o}function Gt(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:r})=>{if(0===r.length)return!1;const{start:i}=r[0];if(t&&i>t.valueRange.start)return!1;if(n[i]!==Xe.Char.COMMENT)return!1;for(let t=e;t<i;++t)if("\n"===n[t])return!1;return!0})(e))return;const n=e.getPropValue(0,Xe.Char.COMMENT,!0);let r=!1;const i=t.value.commentBefore;if(i&&i.startsWith(n))t.value.commentBefore=i.substr(n.length+1),r=!0;else{const i=t.value.comment;!e.node&&i&&i.startsWith(n)&&(t.value.comment=i.substr(n.length+1),r=!0)}r&&(t.comment=n)}var Qt={Alias:xt,Collection:Ct,Merge:Nt,Node:gt,Pair:At,Scalar:bt,YAMLMap:Ft,YAMLSeq:wt,addComment:mt,binaryOptions:kt,boolOptions:{trueStr:"true",falseStr:"false"},findPair:Tt,intOptions:{asBigInt:!1},isEmptyPath:Dt,nullOptions:{nullStr:"null"},resolveMap:function(e,t){if(t.type!==Xe.Type.MAP&&t.type!==Xe.Type.FLOW_MAP){const n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new Xe.YAMLSyntaxError(t,n)),null}const{comments:n,items:r}=t.type===Xe.Type.FLOW_MAP?function(e,t){const n=[],r=[];let i,o=!1,s="{";for(let a=0;a<t.items.length;++a){const u=t.items[a];if("string"==typeof u.char){const{char:n,offset:c}=u;if("?"===n&&void 0===i&&!o){o=!0,s=":";continue}if(":"===n){if(void 0===i&&(i=null),":"===s){s=",";continue}}else if(o&&(void 0===i&&","!==n&&(i=null),o=!1),void 0!==i&&(r.push(new At(i)),i=void 0,","===n)){s=":";continue}if("}"===n){if(a===t.items.length-1)continue}else if(n===s){s=":";continue}const l="Flow map contains an unexpected ".concat(n),p=new Xe.YAMLSyntaxError(t,l);p.offset=c,e.errors.push(p)}else u.type===Xe.Type.BLANK_LINE?n.push({afterKey:!!i,before:r.length}):u.type===Xe.Type.COMMENT?(qt(e.errors,u),n.push({afterKey:!!i,before:r.length,comment:u.comment})):void 0===i?(","===s&&e.errors.push(new Xe.YAMLSemanticError(u,"Separator , missing in flow map")),i=Jt(e,u)):(","!==s&&e.errors.push(new Xe.YAMLSemanticError(u,"Indicator : missing in flow map entry")),r.push(new At(i,Jt(e,u))),i=void 0,o=!1)}return Wt(e.errors,t),void 0!==i&&r.push(new At(i)),{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];let i,o=null;for(let s=0;s<t.items.length;++s){const a=t.items[s];switch(a.type){case Xe.Type.BLANK_LINE:n.push({afterKey:!!i,before:r.length});break;case Xe.Type.COMMENT:n.push({afterKey:!!i,before:r.length,comment:a.comment});break;case Xe.Type.MAP_KEY:void 0!==i&&r.push(new At(i)),a.error&&e.errors.push(a.error),i=Jt(e,a.node),o=null;break;case Xe.Type.MAP_VALUE:{if(void 0===i&&(i=null),a.error&&e.errors.push(a.error),!a.context.atLineStart&&a.node&&a.node.type===Xe.Type.MAP&&!a.node.context.atLineStart){const t="Nested mappings are not allowed in compact mappings";e.errors.push(new Xe.YAMLSemanticError(a.node,t))}let n=a.node;if(!n&&a.props.length>0){n=new Xe.PlainValue(Xe.Type.PLAIN,[]),n.context={parent:a,src:a.context.src};const e=a.range.start+1;if(n.range={start:e,end:e},n.valueRange={start:e,end:e},"number"==typeof a.range.origStart){const e=a.range.origStart+1;n.range.origStart=n.range.origEnd=e,n.valueRange.origStart=n.valueRange.origEnd=e}}const s=new At(i,Jt(e,n));Gt(a,s),r.push(s),i&&"number"==typeof o&&a.range.start>o+1024&&e.errors.push(Kt(t,i)),i=void 0,o=null}break;default:void 0!==i&&r.push(new At(i)),i=Jt(e,a),o=a.range.start,a.error&&e.errors.push(a.error);e:for(let n=s+1;;++n){const r=t.items[n];switch(r&&r.type){case Xe.Type.BLANK_LINE:case Xe.Type.COMMENT:continue e;case Xe.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new Xe.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new Xe.YAMLSemanticError(a,t))}}}return void 0!==i&&r.push(new At(i)),{comments:n,items:r}}(e,t),i=new Ft;i.items=r,Ht(i,n);let o=!1;for(let n=0;n<r.length;++n){const{key:i}=r[n];if(i instanceof Ct&&(o=!0),e.schema.merge&&i&&"<<"===i.value){r[n]=new Nt(r[n]);const i=r[n].value.items;let o=null;i.some((e=>{if(e instanceof xt){const{type:t}=e.source;return t!==Xe.Type.MAP&&t!==Xe.Type.FLOW_MAP&&(o="Merge nodes aliases can only point to maps")}return o="Merge nodes can only have Alias nodes as values"})),o&&e.errors.push(new Xe.YAMLSemanticError(t,o))}else for(let o=n+1;o<r.length;++o){const{key:n}=r[o];if(i===n||i&&n&&Object.prototype.hasOwnProperty.call(i,"value")&&i.value===n.value){const n='Map keys must be unique; "'.concat(i,'" is repeated');e.errors.push(new Xe.YAMLSemanticError(t,n));break}}}if(o&&!e.options.mapAsMap){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new Xe.YAMLWarning(t,n))}return t.resolved=i,i},resolveNode:Jt,resolveSeq:function(e,t){if(t.type!==Xe.Type.SEQ&&t.type!==Xe.Type.FLOW_SEQ){const n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new Xe.YAMLSyntaxError(t,n)),null}const{comments:n,items:r}=t.type===Xe.Type.FLOW_SEQ?function(e,t){const n=[],r=[];let i,o=!1,s=null,a="[",u=null;for(let c=0;c<t.items.length;++c){const l=t.items[c];if("string"==typeof l.char){const{char:n,offset:p}=l;if(":"===n||!o&&void 0===i||(o&&void 0===i&&(i=a?r.pop():null),r.push(new At(i)),o=!1,i=void 0,s=null),n===a)a=null;else if(a||"?"!==n){if("["!==a&&":"===n&&void 0===i){if(","===a){if(i=r.pop(),i instanceof At){const n="Chaining flow sequence pairs is invalid",r=new Xe.YAMLSemanticError(t,n);r.offset=p,e.errors.push(r)}if(!o&&"number"==typeof s){const n=l.range?l.range.start:l.offset;n>s+1024&&e.errors.push(Kt(t,i));const{src:r}=u.context;for(let t=s;t<n;++t)if("\n"===r[t]){const t="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new Xe.YAMLSemanticError(u,t));break}}}else i=null;s=null,o=!1,a=null}else if("["===a||"]"!==n||c<t.items.length-1){const r="Flow sequence contains an unexpected ".concat(n),i=new Xe.YAMLSyntaxError(t,r);i.offset=p,e.errors.push(i)}}else o=!0}else if(l.type===Xe.Type.BLANK_LINE)n.push({before:r.length});else if(l.type===Xe.Type.COMMENT)qt(e.errors,l),n.push({comment:l.comment,before:r.length});else{if(a){const t="Expected a ".concat(a," in flow sequence");e.errors.push(new Xe.YAMLSemanticError(l,t))}const t=Jt(e,l);void 0===i?(r.push(t),u=l):(r.push(new At(i,t)),i=void 0),s=l.range.start,a=","}}return Wt(e.errors,t),void 0!==i&&r.push(new At(i)),{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];for(let i=0;i<t.items.length;++i){const o=t.items[i];switch(o.type){case Xe.Type.BLANK_LINE:n.push({before:r.length});break;case Xe.Type.COMMENT:n.push({comment:o.comment,before:r.length});break;case Xe.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),r.push(Jt(e,o.node)),o.hasProps){const t="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new Xe.YAMLSemanticError(o,t))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new Xe.YAMLSyntaxError(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=new wt;if(i.items=r,Ht(i,n),!e.options.mapAsMap&&r.some((e=>e instanceof At&&e.key instanceof Ct))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new Xe.YAMLWarning(t,n))}return t.resolved=i,i},resolveString:Yt,strOptions:_t,stringifyNumber:function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},stringifyString:function(e,t,n,r){const{defaultType:i}=_t,{implicitKey:o,inFlow:s}=t;let{type:a,value:u}=e;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));const c=i=>{switch(i){case Xe.Type.BLOCK_FOLDED:case Xe.Type.BLOCK_LITERAL:return Ut(e,t,n,r);case Xe.Type.QUOTE_DOUBLE:return Vt(u,t);case Xe.Type.QUOTE_SINGLE:return $t(u,t);case Xe.Type.PLAIN:return function(e,t,n,r){const{comment:i,type:o,value:s}=e,{actualString:a,implicitKey:u,indent:c,inFlow:l}=t;if(u&&/[\n[\]{},]/.test(s)||l&&/[[\]{},]/.test(s))return Vt(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||l||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?$t(s,t):Vt(s,t):Ut(e,t,n,r);if(!u&&!l&&o!==Xe.Type.PLAIN&&-1!==s.indexOf("\n"))return Ut(e,t,n,r);if(""===c&&Rt(s))return t.forceBlockIndent=!0,Ut(e,t,n,r);const p=s.replace(/\n+/g,"$&\n".concat(c));if(a){const{tags:e}=t.doc.schema;if("string"!=typeof Ot(p,e,e.scalarFallback).value)return Vt(s,t)}const f=u?p:Bt(p,c,Lt,jt(t));return!i||l||-1===f.indexOf("\n")&&-1===i.indexOf("\n")?f:(n&&n(),function(e,t,n){if(!n)return e;const r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}(f,c,i))}(e,t,n,r);default:return null}};a!==Xe.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?a=Xe.Type.QUOTE_DOUBLE:!o&&!s||a!==Xe.Type.BLOCK_FOLDED&&a!==Xe.Type.BLOCK_LITERAL||(a=Xe.Type.QUOTE_DOUBLE);let l=c(a);if(null===l&&(l=c(i),null===l))throw new Error("Unsupported default string type ".concat(i));return l},toJSON:yt},Xt=void 0!==Xt?Xt:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Zt=[],en=[],tn="undefined"!=typeof Uint8Array?Uint8Array:Array,nn=!1;function rn(){nn=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Zt[t]=e[t],en[e.charCodeAt(t)]=t;en["-".charCodeAt(0)]=62,en["_".charCodeAt(0)]=63}function on(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(Zt[(i=r)>>18&63]+Zt[i>>12&63]+Zt[i>>6&63]+Zt[63&i]);return o.join("")}function sn(e){var t;nn||rn();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(on(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],i+=Zt[t>>2],i+=Zt[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Zt[t>>10],i+=Zt[t>>4&63],i+=Zt[t<<2&63],i+="="),o.push(i),o.join("")}function an(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)}function un(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}var cn={}.toString,ln=Array.isArray||function(e){return"[object Array]"==cn.call(e)};function pn(){return hn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fn(e,t){if(pn()<t)throw new RangeError("Invalid typed array length");return hn.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=hn.prototype:(null===e&&(e=new hn(t)),e.length=t),e}function hn(e,t,n){if(!(hn.TYPED_ARRAY_SUPPORT||this instanceof hn))return new hn(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return gn(this,e)}return dn(this,e,t,n)}function dn(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),hn.TYPED_ARRAY_SUPPORT?(e=t).__proto__=hn.prototype:e=yn(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!hn.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Dn(t,n),i=(e=fn(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(vn(t)){var n=0|bn(t.length);return 0===(e=fn(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?fn(e,0):yn(e,t);if("Buffer"===t.type&&ln(t.data))return yn(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function mn(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function gn(e,t){if(mn(t),e=fn(e,t<0?0:0|bn(t)),!hn.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function yn(e,t){var n=t.length<0?0:0|bn(t.length);e=fn(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function bn(e){if(e>=pn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+pn().toString(16)+" bytes");return 0|e}function vn(e){return!(null==e||!e._isBuffer)}function Dn(e,t){if(vn(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Yn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return zn(e).length;default:if(r)return Yn(e).length;t=(""+t).toLowerCase(),r=!0}}function Cn(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Mn(this,t,n);case"utf8":case"utf-8":return On(this,t,n);case"ascii":return Pn(this,t,n);case"latin1":case"binary":return In(this,t,n);case"base64":return _n(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bn(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function En(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function wn(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=hn.from(t,r)),vn(t))return 0===t.length?-1:An(e,t,n,r,i);if("number"==typeof t)return t&=255,hn.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):An(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function An(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){p=!1;break}if(p)return o}return-1}function Sn(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function xn(e,t,n,r){return Jn(Yn(t,e.length-n),e,n,r)}function Tn(e,t,n,r){return Jn(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Fn(e,t,n,r){return Tn(e,t,n,r)}function Nn(e,t,n,r){return Jn(zn(t),e,n,r)}function kn(e,t,n,r){return Jn(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _n(e,t,n){return 0===t&&n===e.length?sn(e):sn(e.slice(t,n))}function On(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,c=e[i],l=null,p=c>239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=Ln)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ln));return n}(r)}hn.TYPED_ARRAY_SUPPORT=void 0===Xt.TYPED_ARRAY_SUPPORT||Xt.TYPED_ARRAY_SUPPORT,hn.poolSize=8192,hn._augment=function(e){return e.__proto__=hn.prototype,e},hn.from=function(e,t,n){return dn(null,e,t,n)},hn.TYPED_ARRAY_SUPPORT&&(hn.prototype.__proto__=Uint8Array.prototype,hn.__proto__=Uint8Array),hn.alloc=function(e,t,n){return function(e,t,n,r){return mn(t),t<=0?fn(e,t):void 0!==n?"string"==typeof r?fn(e,t).fill(n,r):fn(e,t).fill(n):fn(e,t)}(null,e,t,n)},hn.allocUnsafe=function(e){return gn(null,e)},hn.allocUnsafeSlow=function(e){return gn(null,e)},hn.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Gn(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Gn(e.slice(0,0))}(e))},hn.compare=function(e,t){if(!vn(e)||!vn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},hn.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},hn.concat=function(e,t){if(!ln(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return hn.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=hn.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!vn(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},hn.byteLength=Dn,hn.prototype._isBuffer=!0,hn.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)En(this,t,t+1);return this},hn.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)En(this,t,t+3),En(this,t+1,t+2);return this},hn.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)En(this,t,t+7),En(this,t+1,t+6),En(this,t+2,t+5),En(this,t+3,t+4);return this},hn.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?On(this,0,e):Cn.apply(this,arguments)},hn.prototype.equals=function(e){if(!vn(e))throw new TypeError("Argument must be a Buffer");return this===e||0===hn.compare(this,e)},hn.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},hn.prototype.compare=function(e,t,n,r,i){if(!vn(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),l=0;l<a;++l)if(u[l]!==c[l]){o=u[l],s=c[l];break}return o<s?-1:s<o?1:0},hn.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},hn.prototype.indexOf=function(e,t,n){return wn(this,e,t,n,!0)},hn.prototype.lastIndexOf=function(e,t,n){return wn(this,e,t,n,!1)},hn.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Sn(this,e,t,n);case"utf8":case"utf-8":return xn(this,e,t,n);case"ascii":return Tn(this,e,t,n);case"latin1":case"binary":return Fn(this,e,t,n);case"base64":return Nn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},hn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ln=4096;function Pn(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function In(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function Mn(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Hn(e[o]);return i}function Bn(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function jn(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Rn(e,t,n,r,i,o){if(!vn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Vn(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function $n(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Un(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Wn(e,t,n,r,i){return i||Un(e,0,n,4),un(e,t,n,r,23,4),n+4}function qn(e,t,n,r,i){return i||Un(e,0,n,8),un(e,t,n,r,52,8),n+8}hn.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),hn.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=hn.prototype;else{var i=t-e;n=new hn(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},hn.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||jn(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},hn.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||jn(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},hn.prototype.readUInt8=function(e,t){return t||jn(e,1,this.length),this[e]},hn.prototype.readUInt16LE=function(e,t){return t||jn(e,2,this.length),this[e]|this[e+1]<<8},hn.prototype.readUInt16BE=function(e,t){return t||jn(e,2,this.length),this[e]<<8|this[e+1]},hn.prototype.readUInt32LE=function(e,t){return t||jn(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},hn.prototype.readUInt32BE=function(e,t){return t||jn(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},hn.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||jn(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},hn.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||jn(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},hn.prototype.readInt8=function(e,t){return t||jn(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},hn.prototype.readInt16LE=function(e,t){t||jn(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},hn.prototype.readInt16BE=function(e,t){t||jn(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},hn.prototype.readInt32LE=function(e,t){return t||jn(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},hn.prototype.readInt32BE=function(e,t){return t||jn(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},hn.prototype.readFloatLE=function(e,t){return t||jn(e,4,this.length),an(this,e,!0,23,4)},hn.prototype.readFloatBE=function(e,t){return t||jn(e,4,this.length),an(this,e,!1,23,4)},hn.prototype.readDoubleLE=function(e,t){return t||jn(e,8,this.length),an(this,e,!0,52,8)},hn.prototype.readDoubleBE=function(e,t){return t||jn(e,8,this.length),an(this,e,!1,52,8)},hn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Rn(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},hn.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Rn(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},hn.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,1,255,0),hn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},hn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,2,65535,0),hn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Vn(this,e,t,!0),t+2},hn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,2,65535,0),hn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Vn(this,e,t,!1),t+2},hn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,4,4294967295,0),hn.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$n(this,e,t,!0),t+4},hn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,4,4294967295,0),hn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$n(this,e,t,!1),t+4},hn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Rn(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},hn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Rn(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},hn.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,1,127,-128),hn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},hn.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,2,32767,-32768),hn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Vn(this,e,t,!0),t+2},hn.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,2,32767,-32768),hn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Vn(this,e,t,!1),t+2},hn.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,4,2147483647,-2147483648),hn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$n(this,e,t,!0),t+4},hn.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Rn(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),hn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$n(this,e,t,!1),t+4},hn.prototype.writeFloatLE=function(e,t,n){return Wn(this,e,t,!0,n)},hn.prototype.writeFloatBE=function(e,t,n){return Wn(this,e,t,!1,n)},hn.prototype.writeDoubleLE=function(e,t,n){return qn(this,e,t,!0,n)},hn.prototype.writeDoubleBE=function(e,t,n){return qn(this,e,t,!1,n)},hn.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!hn.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},hn.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!hn.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=vn(e)?e:Yn(new hn(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var Kn=/[^+\/0-9A-Za-z-_]/g;function Hn(e){return e<16?"0"+e.toString(16):e.toString(16)}function Yn(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function zn(e){return function(e){var t,n,r,i,o,s;nn||rn();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new tn(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)i=en[e.charCodeAt(t)]<<18|en[e.charCodeAt(t+1)]<<12|en[e.charCodeAt(t+2)]<<6|en[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=en[e.charCodeAt(t)]<<2|en[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=en[e.charCodeAt(t)]<<10|en[e.charCodeAt(t+1)]<<4|en[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Kn,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Jn(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Gn(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Qn(){throw new Error("setTimeout has not been defined")}function Xn(){throw new Error("clearTimeout has not been defined")}var Zn=Qn,er=Xn;function tr(e){if(Zn===setTimeout)return setTimeout(e,0);if((Zn===Qn||!Zn)&&setTimeout)return Zn=setTimeout,setTimeout(e,0);try{return Zn(e,0)}catch(t){try{return Zn.call(null,e,0)}catch(t){return Zn.call(this,e,0)}}}"function"==typeof Xt.setTimeout&&(Zn=setTimeout),"function"==typeof Xt.clearTimeout&&(er=clearTimeout);var nr,rr=[],ir=!1,or=-1;function sr(){ir&&nr&&(ir=!1,nr.length?rr=nr.concat(rr):or=-1,rr.length&&ar())}function ar(){if(!ir){var e=tr(sr);ir=!0;for(var t=rr.length;t;){for(nr=rr,rr=[];++or<t;)nr&&nr[or].run();or=-1,t=rr.length}nr=null,ir=!1,function(e){if(er===clearTimeout)return clearTimeout(e);if((er===Xn||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(e);try{er(e)}catch(t){try{return er.call(null,e)}catch(t){return er.call(this,e)}}}(e)}}function ur(e,t){this.fun=e,this.array=t}function cr(){}ur.prototype.run=function(){this.fun.apply(null,this.array)};var lr=cr,pr=cr,fr=cr,hr=cr,dr=cr,mr=cr,gr=cr,yr=Xt.performance||{},br=yr.now||yr.mozNow||yr.msNow||yr.oNow||yr.webkitNow||function(){return(new Date).getTime()},vr=new Date,Dr={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];rr.push(new ur(e,t)),1!==rr.length||ir||tr(ar)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:lr,addListener:pr,once:fr,off:hr,removeListener:dr,removeAllListeners:mr,emit:gr,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*br.call(yr),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-vr)/1e3}};const Cr={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=Qt.resolveString(e,t);return hn.from(n,"base64")},options:Qt.binaryOptions,stringify:({comment:e,type:t,value:n},r,i,o)=>{let s;if(s=n instanceof hn?n.toString("base64"):hn.from(n.buffer).toString("base64"),t||(t=Qt.binaryOptions.defaultType),t===Xe.Type.QUOTE_DOUBLE)n=s;else{const{lineWidth:e}=Qt.binaryOptions,r=Math.ceil(s.length/e),i=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)i[t]=s.substr(n,e);n=i.join(t===Xe.Type.BLOCK_LITERAL?"\n":" ")}return Qt.stringifyString({comment:e,type:t,value:n},r,i,o)}};function Er(e,t){const n=Qt.resolveSeq(e,t);for(let e=0;e<n.items.length;++e){let r=n.items[e];if(!(r instanceof Qt.Pair)){if(r instanceof Qt.YAMLMap){if(r.items.length>1){const e="Each pair must have its own sequence indicator";throw new Xe.YAMLSemanticError(t,e)}const e=r.items[0]||new Qt.Pair;r.commentBefore&&(e.commentBefore=e.commentBefore?"".concat(r.commentBefore,"\n").concat(e.commentBefore):r.commentBefore),r.comment&&(e.comment=e.comment?"".concat(r.comment,"\n").concat(e.comment):r.comment),r=e}n.items[e]=r instanceof Qt.Pair?r:new Qt.Pair(r)}}return n}function wr(e,t,n){const r=new Qt.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,o;if(Array.isArray(i)){if(2!==i.length)throw new TypeError("Expected [key, value] tuple: ".concat(i));t=i[0],o=i[1]}else if(i&&i instanceof Object){const e=Object.keys(i);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: ".concat(i));t=e[0],o=i[t]}else t=i;const s=e.createPair(t,o,n);r.items.push(s)}return r}const Ar={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Er,createNode:wr};class Sr extends Qt.YAMLSeq{constructor(){super(),Xe._defineProperty(this,"add",Qt.YAMLMap.prototype.add.bind(this)),Xe._defineProperty(this,"delete",Qt.YAMLMap.prototype.delete.bind(this)),Xe._defineProperty(this,"get",Qt.YAMLMap.prototype.get.bind(this)),Xe._defineProperty(this,"has",Qt.YAMLMap.prototype.has.bind(this)),Xe._defineProperty(this,"set",Qt.YAMLMap.prototype.set.bind(this)),this.tag=Sr.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,i;if(e instanceof Qt.Pair?(r=Qt.toJSON(e.key,"",t),i=Qt.toJSON(e.value,r,t)):r=Qt.toJSON(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}}Xe._defineProperty(Sr,"tag","tag:yaml.org,2002:omap");const xr={identify:e=>e instanceof Map,nodeClass:Sr,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=Er(e,t),r=[];for(const{key:e}of n.items)if(e instanceof Qt.Scalar){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new Xe.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new Sr,n)},createNode:function(e,t,n){const r=wr(e,t,n),i=new Sr;return i.items=r.items,i}};class Tr extends Qt.YAMLMap{constructor(){super(),this.tag=Tr.tag}add(e){const t=e instanceof Qt.Pair?e:new Qt.Pair(e);Qt.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=Qt.findPair(this.items,e);return!t&&n instanceof Qt.Pair?n.key instanceof Qt.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));const n=Qt.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Qt.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")}}Xe._defineProperty(Tr,"tag","tag:yaml.org,2002:set");const Fr={identify:e=>e instanceof Set,nodeClass:Tr,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=Qt.resolveMap(e,t);if(!n.hasAllNullValues())throw new Xe.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new Tr,n)},createNode:function(e,t,n){const r=new Tr;for(const i of t)r.items.push(e.createPair(i,null,n));return r}},Nr=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},kr=({value:e})=>{if(isNaN(e)||!isFinite(e))return Qt.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},_r={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)=>Nr(t,n.replace(/_/g,"")),stringify:kr},Or={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)=>Nr(t,n.replace(/_/g,"")),stringify:kr},Lr={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,o,s,a,u)=>{a&&(a=(a+"00").substr(1,3));let c=Date.UTC(t,n-1,r,i||0,o||0,s||0,a||0);if(u&&"Z"!==u){let e=Nr(u[0],u.slice(1));Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Pr(e){const t=void 0!==Dr&&Dr.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function Ir(e,t){if(Pr(!1)){const n=void 0!==Dr&&Dr.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}const Mr={};var Br={binary:Cr,floatTime:Or,intTime:_r,omap:xr,pairs:Ar,set:Fr,timestamp:Lr,warn:Ir,warnFileDeprecation:function(e){if(Pr(!0)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Ir("The endpoint 'yaml/".concat(t,"' will be removed in a future release."),"DeprecationWarning")}},warnOptionDeprecation:function(e,t){if(!Mr[e]&&Pr(!0)){Mr[e]=!0;let n="The option '".concat(e,"' will be removed in a future release");n+=t?", use '".concat(t,"' instead."):".",Ir(n,"DeprecationWarning")}}};const jr={createNode:function(e,t,n){const r=new Qt.YAMLMap(e);if(t instanceof Map)for(const[i,o]of t)r.items.push(e.createPair(i,o,n));else if(t&&"object"==typeof t)for(const i of Object.keys(t))r.items.push(e.createPair(i,t[i],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:Qt.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:Qt.resolveMap},Rr={createNode:function(e,t,n){const r=new Qt.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const i of t){const t=e.createNode(i,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:Qt.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:Qt.resolveSeq},Vr={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Qt.resolveString,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),Qt.stringifyString(e,t,n,r)),options:Qt.strOptions},$r=[jr,Rr,Vr],Ur=e=>"bigint"==typeof e||Number.isInteger(e),Wr=(e,t,n)=>Qt.intOptions.asBigInt?BigInt(e):parseInt(t,n);function qr(e,t,n){const{value:r}=e;return Ur(r)&&r>=0?n+r.toString(t):Qt.stringifyNumber(e)}const Kr={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new Qt.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Qt.nullOptions,stringify:()=>Qt.nullOptions.nullStr},Hr={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:Qt.boolOptions,stringify:({value:e})=>e?Qt.boolOptions.trueStr:Qt.boolOptions.falseStr},Yr={identify:e=>Ur(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>Wr(e,t,8),options:Qt.intOptions,stringify:e=>qr(e,8,"0o")},zr={identify:Ur,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>Wr(e,e,10),options:Qt.intOptions,stringify:Qt.stringifyNumber},Jr={identify:e=>Ur(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>Wr(e,t,16),options:Qt.intOptions,stringify:e=>qr(e,16,"0x")},Gr={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:Qt.stringifyNumber},Qr={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:({value:e})=>Number(e).toExponential()},Xr={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,i=new Qt.Scalar(parseFloat(e));return r&&"0"===r[r.length-1]&&(i.minFractionDigits=r.length),i},stringify:Qt.stringifyNumber},Zr=$r.concat([Kr,Hr,Yr,zr,Jr,Gr,Qr,Xr]),ei=e=>"bigint"==typeof e||Number.isInteger(e),ti=({value:e})=>JSON.stringify(e),ni=[jr,Rr,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Qt.resolveString,stringify:ti},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new Qt.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ti},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:ti},{identify:ei,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>Qt.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>ei(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ti}];ni.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};const ri=({value:e})=>e?Qt.boolOptions.trueStr:Qt.boolOptions.falseStr,ii=e=>"bigint"==typeof e||Number.isInteger(e);function oi(e,t,n){let r=t.replace(/_/g,"");if(Qt.intOptions.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r)}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const i=parseInt(r,n);return"-"===e?-1*i:i}function si(e,t,n){const{value:r}=e;if(ii(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Qt.stringifyNumber(e)}const ai=$r.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new Qt.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Qt.nullOptions,stringify:()=>Qt.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:Qt.boolOptions,stringify:ri},{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:Qt.boolOptions,stringify:ri},{identify:ii,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>oi(t,n,2),stringify:e=>si(e,2,"0b")},{identify:ii,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>oi(t,n,8),stringify:e=>si(e,8,"0")},{identify:ii,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>oi(t,n,10),stringify:Qt.stringifyNumber},{identify:ii,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>oi(t,n,16),stringify:e=>si(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:Qt.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new Qt.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:Qt.stringifyNumber}],Br.binary,Br.omap,Br.pairs,Br.set,Br.intTime,Br.floatTime,Br.timestamp),ui={core:Zr,failsafe:$r,json:ni,yaml11:ai},ci={binary:Br.binary,bool:Hr,float:Xr,floatExp:Qr,floatNaN:Gr,floatTime:Br.floatTime,int:zr,intHex:Jr,intOct:Yr,intTime:Br.intTime,map:jr,null:Kr,omap:Br.omap,pairs:Br.pairs,seq:Rr,set:Br.set,timestamp:Br.timestamp};const li=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class pi{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:i}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?li:r||null,!e&&i&&Br.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){const 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(const e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;e<i.length;++e){const n=i[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error('Unknown custom tag "'.concat(n,'"; use one of ').concat(e))}i[e]=r}}return i}(ui,ci,e||i,n)}createNode(e,t,n,r){const i={defaultPrefix:pi.defaultPrefix,schema:this,wrapScalars:t};return function(e,t,n){if(e instanceof Qt.Node)return e;const{defaultPrefix:r,onTagObj:i,prevObjects:o,schema:s,wrapScalars:a}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let u=function(e,t,n){if(t){const 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))}(e,t,s.tags);if(!u){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return a?new Qt.Scalar(e):e;u=e instanceof Map?jr:e[Symbol.iterator]?Rr:jr}i&&(i(u),delete n.onTagObj);const c={value:void 0,node:void 0};if(e&&"object"==typeof e&&o){const t=o.get(e);if(t){const e=new Qt.Alias(t);return n.aliasNodes.push(e),e}c.value=e,o.set(e,c)}return c.node=u.createNode?u.createNode(n.schema,e,n):a?new Qt.Scalar(e):e,t&&c.node instanceof Qt.Node&&(c.node.tag=t),c.node}(e,n,r?Object.assign(r,i):i)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new Qt.Pair(r,i)}}Xe._defineProperty(pi,"defaultPrefix",Xe.defaultTagPrefix),Xe._defineProperty(pi,"defaultTags",Xe.defaultTags);var fi={Schema:pi};const hi={get binary(){return Qt.binaryOptions},set binary(e){Object.assign(Qt.binaryOptions,e)},get bool(){return Qt.boolOptions},set bool(e){Object.assign(Qt.boolOptions,e)},get int(){return Qt.intOptions},set int(e){Object.assign(Qt.intOptions,e)},get null(){return Qt.nullOptions},set null(e){Object.assign(Qt.nullOptions,e)},get str(){return Qt.strOptions},set str(e){Object.assign(Qt.strOptions,e)}},di={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Xe.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Xe.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Xe.defaultTagPrefix}]}};function mi(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const 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){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:"!<".concat(t,">");const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function gi(e,t,n,r){const{anchors:i,schema:o}=t.doc;let s;if(!(e instanceof Qt.Node)){const t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=o.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=i.getName(e.source);t||(t=i.newName(),i.map[t]=e.source)}}if(e instanceof Qt.Pair)return e.toString(t,n,r);s||(s=function(e,t){if(t instanceof Qt.Alias)return Qt.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,r;if(t instanceof Qt.Scalar){r=t.value;const i=e.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));n=i.find((e=>e.format===t.format))||i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error("Tag not resolved for ".concat(e," value"))}return n}(o.tags,e));const a=function(e,t,{anchors:n,doc:r}){const i=[],o=r.anchors.getName(e);return o&&(n[o]=e,i.push("&".concat(o))),e.tag?i.push(mi(r,e.tag)):t.default||i.push(mi(r,t.tag)),i.join(" ")}(e,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart||0)+a.length+1);const u="function"==typeof s.stringify?s.stringify(e,t,n,r):e instanceof Qt.Scalar?Qt.stringifyString(e,t,n,r):e.toString(t,n,r);return a?e instanceof Qt.Scalar||"{"===u[0]||"["===u[0]?"".concat(a," ").concat(u):"".concat(a,"\n").concat(t.indent).concat(u):u}class yi{static validAnchorNode(e){return e instanceof Qt.Scalar||e instanceof Qt.YAMLSeq||e instanceof Qt.YAMLMap}constructor(e){Xe._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new Qt.Alias(e)}createMergePair(...e){const t=new Qt.Merge;return t.value.items=e.map((e=>{if(e instanceof Qt.Alias){if(e.source instanceof Qt.YAMLMap)return e}else if(e instanceof Qt.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r="".concat(e).concat(n);if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!yi.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const bi=(e,t)=>{if(e&&"object"==typeof e){const{tag:n}=e;e instanceof Qt.Collection?(n&&(t[n]=!0),e.items.forEach((e=>bi(e,t)))):e instanceof Qt.Pair?(bi(e.key,t),bi(e.value,t)):e instanceof Qt.Scalar&&n&&(t[n]=!0)}return t};function vi({tagPrefixes:e},t){const[n,r]=t.parameters;if(!n||!r){const e="Insufficient parameters given for %TAG directive";throw new Xe.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new Xe.YAMLSemanticError(t,e)}return{handle:n,prefix:r}}function Di(e,t){let[n]=t.parameters;if("YAML:1.0"===t.name&&(n="1.0"),!n){const e="Insufficient parameters given for %YAML directive";throw new Xe.YAMLSemanticError(t,e)}if(!di[n]){const r=e.version||e.options.version,i="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);e.warnings.push(new Xe.YAMLWarning(t,i))}return n}function Ci(e){if(e instanceof Qt.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class Ei{constructor(e){this.anchors=new yi(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 Ci(this.contents),this.contents.add(e)}addIn(e,t){Ci(this.contents),this.contents.addIn(e,t)}delete(e){return Ci(this.contents),this.contents.delete(e)}deleteIn(e){return Qt.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(Ci(this.contents),this.contents.deleteIn(e))}getDefaults(){return Ei.defaults[this.version]||Ei.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof Qt.Collection?this.contents.get(e,t):void 0}getIn(e,t){return Qt.isEmptyPath(e)?!t&&this.contents instanceof Qt.Scalar?this.contents.value:this.contents:this.contents instanceof Qt.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof Qt.Collection&&this.contents.has(e)}hasIn(e){return Qt.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof Qt.Collection&&this.contents.hasIn(e)}set(e,t){Ci(this.contents),this.contents.set(e,t)}setIn(e,t){Qt.isEmptyPath(e)?this.contents=t:(Ci(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);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new fi.Schema(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:i,error:o,valueRange:s}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),function(e,t,n){const r=[];let i=!1;for(const n of t){const{comment:o,name:s}=n;switch(s){case"TAG":try{e.tagPrefixes.push(vi(e,n))}catch(t){e.errors.push(t)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new Xe.YAMLSemanticError(n,t))}try{e.version=Di(e,n)}catch(t){e.errors.push(t)}i=!0;break;default:if(s){const t="YAML only supports %TAG and %YAML directives, and not %".concat(s);e.warnings.push(new Xe.YAMLWarning(n,t))}}o&&r.push(o)}if(n&&!i&&"1.1"===(e.version||n.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(t),e.version=n.version}e.commentBefore=r.join("\n")||null}(this,n,t),i&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){const n={before:[],after:[]};let r,i=!1;for(const o of t)if(o.valueRange){if(void 0!==r){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new Xe.YAMLSyntaxError(o,t));break}const t=Qt.resolveNode(e,o);i&&(t.spaceBefore=!0,i=!1),r=t}else null!==o.comment?(void 0===r?n.before:n.after).push(o.comment):o.type===Xe.Type.BLANK_LINE&&(i=!0,void 0===r&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]));if(e.contents=r||null,r){const t=n.before.join("\n");if(t){const e=r instanceof Qt.Collection&&r.items[0]?r.items[0]:r;e.commentBefore=e.commentBefore?"".concat(t,"\n").concat(e.commentBefore):t}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof Xe.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof Xe.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(bi(e,{})))(this.contents).filter((e=>0!==e.indexOf(fi.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:r,maxAliasCount:i}=this.options,o=n&&("string"!=typeof e||!(this.contents instanceof Qt.Scalar)),s={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!r,maxAliasCount:i,stringify:gi},a=Object.keys(this.anchors.map);a.length>0&&(s.anchors=new Map(a.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const u=Qt.toJSON(this.contents,e,s);if("function"==typeof t&&s.anchors)for(const{count:e,res:n}of s.anchors.values())t(n,e);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();const t=[];let n=!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),n=!0}const r=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:i})=>{r.some((e=>0===e.indexOf(i)))&&(t.push("%TAG ".concat(e," ").concat(i)),n=!0)})),(n||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&(!n&&this.directivesEndMarker||t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));const i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:gi};let o=!1,s=null;if(this.contents){this.contents instanceof Qt.Node&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,s=this.contents.comment);const e=s?null:()=>o=!0,r=gi(this.contents,i,(()=>s=null),e);t.push(Qt.addComment(r,"",s))}else void 0!==this.contents&&t.push(gi(this.contents,i));return this.comment&&(o&&!s||""===t[t.length-1]||t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}}Xe._defineProperty(Ei,"defaults",di);var wi={Document:Ei,defaultOptions:{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"},scalarOptions:hi};class Ai extends wi.Document{constructor(e){super(Object.assign({},wi.defaultOptions,e))}}function Si(e,t){const n=dt.parse(e),r=new Ai(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Xe.YAMLSemanticError(n[1],e))}return r}var xi={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const r=Object.assign({},wi.Document.defaults[wi.defaultOptions.version],wi.defaultOptions);return new fi.Schema(r).createNode(e,t,n)},defaultOptions:wi.defaultOptions,Document:Ai,parse:function(e,t){const n=Si(e,t);if(n.warnings.forEach((e=>Br.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const n=[];let r;for(const i of dt.parse(e)){const e=new Ai(t);e.parse(i,r),n.push(e),r=e}return n},parseCST:dt.parse,parseDocument:Si,scalarOptions:wi.scalarOptions,stringify:function(e,t){const n=new Ai(t);return n.contents=e,String(n)}},Ti={findPair:Qt.findPair,parseMap:Qt.resolveMap,parseSeq:Qt.resolveSeq,stringifyNumber:Qt.stringifyNumber,stringifyString:Qt.stringifyString,toJSON:Qt.toJSON,Type:Xe.Type,YAMLError:Xe.YAMLError,YAMLReferenceError:Xe.YAMLReferenceError,YAMLSemanticError:Xe.YAMLSemanticError,YAMLSyntaxError:Xe.YAMLSyntaxError,YAMLWarning:Xe.YAMLWarning},Fi={findPair:Ti.findPair,toJSON:Ti.toJSON,parseMap:Ti.parseMap,parseSeq:Ti.parseSeq,stringifyNumber:Ti.stringifyNumber,stringifyString:Ti.stringifyString,Type:Ti.Type,YAMLError:Ti.YAMLError,YAMLReferenceError:Ti.YAMLReferenceError,YAMLSemanticError:Ti.YAMLSemanticError,YAMLSyntaxError:Ti.YAMLSyntaxError,YAMLWarning:Ti.YAMLWarning},Ni=xi.Document,ki=xi.parseCST,_i=Fi.YAMLError,Oi=Fi.YAMLSyntaxError,Li=Fi.YAMLSemanticError,Pi=Object.defineProperty({Document:Ni,parseCST:ki,YAMLError:_i,YAMLSyntaxError:Oi,YAMLSemanticError:Li},"__esModule",{value:!0}),Ii=Object.defineProperty({parse:function(e){var t=Pi.parseCST(e);Oe.addOrigRange(t);for(var n=t.map((function(e){return new Pi.Document({merge:!1,keepCstNodes:!0}).parse(e)})),r=[],i={text:e,locator:new a.default(e),comments:r,transformOffset:function(e){return Fe.transformOffset(e,i)},transformRange:function(e){return Ne.transformRange(e,i)},transformNode:function(e){return Ae.transformNode(e,i)},transformContent:function(e){return k.transformContent(e,i)}},o=0,s=n;o<s.length;o++)for(var u=0,c=s[o].errors;u<c.length;u++){var l=c[u];if(!(l instanceof Pi.YAMLSemanticError&&'Map keys must be unique; "<<" is repeated'===l.message))throw xe.transformError(l,i)}n.forEach((function(e){return y.removeCstBlankLine(e.cstNode)}));var p=g.createRoot(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),r);return d.attachComments(p),$e.updatePositions(p),Le.removeFakeNodes(p),p}},"__esModule",{value:!0}),Mi=e((function(e,t){t.__esModule=!0,s.__exportStar(Ii,t)}));const{hasPragma:Bi}={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}},{locStart:ji,locEnd:Ri}={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}};return{parsers:{yaml:{astFormat:"yaml",parse:function(e){try{const t=Mi.parse(e);return delete t.comments,t}catch(e){if(e&&e.position)throw function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}(e.message,e.position);throw e}},hasPragma:Bi,locStart:ji,locEnd:Ri}}}}()},932:function(e,t,n){e.exports=function(){"use strict";function e(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var r={name:"prettier",version:"2.3.0",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"11.2.13","@babel/code-frame":"7.12.13","@babel/parser":"7.14.1","@glimmer/syntax":"0.79.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.22.0","angular-estree-parser":"2.3.0","angular-html-parser":"1.8.0",camelcase:"6.2.0",chalk:"4.1.1","ci-info":"3.1.1","cjk-regex":"2.0.1",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.1",esutils:"2.0.3","fast-glob":"3.2.5","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.150.1","get-stdin":"8.0.0",globby:"11.0.3",graphql:"15.5.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.2.0",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.14.0",lodash:"4.17.21",mem:"8.1.1",meriyah:"4.1.5",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.8.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.20.0",semver:"7.3.5","string-width":"4.2.2","strip-ansi":"6.0.0",typescript:"4.2.4","unicode-regex":"3.0.0",unified:"9.2.1",vnopts:"1.0.2",wcwidth:"1.0.1","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.14.0","@babel/preset-env":"7.14.1","@babel/types":"7.14.1","@glimmer/reference":"0.79.0","@rollup/plugin-alias":"3.1.2","@rollup/plugin-babel":"5.3.0","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.0.0","@rollup/plugin-replace":"2.4.2","@types/estree":"0.0.47","@types/node":"15.0.1","babel-jest":"26.6.3","babel-loader":"8.2.2",benchmark:"2.1.4","builtin-modules":"3.2.0","cross-env":"7.0.3",cspell:"4.2.8",eslint:"7.26.0","eslint-config-prettier":"8.3.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.3.6","eslint-plugin-prettier-internal-rules":"link:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.23.2","eslint-plugin-unicorn":"31.0.0",execa:"5.0.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.2.0","jest-watch-typeahead":"0.6.3","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.1","pretty-bytes":"5.6.0",rimraf:"3.0.2",rollup:"2.47.0","rollup-plugin-polyfill-node":"0.6.2","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","synchronous-promise":"2.0.15",tempy:"1.0.1","terser-webpack-plugin":"5.1.1",webpack:"5.36.2"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests/integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --no-inline-config --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}},i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function o(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){var t={exports:{}};return e(t,t.exports),t.exports}var a,u=s((function(e,t){function n(){}function r(e,t,n,r,i){for(var o=0,s=t.length,a=0,u=0;o<s;o++){var c=t[o];if(c.removed){if(c.value=e.join(r.slice(u,u+c.count)),u+=c.count,o&&t[o-1].added){var l=t[o-1];t[o-1]=t[o],t[o]=l}}else{if(!c.added&&i){var p=n.slice(a,a+c.count);p=p.map((function(e,t){var n=r[u+t];return n.length>e.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(u+=c.count)}}var f=t[s-1];return s>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[s-2].value+=f.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var s=this;function a(e){return o?(setTimeout((function(){o(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,c=e.length,l=1,p=u+c,f=[{newPos:-1,components:[]}],h=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=u&&h+1>=c)return a([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*l;n<=l;n+=2){var o=void 0,p=f[n-1],h=f[n+1],d=(h?h.newPos:0)-n;p&&(f[n-1]=void 0);var m=p&&p.newPos+1<u,g=h&&0<=d&&d<c;if(m||g){if(!m||g&&p.newPos<h.newPos?(o=i(h),s.pushComponent(o.components,void 0,!0)):((o=p).newPos++,s.pushComponent(o.components,!0,void 0)),d=s.extractCommon(o,t,e,n),o.newPos+1>=u&&d+1>=c)return a(r(s,o.components,t,e,s.useLongestToken));f[n]=o}else f[n]=void 0}l++}if(o)!function e(){setTimeout((function(){if(l>p)return o();d()||e()}),0)}();else for(;l<=p;){var m=d();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,s=e.newPos,a=s-r,u=0;s+1<i&&a+1<o&&this.equals(t[s+1],n[a+1]);)s++,a++,u++;return u&&e.components.push({count:u}),e.newPos=s,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("")}}})),c=s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new((n=u)&&n.__esModule?n:{default:n}).default;t.characterDiff=r})),l=Object.defineProperty({generateOptions:function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},"__esModule",{value:!0}),p=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=function(e,t,n){return n=(0,l.generateOptions)(n,{ignoreWhitespace:!0}),s.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return s.diff(e,t,n)},t.wordDiff=void 0;var n,r=(n=u)&&n.__esModule?n:{default:n},i=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,o=/\S/,s=new r.default;t.wordDiff=s,s.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!o.test(e)&&!o.test(t)},s.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&i.test(t[n])&&i.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}})),f=s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=function(e,t,n){return r.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var i=(0,l.generateOptions)(n,{ignoreWhitespace:!0});return r.diff(e,t,i)},t.lineDiff=void 0;var r=new((n=u)&&n.__esModule?n:{default:n}).default;t.lineDiff=r,r.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t}})),h=s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=function(e,t,n){return r.diff(e,t,n)},t.sentenceDiff=void 0;var r=new((n=u)&&n.__esModule?n:{default:n}).default;t.sentenceDiff=r,r.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}})),d=s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=function(e,t,n){return r.diff(e,t,n)},t.cssDiff=void 0;var r=new((n=u)&&n.__esModule?n:{default:n}).default;t.cssDiff=r,r.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}})),m=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=function(e,t,n){return s.diff(e,t,n)},t.canonicalize=a,t.jsonDiff=void 0;var n,r=(n=u)&&n.__esModule?n:{default:n};function i(e){return(i="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})(e)}var o=Object.prototype.toString,s=new r.default;function a(e,t,n,r,s){var u,c;for(t=t||[],n=n||[],r&&(e=r(s,e)),u=0;u<t.length;u+=1)if(t[u]===e)return n[u];if("[object Array]"===o.call(e)){for(t.push(e),c=new Array(e.length),n.push(c),u=0;u<e.length;u+=1)c[u]=a(e[u],t,n,r,s);return t.pop(),n.pop(),c}if(e&&e.toJSON&&(e=e.toJSON()),"object"===i(e)&&null!==e){t.push(e),c={},n.push(c);var l,p=[];for(l in e)e.hasOwnProperty(l)&&p.push(l);for(p.sort(),u=0;u<p.length;u+=1)c[l=p[u]]=a(e[l],t,n,r,l);t.pop(),n.pop()}else c=e;return c}t.jsonDiff=s,s.useLongestToken=!0,s.tokenize=f.lineDiff.tokenize,s.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(a(e,null,null,i),i," ")},s.equals=function(e,t){return r.default.prototype.equals.call(s,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}})),g=s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=function(e,t,n){return r.diff(e,t,n)},t.arrayDiff=void 0;var r=new((n=u)&&n.__esModule?n:{default:n}).default;t.arrayDiff=r,r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}})),y=Object.defineProperty({parsePatch:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var e={};for(i.push(e);o<n.length;){var r=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);s&&(e.index=s[1]),o++}for(a(e),a(e),e.hunks=[];o<n.length;){var c=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(u());else{if(c&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(c));o++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),s=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[r+"FileName"]=s,e[r+"Header"]=(i[1]||"").trim(),o++}}function u(){var e=o,i=n[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+i[1],oldLines:void 0===i[2]?1:+i[2],newStart:+i[3],newLines:void 0===i[4]?1:+i[4],lines:[],linedelimiters:[]};0===s.oldLines&&(s.oldStart+=1),0===s.newLines&&(s.newStart+=1);for(var a=0,u=0;o<n.length&&!(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"));o++){var c=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==c&&"-"!==c&&" "!==c&&"\\"!==c)break;s.lines.push(n[o]),s.linedelimiters.push(r[o]||"\n"),"+"===c?a++:"-"===c?u++:" "===c&&(a++,u++)}if(a||1!==s.newLines||(s.newLines=0),u||1!==s.oldLines||(s.oldLines=0),t.strict){if(a!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(u!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;o<n.length;)s();return i}},"__esModule",{value:!0}),b=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=!0,i=!1,o=!1,s=1;return function a(){if(r&&!o){if(i?s++:r=!1,e+s<=n)return s;o=!0}if(!i)return o||(r=!0),t<=e-s?-s++:(i=!0,a())}}})),v=C,D=(a=b)&&a.__esModule?a:{default:a};function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,y.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function h(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",s=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,o[t],i,s)&&++c>l)return!1;t++}}return!0}for(var d=0;d<a.length;d++){for(var m=a[d],g=o.length-m.oldLines,b=0,v=f+m.oldStart-1,C=(0,D.default)(v,p,g);void 0!==b;b=C())if(h(m,v+b)){m.offset=f+=b;break}if(void 0===b)return!1;p=m.offset+m.oldStart+m.oldLines}for(var E=0,w=0;w<a.length;w++){var A=a[w],S=A.oldStart+A.offset+E-1;E+=A.newLines-A.oldLines;for(var x=0;x<A.lines.length;x++){var T=A.lines[x],F=T.length>0?T[0]:" ",N=T.length>0?T.substr(1):T,k=A.linedelimiters[x];if(" "===F)S++;else if("-"===F)o.splice(S,1),s.splice(S,1);else if("+"===F)o.splice(S,0,N),s.splice(S,0,k),S++;else if("\\"===F){var _=A.lines[x-1]?A.lines[x-1][0]:null;"+"===_?r=!0:"-"===_&&(i=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),s.pop();else i&&(o.push(""),s.push("\n"));for(var O=0;O<o.length-1;O++)o[O]=o[O]+s[O];return o.join("")}var E=Object.defineProperty({applyPatch:v,applyPatches:function(e,t){"string"==typeof e&&(e=(0,y.parsePatch)(e));var n=0;!function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,(function(e,n){if(e)return t.complete(e);var o=C(n,i,t);t.patched(i,o,(function(e){if(e)return t.complete(e);r()}))}))}()}},"__esModule",{value:!0}),w=F,A=N,S=k;function x(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t,n,r,i,o,s){s||(s={}),void 0===s.context&&(s.context=4);var a=(0,f.diffLines)(n,r,s);function u(e){return e.map((function(e){return" "+e}))}a.push({value:"",lines:[]});for(var c=[],l=0,p=0,h=[],d=1,m=1,g=function(e){var t=a[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!l){var f=a[e-1];l=d,p=m,f&&(h=s.context>0?u(f.lines.slice(-s.context)):[],l-=h.length,p-=h.length)}(o=h).push.apply(o,x(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=i.length:d+=i.length}else{if(l)if(i.length<=2*s.context&&e<a.length-2){var g;(g=h).push.apply(g,x(u(i)))}else{var y,b=Math.min(i.length,s.context);(y=h).push.apply(y,x(u(i.slice(0,b))));var v={oldStart:l,oldLines:d-l+b,newStart:p,newLines:m-p+b,lines:h};if(e>=a.length-2&&i.length<=s.context){var D=/\n$/.test(n),C=/\n$/.test(r),E=0==i.length&&h.length>v.oldLines;!D&&E&&n.length>0&&h.splice(v.oldLines,0,"\\ No newline at end of file"),(D||E)&&C||h.push("\\ No newline at end of file")}c.push(v),l=0,p=0,h=[]}d+=i.length,m+=i.length}},y=0;y<a.length;y++)g(y);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:c}}function N(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}function k(e,t,n,r,i,o,s){return N(F(e,t,n,r,i,o,s))}var _=Object.defineProperty({structuredPatch:w,formatPatch:A,createTwoFilesPatch:S,createPatch:function(e,t,n,r,i,o){return k(e,e,t,n,r,i,o)}},"__esModule",{value:!0}),O=L;function L(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var P=Object.defineProperty({arrayEqual:function(e,t){return e.length===t.length&&L(e,t)},arrayStartsWith:O},"__esModule",{value:!0}),I=j;function M(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e){var t=Z(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function R(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,y.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,_.structuredPatch)(void 0,void 0,t,e)}return e}function V(e){return e.newFileName&&e.newFileName!==e.oldFileName}function $(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function U(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function W(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function q(e,t,n,r,i){var o={offset:t,lines:n,index:0},s={offset:r,lines:i,index:0};for(z(e,o,s),z(e,s,o);o.index<o.lines.length&&s.index<s.lines.length;){var a=o.lines[o.index],u=s.lines[s.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==u[0]&&"+"!==u[0])if("+"===a[0]&&" "===u[0]){var c;(c=e.lines).push.apply(c,M(G(o)))}else if("+"===u[0]&&" "===a[0]){var l;(l=e.lines).push.apply(l,M(G(s)))}else"-"===a[0]&&" "===u[0]?H(e,o,s):"-"===u[0]&&" "===a[0]?H(e,s,o,!0):a===u?(e.lines.push(a),o.index++,s.index++):Y(e,G(o),G(s));else K(e,o,s)}J(e,o),J(e,s),j(e)}function K(e,t,n){var r=G(t),i=G(n);if(Q(r)&&Q(i)){var o,s;if((0,P.arrayStartsWith)(r,i)&&X(n,r,r.length-i.length))return void(o=e.lines).push.apply(o,M(r));if((0,P.arrayStartsWith)(i,r)&&X(t,i,i.length-r.length))return void(s=e.lines).push.apply(s,M(i))}else if((0,P.arrayEqual)(r,i)){var a;return void(a=e.lines).push.apply(a,M(r))}Y(e,r,i)}function H(e,t,n,r){var i,o=G(t),s=function(e,t){for(var n=[],r=[],i=0,o=!1,s=!1;i<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],u=t[i];if("+"===u[0])break;if(o=o||" "!==a[0],r.push(u),i++,"+"===a[0])for(s=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];u.substr(1)===a.substr(1)?(n.push(a),e.index++):s=!0}if("+"===(t[i]||"")[0]&&o&&(s=!0),s)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}(n,o);s.merged?(i=e.lines).push.apply(i,M(s.merged)):Y(e,r?s:o,r?o:s)}function Y(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function z(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function J(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function G(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function Q(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function X(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function Z(e){var t=0,n=0;return e.forEach((function(e){if("string"!=typeof e){var r=Z(e.mine),i=Z(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}var ee=Object.defineProperty({calcLineCount:I,merge:function(e,t,n){e=R(e,n),t=R(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(V(e)?V(t)?(r.oldFileName=$(r,e.oldFileName,t.oldFileName),r.newFileName=$(r,e.newFileName,t.newFileName),r.oldHeader=$(r,e.oldHeader,t.oldHeader),r.newHeader=$(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,o=0,s=0,a=0;i<e.hunks.length||o<t.hunks.length;){var u=e.hunks[i]||{oldStart:1/0},c=t.hunks[o]||{oldStart:1/0};if(U(u,c))r.hunks.push(W(u,s)),i++,a+=u.newLines-u.oldLines;else if(U(c,u))r.hunks.push(W(c,a)),o++,s+=c.newLines-c.oldLines;else{var l={oldStart:Math.min(u.oldStart,c.oldStart),oldLines:0,newStart:Math.min(u.newStart+s,c.oldStart+a),newLines:0,lines:[]};q(l,u.oldStart,u.lines,c.oldStart,c.lines),o++,i++,r.hunks.push(l)}}return r}},"__esModule",{value:!0}),te=Object.defineProperty({convertChangesToDMP:function(e){for(var t,n,r=[],i=0;i<e.length;i++)n=(t=e[i]).added?1:t.removed?-1:0,r.push([n,t.value]);return r}},"__esModule",{value:!0});function ne(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var re=Object.defineProperty({convertChangesToXML:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(ne(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}},"__esModule",{value:!0}),ie=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return c.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return p.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return p.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return f.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return f.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return h.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return d.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return m.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return m.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return g.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return E.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return E.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return y.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return ee.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return _.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return _.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return _.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return te.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return re.convertChangesToXML}});var n=function(e){return e&&e.__esModule?e:{default:e}}(u)}));function oe(e){return{type:"concat",parts:e}}function se(e){return{type:"indent",contents:e}}function ae(e,t){return{type:"align",contents:t,n:e}}function ue(e,t={}){return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}const ce={type:"break-parent"},le={type:"line",hard:!0},pe={type:"line",hard:!0,literal:!0},fe=oe([le,ce]),he=oe([pe,ce]);var de={concat:oe,join:function(e,t){const n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return oe(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:fe,literalline:he,group:ue,conditionalGroup:function(e,t){return ue(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:ce,ifBreak:function(e,t,n={}){return{type:"if-break",breakContents:e,flatContents:t,groupId:n.groupId}},trim:{type:"trim"},indent:se,indentIfBreak:function(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:ae,addAlignmentToDoc:function(e,t,n){let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=se(r);r=ae(t%n,r),r=ae(Number.NEGATIVE_INFINITY,r)}return r},markAsRoot:function(e){return ae({type:"root"},e)},dedentToRoot:function(e){return ae(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return ae(-1,e)},hardlineWithoutBreakParent:le,literallineWithoutBreakParent:pe,label:function(e,t){return{type:"label",label:e,contents:t}}};const me=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var ge=me,ye=me;ge.default=ye;const be=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=(e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e)(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=ge(r)?2:1)}return t};var ve=be,De=be;ve.default=De;var Ce=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Ee=e=>e[e.length-1],we=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Ae=void 0!==Ae?Ae:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Se(){throw new Error("setTimeout has not been defined")}function xe(){throw new Error("clearTimeout has not been defined")}var Te=Se,Fe=xe;function Ne(e){if(Te===setTimeout)return setTimeout(e,0);if((Te===Se||!Te)&&setTimeout)return Te=setTimeout,setTimeout(e,0);try{return Te(e,0)}catch(t){try{return Te.call(null,e,0)}catch(t){return Te.call(this,e,0)}}}"function"==typeof Ae.setTimeout&&(Te=setTimeout),"function"==typeof Ae.clearTimeout&&(Fe=clearTimeout);var ke,_e=[],Oe=!1,Le=-1;function Pe(){Oe&&ke&&(Oe=!1,ke.length?_e=ke.concat(_e):Le=-1,_e.length&&Ie())}function Ie(){if(!Oe){var e=Ne(Pe);Oe=!0;for(var t=_e.length;t;){for(ke=_e,_e=[];++Le<t;)ke&&ke[Le].run();Le=-1,t=_e.length}ke=null,Oe=!1,function(e){if(Fe===clearTimeout)return clearTimeout(e);if((Fe===xe||!Fe)&&clearTimeout)return Fe=clearTimeout,clearTimeout(e);try{Fe(e)}catch(t){try{return Fe.call(null,e)}catch(t){return Fe.call(this,e)}}}(e)}}function Me(e,t){this.fun=e,this.array=t}function Be(){}Me.prototype.run=function(){this.fun.apply(null,this.array)};var je=Be,Re=Be,Ve=Be,$e=Be,Ue=Be,We=Be,qe=Be,Ke=Ae.performance||{},He=Ke.now||Ke.mozNow||Ke.msNow||Ke.oNow||Ke.webkitNow||function(){return(new Date).getTime()},Ye=new Date,ze={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];_e.push(new Me(e,t)),1!==_e.length||Oe||Ne(Ie)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:je,addListener:Re,once:Ve,off:$e,removeListener:Ue,removeAllListeners:We,emit:qe,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*He.call(Ke),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ye)/1e3}},Je="object"==typeof ze&&ze.env&&ze.env.NODE_DEBUG&&/\bsemver\b/i.test(ze.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Ge={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Qe=s((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Ge,r=(t=e.exports={}).re=[],i=t.src=[],o=t.t={};let s=0;const a=(e,t,n)=>{const a=s++;Je(a,t),o[e]=a,i[a]=t,r[a]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(i[o.NUMERICIDENTIFIER],")\\.")+"(".concat(i[o.NUMERICIDENTIFIER],")\\.")+"(".concat(i[o.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(i[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[o.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(i[o.NUMERICIDENTIFIER],"|").concat(i[o.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[o.NUMERICIDENTIFIERLOOSE],"|").concat(i[o.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(i[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[o.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(i[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[o.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(i[o.BUILDIDENTIFIER],"(?:\\.").concat(i[o.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(i[o.MAINVERSION]).concat(i[o.PRERELEASE],"?").concat(i[o.BUILD],"?")),a("FULL","^".concat(i[o.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(i[o.MAINVERSIONLOOSE]).concat(i[o.PRERELEASELOOSE],"?").concat(i[o.BUILD],"?")),a("LOOSE","^".concat(i[o.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(i[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(i[o.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:".concat(i[o.PRERELEASE],")?").concat(i[o.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[o.PRERELEASELOOSE],")?").concat(i[o.BUILD],"?")+")?)?"),a("XRANGE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",i[o.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(i[o.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(i[o.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(i[o.GTLT],"\\s*(").concat(i[o.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],"|").concat(i[o.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(i[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const Xe=["includePrerelease","loose","rtl"];const Ze=/^[0-9]+$/,et=(e,t)=>{const n=Ze.test(e),r=Ze.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var tt={compareIdentifiers:et,rcompareIdentifiers:(e,t)=>et(t,e)};const{MAX_LENGTH:nt,MAX_SAFE_INTEGER:rt}=Ge,{re:it,t:ot}=Qe,{compareIdentifiers:st}=tt;class at{constructor(e,t){if(t=(e=>e?"object"!=typeof e?{loose:!0}:Xe.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{})(t),e instanceof at){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>nt)throw new TypeError("version is longer than ".concat(nt," characters"));Je("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?it[ot.LOOSE]:it[ot.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>rt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<rt)return t}return e})):this.prerelease=[],this.build=n[5]?n[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(Je("SemVer.compare",this.version,this.options,e),!(e instanceof at)){if("string"==typeof e&&e===this.version)return 0;e=new at(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof at||(e=new at(e,this.options)),st(this.major,e.major)||st(this.minor,e.minor)||st(this.patch,e.patch)}comparePre(e){if(e instanceof at||(e=new at(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{const n=this.prerelease[t],r=e.prerelease[t];if(Je("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return st(n,r)}while(++t)}compareBuild(e){e instanceof at||(e=new at(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(Je("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return st(n,r)}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&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}var ut,ct,lt,pt,ft,ht,dt=at,mt=(e,t,n)=>new dt(e,n).compare(new dt(t,n)),gt=s((function(e,t){function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function r(){return"undefined"!=typeof WeakMap?new WeakMap:{add:n,delete:n,get:n,set:n,has:function(e){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.outdent=void 0;var i=Object.prototype.hasOwnProperty,o=function(e,t){return i.call(e,t)};function s(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return e}var a=/^[ \t]*(?:\r\n|\r|\n)/,u=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,l=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,p=/^[ \t]*[\r\n][ \t\r\n]*$/;function f(e,t,n){var r=0,i=e[0].match(l);i&&(r=i[1].length);var o=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");t&&(e=e.slice(1));var s=n.newline,c=n.trimLeadingNewline,p=n.trimTrailingNewline,f="string"==typeof s,h=e.length;return e.map((function(e,t){return e=e.replace(o,"$1"),0===t&&c&&(e=e.replace(a,"")),t===h-1&&p&&(e=e.replace(u,"")),f&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return s}))),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 d(e){return o(e,"raw")&&o(e,"length")}var m=function e(t){var n=r(),i=r();return s((function r(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];if(d(o)){var l=o,g=(a[0]===r||a[0]===m)&&p.test(l[0])&&c.test(l[1]),y=g?i:n,b=y.get(l);return b||(b=f(l,g,t),y.set(l,b)),0===a.length?b[0]:h(b,g?a.slice(1):a)}return e(s(s({},t),o||{}))}),{string:function(e){return f([e],!1,t)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=m,t.default=m;try{e.exports=m,Object.defineProperty(m,"__esModule",{value:!0}),m.default=m,m.outdent=m}catch(e){}}));const{outdent:yt}=gt,bt="Config",vt="Editor",Dt="Other",Ct="Global",Et="Special",wt={cursorOffset:{since:"1.4.0",category:Et,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:yt(ut||(ut=t(["\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:vt},endOfLine:{since:"1.15.0",category:Ct,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:yt(ct||(ct=t(["\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:Et,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:Dt,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Et,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:Dt},parser:{since:"0.0.10",category:Ct,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:"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:Ct,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:bt},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Ct,description:yt(lt||(lt=t(["\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:bt},printWidth:{since:"0.0.0",category:Ct,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:Et,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:yt(pt||(pt=t(["\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:vt},rangeStart:{since:"1.4.0",category:Et,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:yt(ft||(ft=t(["\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:vt},requirePragma:{since:"1.7.0",category:Et,type:"boolean",default:!1,description:yt(ht||(ht=t(["\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:Dt},tabWidth:{type:"int",category:Ct,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Ct,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Ct,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."}]}},At=mt,St=(e,t,n)=>mt(e,t,n)<0,xt=(e,t,n)=>mt(e,t,n)>=0,Tt=r.version,Ft=wt;var Nt={getSupportInfo:function({plugins:t=[],showUnreleased:n=!1,showDeprecated:r=!1,showInternal:i=!1}={}){const o=Tt.split("-",1)[0],s=t.reduce(((e,t)=>[...e,...t.languages||[]]),[]).filter(u),a=((e,t)=>Object.entries(e).map((([e,t])=>Object.assign({name:e},t))))(Object.assign({},...t.map((({options:e})=>e)),Ft)).filter((e=>u(e)&&c(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map((function(t){return i?t:e(t,["cliName","cliCategory","cliDescription"])})).map((e=>{e=Object.assign({},e),Array.isArray(e.default)&&(e.default=1===e.default.length?e.default[0].value:e.default.filter(u).sort(((e,t)=>At(t.since,e.since)))[0].value),Array.isArray(e.choices)&&(e.choices=e.choices.filter((e=>u(e)&&c(e))),"parser"===e.name&&function(e,t,n){const r=new Set(e.choices.map((e=>e.value)));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const o=n.find((e=>e.parsers&&e.parsers[t]));let s=i.name;o&&o.name&&(s+=" (plugin: ".concat(o.name,")")),e.choices.push({value:t,description:s})}}(e,s,t));const n=we(t.filter((t=>t.defaultOptions&&void 0!==t.defaultOptions[e.name])).map((t=>[t.name,t.defaultOptions[e.name]])));return Object.assign({},e,{pluginDefaults:n})}));return{languages:s,options:a};function u(e){return n||!("since"in e)||e.since&&xt(o,e.since)}function c(e){return r||!("deprecated"in e)||e.deprecated&&St(o,e.deprecated)}}};const{getSupportInfo:kt}=Nt,_t=/[^\x20-\x7F]/;function Ot(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let s=n;for(;s>=0&&s<o;){const n=t.charAt(s);if(e instanceof RegExp){if(!e.test(n))return s}else if(!e.includes(n))return s;i?s--:s++}return(-1===s||s===o)&&s}}const Lt=Ot(/\s/),Pt=Ot(" \t"),It=Ot(",; \t"),Mt=Ot(/[^\n\r]/);function Bt(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}function jt(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Mt(e,t):t)}function Rt(e,t,n){const r=n&&n.backwards;if(!1===t)return!1;const 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}function Vt(e,t,n={}){const r=Pt(e,n.backwards?t-1:t,n);return r!==Rt(e,r,n)}function $t(e,t){let n=null,r=t;for(;r!==n;)n=r,r=It(e,r),r=Bt(e,r),r=Pt(e,r);return r=jt(e,r),r=Rt(e,r),!1!==r&&Vt(e,r)}function Ut(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Pt(e,r),r=Bt(e,r),r=jt(e,r),r=Rt(e,r);return r}function Wt(e,t,n){return Ut(e,n(t))}function qt(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)"\t"===e[i]?r=r+t-r%t:r++;return r}function Kt(e,t){const n=e.slice(1,-1),r={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},o="'"===t?i:r,s=o===i?r:i;let a=o.quote;return(n.includes(o.quote)||n.includes(s.quote))&&(a=(n.match(o.regex)||[]).length>(n.match(s.regex)||[]).length?s.quote:o.quote),a}function Ht(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\([\S\s])|(["'])/g,((e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+i+t}function Yt(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){const t=e.type||e.kind||"(unknown type)";let 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)+"…"),t+(n?" "+n:"")}(e)}var zt={inferParserByLanguage:function(e,t){const{languages:n}=kt({plugins:t.plugins}),r=n.find((({name:t})=>t.toLowerCase()===e))||n.find((({aliases:t})=>Array.isArray(t)&&t.includes(e)))||n.find((({extensions:t})=>Array.isArray(t)&&t.includes(".".concat(e))));return r&&r.parsers[0]},replaceEndOfLineWith:function(e,t){const n=[];for(const r of e.split("\n"))n.length>0&&n.push(t),n.push(r);return n},getStringWidth:function(e){return e?_t.test(e)?ve(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ce(t),")+"),"g"));return null===n?0:n.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ce(t),")+"),"g"));if(null===n)return 0;const r=new Map;let i=0;for(const e of n){const n=e.length/t.length;r.set(n,!0),n>i&&(i=n)}for(let e=1;e<i;e++)if(!r.get(e))return e;return i+1},getPenultimate:e=>e[e.length-2],getLast:Ee,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ut,getNextNonSpaceNonCommentCharacterIndex:Wt,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(Wt(e,t,n))},skip:Ot,skipWhitespace:Lt,skipSpaces:Pt,skipToLineEnd:It,skipEverythingButNewLine:Mt,skipInlineComment:Bt,skipTrailingComment:jt,skipNewline:Rt,isNextLineEmptyAfterIndex:$t,isNextLineEmpty:function(e,t,n){return $t(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=Pt(e,r,{backwards:!0}),r=Rt(e,r,{backwards:!0}),r=Pt(e,r,{backwards:!0}),r!==Rt(e,r,{backwards:!0})},hasNewline:Vt,hasNewlineInRange:function(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},hasSpaces:function(e,t,n={}){return Pt(e,n.backwards?t-1:t,n)!==t},getAlignmentSize:qt,getIndentSize:function(e,t){const n=e.lastIndexOf("\n");return-1===n?0:qt(e.slice(n+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Kt,printString:function(e,t){return Ht(e.slice(1,-1),"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Kt(e,t.singleQuote?"'":'"'),!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber: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|$)/,"")},makeString:Ht,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Yt(e,t)},addDanglingComment:function(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Yt(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Yt(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";const t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){const t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}},Jt={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let n;if("\n"===t)n=/\n/g;else if("\r"===t)n=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));n=/\r\n/g}const r=e.match(n);return r?r.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{literalline:Gt}=de,Qt=e=>Array.isArray(e)||e&&"concat"===e.type,Xt=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},Zt={};function en(e,t,n,r){const i=[e];for(;i.length>0;){const e=i.pop();if(e!==Zt){if(n&&i.push(e,Zt),!t||!1!==t(e))if(Qt(e)||"fill"===e.type){const t=Xt(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 tn(e,t){const n=new Map;return function e(r){if(n.has(r))return n.get(r);const i=function(n){if(Array.isArray(n))return t(n.map(e));if("concat"===n.type||"fill"===n.type){const r=n.parts.map(e);return t(Object.assign({},n,{parts:r}))}if("if-break"===n.type){const r=n.breakContents&&e(n.breakContents),i=n.flatContents&&e(n.flatContents);return t(Object.assign({},n,{breakContents:r,flatContents:i}))}if("group"===n.type&&n.expandedStates){const r=n.expandedStates.map(e),i=r[0];return t(Object.assign({},n,{contents:i,expandedStates:r}))}if(n.contents){const r=e(n.contents);return t(Object.assign({},n,{contents:r}))}return t(n)}(r);return n.set(r,i),i}(e)}function nn(e,t,n){let r=n,i=!1;return en(e,(function(e){const n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1})),r}function rn(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function on(e){if(e.length>0){const t=Ee(e);t.expandedStates||t.break||(t.break="propagated")}return null}function sn(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}const an=(e,t)=>e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type;function un(e){if(!e)return e;if(Qt(e)||"fill"===e.type){const t=Xt(e);for(;t.length>1&&an(...t.slice(-2));)t.length-=2;if(t.length>0){const e=un(Ee(t));t[t.length-1]=e}return Array.isArray(e)?t:Object.assign({},e,{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{const t=un(e.contents);return Object.assign({},e,{contents:t})}case"if-break":{const t=un(e.breakContents),n=un(e.flatContents);return Object.assign({},e,{breakContents:t,flatContents:n})}}return e}function cn(e){return tn(e,(e=>function(e){switch(e.type){case"fill":if(0===e.parts.length||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(!Qt(e))return e;const t=[];for(const n of Xt(e)){if(!n)continue;const[e,...r]=Qt(n)?Xt(n):[n];"string"==typeof e&&"string"==typeof Ee(t)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign({},e,{parts:t})}(e)))}function ln(e){const t=[],n=e.filter(Boolean);for(;n.length>0;){const e=n.shift();e&&(Qt(e)?n.unshift(...Xt(e)):t.length>0&&"string"==typeof Ee(t)&&"string"==typeof e?t[t.length-1]+=e:t.push(e))}return t}var pn={isConcat:Qt,getDocParts:Xt,willBreak:function(e){return nn(e,rn,!1)},traverseDoc:en,findInDoc:nn,mapDoc:tn,propagateBreaks:function(e){const t=new Set,n=[];en(e,(function(e){if("break-parent"===e.type&&on(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&on(n)}),!0)},removeLines:function(e){return tn(e,sn)},stripTrailingHardline:function(e){return un(cn(e))},normalizeParts:ln,normalizeDoc:function(e){return tn(e,(e=>Array.isArray(e)?ln(e):e.parts?Object.assign({},e,{parts:ln(e.parts)}):e))},cleanDoc:cn,replaceNewlinesWithLiterallines:function(e){return tn(e,(e=>"string"==typeof e&&e.includes("\n")?e.split(/(\n)/g).map(((e,t)=>t%2==0?e:Gt)):e))}};const{getStringWidth:fn,getLast:hn}=zt,{convertEndOfLineToChars:dn}=Jt,{fill:mn,cursor:gn,indent:yn}=de,{isConcat:bn,getDocParts:vn}=pn;let Dn;function Cn(e,t){return wn(e,{type:"indent"},t)}function En(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?wn(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):wn(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function wn(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t];let i="",o=0,s=0,a=0;for(const e of r)switch(e.type){case"indent":l(),n.useTabs?u(1):c(n.tabWidth);break;case"stringAlign":l(),i+=e.n,o+=e.n.length;break;case"numberAlign":s+=1,a+=e.n;break;default:throw new Error("Unexpected type '".concat(e.type,"'"))}return p(),Object.assign({},e,{value:i,length:o,queue:r});function u(e){i+="\t".repeat(e),o+=n.tabWidth*e}function c(e){i+=" ".repeat(e),o+=e}function l(){n.useTabs?(s>0&&u(s),f()):p()}function p(){a>0&&c(a),f()}function f(){s=0,a=0}}function An(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof hn(e)&&/^[\t ]*$/.test(hn(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof hn(e)){const n=hn(e).replace(/[\t ]*$/,"");t+=hn(e).length-n.length,e[e.length-1]=n}return t}function Sn(e,t,n,r,i,o){let s=t.length;const a=[e],u=[];for(;n>=0;){if(0===a.length){if(0===s)return!0;a.push(t[s-1]),s--;continue}const[e,c,l]=a.pop();if("string"==typeof l)u.push(l),n-=fn(l);else if(bn(l)){const t=vn(l);for(let n=t.length-1;n>=0;n--)a.push([e,c,t[n]])}else switch(l.type){case"indent":a.push([Cn(e,r),c,l.contents]);break;case"align":a.push([En(e,l.n,r),c,l.contents]);break;case"trim":n+=An(u);break;case"group":{if(o&&l.break)return!1;const t=l.break?1:c;a.push([e,t,l.expandedStates&&1===t?hn(l.expandedStates):l.contents]),l.id&&(Dn[l.id]=t);break}case"fill":for(let t=l.parts.length-1;t>=0;t--)a.push([e,c,l.parts[t]]);break;case"if-break":case"indent-if-break":{const t=l.groupId?Dn[l.groupId]:c;if(1===t){const t="if-break"===l.type?l.breakContents:l.negate?l.contents:yn(l.contents);t&&a.push([e,c,t])}if(2===t){const t="if-break"===l.type?l.flatContents:l.negate?yn(l.contents):l.contents;t&&a.push([e,c,t])}break}case"line":switch(c){case 2:if(!l.hard){l.soft||(u.push(" "),n-=1);break}return!0;case 1:return!0}break;case"line-suffix":i=!0;break;case"line-suffix-boundary":if(i)return!1;break;case"label":a.push([e,c,l.contents])}}return!1}var xn={printDocToString:function(e,t){Dn={};const n=t.printWidth,r=dn(t.endOfLine);let i=0;const o=[[{value:"",length:0,queue:[]},1,e]],s=[];let a=!1,u=[];for(;o.length>0;){const[e,c,l]=o.pop();if("string"==typeof l){const e="\n"!==r?l.replace(/\n/g,r):l;s.push(e),i+=fn(e)}else if(bn(l)){const t=vn(l);for(let n=t.length-1;n>=0;n--)o.push([e,c,t[n]])}else switch(l.type){case"cursor":s.push(gn.placeholder);break;case"indent":o.push([Cn(e,t),c,l.contents]);break;case"align":o.push([En(e,l.n,t),c,l.contents]);break;case"trim":i-=An(s);break;case"group":switch(c){case 2:if(!a){o.push([e,l.break?1:2,l.contents]);break}case 1:{a=!1;const r=[e,2,l.contents],s=n-i,c=u.length>0;if(!l.break&&Sn(r,o,s,t,c))o.push(r);else if(l.expandedStates){const n=hn(l.expandedStates);if(l.break){o.push([e,1,n]);break}for(let r=1;r<l.expandedStates.length+1;r++){if(r>=l.expandedStates.length){o.push([e,1,n]);break}{const n=[e,2,l.expandedStates[r]];if(Sn(n,o,s,t,c)){o.push(n);break}}}}else o.push([e,1,l.contents]);break}}l.id&&(Dn[l.id]=hn(o)[1]);break;case"fill":{const r=n-i,{parts:s}=l;if(0===s.length)break;const[a,p]=s,f=[e,2,a],h=[e,1,a],d=Sn(f,[],r,t,u.length>0,!0);if(1===s.length){d?o.push(f):o.push(h);break}const m=[e,2,p],g=[e,1,p];if(2===s.length){d?o.push(m,f):o.push(g,h);break}s.splice(0,2);const y=[e,c,mn(s)];Sn([e,2,[a,p,s[0]]],[],r,t,u.length>0,!0)?o.push(y,m,f):d?o.push(y,g,f):o.push(y,g,h);break}case"if-break":case"indent-if-break":{const t=l.groupId?Dn[l.groupId]:c;if(1===t){const t="if-break"===l.type?l.breakContents:l.negate?l.contents:yn(l.contents);t&&o.push([e,c,t])}if(2===t){const t="if-break"===l.type?l.flatContents:l.negate?yn(l.contents):l.contents;t&&o.push([e,c,t])}break}case"line-suffix":u.push([e,c,l.contents]);break;case"line-suffix-boundary":u.length>0&&o.push([e,c,{type:"line",hard:!0}]);break;case"line":switch(c){case 2:if(!l.hard){l.soft||(s.push(" "),i+=1);break}a=!0;case 1:if(u.length>0){o.push([e,c,l],...u.reverse()),u=[];break}l.literal?e.root?(s.push(r,e.root.value),i=e.root.length):(s.push(r),i=0):(i-=An(s),s.push(r+e.value),i=e.length)}break;case"label":o.push([e,c,l.contents])}0===o.length&&u.length>0&&(o.push(...u.reverse()),u=[])}const c=s.indexOf(gn.placeholder);if(-1!==c){const e=s.indexOf(gn.placeholder,c+1),t=s.slice(0,c).join(""),n=s.slice(c+1,e).join("");return{formatted:t+n+s.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join("")}}};const{isConcat:Tn,getDocParts:Fn}=pn;function Nn(e){if(!e)return"";if(Tn(e)){const t=[];for(const n of Fn(e))if(Tn(n))t.push(...Nn(n).parts);else{const e=Nn(n);""!==e&&t.push(e)}return{type:"concat",parts:t}}return"if-break"===e.type?Object.assign({},e,{breakContents:Nn(e.breakContents),flatContents:Nn(e.flatContents)}):"group"===e.type?Object.assign({},e,{contents:Nn(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(Nn)}):"fill"===e.type?{type:"fill",parts:e.parts.map(Nn)}:e.contents?Object.assign({},e,{contents:Nn(e.contents)}):e}var kn={builders:de,printer:xn,utils:pn,debug:{printDocToDebug:function(e){const t=Object.create(null),n=new Set;return function e(t,n,i){if("string"==typeof t)return JSON.stringify(t);if(Tn(t)){const n=Fn(t).map(e).filter(Boolean);return 1===n.length?n[0]:"[".concat(n.join(", "),"]")}if("line"===t.type){const e=Array.isArray(i)&&i[n+1]&&"break-parent"===i[n+1].type;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(i)&&i[n-1]&&"line"===i[n-1].type&&i[n-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+", { groupId: ".concat(r(t.groupId)," }"):"")+")";if("indent-if-break"===t.type){const n=[];t.negate&&n.push("negate: true"),t.groupId&&n.push("groupId: ".concat(r(t.groupId)));const i=n.length>0?", { ".concat(n.join(", ")," }"):"";return"indentIfBreak(".concat(e(t.contents)).concat(i,")")}if("group"===t.type){const n=[];t.break&&"propagated"!==t.break&&n.push("shouldBreak: true"),t.id&&n.push("id: ".concat(r(t.id)));const i=n.length>0?", { ".concat(n.join(", ")," }"):"";return t.expandedStates?"conditionalGroup([".concat(t.expandedStates.map((t=>e(t))).join(","),"]").concat(i,")"):"group(".concat(e(t.contents)).concat(i,")")}if("fill"===t.type)return"fill([".concat(t.parts.map((t=>e(t))).join(", "),"])");if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return"label(".concat(JSON.stringify(t.label),", ").concat(e(t.contents),")");throw new Error("Unknown doc type "+t.type)}(Nn(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];const r=String(e).slice(7,-1)||"symbol";for(let i=0;;i++){const o=r+(i>0?" #".concat(i):"");if(!n.has(o))return n.add(o),t[e]="Symbol.for(".concat(JSON.stringify(o),")")}}}}},_n=Object.freeze({__proto__:null,default:{}});function On(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}var Ln=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Pn=function(e){return Ln.exec(e).slice(1)};function In(){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=On(qn(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function Mn(e){var t=Bn(e),n="/"===Kn(e,-1);return(e=On(qn(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Bn(e){return"/"===e.charAt(0)}function jn(){return Mn(qn(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 Rn(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=In(e).substr(1),t=In(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a<o;a++)if(r[a]!==i[a]){s=a;break}var u=[];for(a=s;a<r.length;a++)u.push("..");return(u=u.concat(i.slice(s))).join("/")}function Vn(e){var t=Pn(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function $n(e,t){var n=Pn(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function Un(e){return Pn(e)[3]}var Wn={extname:Un,basename:$n,dirname:Vn,sep:"/",delimiter:":",relative:Rn,join:jn,isAbsolute:Bn,normalize:Mn,resolve:In};function qn(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}var Kn=function(e,t,n){return e.substr(t,n)},Hn=Object.freeze({__proto__:null,resolve:In,normalize:Mn,isAbsolute:Bn,join:jn,relative:Rn,sep:"/",delimiter:":",dirname:Vn,basename:$n,extname:Un,default:Wn}),Yn=[],zn=[],Jn="undefined"!=typeof Uint8Array?Uint8Array:Array,Gn=!1;function Qn(){Gn=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Yn[t]=e[t],zn[e.charCodeAt(t)]=t;zn["-".charCodeAt(0)]=62,zn["_".charCodeAt(0)]=63}function Xn(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(Yn[(i=r)>>18&63]+Yn[i>>12&63]+Yn[i>>6&63]+Yn[63&i]);return o.join("")}function Zn(e){var t;Gn||Qn();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;a<u;a+=s)o.push(Xn(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],i+=Yn[t>>2],i+=Yn[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Yn[t>>10],i+=Yn[t>>4&63],i+=Yn[t<<2&63],i+="="),o.push(i),o.join("")}function er(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)}function tr(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}var nr={}.toString,rr=Array.isArray||function(e){return"[object Array]"==nr.call(e)};function ir(){return sr.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function or(e,t){if(ir()<t)throw new RangeError("Invalid typed array length");return sr.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=sr.prototype:(null===e&&(e=new sr(t)),e.length=t),e}function sr(e,t,n){if(!(sr.TYPED_ARRAY_SUPPORT||this instanceof sr))return new sr(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return cr(this,e)}return ar(this,e,t,n)}function ar(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),sr.TYPED_ARRAY_SUPPORT?(e=t).__proto__=sr.prototype:e=lr(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!sr.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|hr(t,n),i=(e=or(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(fr(t)){var n=0|pr(t.length);return 0===(e=or(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?or(e,0):lr(e,t);if("Buffer"===t.type&&rr(t.data))return lr(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function ur(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function cr(e,t){if(ur(t),e=or(e,t<0?0:0|pr(t)),!sr.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function lr(e,t){var n=t.length<0?0:0|pr(t.length);e=or(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function pr(e){if(e>=ir())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ir().toString(16)+" bytes");return 0|e}function fr(e){return!(null==e||!e._isBuffer)}function hr(e,t){if(fr(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Vr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $r(e).length;default:if(r)return Vr(e).length;t=(""+t).toLowerCase(),r=!0}}function dr(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Nr(this,t,n);case"utf8":case"utf-8":return Sr(this,t,n);case"ascii":return Tr(this,t,n);case"latin1":case"binary":return Fr(this,t,n);case"base64":return Ar(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function mr(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function gr(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=sr.from(t,r)),fr(t))return 0===t.length?-1:yr(e,t,n,r,i);if("number"==typeof t)return t&=255,sr.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):yr(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function yr(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){p=!1;break}if(p)return o}return-1}function br(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function vr(e,t,n,r){return Ur(Vr(t,e.length-n),e,n,r)}function Dr(e,t,n,r){return Ur(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Cr(e,t,n,r){return Dr(e,t,n,r)}function Er(e,t,n,r){return Ur($r(t),e,n,r)}function wr(e,t,n,r){return Ur(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Ar(e,t,n){return 0===t&&n===e.length?Zn(e):Zn(e.slice(t,n))}function Sr(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,c=e[i],l=null,p=c>239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=xr)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=xr));return n}(r)}sr.TYPED_ARRAY_SUPPORT=void 0===Ae.TYPED_ARRAY_SUPPORT||Ae.TYPED_ARRAY_SUPPORT,sr.poolSize=8192,sr._augment=function(e){return e.__proto__=sr.prototype,e},sr.from=function(e,t,n){return ar(null,e,t,n)},sr.TYPED_ARRAY_SUPPORT&&(sr.prototype.__proto__=Uint8Array.prototype,sr.__proto__=Uint8Array),sr.alloc=function(e,t,n){return function(e,t,n,r){return ur(t),t<=0?or(e,t):void 0!==n?"string"==typeof r?or(e,t).fill(n,r):or(e,t).fill(n):or(e,t)}(null,e,t,n)},sr.allocUnsafe=function(e){return cr(null,e)},sr.allocUnsafeSlow=function(e){return cr(null,e)},sr.isBuffer=Wr,sr.compare=function(e,t){if(!fr(e)||!fr(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},sr.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},sr.concat=function(e,t){if(!rr(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return sr.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=sr.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!fr(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},sr.byteLength=hr,sr.prototype._isBuffer=!0,sr.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)mr(this,t,t+1);return this},sr.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)mr(this,t,t+3),mr(this,t+1,t+2);return this},sr.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)mr(this,t,t+7),mr(this,t+1,t+6),mr(this,t+2,t+5),mr(this,t+3,t+4);return this},sr.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Sr(this,0,e):dr.apply(this,arguments)},sr.prototype.equals=function(e){if(!fr(e))throw new TypeError("Argument must be a Buffer");return this===e||0===sr.compare(this,e)},sr.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},sr.prototype.compare=function(e,t,n,r,i){if(!fr(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),l=0;l<a;++l)if(u[l]!==c[l]){o=u[l],s=c[l];break}return o<s?-1:s<o?1:0},sr.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},sr.prototype.indexOf=function(e,t,n){return gr(this,e,t,n,!0)},sr.prototype.lastIndexOf=function(e,t,n){return gr(this,e,t,n,!1)},sr.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return br(this,e,t,n);case"utf8":case"utf-8":return vr(this,e,t,n);case"ascii":return Dr(this,e,t,n);case"latin1":case"binary":return Cr(this,e,t,n);case"base64":return Er(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},sr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var xr=4096;function Tr(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function Fr(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function Nr(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Rr(e[o]);return i}function kr(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function _r(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Or(e,t,n,r,i,o){if(!fr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Lr(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Pr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Ir(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Mr(e,t,n,r,i){return i||Ir(e,0,n,4),tr(e,t,n,r,23,4),n+4}function Br(e,t,n,r,i){return i||Ir(e,0,n,8),tr(e,t,n,r,52,8),n+8}sr.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),sr.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=sr.prototype;else{var i=t-e;n=new sr(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},sr.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_r(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},sr.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_r(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},sr.prototype.readUInt8=function(e,t){return t||_r(e,1,this.length),this[e]},sr.prototype.readUInt16LE=function(e,t){return t||_r(e,2,this.length),this[e]|this[e+1]<<8},sr.prototype.readUInt16BE=function(e,t){return t||_r(e,2,this.length),this[e]<<8|this[e+1]},sr.prototype.readUInt32LE=function(e,t){return t||_r(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},sr.prototype.readUInt32BE=function(e,t){return t||_r(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},sr.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_r(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},sr.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_r(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},sr.prototype.readInt8=function(e,t){return t||_r(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},sr.prototype.readInt16LE=function(e,t){t||_r(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},sr.prototype.readInt16BE=function(e,t){t||_r(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},sr.prototype.readInt32LE=function(e,t){return t||_r(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},sr.prototype.readInt32BE=function(e,t){return t||_r(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},sr.prototype.readFloatLE=function(e,t){return t||_r(e,4,this.length),er(this,e,!0,23,4)},sr.prototype.readFloatBE=function(e,t){return t||_r(e,4,this.length),er(this,e,!1,23,4)},sr.prototype.readDoubleLE=function(e,t){return t||_r(e,8,this.length),er(this,e,!0,52,8)},sr.prototype.readDoubleBE=function(e,t){return t||_r(e,8,this.length),er(this,e,!1,52,8)},sr.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Or(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},sr.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Or(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},sr.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,1,255,0),sr.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},sr.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,2,65535,0),sr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Lr(this,e,t,!0),t+2},sr.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,2,65535,0),sr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Lr(this,e,t,!1),t+2},sr.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,4,4294967295,0),sr.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Pr(this,e,t,!0),t+4},sr.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,4,4294967295,0),sr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Pr(this,e,t,!1),t+4},sr.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Or(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},sr.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Or(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},sr.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,1,127,-128),sr.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},sr.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,2,32767,-32768),sr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Lr(this,e,t,!0),t+2},sr.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,2,32767,-32768),sr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Lr(this,e,t,!1),t+2},sr.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,4,2147483647,-2147483648),sr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Pr(this,e,t,!0),t+4},sr.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Or(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),sr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Pr(this,e,t,!1),t+4},sr.prototype.writeFloatLE=function(e,t,n){return Mr(this,e,t,!0,n)},sr.prototype.writeFloatBE=function(e,t,n){return Mr(this,e,t,!1,n)},sr.prototype.writeDoubleLE=function(e,t,n){return Br(this,e,t,!0,n)},sr.prototype.writeDoubleBE=function(e,t,n){return Br(this,e,t,!1,n)},sr.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!sr.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},sr.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!sr.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=fr(e)?e:Vr(new sr(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var jr=/[^+\/0-9A-Za-z-_]/g;function Rr(e){return e<16?"0"+e.toString(16):e.toString(16)}function Vr(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $r(e){return function(e){var t,n,r,i,o,s;Gn||Qn();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new Jn(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)i=zn[e.charCodeAt(t)]<<18|zn[e.charCodeAt(t+1)]<<12|zn[e.charCodeAt(t+2)]<<6|zn[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=zn[e.charCodeAt(t)]<<2|zn[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=zn[e.charCodeAt(t)]<<10|zn[e.charCodeAt(t+1)]<<4|zn[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(jr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ur(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Wr(e){return null!=e&&(!!e._isBuffer||qr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&qr(e.slice(0,0))}(e))}function qr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Kr=o(_n);class Hr extends Error{}class Yr extends Error{}class zr extends Error{}class Jr extends Error{}var Gr={ConfigError:Hr,DebugError:Yr,UndefinedParserError:zr,ArgExpansionBailout:Jr},Qr=function(e,t){return(Qr=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)},Xr=function(){return(Xr=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}).apply(this,arguments)};function Zr(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 ei(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function ti(e){return this instanceof ti?(this.v=e,this):new ti(e)}var ni=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Qr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Xr},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},__decorate:function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},__createBinding:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},__values:Zr,__read:ei,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ei(arguments[t]));return e},__spreadArrays:function(){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 o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},__await:ti,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof ti?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:ti(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Zr(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),ri=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((e=>t.apiDescriptor.value(e))).join(", "),"]");const n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((n=>"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n])))).join(", ")," }")},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}})),ii=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(ri,t)})),oi=/[|\\{}()[\]^$+*?.]/g,si=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(oi,"\\$&")},ai={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ui=s((function(e){var t={};for(var n in ai)ai.hasOwnProperty(n)&&(t[ai[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,s=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?i=o=0:(o=l/c,t=p(s),n=p(a),r=p(u),s===c?i=r-n:a===c?i=1/3+t-r:u===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i,o,s=1/0;for(var a in ai)if(ai.hasOwnProperty(a)){var u=(i=e,o=ai[a],Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));u<s&&(s=u,r=a)}return r},r.keyword.rgb=function(e){return ai[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,s=i,a=c;break;case 1:o=i,s=n,a=c;break;case 2:o=c,s=n,a=i;break;case 3:o=c,s=i,a=n;break;case 4:o=i,s=c,a=n;break;case 5:o=n,s=c,a=i}return[255*o,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function ci(e,t){return function(n){return t(e(n))}}function li(e,t){for(var n=[t[e].parent,e],r=ui[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=ci(ui[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}var pi={};Object.keys(ui).forEach((function(e){pi[e]={},Object.defineProperty(pi[e],"channels",{value:ui[e].channels}),Object.defineProperty(pi[e],"labels",{value:ui[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(ui),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),i=Object.keys(ui[r]),o=i.length,s=0;s<o;s++){var a=i[s],u=t[a];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(a))}return t}(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var s=r[o];null!==t[s].parent&&(n[s]=li(s,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];pi[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),pi[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var fi,hi=pi,di=s((function(e){const t=(e,t)=>function(){const n=e.apply(hi,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(hi,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(hi,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(s,10)};for(let e of Object.keys(hi)){if("object"!=typeof hi[e])continue;const o=hi[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=t(o.ansi16,0),i.bgColor.ansi[e]=t(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=n(o.ansi256,0),i.bgColor.ansi256[e]=n(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=r(o.rgb,0),i.bgColor.ansi16m[e]=r(o.rgb,10))}return i}})}));function mi(){if(void 0===fi){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])fi="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");fi="LE"}}return fi}function gi(){return void 0!==Ae.location?Ae.location.hostname:""}function yi(){return[]}function bi(){return 0}function vi(){return Number.MAX_VALUE}function Di(){return Number.MAX_VALUE}function Ci(){return[]}function Ei(){return"Browser"}function wi(){return void 0!==Ae.navigator?Ae.navigator.appVersion:""}function Ai(){}function Si(){}function xi(){return"javascript"}function Ti(){return"browser"}function Fi(){return"/tmp"}var Ni=Fi,ki={EOL:"\n",arch:xi,platform:Ti,tmpdir:Ni,tmpDir:Fi,networkInterfaces:Ai,getNetworkInterfaces:Si,release:wi,type:Ei,cpus:Ci,totalmem:Di,freemem:vi,uptime:bi,loadavg:yi,hostname:gi,endianness:mi},_i=(e,t)=>{t=t||ze.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)},Oi=o(Object.freeze({__proto__:null,endianness:mi,hostname:gi,loadavg:yi,uptime:bi,freemem:vi,totalmem:Di,cpus:Ci,type:Ei,release:wi,networkInterfaces:Ai,getNetworkInterfaces:Si,arch:xi,platform:Ti,tmpDir:Fi,tmpdir:Ni,EOL:"\n",default:ki}));const Li=ze.env;let Pi;function Ii(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===Pi)return 0;if(_i("color=16m")||_i("color=full")||_i("color=truecolor"))return 3;if(_i("color=256"))return 2;if(e&&!e.isTTY&&!0!==Pi)return 0;const t=Pi?1:0;if("win32"===ze.platform){const e=Oi.release().split(".");return Number(ze.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Li)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Li))||"codeship"===Li.CI_NAME?1:t;if("TEAMCITY_VERSION"in Li)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Li.TEAMCITY_VERSION)?1:0;if("truecolor"===Li.COLORTERM)return 3;if("TERM_PROGRAM"in Li){const e=parseInt((Li.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Li.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Li.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Li.TERM)||"COLORTERM"in Li?1:(Li.TERM,t)}(e))}_i("no-color")||_i("no-colors")||_i("color=false")?Pi=!1:(_i("color")||_i("colors")||_i("color=true")||_i("color=always"))&&(Pi=!0),"FORCE_COLOR"in Li&&(Pi=0===Li.FORCE_COLOR.length||0!==parseInt(Li.FORCE_COLOR,10));var Mi={supportsColor:Ii,stdout:Ii(ze.stdout),stderr:Ii(ze.stderr)};const Bi=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ji=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ri=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Vi=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,$i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Ui(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):$i.get(e)||e}function Wi(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r)if(isNaN(t)){if(!(i=t.match(Ri)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(i[2].replace(Vi,((e,t,n)=>t?Ui(t):n)))}else n.push(Number(t));return n}function qi(e){ji.lastIndex=0;const t=[];let n;for(;null!==(n=ji.exec(e));){const e=n[1];if(n[2]){const r=Wi(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Ki(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var Hi=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Bi,((t,o,s,a,u,c)=>{if(o)i.push(Ui(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Ki(e,n)(t)),n.push({inverse:s,styles:qi(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Ki(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)})),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},Yi=s((function(e){const t=Mi.stdout,n="win32"===ze.platform&&!(ze.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(di.blue.open="");for(const e of Object.keys(di))di[e].closeRe=new RegExp(si(di[e].close),"g"),o[e]={get(){const t=di[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};o.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},di.color.closeRe=new RegExp(si(di.color.close),"g");for(const e of Object.keys(di.color.ansi))i.has(e)||(o[e]={get(){const t=this.level;return function(){const n={open:di.color[r[t]][e].apply(null,arguments),close:di.color.close,closeRe:di.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});di.bgColor.closeRe=new RegExp(si(di.bgColor.close),"g");for(const e of Object.keys(di.bgColor.ansi))i.has(e)||(o["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:di.bgColor[r[t]][e].apply(null,arguments),close:di.bgColor.close,closeRe:di.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),o);function c(e,t,n){const r=function(){return l.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const i=di.dim.open;n&&this.hasGrey&&(di.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,"".concat(e.close,"$&").concat(e.open));return di.dim.open=i,r}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return Hi(e,r.join(""))}Object.defineProperties(a.prototype,o),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports})),zi=Object.defineProperty({commonDeprecatedHandler:(e,t,{descriptor:n})=>{const r=["".concat(Yi.default.yellow("string"==typeof e?n.key(e):n.pair(e))," is deprecated")];return t&&r.push("we now treat it as ".concat(Yi.default.blue("string"==typeof t?n.key(t):n.pair(t)))),r.join("; ")+"."}},"__esModule",{value:!0}),Ji=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(zi,t)})),Gi=Object.defineProperty({commonInvalidHandler:(e,t,n)=>["Invalid ".concat(Yi.default.red(n.descriptor.key(e))," value."),"Expected ".concat(Yi.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(Yi.default.red(n.descriptor.value(t)),".")].join(" ")},"__esModule",{value:!0}),Qi=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(Gi,t)})),Xi=[],Zi=[],eo=Object.defineProperty({levenUnknownHandler:(e,t,{descriptor:n,logger:r,schemas:i})=>{const o=["Ignored unknown option ".concat(Yi.default.yellow(n.pair({key:e,value:t})),".")],s=Object.keys(i).sort().find((t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;if(0===r)return i;for(var o,s,a,u,c=0;c<r&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(i-=c,0==(r-=c))return i;for(var l=0,p=0;l<r;)Zi[c+l]=e.charCodeAt(c+l),Xi[l]=++l;for(;p<i;)for(o=t.charCodeAt(c+p),a=p++,s=p,l=0;l<r;l++)u=o===Zi[c+l]?a:a+1,a=Xi[l],s=Xi[l]=a>s?u>s?s+1:u:u>a?a+1:u;return s}(e,t)<3));s&&o.push("Did you mean ".concat(Yi.default.blue(n.key(s)),"?")),r.warn(o.join(" "))}},"__esModule",{value:!0}),to=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(eo,t)})),no=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(Ji,t),ni.__exportStar(Qi,t),ni.__exportStar(to,t)}));const ro=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function io(e,t){const n=new e(t),r=Object.create(n);for(const e of ro)e in t&&(r[e]=uo(t[e],n,so.prototype[e].length));return r}var oo=io;class so{constructor(e){this.name=e.name}static create(e){return io(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}}var ao=so;function uo(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var co=Object.defineProperty({createSchema:oo,Schema:ao},"__esModule",{value:!0});class lo extends co.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}}var po=lo,fo=Object.defineProperty({AliasSchema:po},"__esModule",{value:!0});class ho extends co.Schema{expected(){return"anything"}validate(){return!0}}var mo=ho,go=Object.defineProperty({AnySchema:mo},"__esModule",{value:!0});class yo extends co.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=ni.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map((({value:e})=>({value:[e]}))))}return n}forward(e,t){const n=[];for(const r of e){const e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(vo))}return n}redirect(e,t){const n=[],r=[];for(const i of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(vo))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}}var bo=yo;function vo({from:e,to:t}){return{from:[e],to:t}}var Do=Object.defineProperty({ArraySchema:bo},"__esModule",{value:!0});class Co extends co.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}var Eo=Co,wo=Object.defineProperty({BooleanSchema:Eo},"__esModule",{value:!0});function Ao(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}}var So=Ao;function xo(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>Ao(e,t))):[Ao(e,t)]}var To=xo,Fo=Object.defineProperty({recordFromArray:function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},mapFromArray:function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},createAutoChecklist:function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},partition:function(e,t){const n=[],r=[];for(const i of e)t(i)?n.push(i):r.push(i);return[n,r]},isInt:function(e){return e===Math.floor(e)},comparePrimitive:function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},normalizeDefaultResult:function(e){return void 0===e?{}:e},normalizeValidateResult:function(e,t){return!0===e||(!1===e?{value:t}:e)},normalizeDeprecatedResult:function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},normalizeTransferResult:So,normalizeForwardResult:To,normalizeRedirectResult:function(e,t){const n=xo("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}}},"__esModule",{value:!0});class No extends co.Schema{constructor(e){super(e),this._choices=Fo.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(Fo.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}var ko=No,_o=Object.defineProperty({ChoiceSchema:ko},"__esModule",{value:!0});class Oo extends co.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}var Lo=Oo,Po=Object.defineProperty({NumberSchema:Lo},"__esModule",{value:!0});class Io extends Po.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&Fo.isInt(e)}}var Mo=Io,Bo=Object.defineProperty({IntegerSchema:Mo},"__esModule",{value:!0});class jo extends co.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}var Ro=jo,Vo=Object.defineProperty({StringSchema:Ro},"__esModule",{value:!0}),$o=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(fo,t),ni.__exportStar(go,t),ni.__exportStar(Do,t),ni.__exportStar(wo,t),ni.__exportStar(_o,t),ni.__exportStar(Bo,t),ni.__exportStar(Po,t),ni.__exportStar(Vo,t)})),Uo=ri.apiDescriptor,Wo=eo.levenUnknownHandler,qo=Qi.commonInvalidHandler,Ko=zi.commonDeprecatedHandler,Ho=Object.defineProperty({defaultDescriptor:Uo,defaultUnknownHandler:Wo,defaultInvalidHandler:qo,defaultDeprecatedHandler:Ko},"__esModule",{value:!0});class Yo{constructor(e,t){const{logger:n=console,descriptor:r=Ho.defaultDescriptor,unknown:i=Ho.defaultUnknownHandler,invalid:o=Ho.defaultInvalidHandler,deprecated:s=Ho.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:Fo.recordFromArray(e,"name"),normalizeDefaultResult:Fo.normalizeDefaultResult,normalizeDeprecatedResult:Fo.normalizeDeprecatedResult,normalizeForwardResult:Fo.normalizeForwardResult,normalizeRedirectResult:Fo.normalizeRedirectResult,normalizeValidateResult:Fo.normalizeValidateResult},this._unknownHandler=i,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Fo.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const e of Object.keys(this._utils.schemas)){const r=this._utils.schemas[e];if(!(e in t)){const t=Fo.normalizeDefaultResult(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}r();for(const e of Object.keys(this._utils.schemas)){const n=this._utils.schemas[e];e in t&&(t[e]=n.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,i]=Fo.partition(Object.keys(e),(e=>e in this._utils.schemas));for(const i of r){const r=this._utils.schemas[i],o=r.preprocess(e[i],this._utils),s=Fo.normalizeValidateResult(r.validate(o,this._utils),o);if(!0!==s){const{value:e}=s,t=this._invalidHandler(i,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},u=({value:e,redirectTo:t})=>{const n=Fo.normalizeDeprecatedResult(r.deprecated(e,this._utils),o,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(const{value:e}of n){const n={key:i,value:e};if(!this._hasDeprecationWarned(n)){const r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};Fo.normalizeForwardResult(r.forward(o,this._utils),o).forEach(a);const c=Fo.normalizeRedirectResult(r.redirect(o,this._utils),o);if(c.redirect.forEach(a),"remain"in c){const e=c.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of c.redirect)u({value:e,redirectTo:t})}for(const r of i){const i=e[r],o=this._unknownHandler(r,i,this._utils);if(o)for(const e of Object.keys(o)){const r={[e]:o[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}var zo=Yo,Jo=Object.defineProperty({normalize:(e,t,n)=>new Yo(t,n).normalize(e),Normalizer:zo},"__esModule",{value:!0}),Go=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),ni.__exportStar(ii,t),ni.__exportStar(no,t),ni.__exportStar($o,t),ni.__exportStar(Jo,t),ni.__exportStar(co,t)}));const Qo=[],Xo=[],Zo=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,s,a,u,c=0;for(;c<r&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(r-=c,i-=c,0===r)return i;let l=0,p=0;for(;l<r;)Xo[l]=e.charCodeAt(c+l),Qo[l]=++l;for(;p<i;)for(o=t.charCodeAt(c+p),a=p++,s=p,l=0;l<r;l++)u=o===Xo[l]?a:a+1,a=Qo[l],s=Qo[l]=a>s?u>s?s+1:u:u>a?a+1:u;return s};var es=Zo,ts=Zo;es.default=ts;var ns={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const rs={};for(const e of Object.keys(ns))rs[ns[e]]=e;const is={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var os=is;for(const e of Object.keys(is)){if(!("channels"in is[e]))throw new Error("missing channels property: "+e);if(!("labels"in is[e]))throw new Error("missing channel labels property: "+e);if(is[e].labels.length!==is[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=is[e];delete is[e].channels,delete is[e].labels,Object.defineProperty(is[e],"channels",{value:t}),Object.defineProperty(is[e],"labels",{value:n})}function ss(e,t){return function(n){return t(e(n))}}function as(e,t){const n=[t[e].parent,e];let r=os[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),r=ss(os[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}is.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i;let a,u;o===i?a=0:t===o?a=(n-r)/s:n===o?a=2+(r-t)/s:r===o&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(i+o)/2;return u=o===i?0:c<=.5?s/(o+i):s/(2-o-i),[a,100*u,100*c]},is.rgb.hsv=function(e){let t,n,r,i,o;const s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?(i=0,o=0):(o=l/c,t=p(s),n=p(a),r=p(u),s===c?i=r-n:a===c?i=1/3+t-r:u===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},is.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=is.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},is.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},is.rgb.keyword=function(e){const t=rs[e];if(t)return t;let n,r=1/0;for(const t of Object.keys(ns)){const s=(o=ns[t],((i=e)[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2);s<r&&(r=s,n=t)}var i,o;return n},is.keyword.rgb=function(e){return ns[e]},is.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},is.rgb.lab=function(e){const t=is.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},is.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,u=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[e]=255*s;return u},is.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},is.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},is.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},is.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),a=1-r;o=6*t-s,0!=(1&s)&&(o=1-o);const u=n+o*(a-n);let c,l,p;switch(s){default:case 6:case 0:c=a,l=u,p=n;break;case 1:c=u,l=a,p=n;break;case 2:c=n,l=a,p=u;break;case 3:c=n,l=u,p=a;break;case 4:c=u,l=n,p=a;break;case 5:c=a,l=n,p=u}return[255*c,255*l,255*p]},is.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},is.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},is.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},is.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},is.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},is.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},is.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=null===t?is.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},is.hsv.ansi16=function(e){return is.rgb.ansi16(is.hsv.rgb(e),e[2])},is.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},is.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},is.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},is.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},is.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},is.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},is.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},is.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},is.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},is.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},is.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},is.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},is.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},is.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},is.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},is.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},is.gray.hsl=function(e){return[0,0,e[0]]},is.gray.hsv=is.gray.hsl,is.gray.hwb=function(e){return[0,100,e[0]]},is.gray.cmyk=function(e){return[0,0,0,e[0]]},is.gray.lab=function(e){return[e[0],0,0]},is.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},is.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const us={};Object.keys(os).forEach((e=>{us[e]={},Object.defineProperty(us[e],"channels",{value:os[e].channels}),Object.defineProperty(us[e],"labels",{value:os[e].labels});const t=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(os);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(os[e]);for(let i=r.length,o=0;o<i;o++){const i=r[o],s=t[i];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(i))}}return t}(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){const e=r[i];null!==t[e].parent&&(n[e]=as(e,t))}return n}(e);Object.keys(t).forEach((n=>{const r=t[n];us[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),us[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var cs=us,ls=s((function(e){const t=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(r+t,"m")},n=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";5;").concat(r,"m")},r=(e,t)=>(...n)=>{const r=e(...n);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")},i=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=cs);const i=r?10:0,o={};for(const[r,s]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?o[a]=e(n,i):"object"==typeof s&&(o[a]=e(s[t],i))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",s(a.color,"ansi",(()=>u(t,"ansi16",i,!1))),s(a.color,"ansi256",(()=>u(n,"ansi256",i,!1))),s(a.color,"ansi16m",(()=>u(r,"rgb",o,!1))),s(a.bgColor,"ansi",(()=>u(t,"ansi16",i,!0))),s(a.bgColor,"ansi256",(()=>u(n,"ansi256",i,!0))),s(a.bgColor,"ansi16m",(()=>u(r,"rgb",o,!0))),a}})}));function ps(){return!1}function fs(){throw new Error("tty.ReadStream is not implemented")}function hs(){throw new Error("tty.ReadStream is not implemented")}var ds={isatty:ps,ReadStream:fs,WriteStream:hs},ms=(e,t=ze.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)},gs=o(Object.freeze({__proto__:null,isatty:ps,ReadStream:fs,WriteStream:hs,default:ds}));const{env:ys}=ze;let bs;function vs(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ds(e,t){if(0===bs)return 0;if(ms("color=16m")||ms("color=full")||ms("color=truecolor"))return 3;if(ms("color=256"))return 2;if(e&&!t&&void 0===bs)return 0;const n=bs||0;if("dumb"===ys.TERM)return n;if("win32"===ze.platform){const e=Oi.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ys)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in ys))||"codeship"===ys.CI_NAME?1:n;if("TEAMCITY_VERSION"in ys)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ys.TEAMCITY_VERSION)?1:0;if("truecolor"===ys.COLORTERM)return 3;if("TERM_PROGRAM"in ys){const e=parseInt((ys.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ys.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ys.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ys.TERM)||"COLORTERM"in ys?1:n}ms("no-color")||ms("no-colors")||ms("color=false")||ms("color=never")?bs=0:(ms("color")||ms("colors")||ms("color=true")||ms("color=always"))&&(bs=1),"FORCE_COLOR"in ys&&(bs="true"===ys.FORCE_COLOR?1:"false"===ys.FORCE_COLOR?0:0===ys.FORCE_COLOR.length?1:Math.min(parseInt(ys.FORCE_COLOR,10),3));var Cs={supportsColor:function(e){return vs(Ds(e,e&&e.isTTY))},stdout:vs(Ds(!0,gs.isatty(1))),stderr:vs(Ds(!0,gs.isatty(2)))};const Es=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ws=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,As=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ss=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,xs=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Ts(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):xs.get(e)||e}function Fs(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r){const r=Number(t);if(Number.isNaN(r)){if(!(i=t.match(As)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(i[2].replace(Ss,((e,t,n)=>t?Ts(t):n)))}else n.push(r)}return n}function Ns(e){ws.lastIndex=0;const t=[];let n;for(;null!==(n=ws.exec(e));){const e=n[1];if(n[2]){const r=Fs(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function ks(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=t.length>0?r[e](...t):r[e]}return r}var _s=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Es,((t,o,s,a,u,c)=>{if(o)i.push(Ts(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:ks(e,n)(t)),n.push({inverse:s,styles:Ns(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ks(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)})),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const{stdout:Os,stderr:Ls}=Cs,{stringReplaceAll:Ps,stringEncaseCRLFWithFirstIndex:Is}={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.substr(o),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,o="";do{const s="\r"===e[r-1];o+=e.substr(i,(s?r-1:r)-i)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i),o}},{isArray:Ms}=Array,Bs=["ansi","ansi","ansi256","ansi16m"],js=Object.create(null);class Rs{constructor(e){return Vs(e)}}const Vs=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Os?Os.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>zs(t.template,...e),Object.setPrototypeOf(t,$s.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Rs,t.template};function $s(e){return Vs(e)}for(const[e,t]of Object.entries(ls))js[e]={get(){const n=Ks(this,qs(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};js.visible={get(){const e=Ks(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Us=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of Us)js[e]={get(){const{level:t}=this;return function(...n){const r=qs(ls.color[Bs[t]][e](...n),ls.color.close,this._styler);return Ks(this,r,this._isEmpty)}}};for(const e of Us)js["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=qs(ls.bgColor[Bs[t]][e](...n),ls.bgColor.close,this._styler);return Ks(this,r,this._isEmpty)}}};const Ws=Object.defineProperties((()=>{}),Object.assign({},js,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),qs=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},Ks=(e,t,n)=>{const r=(...e)=>Ms(e[0])&&Ms(e[0].raw)?Hs(r,zs(r,...e)):Hs(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,Ws),r._generator=e,r._styler=t,r._isEmpty=n,r},Hs=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=Ps(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=Is(t,i,r,o)),r+t+i};let Ys;const zs=(e,...t)=>{const[n]=t;if(!Ms(n)||!Ms(n.raw))return t.join(" ");const r=t.slice(1),i=[n.raw[0]];for(let e=1;e<n.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===Ys&&(Ys=_s),Ys(e,i.join(""))};Object.defineProperties($s.prototype,js);const Js=$s();Js.supportsColor=Os,Js.stderr=$s({level:Ls?Ls.level:0}),Js.stderr.supportsColor=Ls;var Gs=Js,Qs=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Xs="object"==typeof i&&i&&i.Object===Object&&i,Zs="object"==typeof self&&self&&self.Object===Object&&self,ea=(Xs||Zs||Function("return this")()).Symbol,ta=Object.prototype,na=ta.hasOwnProperty,ra=ta.toString,ia=ea?ea.toStringTag:void 0,oa=Object.prototype.toString,sa=ea?ea.toStringTag:void 0,aa=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sa&&sa in Object(e)?function(e){var t=na.call(e,ia),n=e[ia];try{e[ia]=void 0;var r=!0}catch(e){}var i=ra.call(e);return r&&(t?e[ia]=n:delete e[ia]),i}(e):function(e){return oa.call(e)}(e)},ua=function(e){return null!=e&&"object"==typeof e},ca=function(e){return ua(e)&&"[object Arguments]"==aa(e)},la=Object.prototype,pa=la.hasOwnProperty,fa=la.propertyIsEnumerable,ha=ca(function(){return arguments}())?ca:function(e){return ua(e)&&pa.call(e,"callee")&&!fa.call(e,"callee")},da=Array.isArray,ma=ea?ea.isConcatSpreadable:void 0,ga=function(e){return da(e)||ha(e)||!!(ma&&e&&e[ma])},ya=function e(t,n,r,i,o){var s=-1,a=t.length;for(r||(r=ga),o||(o=[]);++s<a;){var u=t[s];n>0&&r(u)?n>1?e(u,n-1,r,i,o):Qs(o,u):i||(o[o.length]=u)}return o},ba=function(e){return null!=e&&e.length?ya(e,1):[]};const va={key:e=>1===e.length?"-".concat(e):"--".concat(e),value:e=>Go.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-".concat(e):!0===t?va.key(e):""===t?"".concat(va.key(e)," without an argument"):"".concat(va.key(e),"=").concat(t)};class Da extends Go.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=[...t].sort()}preprocess(e,t){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){const n=this._flags.find((t=>es(t,e)<3));if(n)return t.logger.warn(["Unknown flag ".concat(Gs.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Gs.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let Ca;function Ea(t,n,{logger:r,isCLI:i=!1,passThrough:o=!1}={}){const s=o?Array.isArray(o)?(e,t)=>o.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(t,n,r)=>{const i=e(r.schemas,["_"]);return Go.levenUnknownHandler(t,n,Object.assign({},r,{schemas:i}))},a=i?va:Go.apiDescriptor,u=function(e,{isCLI:t}){const n=[];t&&n.push(Go.AnySchema.create({name:"_"}));for(const r of e)n.push(wa(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push(Go.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(n,{isCLI:i}),c=new Go.Normalizer(u,{logger:r,unknown:s,descriptor:a}),l=!1!==r;l&&Ca&&(c._hasDeprecationWarned=Ca);const p=c.normalize(t);return l&&(Ca=c._hasDeprecationWarned),p}function wa(e,{isCLI:t,optionInfos:n}){let r;const i={name:e.name},o={};switch(e.type){case"int":r=Go.IntegerSchema,t&&(i.preprocess=e=>Number(e));break;case"string":case"path":r=Go.StringSchema;break;case"choice":r=Go.ChoiceSchema,i.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":r=Go.BooleanSchema;break;case"flag":r=Da,i.flags=ba(n.map((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?i.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):i.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(o.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){const e=i.preprocess||(e=>e);i.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?Ee(t):t),r)}return e.array?Go.ArraySchema.create(Object.assign({},t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},o,{valueSchema:r.create(i)})):r.create(Object.assign({},i,o))}var Aa=function(e,t,n){return Ea(e,t,n)};const{isNonEmptyArray:Sa}=zt;function xa(e,t){const{ignoreDecorators:n}=t||{};if(!n){const t=e.declaration&&e.declaration.decorators||e.decorators;if(Sa(t))return xa(t[0])}return e.range?e.range[0]:e.start}function Ta(e){return e.range?e.range[1]:e.end}function Fa(e,t){return xa(e)===xa(t)}var Na={locStart:xa,locEnd:Ta,hasSameLocStart:Fa,hasSameLoc:function(e,t){return Fa(e,t)&&function(e,t){return Ta(e)===Ta(t)}(e,t)}},ka=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},"__esModule",{value:!0}),_a=Va,Oa=$a;let La="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Pa="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const Ia=new RegExp("["+La+"]"),Ma=new RegExp("["+La+Pa+"]");La=Pa=null;const Ba=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],ja=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function Ra(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function Va(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Ia.test(String.fromCharCode(e)):Ra(e,Ba)))}function $a(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Ma.test(String.fromCharCode(e)):Ra(e,Ba)||Ra(e,ja))))}var Ua=Object.defineProperty({isIdentifierStart:_a,isIdentifierChar:Oa,isIdentifierName:function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!Va(r))return!1}else if(!$a(r))return!1}return!t}},"__esModule",{value:!0}),Wa=Ja,qa=Ga,Ka=Qa;const Ha=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Ya=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),za=new Set(["eval","arguments"]);function Ja(e,t){return t&&"await"===e||"enum"===e}function Ga(e,t){return Ja(e,t)||Ya.has(e)}function Qa(e){return za.has(e)}var Xa=Object.defineProperty({isReservedWord:Wa,isStrictReservedWord:qa,isStrictBindOnlyReservedWord:Ka,isStrictBindReservedWord:function(e,t){return Ga(e,t)||Qa(e)},isKeyword:function(e){return Ha.has(e)}},"__esModule",{value:!0}),Za=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return Ua.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return Ua.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return Ua.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return Xa.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Xa.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Xa.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return Xa.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return Xa.isKeyword}})})),eu=/[|\\{}()[\]^$+*?.]/g,tu=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(eu,"\\$&")},nu={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ru=s((function(e){var t={};for(var n in nu)nu.hasOwnProperty(n)&&(t[nu[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,s=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),p=function(e){return(c-e)/6/l+.5};return 0===l?i=o=0:(o=l/c,t=p(s),n=p(a),r=p(u),s===c?i=r-n:a===c?i=1/3+t-r:u===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i,o,s=1/0;for(var a in nu)if(nu.hasOwnProperty(a)){var u=(i=e,o=nu[a],Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));u<s&&(s=u,r=a)}return r},r.keyword.rgb=function(e){return nu[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,s=i,a=c;break;case 1:o=i,s=n,a=c;break;case 2:o=c,s=n,a=i;break;case 3:o=c,s=i,a=n;break;case 4:o=i,s=c,a=n;break;case 5:o=n,s=c,a=i}return[255*o,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function iu(e,t){return function(n){return t(e(n))}}function ou(e,t){for(var n=[t[e].parent,e],r=ru[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=iu(ru[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}var su={};Object.keys(ru).forEach((function(e){su[e]={},Object.defineProperty(su[e],"channels",{value:ru[e].channels}),Object.defineProperty(su[e],"labels",{value:ru[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(ru),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),i=Object.keys(ru[r]),o=i.length,s=0;s<o;s++){var a=i[s],u=t[a];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(a))}return t}(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var s=r[o];null!==t[s].parent&&(n[s]=ou(s,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];su[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),su[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var au=su,uu=s((function(e){const t=(e,t)=>function(){const n=e.apply(au,arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e.apply(au,arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e.apply(au,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(s,10)};for(let e of Object.keys(au)){if("object"!=typeof au[e])continue;const o=au[e];"ansi16"===e&&(e="ansi"),"ansi16"in o&&(i.color.ansi[e]=t(o.ansi16,0),i.bgColor.ansi[e]=t(o.ansi16,10)),"ansi256"in o&&(i.color.ansi256[e]=n(o.ansi256,0),i.bgColor.ansi256[e]=n(o.ansi256,10)),"rgb"in o&&(i.color.ansi16m[e]=r(o.rgb,0),i.bgColor.ansi16m[e]=r(o.rgb,10))}return i}})}));const cu=ze.env;let lu;function pu(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===lu)return 0;if(_i("color=16m")||_i("color=full")||_i("color=truecolor"))return 3;if(_i("color=256"))return 2;if(e&&!e.isTTY&&!0!==lu)return 0;const t=lu?1:0;if("win32"===ze.platform){const e=Oi.release().split(".");return Number(ze.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in cu)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in cu))||"codeship"===cu.CI_NAME?1:t;if("TEAMCITY_VERSION"in cu)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(cu.TEAMCITY_VERSION)?1:0;if("truecolor"===cu.COLORTERM)return 3;if("TERM_PROGRAM"in cu){const e=parseInt((cu.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(cu.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(cu.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(cu.TERM)||"COLORTERM"in cu?1:(cu.TERM,t)}(e))}_i("no-color")||_i("no-colors")||_i("color=false")?lu=!1:(_i("color")||_i("colors")||_i("color=true")||_i("color=always"))&&(lu=!0),"FORCE_COLOR"in cu&&(lu=0===cu.FORCE_COLOR.length||0!==parseInt(cu.FORCE_COLOR,10));var fu={supportsColor:pu,stdout:pu(ze.stdout),stderr:pu(ze.stderr)};const hu=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,du=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,mu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gu=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,yu=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function bu(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):yu.get(e)||e}function vu(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const t of r)if(isNaN(t)){if(!(i=t.match(mu)))throw new Error("Invalid Chalk template style argument: ".concat(t," (in style '").concat(e,"')"));n.push(i[2].replace(gu,((e,t,n)=>t?bu(t):n)))}else n.push(Number(t));return n}function Du(e){du.lastIndex=0;const t=[];let n;for(;null!==(n=du.exec(e));){const e=n[1];if(n[2]){const r=vu(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Cu(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error("Unknown Chalk style: ".concat(e));r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}var Eu=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(hu,((t,o,s,a,u,c)=>{if(o)i.push(bu(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Cu(e,n)(t)),n.push({inverse:s,styles:Du(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Cu(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)})),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")},wu=s((function(e){const t=fu.stdout,n="win32"===ze.platform&&!(ze.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(uu.blue.open="");for(const e of Object.keys(uu))uu[e].closeRe=new RegExp(tu(uu[e].close),"g"),o[e]={get(){const t=uu[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};o.visible={get(){return c.call(this,this._styles||[],!0,"visible")}},uu.color.closeRe=new RegExp(tu(uu.color.close),"g");for(const e of Object.keys(uu.color.ansi))i.has(e)||(o[e]={get(){const t=this.level;return function(){const n={open:uu.color[r[t]][e].apply(null,arguments),close:uu.color.close,closeRe:uu.color.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});uu.bgColor.closeRe=new RegExp(tu(uu.bgColor.close),"g");for(const e of Object.keys(uu.bgColor.ansi))i.has(e)||(o["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:uu.bgColor[r[t]][e].apply(null,arguments),close:uu.bgColor.close,closeRe:uu.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const u=Object.defineProperties((()=>{}),o);function c(e,t,n){const r=function(){return l.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function l(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const i=uu.dim.open;n&&this.hasGrey&&(uu.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,"".concat(e.close,"$&").concat(e.open));return uu.dim.open=i,r}function p(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return Eu(e,r.join(""))}Object.defineProperties(a.prototype,o),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports})),Au=Lu,Su=Pu,xu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=Fu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(ka),Tu=function(e){return e&&e.__esModule?e:{default:e}}(wu);function Fu(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Fu=function(){return e},e}const Nu=new Set(["as","async","from","get","of","set"]),ku=/\r\n|[\n\r\u2028\u2029]/,_u=/^[()[\]{}]$/;let Ou;{const{matchToToken:e}=xu,t=/^[a-z][\w-]*$/i,n=function(e,n,r){if("name"===e.type){if((0,Za.isKeyword)(e.value)||(0,Za.isStrictReservedWord)(e.value,!0)||Nu.has(e.value))return"keyword";if(t.test(e.value)&&("<"===r[n-1]||"</"==r.substr(n-2,2)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&_u.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};Ou=function*(t){let r;for(;r=xu.default.exec(t);){const i=e(r);yield{type:n(i,r.index,t),value:i.value}}}}function Lu(e){return!!Tu.default.supportsColor||e.forceColor}function Pu(e){return e.forceColor?new Tu.default.constructor({enabled:!0,level:1}):Tu.default}var Iu=Vu,Mu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=Bu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(Object.defineProperty({shouldHighlight:Au,getChalk:Su,default:function(e,t={}){return Lu(t)?function(e,t){let n="";for(const{type:r,value:i}of Ou(t)){const t=e[r];n+=t?i.split(ku).map((e=>t(e))).join("\n"):i}return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(Pu(t)),e):e}},"__esModule",{value:!0}));function Bu(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Bu=function(){return e},e}let ju=!1;const Ru=/\r\n|[\n\r\u2028\u2029]/;function Vu(e,t,n={}){const r=(n.highlightCode||n.forceColor)&&(0,Mu.shouldHighlight)(n),i=(0,Mu.getChalk)(n),o=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(i),s=(e,t)=>r?e(t):t,a=e.split(Ru),{start:u,end:c,markerLines:l}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,u=r.column,c=i.line,l=i.column;let p=Math.max(a-(o+1),0),f=Math.min(t.length,c+s);-1===a&&(p=0),-1===c&&(f=t.length);const h=c-a,d={};if(h)for(let e=0;e<=h;e++){const n=e+a;if(u)if(0===e){const e=t[n-1].length;d[n]=[u,e-u+1]}else if(e===h)d[n]=[0,l];else{const r=t[n-e].length;d[n]=[0,r]}else d[n]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:p,end:f,markerLines:d}}(t,a,n),p=t.start&&"number"==typeof t.start.column,f=String(c).length;let h=(r?(0,Mu.default)(e,n):e).split(Ru).slice(u,c).map(((e,t)=>{const r=u+1+t,i=" ".concat(r).slice(-f),a=" ".concat(i," |"),c=l[r],p=!l[r+1];if(c){let t="";if(Array.isArray(c)){const r=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g," "),i=c[1]||1;t=["\n ",s(o.gutter,a.replace(/\d/g," "))," ",r,s(o.marker,"^").repeat(i)].join(""),p&&n.message&&(t+=" "+s(o.message,n.message))}return[s(o.marker,">"),s(o.gutter,a),e.length>0?" ".concat(e):"",t].join("")}return" ".concat(s(o.gutter,a)).concat(e.length>0?" ".concat(e):"")})).join("\n");return n.message&&!p&&(h="".concat(" ".repeat(f+1)).concat(n.message,"\n").concat(h)),r?i.reset(h):h}var $u=Object.defineProperty({codeFrameColumns:Iu,default:function(e,t,n,r={}){if(!ju){ju=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";ze.emitWarning?ze.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return Vu(e,{start:{column:n=Math.max(n,0),line:t}},r)}},"__esModule",{value:!0}),Uu=o(Hn);const{ConfigError:Wu}=Gr,{locStart:qu,locEnd:Ku}=Na,Hu=Object.getOwnPropertyNames,Yu=Object.getOwnPropertyDescriptor;function zu(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of Hu(n.parsers))Object.defineProperty(t,e,Yu(n.parsers,e));return t}function Ju(e,t=zu(e)){if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:qu,locEnd:Ku};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Wu("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Gu={parse:function(e,t){const n=zu(t),r=Object.keys(n).reduce(((e,t)=>Object.defineProperty(e,t,{enumerable:!0,get:()=>n[t].parse})),{}),i=Ju(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const{codeFrameColumns:r}=$u;throw t.codeFrame=r(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Ju};const{UndefinedParserError:Qu}=Gr,{getSupportInfo:Xu}=Nt,{resolveParser:Zu}=Gu,ec={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function tc(e,t){const n=Uu.basename(e).toLowerCase(),r=Xu({plugins:t}).languages.filter((e=>null!==e.since));let i=r.find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.some((e=>e.toLowerCase()===n))));if(!i&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=Kr.openSync(e,"r")}catch(e){return""}try{const n=new class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:Kr.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){Kr.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,i=0;for(;;){let o=e[r++];if(o===this.newLineCharacter)t=e.slice(i,r),n.push(t),i=r;else if(void 0===o)break}let o=e.slice(i,r);return o.length&&n.push(o),n}_readChunk(e){let t,n=0;const r=[];do{const e=new sr(this.options.readChunk);t=Kr.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let i=sr.concat(r);return t<this.options.readChunk&&(this.eofReached=!0,i=i.slice(0,n)),n&&(this.linesCache=this._extractLines(i),e&&(this.linesCache[0]=sr.concat([e,this.linesCache[0]]))),n}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&0===this.linesCache.length||(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),t[t.length-1]!==this.newLineCharacter&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&0===this.linesCache.length&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1))),t}}(t).next().toString("utf8"),r=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];const i=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return i?i[1]:""}catch(e){return""}finally{try{Kr.closeSync(t)}catch(e){}}}(e);i=r.find((e=>e.interpreters&&e.interpreters.includes(t)))}return i&&i.parsers[0]}var nc={normalize:function(e,t={}){const n=Object.assign({},e),r=Xu({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign({},ec,we(r.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!n.parser)if(n.filepath){if(n.parser=tc(n.filepath,n.plugins),!n.parser)throw new Qu("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";const o=Zu(Aa(n,[r.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const s=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find((e=>e.printers&&e.printers[t]));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=s.printers[n.astFormat];const a=we(r.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[s.name])).map((e=>[e.name,e.pluginDefaults[s.name]]))),u=Object.assign({},i,a);for(const[e,t]of Object.entries(u))null!==n[e]&&void 0!==n[e]||(n[e]=t);return"json"===n.parser&&(n.trailingComma="none"),Aa(n,r,Object.assign({passThrough:Object.keys(ec)},t))},hiddenDefaults:ec,inferParser:tc},rc=function e(t,n,r){if(Array.isArray(t))return t.map((t=>e(t,n,r))).filter(Boolean);if(!t||"object"!=typeof t)return t;const i=n.printer.massageAstNode;let o;o=i&&i.ignoredProperties?i.ignoredProperties:new Set;const s={};for(const[r,i]of Object.entries(t))o.has(r)||"function"==typeof i||(s[r]=e(i,n,t));if(i){const e=i(t,s,r);if(null===e)return;if(e)return e}return s},ic="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};function oc(e,t){var n={seen:[],stylize:ac};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),pc(t)?n.showHidden=t:t&&Ec(n,t),dc(n.showHidden)&&(n.showHidden=!1),dc(n.depth)&&(n.depth=2),dc(n.colors)&&(n.colors=!1),dc(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=sc),uc(n,e,n.depth)}function sc(e,t){var n=oc.styles[t];return n?"["+oc.colors[n][0]+"m"+e+"["+oc.colors[n][1]+"m":e}function ac(e,t){return e}function uc(e,t,n){if(e.customInspect&&t&&vc(t.inspect)&&t.inspect!==oc&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return hc(r)||(r=uc(e,r,n)),r}var i=function(e,t){if(dc(t))return e.stylize("undefined","undefined");if(hc(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return"number"==typeof t?e.stylize(""+t,"number"):pc(t)?e.stylize(""+t,"boolean"):fc(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),bc(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return cc(t);if(0===o.length){if(vc(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(mc(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(yc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(bc(t))return cc(t)}var u,c,l="",p=!1,f=["{","}"];return u=t,Array.isArray(u)&&(p=!0,f=["[","]"]),vc(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),mc(t)&&(l=" "+RegExp.prototype.toString.call(t)),yc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),bc(t)&&(l=" "+cc(t)),0!==o.length||p&&0!=t.length?n<0?mc(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=p?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)wc(t,String(s))?o.push(lc(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(lc(e,t,n,r,i,!0))})),o}(e,t,n,s,o):o.map((function(r){return lc(e,t,n,s,r,p)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,f)):f[0]+l+f[1]}function cc(e){return"["+Error.prototype.toString.call(e)+"]"}function lc(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),wc(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=fc(n)?uc(e,u.value,null):uc(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),dc(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function pc(e){return"boolean"==typeof e}function fc(e){return null===e}function hc(e){return"string"==typeof e}function dc(e){return void 0===e}function mc(e){return gc(e)&&"[object RegExp]"===Cc(e)}function gc(e){return"object"==typeof e&&null!==e}function yc(e){return gc(e)&&"[object Date]"===Cc(e)}function bc(e){return gc(e)&&("[object Error]"===Cc(e)||e instanceof Error)}function vc(e){return"function"==typeof e}function Dc(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Cc(e){return Object.prototype.toString.call(e)}function Ec(e,t){if(!t||!gc(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function wc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ac(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}oc.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},oc.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Sc,xc=Object.prototype.hasOwnProperty,Tc=Object.keys||function(e){var t=[];for(var n in e)xc.call(e,n)&&t.push(n);return t},Fc=Array.prototype.slice;function Nc(){return void 0!==Sc?Sc:Sc="foo"===function(){}.name}function kc(e){return Object.prototype.toString.call(e)}function _c(e){return!Wr(e)&&"function"==typeof Ae.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}function Oc(e,t){e||jc(e,!0,t,"==",Rc)}var Lc=/\s*function\s+([^\(\s]*)\s*/;function Pc(e){if(vc(e)){if(Nc())return e.name;var t=e.toString().match(Lc);return t&&t[1]}}function Ic(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return Mc(Bc(e.actual),128)+" "+e.operator+" "+Mc(Bc(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||jc;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=Pc(t),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}}function Mc(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function Bc(e){if(Nc()||!vc(e))return oc(e);var t=Pc(e);return"[Function"+(t?": "+t:"")+"]"}function jc(e,t,n,r,i){throw new Ic({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function Rc(e,t){e||jc(e,!0,t,"==",Rc)}function Vc(e,t,n){e!=t&&jc(e,t,n,"==",Vc)}function $c(e,t,n){e==t&&jc(e,t,n,"!=",$c)}function Uc(e,t,n){qc(e,t,!1)||jc(e,t,n,"deepEqual",Uc)}function Wc(e,t,n){qc(e,t,!0)||jc(e,t,n,"deepStrictEqual",Wc)}function qc(e,t,n,r){if(e===t)return!0;if(Wr(e)&&Wr(t))return 0===Ac(e,t);if(yc(e)&&yc(t))return e.getTime()===t.getTime();if(mc(e)&&mc(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(_c(e)&&_c(t)&&kc(e)===kc(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===Ac(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(Wr(e)!==Wr(t))return!1;var i=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==i&&i===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(Dc(e)||Dc(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=Kc(e),o=Kc(t);if(i&&!o||!i&&o)return!1;if(i)return qc(e=Fc.call(e),t=Fc.call(t),n);var s,a,u=Tc(e),c=Tc(t);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),a=u.length-1;a>=0;a--)if(u[a]!==c[a])return!1;for(a=u.length-1;a>=0;a--)if(!qc(e[s=u[a]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function Kc(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function Hc(e,t,n){qc(e,t,!1)&&jc(e,t,n,"notDeepEqual",Hc)}function Yc(e,t,n){qc(e,t,!0)&&jc(e,t,n,"notDeepStrictEqual",Yc)}function zc(e,t,n){e!==t&&jc(e,t,n,"===",zc)}function Jc(e,t,n){e===t&&jc(e,t,n,"!==",Jc)}function Gc(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function Qc(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&jc(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&bc(i)&&o&&Gc(i,n)||s)&&jc(i,n,"Got unwanted exception"+r),e&&i&&n&&!Gc(i,n)||!e&&i)throw i}function Xc(e,t,n){Qc(!0,e,t,n)}function Zc(e,t,n){Qc(!1,e,t,n)}function el(e){if(e)throw e}Oc.AssertionError=Ic,ic(Ic,Error),Oc.fail=jc,Oc.ok=Rc,Oc.equal=Vc,Oc.notEqual=$c,Oc.deepEqual=Uc,Oc.deepStrictEqual=Wc,Oc.notDeepEqual=Hc,Oc.notDeepStrictEqual=Yc,Oc.strictEqual=zc,Oc.notStrictEqual=Jc,Oc.throws=Xc,Oc.doesNotThrow=Zc,Oc.ifError=el;var tl=o(Object.freeze({__proto__:null,default:Oc,AssertionError:Ic,fail:jc,ok:Rc,assert:Rc,equal:Vc,notEqual:$c,deepEqual:Uc,deepStrictEqual:Wc,notDeepEqual:Hc,notDeepStrictEqual:Yc,strictEqual:zc,notStrictEqual:Jc,throws:Xc,doesNotThrow:Zc,ifError:el}));const{builders:{line:nl,hardline:rl,breakParent:il,indent:ol,lineSuffix:sl,join:al,cursor:ul}}=kn,{hasNewline:cl,skipNewline:ll,skipSpaces:pl,isPreviousLineEmpty:fl,addLeadingComment:hl,addDanglingComment:dl,addTrailingComment:ml}=zt,gl=new WeakMap;function yl(e,t,n){if(!e)return;const{printer:r,locStart:i,locEnd:o}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(i(n[t])<=i(e)&&o(n[t])<=o(e));--t);return void n.splice(t+1,0,e)}}else if(gl.has(e))return gl.get(e);const s=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((([e])=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e&&"tokens"!==e&&"comments"!==e)).map((([,e])=>e));if(s){n||(n=[],gl.set(e,n));for(const e of s)yl(e,t,n);return n}}function bl(e,t,n,r){const{locStart:i,locEnd:o}=n,s=i(t),a=o(t),u=yl(e,n);let c,l,p=0,f=u.length;for(;p<f;){const e=p+f>>1,r=u[e],h=i(r),d=o(r);if(h<=s&&a<=d)return bl(r,t,n,r);if(d<=s)c=r,p=e+1;else{if(!(a<=h))throw new Error("Comment location overlaps with node location");l=r,f=e}}if(r&&"TemplateLiteral"===r.type){const{quasis:e}=r,i=Sl(e,t,n);c&&Sl(e,c,n)!==i&&(c=null),l&&Sl(e,l,n)!==i&&(l=null)}return{enclosingNode:r,precedingNode:c,followingNode:l}}const vl=()=>!1,Dl=e=>!/[\S\n\u2028\u2029]/.test(e);function Cl(e,t,n,r){const{comment:i,precedingNode:o}=n[r],{locStart:s,locEnd:a}=t;let u=s(i);if(o)for(let t=r-1;t>=0;t--){const{comment:r,precedingNode:i}=n[t];if(i!==o||!Dl(e.slice(a(r),u)))break;u=s(r)}return cl(e,u,{backwards:!0})}function El(e,t,n,r){const{comment:i,followingNode:o}=n[r],{locStart:s,locEnd:a}=t;let u=a(i);if(o)for(let t=r+1;t<n.length;t++){const{comment:r,followingNode:i}=n[t];if(i!==o||!Dl(e.slice(u,s(r))))break;u=a(r)}return cl(e,u)}function wl(e,t,n){const r=e.length;if(0===r)return;const{precedingNode:i,followingNode:o,enclosingNode:s}=e[0],a=n.printer.getGapRegex&&n.printer.getGapRegex(s)||/^[\s(]*$/;let u,c=n.locStart(o);for(u=r;u>0;--u){const{comment:r,precedingNode:s,followingNode:l}=e[u-1];tl.strictEqual(s,i),tl.strictEqual(l,o);const p=t.slice(n.locEnd(r),c);if(!a.test(p))break;c=n.locStart(r)}for(const[t,{comment:n}]of e.entries())t<u?ml(i,n):hl(o,n);for(const e of[i,o])e.comments&&e.comments.length>1&&e.comments.sort(((e,t)=>n.locStart(e)-n.locStart(t)));e.length=0}function Al(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function Sl(e,t,n){const r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<n.locStart(e[t]))return t-1;return 0}function xl(e,t,n){const r=e.getValue();if(!r)return{};let i=r.comments||[];n&&(i=i.filter((e=>!n.has(e))));const o=r===t.cursorNode;if(0===i.length){const e=o?ul:"";return{leading:e,trailing:e}}const s=[],a=[];return e.each((()=>{const r=e.getValue();if(n&&n.has(r))return;const{leading:i,trailing:o}=r;i?s.push(function(e,t){const n=e.getValue(),r=[Al(e,t)],{printer:i,originalText:o,locStart:s,locEnd:a}=t;if(i.isBlockComment&&i.isBlockComment(n)){const e=cl(o,a(n))?cl(o,s(n),{backwards:!0})?rl:nl:" ";r.push(e)}else r.push(rl);const u=ll(o,pl(o,a(n)));return!1!==u&&cl(o,u)&&r.push(rl),r}(e,t)):o&&a.push(function(e,t){const n=e.getValue(),r=Al(e,t),{printer:i,originalText:o,locStart:s}=t,a=i.isBlockComment&&i.isBlockComment(n);if(cl(o,s(n),{backwards:!0})){const e=fl(o,n,s);return sl([rl,e?rl:"",r])}let u=[" ",r];return a||(u=[sl(u),il]),u}(e,t))}),"comments"),o&&(s.unshift(ul),a.push(ul)),{leading:s,trailing:a}}var Tl={attach:function(e,t,n,r){if(!Array.isArray(e))return;const i=[],{locStart:o,locEnd:s,printer:{handleComments:a={}}}=r,{avoidAstMutation:u,ownLine:c=vl,endOfLine:l=vl,remaining:p=vl}=a,f=e.map(((i,o)=>Object.assign({},bl(t,i,r),{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===o})));for(const[e,t]of f.entries()){const{comment:n,precedingNode:r,enclosingNode:a,followingNode:h,text:d,options:m,ast:g,isLastComment:y}=t;if("json"===m.parser||"json5"===m.parser||"__js_expression"===m.parser||"__vue_expression"===m.parser){if(o(n)-o(g)<=0){hl(g,n);continue}if(s(n)-s(g)>=0){ml(g,n);continue}}let b;if(u?b=[t]:(n.enclosingNode=a,n.precedingNode=r,n.followingNode=h,b=[n,d,m,g,y]),Cl(d,m,f,e))n.placement="ownLine",c(...b)||(h?hl(h,n):r?ml(r,n):dl(a||g,n));else if(El(d,m,f,e))n.placement="endOfLine",l(...b)||(r?ml(r,n):h?hl(h,n):dl(a||g,n));else if(n.placement="remaining",p(...b));else if(r&&h){const e=i.length;e>0&&i[e-1].followingNode!==h&&wl(i,d,m),i.push(t)}else r?ml(r,n):h?hl(h,n):dl(a||g,n)}if(wl(i,n,r),!u)for(const t of e)delete t.precedingNode,delete t.enclosingNode,delete t.followingNode},printComments:function(e,t,n,r){const{leading:i,trailing:o}=xl(e,n,r);return i||o?[i,t,o]:t},printCommentsSeparately:xl,printDanglingComments:function(e,t,n,r){const i=[],o=e.getValue();return o&&o.comments?(e.each((()=>{const n=e.getValue();n.leading||n.trailing||r&&!r(n)||i.push(Al(e,t))}),"comments"),0===i.length?"":n?al(rl,i):ol([rl,al(rl,i)])):""},getSortedChildNodes:yl,ensureAllCommentsPrinted:function(e){if(e)for(const t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}};function Fl(e,t){const n=Nl(e.stack,t);return-1===n?null:e.stack[n]}function Nl(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}const{utils:{stripTrailingHardline:kl}}=kn,{normalize:_l}=nc;var Ol=function(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,((e,t,i)=>function(e,t,n,r,{stripTrailingHardline:i=!1}={}){const o=_l(Object.assign({},n,t,{parentParser:n.parser,originalText:e}),{passThrough:!0}),s=Gu.parse(e,o),{ast:a}=s;e=s.text;const u=a.comments;delete a.comments,Tl.attach(u,a,e,o),o[Symbol.for("comments")]=u||[],o[Symbol.for("tokens")]=a.tokens||[];const c=r(a,o);return Tl.ensureAllCommentsPrinted(u),i?"string"==typeof c?c.replace(/(?:\r?\n)*$/,""):kl(c):c}(e,t,n,r,i)),n)};const{builders:{hardline:Ll,addAlignmentToDoc:Pl},utils:{propagateBreaks:Il}}=kn,{printComments:Ml}=Tl;var Bl=function e(t,n,r=0){const{printer:o}=n;o.preprocess&&(t=o.preprocess(t,n));const s=new Map,a=new class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return Ee(this.stack)}getNode(e=0){return Fl(this,e)}getParentNode(e=0){return Fl(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let i=Ee(n);for(const e of t)i=i[e],n.push(e,i);const o=e(this);return n.length=r,o}callParent(e,t=0){const n=Nl(this.stack,t+1),r=this.stack.splice(n+1),i=e(this);return this.stack.push(...r),i}each(e,...t){const{stack:n}=this,{length:r}=n;let i=Ee(n);for(const e of t)i=i[e],n.push(e,i);for(let t=0;t<i.length;++t)n.push(t,i[t]),e(this,t,i),n.length-=2;n.length=r}map(e,...t){const n=[];return this.each(((t,r,i)=>{n[r]=e(t,r,i)}),...t),n}try(e){const{stack:t}=this,n=[...t];try{return e()}finally{t.length=0,t.push(...n)}}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(const i of e){if(void 0===r)return!1;let e=null;if("number"==typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}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);let u=c();return r>0&&(u=Pl([Ll,u],r,n.tabWidth)),Il(u),u;function c(e,t){return void 0===e||e===a?l(t):Array.isArray(e)?a.call((()=>l(t)),...e):a.call((()=>l(t)),e)}function l(t){const r=a.getValue(),o=r&&"object"==typeof r&&void 0===t;if(o&&s.has(r))return s.get(r);const u=function(t,n,r,o){const s=t.getValue(),{printer:a}=n;let u,c;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(t))({doc:u,printedComments:c}=function(e,t){const{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o}=t,s=i(e),a=o(e),u=new Set;for(const e of r)i(e)>=s&&o(e)<=a&&(e.printed=!0,u.add(e));return{doc:n.slice(s,a),printedComments:u}}(s,n));else{if(s)try{u=Ol(t,r,n,e)}catch(t){if(i.PRETTIER_DEBUG)throw t}u||(u=a.print(t,n,r,o))}return a.willPrintOwnComments&&a.willPrintOwnComments(t,n)||(u=Ml(t,u,n,c)),u}(a,n,c,t);return o&&s.set(r,u),u}};function jl(e){let t=e.length-1;for(;;){const n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function Rl(e,t,n,r,i=[],o){const{locStart:s,locEnd:a}=n,u=s(e),c=a(e);if(!(t>c||t<u||"rangeEnd"===o&&t===u||"rangeStart"===o&&t===c)){for(const s of Tl.getSortedChildNodes(e,n)){const a=Rl(s,t,n,r,[e,...i],o);if(a)return a}return!r||r(e,i[0])?{node:e,parentNodes:i}:void 0}}const Vl=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),$l=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Ul(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"espree":case"meriyah":return function(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"))}(t.type,n&&n.type);case"json":case"json5":case"json-stringify":return Vl.has(t.type);case"graphql":return $l.has(t.kind);case"vue":return"root"!==t.tag}return!1}var Wl={calculateRange:function(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:s}=t;tl.ok(i>r);const a=e.slice(r,i).search(/\S/),u=-1===a;if(!u)for(r+=a;i>r&&!/\S/.test(e[i-1]);--i);const c=Rl(n,r,t,((e,n)=>Ul(t,e,n)),[],"rangeStart"),l=u?c:Rl(n,i,t,(e=>Ul(t,e)),[],"rangeEnd");if(!c||!l)return{rangeStart:0,rangeEnd:0};let p,f;if((({parser:e})=>"json"===e||"json5"===e||"json-stringify"===e)(t)){const e=function(e,t){const n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find((e=>Vl.has(e.type)&&r.has(e)))}(c,l);p=e,f=e}else({startNode:p,endNode:f}=function(e,t,{locStart:n,locEnd:r}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};const s=n(e.node);for(const e of jl(t.parentNodes)){if(!(n(e)>=s))break;o=e}const a=r(t.node);for(const t of jl(e.parentNodes)){if(!(r(t)<=a))break;i=t}return{startNode:i,endNode:o}}(c,l,t));return{rangeStart:Math.min(o(p),o(f)),rangeEnd:Math.max(s(p),s(f))}},findNodeAtOffset:Rl};const{printer:{printDocToString:ql},debug:{printDocToDebug:Kl}}=kn,{getAlignmentSize:Hl}=zt,{guessEndOfLine:Yl,convertEndOfLineToChars:zl,countEndOfLineChars:Jl,normalizeEndOfLine:Gl}=Jt,Ql=nc.normalize,Xl=Symbol("cursor");function Zl(e,t,n){const r=t.comments;return r&&(delete t.comments,Tl.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function ep(e,t,n=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};const{ast:r,text:i}=Gu.parse(e,t);if(t.cursorOffset>=0){const e=Wl.findNodeAtOffset(r,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const o=Zl(i,r,t),s=Bl(r,t,n),a=ql(s,t);if(Tl.ensureAllCommentsPrinted(o),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+zl(t.endOfLine)}if(t.cursorOffset>=0){let e,n,r,s,u;if(t.cursorNode&&a.cursorNodeText?(e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode)),r=t.cursorOffset-e,s=a.cursorNodeStart,u=a.cursorNodeText):(e=0,n=i,r=t.cursorOffset,s=0,u=a.formatted),n===u)return{formatted:a.formatted,cursorOffset:s+r,comments:o};const c=n.split("");c.splice(r,0,Xl);const l=u.split(""),p=ie.diffArrays(c,l);let f=s;for(const e of p)if(e.removed){if(e.value.includes(Xl))break}else f+=e.count;return{formatted:a.formatted,cursorOffset:f,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}function tp(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function np(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=tp(e,n,-1),r=tp(e,r,0),i=tp(e,i,e.length),Object.assign({},t,{cursorOffset:n,rangeStart:r,rangeEnd:i})}function rp(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=np(e,t);const s="\ufeff"===e.charAt(0);if(s&&(e=e.slice(1),n--,r--,i--),"auto"===o&&(o=Yl(e)),e.includes("\r")){const t=t=>Jl(e.slice(0,Math.max(t,0)),"\r\n");n-=t(n),r-=t(r),i-=t(i),e=Gl(e)}return{hasBOM:s,text:e,options:np(e,Object.assign({},t,{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}))}}function ip(e,t){const n=Gu.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function op(e,t){let n,{hasBOM:r,text:i,options:o}=rp(e,Ql(t));return o.rangeStart>=o.rangeEnd&&""!==i||o.requirePragma&&!ip(i,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEnd<i.length?n=function(e,t){const{ast:n,text:r}=Gu.parse(e,t),{rangeStart:i,rangeEnd:o}=Wl.calculateRange(r,t,n),s=r.slice(i,o),a=Math.min(i,r.lastIndexOf("\n",i)+1),u=r.slice(a,i).match(/^\s*/)[0],c=Hl(u,t.tabWidth),l=ep(s,Object.assign({},t,{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<o?t.cursorOffset-i:-1,endOfLine:"lf"}),c),p=l.formatted.trimEnd();let{cursorOffset:f}=t;f>=o?f+=p.length-s.length:l.cursorOffset>=0&&(f=l.cursorOffset+i);let h=r.slice(0,i)+p+r.slice(o);if("lf"!==t.endOfLine){const e=zl(t.endOfLine);f>=0&&"\r\n"===e&&(f+=Jl(h.slice(0,f),"\n")),h=h.replace(/\n/g,e)}return{formatted:h,cursorOffset:f,comments:l.comments}}(i,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!ip(i,o)&&(i=o.printer.insertPragma(i)),n=ep(i,o)),r&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var sp={formatWithCursor:op,parse(e,t,n){const{text:r,options:i}=rp(e,Ql(t)),o=Gu.parse(r,i);return n&&(o.ast=rc(o.ast,i)),o},formatAST(e,t){t=Ql(t);const n=Bl(e,t);return ql(n,t)},formatDoc:(e,t)=>op(Kl(e),Object.assign({},t,{parser:"__js_expression"})).formatted,printToDoc(e,t){t=Ql(t);const{ast:n,text:r}=Gu.parse(e,t);return Zl(r,n,t),Bl(n,t)},printDocToString:(e,t)=>ql(e,Ql(t))};const{getMaxContinuousCount:ap,getStringWidth:up,getAlignmentSize:cp,getIndentSize:lp,skip:pp,skipWhitespace:fp,skipSpaces:hp,skipNewline:dp,skipToLineEnd:mp,skipEverythingButNewLine:gp,skipInlineComment:yp,skipTrailingComment:bp,hasNewline:vp,hasNewlineInRange:Dp,hasSpaces:Cp,isNextLineEmpty:Ep,isNextLineEmptyAfterIndex:wp,isPreviousLineEmpty:Ap,getNextNonSpaceNonCommentCharacterIndex:Sp,makeString:xp,addLeadingComment:Tp,addDanglingComment:Fp,addTrailingComment:Np}=zt;var kp={getMaxContinuousCount:ap,getStringWidth:up,getAlignmentSize:cp,getIndentSize:lp,skip:pp,skipWhitespace:fp,skipSpaces:hp,skipNewline:dp,skipToLineEnd:mp,skipEverythingButNewLine:gp,skipInlineComment:yp,skipTrailingComment:bp,hasNewline:vp,hasNewlineInRange:Dp,hasSpaces:Cp,isNextLineEmpty:Ep,isNextLineEmptyAfterIndex:wp,isPreviousLineEmpty:Ap,getNextNonSpaceNonCommentCharacterIndex:Sp,makeString:xp,addLeadingComment:Tp,addDanglingComment:Fp,addTrailingComment:Np},_p=function(t,n){const{languageId:r}=t,i=e(t,["languageId"]);return Object.assign({linguistLanguageId:r},i,n(t))},Op=s((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Lp=s((function(e){!function(){var t,n,r,i,o,s;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(o=new Array(128),s=0;s<128;++s)o[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(a(e))}}}()})),Pp=s((function(e){!function(){var t=Lp;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n<r;++n)if(i=e.charCodeAt(n),!t.isIdentifierPartES5(i))return!1;return!0}function a(e){var n,r,i,o,s;if(0===e.length)return!1;for(s=t.isIdentifierStartES6,n=0,r=e.length;n<r;++n){if(55296<=(i=e.charCodeAt(n))&&i<=56319){if(++n>=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!s(i))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:i,isReservedWordES6:o,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return s(e)&&!i(e,t)},isIdentifierES6:function(e,t){return a(e)&&!o(e,t)}}}()}));const Ip=s((function(e,t){t.ast=Op,t.code=Lp,t.keyword=Pp})).keyword.isIdentifierNameES5,{getLast:Mp,hasNewline:Bp,skipWhitespace:jp,isNonEmptyArray:Rp,isNextLineEmptyAfterIndex:Vp}=zt,{locStart:$p,locEnd:Up,hasSameLocStart:Wp}=Na,qp="(?:(?=.)\\s)",Kp=new RegExp("^".concat(qp,"*:")),Hp=new RegExp("^".concat(qp,"*::"));function Yp(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||cf(e)||lf(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function zp(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function Jp(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}const Gp=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Qp(e){return e&&Gp.has(e.type)}function Xp(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Zp(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function ef(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function tf(e){return cf(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function nf(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function rf(e){return"get"===e.kind||"set"===e.kind}function of(e){return rf(e)||Wp(e,e.value)}const sf=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),af=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"]),uf=/^(skip|[fx]?(it|describe|test))$/;function cf(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function lf(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function pf(e,t){return nf(t)?Af(t):Tf(t,Sf.Leading,(t=>Bp(e,Up(t))))}function ff(e){return/^(\d+|\d+\.\d+)$/.test(e)}function hf(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function df(e){return e.extra?e.extra.raw:e.raw}const mf={"==":!0,"!=":!0,"===":!0,"!==":!0},gf={"*":!0,"/":!0,"%":!0},yf={">>":!0,">>>":!0,"<<":!0},bf={};for(const[e,t]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(const n of t)bf[n]=e;function vf(e){return bf[e]}const Df=new WeakMap;function Cf(e){if(Df.has(e))return Df.get(e);const 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),Df.set(e,t),t}const Ef=new WeakMap;function wf(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Af(e){return e&&(e.prettierIgnore||Tf(e,Sf.PrettierIgnore))}const Sf={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},xf=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(n,r,i)=>!(e&Sf.Leading&&!n.leading||e&Sf.Trailing&&!n.trailing||e&Sf.Dangling&&(n.leading||n.trailing)||e&Sf.Block&&!zp(n)||e&Sf.Line&&!Jp(n)||e&Sf.First&&0!==r||e&Sf.Last&&r!==i.length-1||e&Sf.PrettierIgnore&&!wf(n)||t&&!t(n))};function Tf(e,t,n){if(!e||!Rp(e.comments))return!1;const r=xf(t,n);return!r||e.comments.some(r)}function Ff(e,t,n){if(!e||!Array.isArray(e.comments))return[];const r=xf(t,n);return r?e.comments.filter(r):e.comments}function Nf(e){return cf(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var kf={getFunctionParameters:Cf,iterateFunctionParametersPath:function(e,t){const n=e.getValue();let r=0;const 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")},getCallArguments:function(e){if(Ef.has(e))return Ef.get(e);const t="ImportExpression"===e.type?[e.source]:e.arguments;return Ef.set(e,t),t},iterateCallArgumentsPath:function(e,t){"ImportExpression"===e.getValue().type?e.call((e=>t(e,0)),"source"):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;const t=Cf(e);return t.length>0&&"RestElement"===Mp(t).type},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Qp(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function(e){return e&&zp(e[0])&&Hp.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Rp(e.trailingComments)&&zp(e.trailingComments[0])&&Kp.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:pf,hasNakedLeftSide:Yp,hasNode:function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some((t=>e(t,n)));const r=n(t);return"boolean"==typeof r?r:Object.values(t).some((t=>e(t,n)))},hasIgnoreComment:function(e){return Af(e.getValue())},hasNodeIgnoreComment:Af,identity:function(e){return e},isBinaryish:function(e){return sf.has(e.type)},isBlockComment:zp,isCallLikeExpression:Nf,isLineComment:Jp,isPrettierIgnoreComment:wf,isCallExpression:cf,isMemberExpression:lf,isExportDeclaration:Qp,isFlowAnnotationComment:function(e,t){const n=$p(t),r=jp(e,Up(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(ef(n)){if(t+=1,t>1)return!0}else if(cf(n))for(const e of n.arguments)if(ef(e))return!0;return!1},isFunctionNotation:of,isFunctionOrArrowExpression:ef,isGetterOrSetter:rf,isJestEachTemplateLiteral:function(e,t){const 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))},isJsxNode:nf,isLiteral:function(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return cf(t)&&cf(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&i.length>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((e=>!e.value.raw.includes("\n")))&&t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null===e||r(e))):"ImportExpression"===t.type?r(t.source):Nf(t)?e(t.callee,n)&&t.arguments.every(r):lf(t)?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMemberish:function(e){return lf(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:Xp,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&Xp(e.argument)},isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||of(e))},isSimpleType:function(e){return!(!e||("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!af.has(e.type))},isSimpleNumber:ff,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");const n=e[t];return 0!==n.length&&n.every((e=>{if(Tf(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(lf(e)){let t=e;for(;lf(t);){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,Tf(t))return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:Zp,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&Zp(e.key)&&df(e.key).slice(1,-1)===e.key.value&&(Ip(e.key.value)&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)||ff(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&hf(e)||"TaggedTemplateExpression"===e.type&&hf(e.quasi))&&!Bp(t,$p(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(tf(t)&&n&&e(n))return ef(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return tf(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&uf.test(t.callee.name)||function(e){return lf(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&uf.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||Zp(t.arguments[0])))return!(t.arguments[2]&&!Xp(t.arguments[2]))&&((2===t.arguments.length?ef(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&Cf(t.arguments[1]).length<=1)||tf(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!nf(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||Wp(e,e.typeAnnotation))},isNextLineEmpty:(e,{originalText:t})=>Vp(t,Up(e)),needsHardlineAfterDanglingComment:function(e){if(!Tf(e))return!1;const t=Mp(Ff(e,Sf.Dangling));return t&&!zp(t)},rawText:df,returnArgumentHasLeadingComment:function(e,t){if(pf(e.originalText,t))return!0;if(Yp(t)){let r,i=t;for(;r=(n=i).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(i=r,pf(e.originalText,i))return!0}var n;return!1},shouldPrintComma:function(e,t="es5"){return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean(yf[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return!(vf(t)!==vf(e)||"**"===e||mf[e]&&mf[t]||"%"===t&&gf[e]||"%"===e&&gf[t]||t!==e&&gf[t]&&gf[e]||yf[e]&&yf[t])},startsWithNoLookaheadToken:function e(t,n){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,n);default:return!1}},getPrecedence:vf,hasComment:Tf,getComments:Ff,CommentCheckFlags:Sf};const{getStringWidth:_f,getIndentSize:Of}=zt,{builders:{join:Lf,hardline:Pf,softline:If,group:Mf,indent:Bf,align:jf,lineSuffixBoundary:Rf,addAlignmentToDoc:Vf},printer:{printDocToString:$f},utils:{mapDoc:Uf}}=kn,{isBinaryish:Wf,isJestEachTemplateLiteral:qf,isSimpleTemplateLiteral:Kf,hasComment:Hf,isMemberExpression:Yf}=kf;function zf(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var Jf={printTemplateLiteral:function(e,t,n){const r=e.getValue();if("TemplateLiteral"===r.type&&qf(r,e.getParentNode())){const r=function(e,t,n){const r=e.getNode(),i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some((e=>e.length>0))){t.__inJestEach=!0;const o=e.map(n,"expressions");t.__inJestEach=!1;const s=[],a=o.map((e=>"${"+$f(e,Object.assign({},t,{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}")),u=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<r.quasis.length;e++){const t=Ee(u),n=a[e-1];t.cells.push(n),n.includes("\n")&&(t.hasLineBreak=!0),r.quasis[e].value.raw.includes("\n")&&u.push({hasLineBreak:!1,cells:[]})}const c=Math.max(i.length,...u.map((e=>e.cells.length))),l=Array.from({length:c}).fill(0),p=[{cells:i},...u.filter((e=>e.cells.length>0))];for(const{cells:e}of p.filter((e=>!e.hasLineBreak)))for(const[t,n]of e.entries())l[t]=Math.max(l[t],_f(n));return s.push(Rf,"`",Bf([Pf,Lf(Pf,p.map((e=>Lf(" | ",e.cells.map(((t,n)=>e.hasLineBreak?t:t+" ".repeat(l[n]-_f(t))))))))]),Pf,"`"),s}}(e,n,t);if(r)return r}let i="expressions";"TSTemplateLiteralType"===r.type&&(i="types");const o=[];let s=e.map(t,i);const a=Kf(r);return a&&(s=s.map((e=>$f(e,Object.assign({},n,{printWidth:Number.POSITIVE_INFINITY})).formatted))),o.push(Rf,"`"),e.each((e=>{const u=e.getName();if(o.push(t()),u<s.length){const{tabWidth:t}=n,c=e.getValue(),l=Of(c.value.raw,t);let p=s[u];if(!a){const e=r[i][u];(Hf(e)||Yf(e)||"ConditionalExpression"===e.type||"SequenceExpression"===e.type||"TSAsExpression"===e.type||Wf(e))&&(p=[Bf([If,p]),If])}const f=0===l&&c.value.raw.endsWith("\n")?jf(Number.NEGATIVE_INFINITY,p):Vf(p,l,t);o.push(Mf(["${",f,Rf,"}"]))}}),"quasis"),o.push("`"),o},printTemplateExpressions:function(e,t){return e.map((e=>function(e,t){const n=e.getValue();let r=t();return Hf(n)&&(r=Mf([Bf([If,r]),If])),["${",r,Rf,"}"]}(e,t)),"expressions")},escapeTemplateCharacters:function(e,t){return Uf(e,(e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):zf(e):e))},uncookTemplateElementValue:zf};const{builders:{indent:Gf,softline:Qf,literalline:Xf,dedentToRoot:Zf}}=kn,{escapeTemplateCharacters:eh}=Jf;const{isNonEmptyArray:th}=zt,{builders:{indent:nh,hardline:rh,softline:ih},utils:{mapDoc:oh,replaceNewlinesWithLiterallines:sh,cleanDoc:ah}}=kn,{printTemplateExpressions:uh}=Jf;const{builders:{indent:ch,join:lh,hardline:ph}}=kn,{escapeTemplateCharacters:fh,printTemplateExpressions:hh}=Jf;function dh(e){const t=[];let n=!1;const r=e.map((e=>e.trim()));for(const[e,i]of r.entries())""!==i&&(""===r[e-1]&&n?t.push([ph,i]):t.push(i),n=!0);return 0===t.length?null:lh(ph,t)}const{builders:{indent:mh,line:gh,hardline:yh,group:bh},utils:{mapDoc:vh}}=kn,{printTemplateExpressions:Dh,uncookTemplateElementValue:Ch}=Jf;let Eh=0;const{hasComment:wh,CommentCheckFlags:Ah}=kf;const Sh=[(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 xh(e){return"Identifier"===e.type&&"styled"===e.name}function Th(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Fh(e,t){return wh(e,Ah.Block|Ah.Leading,(({value:e})=>e===" ".concat(t," ")))}const{isBlockComment:Nh}=kf,kh=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),_h=e=>{for(const t of e.quasis)delete t.value};function Oh(e,t,n){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)),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("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(const{type:e,expression:n}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===n.type&&_h(n);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&_h(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|&quot;|&apos;/g,'"'));const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;for(const[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case"styles":"ArrayExpression"===r.value.type&&_h(r.value.elements[0]);break;case"template":"TemplateLiteral"===r.value.type&&_h(r.value)}}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||_h(t.quasi),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((e=>Nh(e)&&["GraphQL","HTML"].some((t=>e.value===" ".concat(t," ")))))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&_h(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}Oh.ignoredProperties=kh;var Lh=Oh;const Ph=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter((e=>"\r\n"===e)).length;return n>t.length-n?"\r\n":"\n"};var Ih=Ph;Ih.graceful=e=>"string"==typeof e&&Ph(e)||"\n";var Mh=zh;function Bh(){const e=Oi;return Bh=function(){return e},e}function jh(){const e=function(e){return e&&e.__esModule?e:{default:e}}(Ih);return jh=function(){return e},e}const Rh=/\*\/$/,Vh=/^\/\*\*/,$h=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Uh=/(^|\s+)\/\/([^\r\n]*)/g,Wh=/^(\r?\n)+/,qh=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Kh=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Hh=/(\r?\n|^) *\* ?/g,Yh=[];function zh(e){const t=(0,jh().default)(e)||Bh().EOL;e=e.replace(Vh,"").replace(Rh,"").replace(Hh,"$1");let n="";for(;n!==e;)n=e,e=e.replace(qh,"".concat(t,"$1 $2").concat(t));e=e.replace(Wh,"").trimRight();const r=Object.create(null),i=e.replace(Kh,"").replace(Wh,"").trimRight();let o;for(;o=Kh.exec(e);){const e=o[2].replace(Uh,"");"string"==typeof r[o[1]]||Array.isArray(r[o[1]])?r[o[1]]=Yh.concat(r[o[1]],e):r[o[1]]=e}return{comments:i,pragmas:r}}function Jh(e,t){return Yh.concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}var Gh=Object.defineProperty({extract:function(e){const t=e.match($h);return t?t[0].trimLeft():""},strip:function(e){const t=e.match($h);return t&&t[0]?e.substring(t[0].length):e},parse:function(e){return zh(e).pragmas},parseWithComments:Mh,print:function({comments:e="",pragmas:t={}}){const n=(0,jh().default)(e)||Bh().EOL,r=Object.keys(t),i=r.map((e=>Jh(e,t[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+n)).join("");if(!e){if(0===r.length)return"";if(1===r.length&&!Array.isArray(t[r[0]])){const e=t[r[0]];return"".concat("/**"," ").concat(Jh(r[0],e)[0]).concat(" */")}}const o=e.split(n).map((e=>"".concat(" *"," ").concat(e))).join(n)+n;return"/**"+n+(e?o:"")+(e&&r.length?" *"+n:"")+i+" */"}},"__esModule",{value:!0});const{parseWithComments:Qh,strip:Xh,extract:Zh,print:ed}=Gh,{getShebang:td}=zt,{normalizeEndOfLine:nd}=Jt;function rd(e){const t=td(e);t&&(e=e.slice(t.length+1));const n=Zh(e),{pragmas:r,comments:i}=Qh(n);return{shebang:t,text:e,pragmas:r,comments:i}}var id={hasPragma:function(e){const t=Object.keys(rd(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:n,pragmas:r,comments:i}=rd(e),o=Xh(n),s=ed({pragmas:Object.assign({format:""},r),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+nd(s)+(o.startsWith("\n")?"\n":"\n\n")+o}};const{getLast:od,hasNewline:sd,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ad,getNextNonSpaceNonCommentCharacter:ud,hasNewlineInRange:cd,addLeadingComment:ld,addTrailingComment:pd,addDanglingComment:fd,getNextNonSpaceNonCommentCharacterIndex:hd,isNonEmptyArray:dd}=zt,{isBlockComment:md,getFunctionParameters:gd,isPrettierIgnoreComment:yd,isJsxNode:bd,hasFlowShorthandAnnotationComment:vd,hasFlowAnnotationComment:Dd,hasIgnoreComment:Cd,isCallLikeExpression:Ed,getCallArguments:wd,isCallExpression:Ad,isMemberExpression:Sd}=kf,{locStart:xd,locEnd:Td}=Na;function Fd(e,t){const n=(e.body||e.properties).find((({type:e})=>"EmptyStatement"!==e));n?ld(n,t):fd(e,t)}function Nd(e,t){"BlockStatement"===e.type?Fd(e,t):ld(e,t)}function kd({comment:e,followingNode:t}){return!(!t||!om(e)||(ld(t,e),0))}function _d({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!(!n||"IfStatement"!==n.type||!r||(")"===ud(i,e,Td)?(pd(t,e),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?pd(t,e):fd(n,e),0):"BlockStatement"===r.type?(Fd(r,e),0):"IfStatement"===r.type?(Nd(r.consequent,e),0):n.consequent!==r||(ld(r,e),0)))}function Od({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!(!n||"WhileStatement"!==n.type||!r||(")"===ud(i,e,Td)?(pd(t,e),0):"BlockStatement"===r.type?(Fd(r,e),0):n.body!==r||(ld(r,e),0)))}function Ld({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!(!n||"TryStatement"!==n.type&&"CatchClause"!==n.type||!r||("CatchClause"===n.type&&t?(pd(t,e),0):"BlockStatement"===r.type?(Fd(r,e),0):"TryStatement"===r.type?(Nd(r.finalizer,e),0):"CatchClause"!==r.type||(Nd(r.body,e),0)))}function Pd({comment:e,enclosingNode:t,followingNode:n}){return!(!Sd(t)||!n||"Identifier"!==n.type||(ld(t,e),0))}function Id({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){const o=t&&!cd(i,Td(t),xd(e));return!(t&&o||!n||"ConditionalExpression"!==n.type&&"TSConditionalType"!==n.type||!r||(ld(r,e),0))}function Md({comment:e,precedingNode:t,enclosingNode:n}){return!(!n||"ObjectProperty"!==n.type&&"Property"!==n.type||!n.shorthand||n.key!==t||"AssignmentPattern"!==n.value.type||(pd(n.value.left,e),0))}function Bd({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(n&&("ClassDeclaration"===n.type||"ClassExpression"===n.type||"DeclareClass"===n.type||"DeclareInterface"===n.type||"InterfaceDeclaration"===n.type||"TSInterfaceDeclaration"===n.type)){if(dd(n.decorators)&&(!r||"Decorator"!==r.type))return pd(od(n.decorators),e),!0;if(n.body&&r===n.body)return Fd(n.body,e),!0;if(r)for(const i of["implements","extends","mixins"])if(n[i]&&r===n[i][0])return!t||t!==n.id&&t!==n.typeParameters&&t!==n.superClass?fd(n,e,i):pd(t,e),!0}return!1}function jd({comment:e,precedingNode:t,enclosingNode:n,text:r}){return(n&&t&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===t.type&&n.key===t&&":"!==ud(r,t,Td)||!(!t||!n||"Decorator"!==t.type||"ClassMethod"!==n.type&&"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type&&"TSAbstractClassProperty"!==n.type&&"TSAbstractMethodDefinition"!==n.type&&"TSDeclareMethod"!==n.type&&"MethodDefinition"!==n.type))&&(pd(t,e),!0)}function Rd({comment:e,precedingNode:t,enclosingNode:n,text:r}){return!("("!==ud(r,e,Td)||!t||!n||"FunctionDeclaration"!==n.type&&"FunctionExpression"!==n.type&&"ClassMethod"!==n.type&&"MethodDefinition"!==n.type&&"ObjectMethod"!==n.type||(pd(t,e),0))}function Vd({comment:e,enclosingNode:t,text:n}){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const r=hd(n,e,Td);return!1!==r&&"=>"===n.slice(r,r+2)&&(fd(t,e),!0)}function $d({comment:e,enclosingNode:t,text:n}){return!(")"!==ud(n,e,Td)||(t&&(im(t)&&0===gd(t).length||Ed(t)&&0===wd(t).length)?(fd(t,e),0):!t||"MethodDefinition"!==t.type&&"TSAbstractMethodDefinition"!==t.type||0!==gd(t.value).length||(fd(t.value,e),0)))}function Ud({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return pd(t,e),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&im(n)&&")"===ud(i,e,Td))return pd(t,e),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{const e=gd(n);if(e.length>0)return ad(i,Td(od(e)));const t=ad(i,Td(n.id));return!1!==t&&ad(i,t+1)})();if(xd(e)>t)return Fd(r,e),!0}return!1}function Wd({comment:e,enclosingNode:t}){return!(!t||"ImportSpecifier"!==t.type||(ld(t,e),0))}function qd({comment:e,enclosingNode:t}){return!(!t||"LabeledStatement"!==t.type||(ld(t,e),0))}function Kd({comment:e,enclosingNode:t}){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(pd(t,e),0))}function Hd({comment:e,precedingNode:t,enclosingNode:n}){return!!(Ad(n)&&t&&n.callee===t&&n.arguments.length>0)&&(ld(n.arguments[0],e),!0)}function Yd({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!n||"UnionTypeAnnotation"!==n.type&&"TSUnionType"!==n.type?(r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&yd(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1):(yd(e)&&(r.prettierIgnore=!0,e.unignore=!0),!!t&&(pd(t,e),!0))}function zd({comment:e,enclosingNode:t}){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(ld(t,e),0))}function Jd({comment:e,enclosingNode:t,followingNode:n,ast:r,isLastComment:i}){return r&&r.body&&0===r.body.length?(i?fd(r,e):ld(r,e),!0):t&&"Program"===t.type&&0===t.body.length&&t.directives&&0===t.directives.length?(i?fd(t,e):ld(t,e),!0):!(!n||"Program"!==n.type||0!==n.body.length||!t||"ModuleExpression"!==t.type||(fd(n,e),0))}function Gd({comment:e,enclosingNode:t}){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(ld(t,e),0))}function Qd({comment:e,precedingNode:t,enclosingNode:n,text:r}){return!!(t&&"ImportSpecifier"===t.type&&n&&"ImportDeclaration"===n.type&&sd(r,Td(e)))&&(pd(t,e),!0)}function Xd({comment:e,enclosingNode:t}){return!(!t||"AssignmentPattern"!==t.type||(ld(t,e),0))}function Zd({comment:e,enclosingNode:t}){return!(!t||"TypeAlias"!==t.type||(ld(t,e),0))}function em({comment:e,enclosingNode:t,followingNode:n}){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&"TemplateLiteral"!==n.type&&"TaggedTemplateExpression"!==n.type&&!md(e)||(ld(n,e),0))}function tm({comment:e,enclosingNode:t,followingNode:n,text:r}){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==ud(r,e,Td)||(pd(t,e),0))}function nm({comment:e,enclosingNode:t,followingNode:n}){if(yd(e)&&t&&"TSMappedType"===t.type&&n&&"TSTypeParameter"===n.type&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function rm({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!(!n||"TSMappedType"!==n.type||(r&&"TSTypeParameter"===r.type&&r.name?(ld(r.name,e),0):!t||"TSTypeParameter"!==t.type||!t.constraint||(pd(t.constraint,e),0)))}function im(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 om(e){return md(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var sm={handleOwnLineComment:function(e){return[nm,Ud,Pd,_d,Od,Ld,Bd,Wd,Gd,Yd,Jd,Qd,Xd,jd,qd].some((t=>t(e)))},handleEndOfLineComment:function(e){return[kd,Ud,Id,Wd,_d,Od,Ld,Bd,qd,Hd,zd,Jd,Zd,em].some((t=>t(e)))},handleRemainingComment:function(e){return[nm,_d,Od,Md,$d,jd,Jd,Vd,Rd,rm,Kd,tm].some((t=>t(e)))},isTypeCastComment:om,getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===gd(e.value).length&&!e.value.returnType&&!dd(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(bd(t)||vd(t)||Ad(n)&&(Dd(t.leadingComments)||Dd(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!Cd(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}};const{getFunctionParameters:am,getLeftSidePathName:um,hasFlowShorthandAnnotationComment:cm,hasNakedLeftSide:lm,hasNode:pm,isBitwiseOperator:fm,startsWithNoLookaheadToken:hm,shouldFlatten:dm,getPrecedence:mm,isCallExpression:gm,isMemberExpression:ym}=kf;function bm(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),i=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(i)&&vm(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"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}(i))return!1;if("flow"!==t.parser&&cm(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name))||"left"===r&&"async"===i.name&&"ForOfStatement"===n.type&&!n.await;switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===r&&("ArrowFunctionExpression"===i.type||"AssignmentExpression"===i.type||"AwaitExpression"===i.type||"BinaryExpression"===i.type||"ConditionalExpression"===i.type||"LogicalExpression"===i.type||"NewExpression"===i.type||"ObjectExpression"===i.type||"ParenthesizedExpression"===i.type||"SequenceExpression"===i.type||"TaggedTemplateExpression"===i.type||"UnaryExpression"===i.type||"UpdateExpression"===i.type||"YieldExpression"===i.type||"TSNonNullExpression"===i.type))return!0;break;case"ExportDefaultDeclaration":return Dm(e,t)||"SequenceExpression"===i.type;case"Decorator":if("expression"===r){let e=!1,t=!1,n=i;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(hm(i,!0))return!0;break;case"ArrowFunctionExpression":if("body"===r&&"SequenceExpression"!==i.type&&hm(i,!1))return!0}switch(i.type){case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"left"===r&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"PipelineTopicExpression"===n.type&&"|>"===i.operator)return!0;if("in"===i.operator&&function(e){let t=0,n=e.getValue();for(;n;){const r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}(e))return!0;if("|>"===i.operator&&i.extra&&i.extra.parenthesized){const t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==i.type;case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r;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"===r;case"AssignmentExpression":case"AssignmentPattern":return"left"===r&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return n.operator!==i.operator;case"BinaryExpression":{const{operator:e,type:t}=i;if(!e&&"TSTypeAssertion"!==t)return!0;const o=mm(e),s=n.operator,a=mm(s);return a>o||"right"===r&&a===o||a===o&&!dm(s,e)||(a<o&&"%"===e?"+"===s||"-"===s:!!fm(s))}default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;if("expression"===r&&i.argument&&"PipelinePrimaryTopicReference"===i.argument.type&&"PipelineTopicExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"BinaryExpression":return!(!i.argument&&"|>"===n.operator);default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if("extendsType"===r&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===r&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!i.types||i.types.length>1))return!0;case"TSInferType":if("TSInferType"===i.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===r&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type;case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type;case"FunctionTypeAnnotation":{const t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===n.type&&null===n.name&&am(i).some((e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type))}case"OptionalIndexedAccessType":return"objectType"===r&&"IndexedAccessType"===n.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof i.value&&"ExpressionStatement"===n.type&&!n.directive){const t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===r&&"MemberExpression"===n.type&&"number"==typeof i.value;case"AssignmentExpression":{const t=e.getParentNode(1);return"body"===r&&"ArrowFunctionExpression"===n.type||("key"!==r||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==r&&"update"!==r||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===i.left.type:!("key"===r&&"TSPropertySignature"===n.type||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&t&&"ForStatement"===t.type&&(t.init===n||t.update===n)||"value"===r&&"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"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"PipelineTopicExpression":return Boolean(i.extra&&i.extra.parenthesized);case"BinaryExpression":return"|>"!==n.operator||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":return"NewExpression"===n.type&&"callee"===r;case"OptionalMemberExpression":case"OptionalCallExpression":{const t=e.getParentNode(1);if("object"===r&&"MemberExpression"===n.type||"callee"===r&&("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"===r&&("BindExpression"===n.type||"NewExpression"===n.type)){let e=i;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"===r&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===r&&ym(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!i.extra||!i.extra.parenthesized)||"ArrayExpression"===n.type||gm(n)&&n.arguments[r]===i||"right"===r&&"NGPipeExpression"===n.type||"property"===r&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"left"===r&&"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&&"ObjectProperty"!==n.type&&!gm(n)&&"Property"!==n.type&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return pm(e,(e=>"ObjectTypeAnnotation"===e.type&&pm(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}(i)}return!1}function vm(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(vm);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return Ee(t.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(vm);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(vm);break;case"UnaryExpression":if(n.prefix)return e.callParent(vm)}return!1}function Dm(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!bm(e,t):!(!lm(n)||"ExportDefaultDeclaration"!==r.type&&bm(e,t))&&e.call((e=>Dm(e,t)),...um(e,n))}var Cm=bm,Em=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{builders:{join:wm,line:Am,group:Sm,softline:xm,indent:Tm}}=kn;var Fm={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((e=>{const t=wm([",",Am],e.map(n,"params")),{params:r}=e.getValue();return 1===r.length?t:["(",Tm([xm,Sm(t)]),xm,")"]}),"program","body",0):t.__isVueBindings?e.call((e=>wm([",",Am],e.map(n,"params"))),"program","body",0):void 0}};const{printComments:Nm}=Tl,{getLast:km}=zt,{builders:{join:_m,line:Om,softline:Lm,group:Pm,indent:Im,align:Mm,ifBreak:Bm,indentIfBreak:jm},utils:{cleanDoc:Rm,getDocParts:Vm,isConcat:$m}}=kn,{hasLeadingOwnLineComment:Um,isBinaryish:Wm,isJsxNode:qm,shouldFlatten:Km,hasComment:Hm,CommentCheckFlags:Ym,isCallExpression:zm,isMemberExpression:Jm}=kf;let Gm=0;function Qm(e,t,n,r,i){let o=[];const s=e.getValue();if(Wm(s)){Km(s.operator,s.left.operator)?o=[...o,...e.call((e=>Qm(e,t,n,!0,i)),"left")]:o.push(Pm(t("left")));const a=Xm(s),u=("|>"===s.operator||"NGPipeExpression"===s.type||"|"===s.operator&&"__vue_expression"===n.parser)&&!Um(n.originalText,s.right),c="NGPipeExpression"===s.type?"|":s.operator,l="NGPipeExpression"===s.type&&s.arguments.length>0?Pm(Im([Lm,": ",_m([Lm,":",Bm(" ")],e.map(t,"arguments").map((e=>Mm(2,Pm(e)))))])):"",p=a?[c," ",t("right"),l]:[u?Om:"",c,u?" ":Om,t("right"),l],f=e.getParentNode(),h=Hm(s.left,Ym.Trailing|Ym.Line),d=h||!(i&&"LogicalExpression"===s.type)&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;if(o.push(u?"":" ",d?Pm(p,{shouldBreak:h}):p),r&&Hm(s)){const t=Rm(Nm(e,o,n));o=$m(t)||"fill"===t.type?Vm(t):[t]}}else o.push(Pm(t()));return o}function Xm(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||!!qm(e.right))}var Zm={printBinaryishExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=e.getParentNode(1),s=r!==i.body&&("IfStatement"===i.type||"WhileStatement"===i.type||"SwitchStatement"===i.type||"DoWhileStatement"===i.type),a=Qm(e,n,t,!1,s);if(s)return a;if(zm(i)&&i.callee===r||"UnaryExpression"===i.type||Jm(i)&&!i.computed)return Pm([Im([Lm,...a]),Lm]);const u="ReturnStatement"===i.type||"ThrowStatement"===i.type||"JSXExpressionContainer"===i.type&&"JSXAttribute"===o.type||"|"!==r.operator&&"JsExpressionRoot"===i.type||"NGPipeExpression"!==r.type&&("NGRoot"===i.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===i.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||r===i.body&&"ArrowFunctionExpression"===i.type||r!==i.body&&"ForStatement"===i.type||"ConditionalExpression"===i.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&!zm(o)||"TemplateLiteral"===i.type,c="AssignmentExpression"===i.type||"VariableDeclarator"===i.type||"ClassProperty"===i.type||"PropertyDefinition"===i.type||"TSAbstractClassProperty"===i.type||"ClassPrivateProperty"===i.type||"ObjectProperty"===i.type||"Property"===i.type,l=Wm(r.left)&&Km(r.operator,r.left.operator);if(u||Xm(r)&&!l||!Xm(r)&&c)return Pm(a);if(0===a.length)return"";const p=qm(r.right),f=a.findIndex((e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type)),h=a.slice(0,-1===f?1:f+1),d=a.slice(h.length,p?-1:void 0),m=Symbol("logicalChain-"+ ++Gm),g=Pm([...h,Im(d)],{id:m});if(!p)return g;const y=km(a);return Pm([g,jm(y,{groupId:m})])},shouldInlineLogicalExpression:Xm};const{builders:{join:eg,line:tg,group:ng}}=kn,{hasNode:rg,hasComment:ig,getComments:og}=kf,{printBinaryishExpression:sg}=Zm;function ag(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}var ug={printAngular:function(e,t,n){const r=e.getValue();switch(r.type){case"NGRoot":return[n("node"),ig(r.node)?" //"+og(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return sg(e,t,n);case"NGChainedExpression":return ng(eg([";",tg],e.map((e=>function(e){return rg(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}(e)?n():["(",n(),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[r.prefix,": ",r.value.trim()];case"NGMicrosyntax":return e.map(((e,t)=>[0===t?"":ag(e.getValue(),t,r)?" ":[";",tg],n()]),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),i=e.getParentNode(),o=ag(r,t,i)||(1===t&&("then"===r.key.name||"else"===r.key.name)||2===t&&"else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===i.body[t-1].type&&"then"===i.body[t-1].key.name)&&"NGMicrosyntaxExpression"===i.body[0].type;return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")]}}};const{printComments:cg,printDanglingComments:lg}=Tl,{builders:{line:pg,hardline:fg,softline:hg,group:dg,indent:mg,conditionalGroup:gg,fill:yg,ifBreak:bg,lineSuffixBoundary:vg,join:Dg},utils:{willBreak:Cg}}=kn,{getLast:Eg,getPreferredQuote:wg}=zt,{isJsxNode:Ag,rawText:Sg,isLiteral:xg,isCallExpression:Tg,isStringLiteral:Fg,isBinaryish:Ng,hasComment:kg,CommentCheckFlags:_g,hasNodeIgnoreComment:Og}=kf,{willPrintOwnComments:Lg}=sm,Pg=e=>""===e||e===pg||e===fg||e===hg;function Ig(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?hg:fg:hg}function Mg(e,t,n,r){return e?fg:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?fg:hg:fg}function Bg(e,t,n){return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const i=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),Tg,(e=>"JSXExpressionContainer"===e.type)),o=Cm(e,n);return dg([o?"":bg("("),mg([hg,t]),hg,o?"":bg(")")],{shouldBreak:i})}(e,cg(e,function(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return xg(t)&&!$g(t)}(r))return[n("openingElement"),n("closingElement")];const i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),o="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"),o];r.children=r.children.map((e=>function(e){return"JSXExpressionContainer"===e.type&&xg(e.expression)&&" "===e.expression.value&&!kg(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e));const s=r.children.filter(Ag).length>0,a=r.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let c=Cg(i)||s||u||a;const l="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=l?" ":bg([p,hg]," "),h=function(e,t,n,r,i){const o=[];return e.each(((e,t,s)=>{const a=e.getValue();if(xg(a)){const e=Sg(a);if($g(a)){const n=e.split(jg);if(""===n[0]){if(o.push(""),n.shift(),/\n/.test(n[0])){const e=s[t+1];o.push(Mg(i,n[1],a,e))}else o.push(r);n.shift()}let u;if(""===Eg(n)&&(n.pop(),u=n.pop()),0===n.length)return;for(const[e,t]of n.entries())e%2==1?o.push(pg):o.push(t);if(void 0!==u)if(/\n/.test(u)){const e=s[t+1];o.push(Mg(i,Eg(o),a,e))}else o.push(r);else{const e=s[t+1];o.push(Ig(i,Eg(o),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",fg):o.push("",r)}else{const e=n();o.push(e);const r=s[t+1];if(r&&$g(r)){const e=Vg(Sg(r)).split(jg)[0];o.push(Ig(i,e,a,r))}else o.push(fg)}}),"children"),o}(e,0,n,f,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),d=r.children.some((e=>$g(e)));for(let e=h.length-2;e>=0;e--){const t=""===h[e]&&""===h[e+1],n=h[e]===fg&&""===h[e+1]&&h[e+2]===fg,r=(h[e]===hg||h[e]===fg)&&""===h[e+1]&&h[e+2]===f,i=h[e]===f&&""===h[e+1]&&(h[e+2]===hg||h[e+2]===fg),o=h[e]===f&&""===h[e+1]&&h[e+2]===f,s=h[e]===hg&&""===h[e+1]&&h[e+2]===fg||h[e]===fg&&""===h[e+1]&&h[e+2]===hg;n&&d||t||r||o||s?h.splice(e,2):i&&h.splice(e+1,2)}for(;h.length>0&&Pg(Eg(h));)h.pop();for(;h.length>1&&Pg(h[0])&&Pg(h[1]);)h.shift(),h.shift();const m=[];for(const[e,t]of h.entries()){if(t===f){if(1===e&&""===h[e-1]){if(2===h.length){m.push(p);continue}m.push([p,fg]);continue}if(e===h.length-1){m.push(p);continue}if(""===h[e-1]&&h[e-2]===fg){m.push(p);continue}}m.push(t),Cg(t)&&(c=!0)}const g=d?yg(m):dg(m,{shouldBreak:!0});if(l)return g;const y=dg([i,mg([fg,g]),fg,o]);return c?y:gg([dg([i,...h,o]),y])}(e,t,n),t),t)}const jg=new RegExp("([ \n\r\t]+)"),Rg=new RegExp("[^ \n\r\t]"),Vg=e=>e.replace(new RegExp("(?:^"+jg.source+"|"+jg.source+"$)"),"");function $g(e){return xg(e)&&(Rg.test(Sg(e))||!/\n/.test(Sg(e)))}var Ug={hasJsxIgnoreComment:function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&Ag(t)&&Ag(n)))return!1;let r=null;for(let e=n.children.indexOf(t);e>0;e--){const t=n.children[e-1];if("JSXText"!==t.type||$g(t)){r=t;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&Og(r.expression)},printJsx:function(e,t,n){const r=e.getValue();switch(r.type){case"JSXAttribute":return function(e,t,n){const r=e.getValue(),i=[];if(i.push(n("name")),r.value){let e;if(Fg(r.value)){let n=Sg(r.value).replace(/&apos;/g,"'").replace(/&quot;/g,'"');const i=wg(n,t.jsxSingleQuote?"'":'"'),o="'"===i?"&apos;":"&quot;";n=n.slice(1,-1).replace(new RegExp(i,"g"),o),e=[i,n,i]}else e=n("value");i.push("=",e)}return i}(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return Dg(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return Dg(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return function(e,t,n){const r=e.getValue();return["{",e.call((e=>{const r=["...",n()],i=e.getValue();return kg(i)&&Lg(e)?[mg([hg,cg(e,r,t)]),hg]:r}),"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}(e,t,n);case"JSXExpressionContainer":return function(e,t,n){const r=e.getValue(),i=e.getParentNode(0),o="JSXEmptyExpression"===r.expression.type||!kg(r.expression)&&("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type||"ArrowFunctionExpression"===r.expression.type||Tg(r.expression)||"FunctionExpression"===r.expression.type||"TemplateLiteral"===r.expression.type||"TaggedTemplateExpression"===r.expression.type||"DoExpression"===r.expression.type||Ag(i)&&("ConditionalExpression"===r.expression.type||Ng(r.expression)));return dg(o?["{",n("expression"),vg,"}"]:["{",mg([hg,n("expression")]),hg,vg,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return Bg(e,t,n);case"JSXOpeningElement":return function(e,t,n){const r=e.getValue(),i=r.name&&kg(r.name)||r.typeParameters&&kg(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&&Fg(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!kg(r.attributes[0]))return dg(["<",n("name"),n("typeParameters")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);const o=r.attributes.length>0&&kg(Eg(r.attributes),_g.Trailing),s=0===r.attributes.length&&!i||t.jsxBracketSameLine&&(!i||r.attributes.length>0)&&!o,a=r.attributes&&r.attributes.some((e=>e.value&&Fg(e.value)&&e.value.value.includes("\n")));return dg(["<",n("name"),n("typeParameters"),mg(e.map((()=>[pg,n()]),"attributes")),r.selfClosing?pg:s?">":hg,r.selfClosing?"/>":s?"":">"],{shouldBreak:a})}(e,t,n);case"JSXClosingElement":return function(e,t,n){const r=e.getValue(),i=[];i.push("</");const o=n("name");return kg(r.name,_g.Leading|_g.Line)?i.push(mg([fg,o]),fg):kg(r.name,_g.Leading|_g.Block)?i.push(" ",o):i.push(o),i.push(">"),i}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){const n=e.getValue(),r=kg(n),i=kg(n,_g.Line),o="JSXOpeningFragment"===n.type;return[o?"<":"</",mg([i?fg:r&&!o?" ":"",lg(e,t,!0)]),i?fg:"",">"]}(e,t);case"JSXEmptyExpression":return function(e,t){const n=e.getValue(),r=kg(n,_g.Line);return[lg(e,t,!r),r?fg:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement")}}};const{isNonEmptyArray:Wg}=zt,{builders:{indent:qg,join:Kg,line:Hg}}=kn,{isFlowAnnotationComment:Yg}=kf;var zg={printOptionalToken:function(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"},printFunctionTypeParameters:function(e,t,n){const r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function(e,t,n){return["::",n("callee")]},printTypeScriptModifiers:function(e,t,n){const r=e.getValue();return Wg(r.modifiers)?[Kg(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:function(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const i=e.getParentNode(),o=r.definite||i&&"VariableDeclarator"===i.type&&i.definite,s="DeclareFunction"===i.type&&i.id===r;return Yg(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[s?"":o?"!: ":": ",n("typeAnnotation")]},adjustClause:function(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:qg([Hg,t])}};const{printDanglingComments:Jg}=Tl,{builders:{line:Gg,softline:Qg,hardline:Xg,group:Zg,indent:ey,ifBreak:ty,fill:ny}}=kn,{getLast:ry,hasNewline:iy}=zt,{shouldPrintComma:oy,hasComment:sy,CommentCheckFlags:ay,isNextLineEmpty:uy,isNumericLiteral:cy,isSignedNumericLiteral:ly}=kf,{locStart:py}=Na,{printOptionalToken:fy,printTypeAnnotation:hy}=zg;function dy(e,t){return e.elements.length>1&&e.elements.every((e=>e&&(cy(e)||ly(e)&&!sy(e.argument))&&!sy(e,ay.Trailing|ay.Line,(e=>!iy(t.originalText,py(e),{backwards:!0})))))}function my(e,t,n,r){const i=[];let o=[];return e.each((e=>{i.push(o,Zg(r())),o=[",",Gg],e.getValue()&&uy(e.getValue(),t)&&o.push(Qg)}),n),i}function gy(e,t,n,r){const i=[];return e.each(((e,o,s)=>{const a=o===s.length-1;i.push([n(),a?r:","]),a||i.push(uy(e.getValue(),t)?[Xg,Xg]:sy(s[o+1],ay.Leading|ay.Line)?Xg:Gg)}),"elements"),ny(i)}var yy={printArray:function(e,t,n){const r=e.getValue(),i=[],o="TupleExpression"===r.type?"#[":"[";if(0===r.elements.length)sy(r,ay.Dangling)?i.push(Zg([o,Jg(e,t),Qg,"]"])):i.push(o,"]");else{const s=ry(r.elements),a=!(s&&"RestElement"===s.type),u=null===s,c=Symbol("array"),l=!t.__inJestEach&&r.elements.length>1&&r.elements.every(((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const i=n[t+1];if(i&&r!==i.type)return!1;const o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1})),p=dy(r,t),f=a?u?",":oy(t)?p?ty(",","",{groupId:c}):ty(","):"":"";i.push(Zg([o,ey([Qg,p?gy(e,t,n,f):[my(e,t,"elements",n),f],Jg(e,t,!0)]),Qg,"]"],{shouldBreak:l,id:c}))}return i.push(fy(e),hy(e,t,n)),i},printArrayItems:my,isConciselyPrintedArray:dy};const{printDanglingComments:by}=Tl,{getLast:vy,getPenultimate:Dy}=zt,{getFunctionParameters:Cy,hasComment:Ey,CommentCheckFlags:wy,isFunctionCompositionArgs:Ay,isJsxNode:Sy,isLongCurriedCallExpression:xy,shouldPrintComma:Ty,getCallArguments:Fy,iterateCallArgumentsPath:Ny,isNextLineEmpty:ky,isCallExpression:_y}=kf,{builders:{line:Oy,hardline:Ly,softline:Py,group:Iy,indent:My,conditionalGroup:By,ifBreak:jy,breakParent:Ry},utils:{willBreak:Vy}}=kn,{ArgExpansionBailout:$y}=Gr,{isConciselyPrintedArray:Uy}=yy;function Wy(e,t=!1){return"ObjectExpression"===e.type&&(e.properties.length>0||Ey(e))||"ArrayExpression"===e.type&&(e.elements.length>0||Ey(e))||"TSTypeAssertion"===e.type&&Wy(e.expression)||"TSAsExpression"===e.type&&Wy(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||"BlockStatement"===(n=e.body).type&&(n.body.some((e=>"EmptyStatement"!==e.type))||Ey(n,wy.Dangling)))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&Wy(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(_y(e.body)||"ConditionalExpression"===e.body.type)||Sy(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type;var n}var qy=function(e,t,n){const r=e.getValue(),i="ImportExpression"===r.type,o=Fy(r);if(0===o.length)return["(",by(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===Cy(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((e=>Ey(e)))}(o))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];let s=!1,a=!1;const u=o.length-1,c=[];Ny(e,((e,r)=>{const i=e.getNode(),o=[n()];r===u||(ky(i,t)?(0===r&&(a=!0),s=!0,o.push(",",Ly,Ly)):o.push(",",Oy)),c.push(o)}));const l=i||r.callee&&"Import"===r.callee.type||!Ty(t,"all")?"":",";function p(){return Iy(["(",My([Oy,...c]),l,Oy,")"],{shouldBreak:!0})}if(s||"Decorator"!==e.getParentNode().type&&Ay(o))return p();const f=function(e){if(2!==e.length)return!1;const[t,n]=e;return!("ModuleExpression"!==t.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&"ObjectProperty"===e.properties[0].type&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&"StringLiteral"===e.properties[0].value.type&&"module"===e.properties[0].value.value}(n))||!Ey(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&!Wy(n)}(o),h=function(e,t){const n=vy(e),r=Dy(e);return!Ey(n,wy.Leading)&&!Ey(n,wy.Trailing)&&Wy(n)&&(!r||r.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==r.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&Uy(n,t))}(o,t);if(f||h){if(f?c.slice(1).some(Vy):c.slice(0,-1).some(Vy))return p();let t=[];try{e.try((()=>{Ny(e,((e,r)=>{f&&0===r&&(t=[[n([],{expandFirstArg:!0}),c.length>1?",":"",a?Ly:Oy,a?Ly:""],...c.slice(1)]),h&&r===u&&(t=[...c.slice(0,-1),n([],{expandLastArg:!0})])}))}))}catch(e){if(e instanceof $y)return p();throw e}return[c.some(Vy)?Ry:"",By([["(",...t,")"],f?["(",Iy(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...c.slice(0,-1),Iy(vy(t),{shouldBreak:!0}),")"],p()])]}const d=["(",My([Py,...c]),jy(l),Py,")"];return xy(e)?d:Iy(d,{shouldBreak:c.some(Vy)||s})};const{builders:{softline:Ky,group:Hy,indent:Yy,label:zy}}=kn,{isNumericLiteral:Jy,isMemberExpression:Gy,isCallExpression:Qy}=kf,{printOptionalToken:Xy}=zg;function Zy(e,t,n){const r=n("property"),i=e.getValue(),o=Xy(e);return i.computed?!i.property||Jy(i.property)?[o,"[",r,"]"]:Hy([o,"[",Yy([Ky,r]),Ky,"]"]):[o,".",r]}var eb={printMemberExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode();let o,s=0;do{o=e.getParentNode(s),s++}while(o&&(Gy(o)||"TSNonNullExpression"===o.type));const a=n("object"),u=Zy(e,0,n),c=o&&("NewExpression"===o.type||"BindExpression"===o.type||"AssignmentExpression"===o.type&&"Identifier"!==o.left.type)||r.computed||"Identifier"===r.object.type&&"Identifier"===r.property.type&&!Gy(i)||("AssignmentExpression"===i.type||"VariableDeclarator"===i.type)&&(Qy(r.object)&&r.object.arguments.length>0||"TSNonNullExpression"===r.object.type&&Qy(r.object.expression)&&r.object.expression.arguments.length>0||"member-chain"===a.label);return zy("member-chain"===a.label?"member-chain":"member",[a,c?u:Hy(Yy([Ky,u]))])},printMemberLookup:Zy};const{printComments:tb}=Tl,{getLast:nb,isNextLineEmptyAfterIndex:rb,getNextNonSpaceNonCommentCharacterIndex:ib}=zt,{isCallExpression:ob,isMemberExpression:sb,isFunctionOrArrowExpression:ab,isLongCurriedCallExpression:ub,isMemberish:cb,isNumericLiteral:lb,isSimpleCallArgument:pb,hasComment:fb,CommentCheckFlags:hb,isNextLineEmpty:db}=kf,{locEnd:mb}=Na,{builders:{join:gb,hardline:yb,group:bb,indent:vb,conditionalGroup:Db,breakParent:Cb,label:Eb},utils:{willBreak:wb}}=kn,{printMemberLookup:Ab}=eb,{printOptionalToken:Sb,printFunctionTypeParameters:xb,printBindExpressionCallee:Tb}=zg;var Fb=function(e,t,n){const r=e.getParentNode(),i=!r||"ExpressionStatement"===r.type,o=[];function s(e){const{originalText:n}=t,r=ib(n,e,mb);return")"===n.charAt(r)?!1!==r&&rb(n,r+1):db(e,t)}function a(e){const r=e.getValue();ob(r)&&(cb(r.callee)||ob(r.callee))?(o.unshift({node:r,printed:[tb(e,[Sb(e),xb(e,t,n),qy(e,t,n)],t),s(r)?yb:""]}),e.call((e=>a(e)),"callee")):cb(r)?(o.unshift({node:r,needsParens:Cm(e,t),printed:tb(e,sb(r)?Ab(e,t,n):Tb(e,t,n),t)}),e.call((e=>a(e)),"object")):"TSNonNullExpression"===r.type?(o.unshift({node:r,printed:tb(e,"!",t)}),e.call((e=>a(e)),"expression")):o.unshift({node:r,printed:n()})}const u=e.getValue();o.unshift({node:u,printed:[Sb(e),xb(e,t,n),qy(e,t,n)]}),u.callee&&e.call((e=>a(e)),"callee");const c=[];let l=[o[0]],p=1;for(;p<o.length&&("TSNonNullExpression"===o[p].node.type||ob(o[p].node)||sb(o[p].node)&&o[p].node.computed&&lb(o[p].node.property));++p)l.push(o[p]);if(!ob(o[0].node))for(;p+1<o.length&&cb(o[p].node)&&cb(o[p+1].node);++p)l.push(o[p]);c.push(l),l=[];let f=!1;for(;p<o.length;++p){if(f&&cb(o[p].node)){if(o[p].node.computed&&lb(o[p].node.property)){l.push(o[p]);continue}c.push(l),l=[],f=!1}(ob(o[p].node)||"ImportExpression"===o[p].node.type)&&(f=!0),l.push(o[p]),fb(o[p].node,hb.Trailing)&&(c.push(l),l=[],f=!1)}function h(e){return/^[A-Z]|^[$_]+$/.test(e)}l.length>0&&c.push(l);const d=c.length>=2&&!fb(c[1][0].node)&&function(e){const n=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){const r=e[0][0].node;return"ThisExpression"===r.type||"Identifier"===r.type&&(h(r.name)||i&&function(e){return e.length<=t.tabWidth}(r.name)||n)}const r=nb(e[0]).node;return sb(r)&&"Identifier"===r.property.type&&(h(r.property.name)||n)}(c);function m(e){const t=e.map((e=>e.printed));return e.length>0&&nb(e).needsParens?["(",...t,")"]:t}const g=c.map(m),y=g,b=d?3:2,v=ba(c),D=v.slice(1,-1).some((e=>fb(e.node,hb.Leading)))||v.slice(0,-1).some((e=>fb(e.node,hb.Trailing)))||c[b]&&fb(c[b][0].node,hb.Leading);if(c.length<=b&&!D)return ub(e)?y:bb(y);const C=nb(c[d?1:0]).node,E=!ob(C)&&s(C),w=[m(c[0]),d?c.slice(1,2).map(m):"",E?yb:"",function(e){return 0===e.length?"":vb(bb([yb,gb(yb,e.map(m))]))}(c.slice(d?2:1))],A=o.map((({node:e})=>e)).filter(ob);let S;return S=D||A.length>2&&A.some((e=>!e.arguments.every((e=>pb(e,0)))))||g.slice(0,-1).some(wb)||function(){const e=nb(nb(c)).node,t=nb(g);return ob(e)&&wb(t)&&A.slice(0,-1).some((e=>e.arguments.some(ab)))}()?bb(w):[wb(y)||E?Cb:"",Db([y,w])],Eb("member-chain",S)};const{builders:{join:Nb,group:kb}}=kn,{getCallArguments:_b,hasFlowAnnotationComment:Ob,isCallExpression:Lb,isMemberish:Pb,isStringLiteral:Ib,isTemplateOnItsOwnLine:Mb,isTestCall:Bb,iterateCallArgumentsPath:jb}=kf,{printOptionalToken:Rb,printFunctionTypeParameters:Vb}=zg;var $b={printCallExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o="NewExpression"===r.type,s="ImportExpression"===r.type,a=Rb(e),u=_b(r);if(u.length>0&&(!s&&!o&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){const n=_b(e);return"ExpressionStatement"===t.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&Ib(n[0])&&"ArrayExpression"===n[1].type)}return!1}(r,i)||1===u.length&&Mb(u[0],t.originalText)||!o&&Bb(r,i))){const r=[];return jb(e,(()=>{r.push(n())})),[o?"new ":"",n("callee"),a,Vb(e,t,n),"(",Nb(", ",r),")"]}const c=("babel"===t.parser||"babel-flow"===t.parser)&&r.callee&&"Identifier"===r.callee.type&&Ob(r.callee.trailingComments);if(c&&(r.callee.trailingComments[0].printed=!0),!s&&!o&&Pb(r.callee)&&!e.call((e=>Cm(e,t)),"callee"))return Fb(e,t,n);const l=[o?"new ":"",s?"import":n("callee"),a,c?"/*:: ".concat(r.callee.trailingComments[0].value.slice(2).trim()," */"):"",Vb(e,t,n),qy(e,t,n)];return s||Lb(r.callee)?kb(l):l}};const{isNonEmptyArray:Ub,getStringWidth:Wb}=zt,{builders:{line:qb,group:Kb,indent:Hb,indentIfBreak:Yb},utils:{cleanDoc:zb}}=kn,{hasLeadingOwnLineComment:Jb,isBinaryish:Gb,isStringLiteral:Qb,isLiteral:Xb,isNumericLiteral:Zb,isCallExpression:ev,isMemberExpression:tv,getCallArguments:nv,rawText:rv,hasComment:iv,isSignedNumericLiteral:ov}=kf,{shouldInlineLogicalExpression:sv}=Zm,{printCallExpression:av}=$b;function uv(e,t,n,r,i,o){const s=function(e,t,n,r,i){const o=e.getValue(),s=o[i];if(!s)return"only-left";const a=!cv(s);if(e.match(cv,lv,(e=>!a||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type)))return a?"ArrowFunctionExpression"===s.type&&"ArrowFunctionExpression"===s.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&cv(s.right)||Jb(t.originalText,s))return"break-after-operator";if("CallExpression"===s.type&&"require"===s.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(lv(e)){const t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((e=>("ObjectProperty"===e.type||"Property"===e.type)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)))}return!1}(o))return"break-lhs";const u=function(e,t,n){if("ObjectProperty"!==e.type&&"Property"!==e.type)return!1;return"string"==typeof(t=zb(t))&&Wb(t)<n.tabWidth+3}(o,r,t);return e.call((()=>function(e,t,n,r){const i=e.getValue();if(Gb(i)&&!sv(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{const{test:e}=i;return Gb(e)&&!sv(e)}case"ClassExpression":return Ub(i.decorators)}if(r)return!1;let o=i;const s=[];for(;;)if("UnaryExpression"===o.type)o=o.argument,s.push("argument");else{if("TSNonNullExpression"!==o.type)break;o=o.expression,s.push("expression")}return!(!Qb(o)&&!e.call((()=>pv(e,t,n)),...s))}(e,t,n,u)),i)?"break-after-operator":u||"TemplateLiteral"===s.type||"TaggedTemplateExpression"===s.type||"BooleanLiteral"===s.type||Zb(s)||"ClassExpression"===s.type?"never-break-after-operator":"fluid"}(e,t,n,r,o),a=n(o,{assignmentLayout:s});switch(s){case"break-after-operator":return Kb([Kb(r),i,Kb(Hb([qb,a]))]);case"never-break-after-operator":return Kb([Kb(r),i," ",a]);case"fluid":{const e=Symbol("assignment");return Kb([Kb(r),i,Kb(Hb(qb),{id:e}),Yb(a,{groupId:e})])}case"break-lhs":return Kb([r,i," ",Kb(a)]);case"chain":return[Kb(r),i,qb,a];case"chain-tail":return[Kb(r),i,Hb([qb,a])];case"chain-tail-arrow-chain":return[Kb(r),i,a];case"only-left":return r}}function cv(e){return"AssignmentExpression"===e.type}function lv(e){return cv(e)||"VariableDeclarator"===e.type}function pv(e,t,n,r=!1){const i=e.getValue(),o=()=>pv(e,t,n,!0);if("TSNonNullExpression"===i.type)return e.call(o,"expression");if(ev(i)){if("member-chain"===av(e,t,n).label)return!1;const r=nv(i);return!!(0===r.length||1===r.length&&function(e,{printWidth:t}){if(iv(e))return!1;const n=.25*t;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||ov(e)&&!iv(e.argument))return!0;const r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return r?r.length<=n:Qb(e)?rv(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):Xb(e)}(r[0],t))&&e.call(o,"callee")}return tv(i)?e.call(o,"object"):r&&("Identifier"===i.type||"ThisExpression"===i.type)}var fv={printVariableDeclarator:function(e,t,n){return uv(e,t,n,n("id")," =","init")},printAssignmentExpression:function(e,t,n){const r=e.getValue();return uv(e,t,n,n("left"),[" ",r.operator],"right")},printAssignment:uv};const{getNextNonSpaceNonCommentCharacter:hv}=zt,{printDanglingComments:dv}=Tl,{builders:{line:mv,hardline:gv,softline:yv,group:bv,indent:vv,ifBreak:Dv},utils:{removeLines:Cv,willBreak:Ev}}=kn,{getFunctionParameters:wv,iterateFunctionParametersPath:Av,isSimpleType:Sv,isTestCall:xv,isTypeAnnotationAFunction:Tv,isObjectType:Fv,isObjectTypePropertyAFunction:Nv,hasRestParameter:kv,shouldPrintComma:_v,hasComment:Ov,isNextLineEmpty:Lv}=kf,{locEnd:Pv}=Na,{ArgExpansionBailout:Iv}=Gr,{printFunctionTypeParameters:Mv}=zg;function Bv(e){if(!e)return!1;const t=wv(e);if(1!==t.length)return!1;const[n]=t;return!Ov(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Fv(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Fv(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))}var jv={printFunctionParameters:function(e,t,n,r,i){const o=e.getValue(),s=wv(o),a=i?Mv(e,n,t):"";if(0===s.length)return[a,"(",dv(e,n,!0,(e=>")"===hv(n.originalText,e,Pv))),")"];const u=e.getParentNode(),c=xv(u),l=Bv(o),p=[];if(Av(e,((e,r)=>{const i=r===s.length-1;i&&o.rest&&p.push("..."),p.push(t()),i||(p.push(","),c||l?p.push(" "):Lv(s[r],n)?p.push(gv,gv):p.push(mv))})),r){if(Ev(a)||Ev(p))throw new Iv;return bv([Cv(a),"(",Cv(p),")"])}const f=s.every((e=>!e.decorators));return l&&f||c?[a,"(",...p,")"]:(Nv(u)||Tv(u)||"TypeAlias"===u.type||"UnionTypeAnnotation"===u.type||"TSUnionType"===u.type||"IntersectionTypeAnnotation"===u.type||"FunctionTypeAnnotation"===u.type&&u.returnType===o)&&1===s.length&&null===s[0].name&&o.this!==s[0]&&s[0].typeAnnotation&&null===o.typeParameters&&Sv(s[0].typeAnnotation)&&!o.rest?"always"===n.arrowParens?["(",...p,")"]:p:[a,"(",vv([yv,...p]),Dv(!kv(o)&&_v(n,"all")?",":""),yv,")"]},shouldHugFunctionParameters:Bv,shouldGroupFunctionParameters:function(e,t){const n=function(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!n)return!1;const r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){const e=r[0];if(e.constraint||e.default)return!1}}return 1===wv(e).length&&(Fv(n)||Ev(t))}};const{printComments:Rv,printDanglingComments:Vv}=Tl,{getLast:$v}=zt,{builders:{group:Uv,join:Wv,line:qv,softline:Kv,indent:Hv,align:Yv,ifBreak:zv}}=kn,{locStart:Jv}=Na,{isSimpleType:Gv,isObjectType:Qv,hasLeadingOwnLineComment:Xv,isObjectTypePropertyAFunction:Zv,shouldPrintComma:eD}=kf,{printAssignment:tD}=fv,{printFunctionParameters:nD,shouldGroupFunctionParameters:rD}=jv,{printArrayItems:iD}=yy;function oD(e){if(Gv(e)||Qv(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,n=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&n)return!0}return!1}var sD={printOpaqueType:function(e,t,n){const r=t.semi?";":"",i=e.getValue(),o=[];return o.push("opaque type ",n("id"),n("typeParameters")),i.supertype&&o.push(": ",n("supertype")),i.impltype&&o.push(" = ",n("impltype")),o.push(r),o},printTypeAlias:function(e,t,n){const r=t.semi?";":"",i=e.getValue(),o=[];i.declare&&o.push("declare "),o.push("type ",n("id"),n("typeParameters"));const s="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[tD(e,t,n,o," =",s),r]},printIntersectionType:function(e,t,n){const r=e.getValue(),i=e.map(n,"types"),o=[];let s=!1;for(let e=0;e<i.length;++e)0===e?o.push(i[e]):Qv(r.types[e-1])&&Qv(r.types[e])?o.push([" & ",s?Hv(i[e]):i[e]]):Qv(r.types[e-1])||Qv(r.types[e])?(e>1&&(s=!0),o.push(" & ",e>1?Hv(i[e]):i[e])):o.push(Hv([" &",qv,i[e]]));return Uv(o)},printUnionType:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=!("TypeParameterInstantiation"===i.type||"TSTypeParameterInstantiation"===i.type||"GenericTypeAnnotation"===i.type||"TSTypeReference"===i.type||"TSTypeAssertion"===i.type||"TupleTypeAnnotation"===i.type||"TSTupleType"===i.type||"FunctionTypeParam"===i.type&&!i.name&&e.getParentNode(1).this!==i||("TypeAlias"===i.type||"VariableDeclarator"===i.type||"TSTypeAliasDeclaration"===i.type)&&Xv(t.originalText,r)),s=oD(r),a=e.map((e=>{let r=n();return s||(r=Yv(2,r)),Rv(e,r,t)}),"types");if(s)return Wv(" | ",a);const u=o&&!Xv(t.originalText,r),c=[zv([u?qv:"","| "]),Wv([qv,"| "],a)];return Cm(e,t)?Uv([Hv(c),Kv]):"TupleTypeAnnotation"===i.type&&i.types.length>1||"TSTupleType"===i.type&&i.elementTypes.length>1?Uv([Hv([zv(["(",Kv]),c]),Kv,zv(")")]):Uv(o?Hv(c):c)},printFunctionType:function(e,t,n){const r=e.getValue(),i=[],o=e.getParentNode(0),s=e.getParentNode(1),a=e.getParentNode(2);let u="TSFunctionType"===r.type||!(("ObjectTypeProperty"===o.type||"ObjectTypeInternalSlot"===o.type)&&!o.variance&&!o.optional&&Jv(o)===Jv(r)||"ObjectTypeCallProperty"===o.type||a&&"DeclareFunction"===a.type),c=u&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type);const l=c&&u&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type)&&"ArrowFunctionExpression"===s.type;Zv(o)&&(u=!0,c=!0),l&&i.push("(");const p=nD(e,n,t,!1,!0),f=r.returnType||r.predicate||r.typeAnnotation?[u?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",h=rD(r,f);return i.push(h?Uv(p):p),f&&i.push(f),l&&i.push(")"),Uv(i)},printTupleType:function(e,t,n){const r=e.getValue(),i="TSTupleType"===r.type?"elementTypes":"types",o=r[i].length>0&&"TSRestType"===$v(r[i]).type;return Uv(["[",Hv([Kv,iD(e,t,i,n)]),zv(eD(t,"all")&&!o?",":""),Vv(e,t,!0),Kv,"]"])},printIndexedAccessType:function(e,t,n){const r=e.getValue(),i="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),i,n("indexType"),"]"]},shouldHugType:oD};const{printDanglingComments:aD}=Tl,{builders:{join:uD,line:cD,hardline:lD,softline:pD,group:fD,indent:hD,ifBreak:dD}}=kn,{isTestCall:mD,hasComment:gD,CommentCheckFlags:yD,isTSXFile:bD,shouldPrintComma:vD,getFunctionParameters:DD}=kf,{createGroupIdMapper:CD}=zt,{shouldHugType:ED}=sD,wD=CD("typeParameters");function AD(e,t){const n=e.getValue();if(!gD(n,yD.Dangling))return"";const r=!gD(n,yD.Line),i=aD(e,t,r);return r?i:[i,lD]}var SD={printTypeParameter:function(e,t,n){const r=e.getValue(),i=[],o=e.getParentNode();return"TSMappedType"===o.type?(i.push("[",n("name")),r.constraint&&i.push(" in ",n("constraint")),o.nameType&&i.push(" as ",e.callParent((()=>n("nameType")))),i.push("]"),i):(r.variance&&i.push(n("variance")),i.push(n("name")),r.bound&&i.push(": ",n("bound")),r.constraint&&i.push(" extends ",n("constraint")),r.default&&i.push(" = ",n("default")),i)},printTypeParameters:function(e,t,n,r){const i=e.getValue();if(!i[r])return"";if(!Array.isArray(i[r]))return n(r);const o=e.getNode(2);if(o&&mD(o)||0===i[r].length||1===i[r].length&&(ED(i[r][0])||"NullableTypeAnnotation"===i[r][0].type))return["<",uD(", ",e.map(n,r)),AD(e,t),">"];const s="TSTypeParameterInstantiation"===i.type?"":1===DD(i).length&&bD(t)&&!i[r][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":vD(t,"all")?dD(","):"";return fD(["<",hD([pD,uD([",",cD],e.map(n,r))]),s,pD,">"],{id:wD(i)})},getTypeParametersGroupId:wD};const{printComments:xD}=Tl,{printString:TD,printNumber:FD}=zt,{isNumericLiteral:ND,isSimpleNumber:kD,isStringLiteral:_D,isStringPropSafeToUnquote:OD,rawText:LD}=kf,{printAssignment:PD}=fv,ID=new WeakMap;function MD(e,t,n){const r=e.getNode();if(r.computed)return["[",n("key"),"]"];const i=e.getParentNode(),{key:o}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===o.type)return["#",n("key")];if("consistent"===t.quoteProps&&!ID.has(i)){const e=(i.properties||i.body||i.members).some((e=>!e.computed&&e.key&&_D(e.key)&&!OD(e,t)));ID.set(i,e)}if(("Identifier"===o.type||ND(o)&&kD(FD(LD(o)))&&String(o.value)===FD(LD(o))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&ID.get(i))){const n=TD(JSON.stringify("Identifier"===o.type?o.name:o.value.toString()),t);return e.call((e=>xD(e,n,t)),"key")}return OD(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!ID.get(i))?e.call((e=>xD(e,/^\d/.test(o.value)?FD(o.value):o.value,t)),"key"):n("key")}var BD={printProperty:function(e,t,n){return e.getValue().shorthand?n("value"):PD(e,t,n,MD(e,t,n),":","value")},printPropertyKey:MD};const{printDanglingComments:jD,printCommentsSeparately:RD}=Tl,{getNextNonSpaceNonCommentCharacterIndex:VD}=zt,{builders:{line:$D,softline:UD,group:WD,indent:qD,ifBreak:KD,hardline:HD,join:YD,indentIfBreak:zD}}=kn,{getFunctionParameters:JD,hasLeadingOwnLineComment:GD,isFlowAnnotationComment:QD,isJsxNode:XD,isTemplateOnItsOwnLine:ZD,shouldPrintComma:eC,startsWithNoLookaheadToken:tC,returnArgumentHasLeadingComment:nC,isBinaryish:rC,isLineComment:iC,hasComment:oC,getComments:sC,CommentCheckFlags:aC,isCallLikeExpression:uC}=kf,{locEnd:cC}=Na,{printFunctionParameters:lC,shouldGroupFunctionParameters:pC}=jv,{printPropertyKey:fC}=BD,{printFunctionTypeParameters:hC}=zg;function dC(e,t,n){const r=e.getNode(),i=lC(e,n,t),o=gC(e,n,t),s=pC(r,o),a=[hC(e,t,n),WD([s?WD(i):i,o])];return r.body?a.push(" ",n("body")):a.push(t.semi?";":""),a}function mC(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){const t=JD(e);return!(1!==t.length||e.typeParameters||oC(e,aC.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||oC(t[0])||t[0].optional||e.predicate||e.returnType)}(e.getValue())}function gC(e,t,n){const r=e.getValue(),i=t("returnType");if(r.returnType&&QD(n.originalText,r.returnType))return[" /*: ",i," */"];const o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",t("predicate")),o}function yC(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[];r.argument&&(nC(t,r.argument)?o.push([" (",qD([HD,n("argument")]),HD,")"]):rC(r.argument)||"SequenceExpression"===r.argument.type?o.push(WD([KD(" ("," "),qD([UD,n("argument")]),UD,KD(")")])):o.push(" ",n("argument")));const s=sC(r),a=Ee(s),u=a&&iC(a);return u&&o.push(i),oC(r,aC.Dangling)&&o.push(" ",jD(e,t,!0)),u||o.push(i),o}var bC={printFunctionDeclaration:function(e,t,n,r){const i=e.getValue(),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"));const s=lC(e,t,n,r),a=gC(e,t,n),u=pC(i,a);return o.push(hC(e,n,t),WD([u?WD(s):s,a]),i.body?" ":"",t("body")),!n.semi||!i.declare&&i.body||o.push(";"),o},printArrowFunctionExpression:function(e,t,n,r){let i=e.getValue();const o=[],s=[];let a=!1;if(function u(){const c=function(e,t,n,r){const i=[];e.getValue().async&&i.push("async "),mC(e,t)?i.push(n(["params",0])):i.push(WD([lC(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),gC(e,n,t)]));const o=jD(e,t,!0,(e=>{const n=VD(t.originalText,e,cC);return!1!==n&&"=>"===t.originalText.slice(n,n+2)}));return o&&i.push(" ",o),i}(e,t,n,r);if(0===o.length)o.push(c);else{const{leading:n,trailing:r}=RD(e,t);o.push([n,c]),s.unshift(r)}a=a||i.returnType&&JD(i).length>0||i.typeParameters||JD(i).some((e=>"Identifier"!==e.type)),"ArrowFunctionExpression"!==i.body.type||r&&r.expandLastArg?s.unshift(n("body",r)):(i=i.body,e.call(u,"body"))}(),o.length>1)return function(e,t,n,r,i,o){const s=e.getName(),a=e.getParentNode(),u=uC(a)&&"callee"===s,c=Boolean(t&&t.assignmentLayout),l="BlockStatement"!==o.body.type&&"ObjectExpression"!==o.body.type,p=u&&l||t&&"chain-tail-arrow-chain"===t.assignmentLayout,f=Symbol("arrow-chain");return WD([WD(qD([u||c?UD:"",WD(YD([" =>",$D],n),{shouldBreak:r})]),{id:f,shouldBreak:p})," =>",zD(l?qD([$D,i]):[" ",i],{groupId:f}),u?KD(UD,"",{groupId:f}):""])}(e,r,o,a,s,i);const u=o;if(u.push(" =>"),!GD(t.originalText,i.body)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||XD(i.body)||ZD(i.body,t.originalText)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return WD([...u," ",s]);if("SequenceExpression"===i.body.type)return WD([...u,WD([" (",qD([UD,s]),UD,")"])]);const c=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!oC(i),l=r&&r.expandLastArg&&eC(t,"all"),p="ConditionalExpression"===i.body.type&&!tC(i.body,!1);return WD([...u,WD([qD([$D,p?KD("","("):"",s,p?KD("",")"):""]),c?[KD(l?",":""),UD]:""])])},printMethod:function(e,t,n){const r=e.getNode(),{kind:i}=r,o=r.value||r,s=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(tl.ok("get"===i||"set"===i),s.push(i," ")):o.async&&s.push("async "),o.generator&&s.push("*"),s.push(fC(e,t,n),r.optional||r.key.optional?"?":""),r===o?s.push(dC(e,t,n)):"FunctionExpression"===o.type?s.push(e.call((e=>dC(e,t,n)),"value")):s.push(n("value")),s},printReturnStatement:function(e,t,n){return["return",yC(e,t,n)]},printThrowStatement:function(e,t,n){return["throw",yC(e,t,n)]},printMethodInternal:dC,shouldPrintParamsWithoutParens:mC};const{isNonEmptyArray:vC,hasNewline:DC}=zt,{builders:{line:CC,hardline:EC,join:wC,breakParent:AC,group:SC}}=kn,{locStart:xC,locEnd:TC}=Na,{getParentExportDeclaration:FC}=kf;function NC(e,t){return e.decorators.some((e=>DC(t.originalText,TC(e))))}function kC(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;const t=e.declaration&&e.declaration.decorators;return vC(t)&&xC(e,{ignoreDecorators:!0})>xC(t[0])}var _C={printDecorators:function(e,t,n){const r=e.getValue(),{decorators:i}=r;if(!vC(i)||kC(e.getParentNode()))return;const o="ClassExpression"===r.type||"ClassDeclaration"===r.type||NC(r,t);return[FC(e)?EC:o?AC:"",wC(CC,e.map(n,"decorators")),CC]},printClassMemberDecorators:function(e,t,n){const r=e.getValue();return SC([wC(CC,e.map(n,"decorators")),NC(r,t)?EC:CC])},printDecoratorsBeforeExport:function(e,t,n){return[wC(EC,e.map(n,"declaration","decorators")),EC]},hasDecoratorsBeforeExport:kC};const{isNonEmptyArray:OC,createGroupIdMapper:LC}=zt,{printComments:PC,printDanglingComments:IC}=Tl,{builders:{join:MC,line:BC,hardline:jC,softline:RC,group:VC,indent:$C,ifBreak:UC}}=kn,{hasComment:WC,CommentCheckFlags:qC}=kf,{getTypeParametersGroupId:KC}=SD,{printMethod:HC}=bC,{printOptionalToken:YC,printTypeAnnotation:zC}=zg,{printPropertyKey:JC}=BD,{printAssignment:GC}=fv,{printClassMemberDecorators:QC}=_C,XC=LC("heritageGroup");function ZC(e){return e.typeParameters&&!WC(e.typeParameters,qC.Trailing|qC.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter((t=>Boolean(e[t]))).length>1}(e)}function eE(e,t,n,r){const i=e.getValue();if(!OC(i[r]))return"";const o=IC(e,t,!0,(({marker:e})=>e===r));return[ZC(i)?UC(" ",BC,{groupId:KC(i.typeParameters)}):BC,o,o&&jC,r,VC($C([BC,MC([",",BC],e.map(n,r))]))]}function tE(e,t,n){const r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?VC(UC(["(",$C([RC,r]),RC,")"],r)):r}var nE={printClass:function(e,t,n){const r=e.getValue(),i=[];r.declare&&i.push("declare "),r.abstract&&i.push("abstract "),i.push("class");const o=r.id&&WC(r.id,qC.Trailing)||r.superClass&&WC(r.superClass)||OC(r.extends)||OC(r.mixins)||OC(r.implements),s=[],a=[];if(r.id&&s.push(" ",n("id")),s.push(n("typeParameters")),r.superClass){const r=["extends ",tE(e,0,n),n("superTypeParameters")],i=e.call((e=>PC(e,r,t)),"superClass");o?a.push(BC,VC(i)):a.push(" ",i)}else a.push(eE(e,t,n,"extends"));if(a.push(eE(e,t,n,"mixins"),eE(e,t,n,"implements")),o){let e;e=ZC(r)?[...s,$C(a)]:$C([...s,a]),i.push(VC(e,{id:XC(r)}))}else i.push(...s,...a);return i.push(" ",n("body")),i},printClassMethod:function(e,t,n){const r=e.getValue(),i=[];return OC(r.decorators)&&i.push(QC(e,t,n)),r.accessibility&&i.push(r.accessibility+" "),r.readonly&&i.push("readonly "),r.declare&&i.push("declare "),r.static&&i.push("static "),r.override&&i.push("override "),("TSAbstractMethodDefinition"===r.type||r.abstract)&&i.push("abstract "),i.push(HC(e,t,n)),i},printClassProperty:function(e,t,n){const r=e.getValue(),i=[],o=t.semi?";":"";return OC(r.decorators)&&i.push(QC(e,t,n)),r.accessibility&&i.push(r.accessibility+" "),r.declare&&i.push("declare "),r.static&&i.push("static "),r.override&&i.push("override "),("TSAbstractClassProperty"===r.type||r.abstract)&&i.push("abstract "),r.readonly&&i.push("readonly "),r.variance&&i.push(n("variance")),i.push(JC(e,t,n),YC(e),zC(e,t,n)),[GC(e,t,n,i," =","value"),o]},printHardlineAfterHeritage:function(e){return UC(jC,"",{groupId:XC(e)})}};const{isNonEmptyArray:rE}=zt,{builders:{join:iE,line:oE,group:sE,indent:aE,ifBreak:uE}}=kn,{hasComment:cE,identity:lE,CommentCheckFlags:pE}=kf,{getTypeParametersGroupId:fE}=SD,{printTypeScriptModifiers:hE}=zg;var dE={printInterface:function(e,t,n){const r=e.getValue(),i=[];r.declare&&i.push("declare "),"TSInterfaceDeclaration"===r.type&&i.push(r.abstract?"abstract ":"",hE(e,t,n)),i.push("interface");const o=[],s=[];"InterfaceTypeAnnotation"!==r.type&&o.push(" ",n("id"),n("typeParameters"));const a=r.typeParameters&&!cE(r.typeParameters,pE.Trailing|pE.Line);return rE(r.extends)&&s.push(a?uE(" ",oE,{groupId:fE(r.typeParameters)}):oE,"extends ",(1===r.extends.length?lE:aE)(iE([",",oE],e.map(n,"extends")))),r.id&&cE(r.id,pE.Trailing)||rE(r.extends)?a?i.push(sE([...o,aE(s)])):i.push(sE(aE([...o,...s]))):i.push(...o,...s),i.push(" ",n("body")),sE(i)}};const{isNonEmptyArray:mE}=zt,{builders:{softline:gE,group:yE,indent:bE,join:vE,line:DE,ifBreak:CE,hardline:EE}}=kn,{printDanglingComments:wE}=Tl,{hasComment:AE,CommentCheckFlags:SE,shouldPrintComma:xE,needsHardlineAfterDanglingComment:TE}=kf,{locStart:FE,hasSameLoc:NE}=Na,{hasDecoratorsBeforeExport:kE,printDecoratorsBeforeExport:_E}=_C;function OE(e,t,n){const r=e.getValue();if(!r.source)return"";const i=[];return PE(r,t)||i.push(" from"),i.push(" ",n("source")),i}function LE(e,t,n){const r=e.getValue();if(PE(r,t))return"";const i=[" "];if(mE(r.specifiers)){const o=[],s=[];e.each((()=>{const t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)o.push(n());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type ".concat(JSON.stringify(t)));s.push(n())}}),"specifiers"),i.push(vE(", ",o)),s.length>0&&(o.length>0&&i.push(", "),s.length>1||o.length>0||r.specifiers.some((e=>AE(e)))?i.push(yE(["{",bE([t.bracketSpacing?DE:gE,vE([",",DE],s)]),CE(xE(t)?",":""),t.bracketSpacing?DE:gE,"}"])):i.push(["{",t.bracketSpacing?" ":"",...s,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function PE(e,t){const{type:n,importKind:r,source:i,specifiers:o}=e;return"ImportDeclaration"===n&&!mE(o)&&"type"!==r&&!/{\s*}/.test(t.originalText.slice(FE(e),FE(i)))}function IE(e,t,n){const r=e.getNode();return mE(r.assertions)?[" assert {",t.bracketSpacing?" ":"",vE(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}var ME={printImportDeclaration:function(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[],{importKind:s}=r;return o.push("import"),s&&"value"!==s&&o.push(" ",s),o.push(LE(e,t,n),OE(e,t,n),IE(e,t,n),i),o},printExportDeclaration:function(e,t,n){const r=e.getValue(),i=[];kE(r)&&i.push(_E(e,t,n));const{type:o,exportKind:s,declaration:a}=r;return i.push("export"),(r.default||"ExportDefaultDeclaration"===o)&&i.push(" default"),AE(r,SE.Dangling)&&(i.push(" ",wE(e,t,!0)),TE(r)&&i.push(EE)),a?i.push(" ",n("declaration")):i.push("type"===s?" type":"",LE(e,t,n),OE(e,t,n),IE(e,t,n)),function(e,t){if(!t.semi)return!1;const{type:n,declaration:r}=e,i=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;const{type:o}=r;return!(!i||"ClassDeclaration"===o||"FunctionDeclaration"===o||"TSInterfaceDeclaration"===o||"DeclareClass"===o||"DeclareFunction"===o||"TSDeclareFunction"===o||"EnumDeclaration"===o)}(r,t)&&i.push(";"),i},printExportAllDeclaration:function(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[],{exportKind:s,exported:a}=r;return o.push("export"),"type"===s&&o.push(" type"),o.push(" *"),a&&o.push(" as ",n("exported")),o.push(OE(e,t,n),IE(e,t,n),i),o},printModuleSpecifier:function(e,t,n){const r=e.getNode(),{type:i,importKind:o}=r,s=[];"ImportSpecifier"===i&&o&&s.push(o," ");const a=i.startsWith("Import"),u=a?"imported":"local",c=a?"local":"exported";let l="",p="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?l="*":r[u]&&(l=n(u)),!r[c]||r[u]&&NE(r[u],r[c])||(p=n(c)),s.push(l,l&&p?" as ":"",p),s}};const{getParentExportDeclaration:BE}=kf,{printClass:jE}=nE,{printOpaqueType:RE,printTypeAlias:VE,printIntersectionType:$E,printUnionType:UE,printFunctionType:WE,printTupleType:qE,printIndexedAccessType:KE}=sD,{printInterface:HE}=dE,{printTypeParameters:YE}=SD,{printExportDeclaration:zE,printExportAllDeclaration:JE}=ME;function GE(e,t){const n=BE(e);return n?(tl.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}var QE={printFlow:function(e,t,n){const r=e.getValue(),i=t.semi?";":"";switch(r.type){case"DeclareClass":return GE(e,jE(e,t,n));case"DeclareFunction":return GE(e,["function ",n("id"),r.predicate?" ":"",n("predicate"),i]);case"DeclareModule":return GE(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return GE(e,["module.exports",": ",n("typeAnnotation"),i]);case"DeclareVariable":return GE(e,["var ",n("id"),i]);case"DeclareOpaqueType":return GE(e,RE(e,t,n));case"DeclareInterface":return GE(e,HE(e,t,n));case"DeclareTypeAlias":return GE(e,VE(e,t,n));case"DeclareExportDeclaration":return GE(e,zE(e,t,n));case"DeclareExportAllDeclaration":return GE(e,JE(e,t,n));case"OpaqueType":return RE(e,t,n);case"TypeAlias":return VE(e,t,n);case"IntersectionTypeAnnotation":return $E(e,t,n);case"UnionTypeAnnotation":return UE(e,t,n);case"FunctionTypeAnnotation":return WE(e,t,n);case"TupleTypeAnnotation":return qE(e,t,n);case"GenericTypeAnnotation":return[n("id"),YE(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return KE(e,t,n);case"TypeAnnotation":return n("typeAnnotation")}}};const{hasNewlineInRange:XE}=zt,{isJsxNode:ZE,isBlockComment:ew,getComments:tw,isCallExpression:nw,isMemberExpression:rw}=kf,{locStart:iw,locEnd:ow}=Na,{builders:{line:sw,softline:aw,group:uw,indent:cw,align:lw,ifBreak:pw,dedent:fw,breakParent:hw}}=kn;function dw(e,t,n){const r=e.getValue(),i="ConditionalExpression"===r.type,o=i?"alternate":"falseType",s=e.getParentNode(),a=i?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return s.type===r.type&&s[o]===r?lw(2,a):a}const mw=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);var gw={printTernary:function(e,t,n){const r=e.getValue(),i="ConditionalExpression"===r.type,o=i?"consequent":"trueType",s=i?"alternate":"falseType",a=i?["test"]:["checkType","extendsType"],u=r[o],c=r[s],l=[];let p=!1;const f=e.getParentNode(),h=f.type===r.type&&a.some((e=>f[e]===r));let d,m,g=f.type===r.type&&!h,y=0;do{m=d||r,d=e.getParentNode(y),y++}while(d&&d.type===r.type&&a.every((e=>d[e]!==m)));const b=d||f,v=m;if(i&&(ZE(r[a[0]])||ZE(u)||ZE(c)||function(e){const t=[e];for(let e=0;e<t.length;e++){const n=t[e];for(const e of["test","consequent","alternate"]){const r=n[e];if(ZE(r))return!0;"ConditionalExpression"===r.type&&t.push(r)}}return!1}(v))){p=!0,g=!0;const e=e=>[pw("("),cw([aw,e]),aw,pw(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;l.push(" ? ",t(u)?n(o):e(n(o))," : ",c.type===r.type||t(c)?n(s):e(n(s)))}else{const e=[sw,"? ",u.type===r.type?pw("","("):"",lw(2,n(o)),u.type===r.type?pw("",")"):"",sw,": ",c.type===r.type?n(s):lw(2,n(s))];l.push(f.type!==r.type||f[s]===r||h?e:t.useTabs?fw(cw(e)):lw(Math.max(0,t.tabWidth-2),e))}const D=ba([...a.map((e=>tw(r[e]))),tw(u),tw(c)]).some((e=>ew(e)&&XE(t.originalText,iw(e),ow(e)))),C=!p&&(rw(f)||"NGPipeExpression"===f.type&&f.left===r)&&!f.computed,E=function(e){const t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let n,r=t;for(let t=0;!n;t++){const i=e.getParentNode(t);nw(i)&&i.callee===r||rw(i)&&i.object===r||"TSNonNullExpression"===i.type&&i.expression===r?r=i:"NewExpression"===i.type&&i.callee===r||"TSAsExpression"===i.type&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r!==t&&n[mw.get(n.type)]===r}(e),w=(A=[dw(e,0,n),g?l:cw(l),i&&C&&!E?aw:""],f===b?uw(A,{shouldBreak:D}):D?[A,hw]:A);var A;return h||E?uw([cw([aw,w]),aw]):w}};const{printDanglingComments:yw}=Tl,{builders:{line:bw,softline:vw,group:Dw,indent:Cw,ifBreak:Ew,hardline:ww}}=kn,{getLast:Aw,hasNewlineInRange:Sw,hasNewline:xw,isNonEmptyArray:Tw}=zt,{shouldPrintComma:Fw,hasComment:Nw,getComments:kw,CommentCheckFlags:_w,isNextLineEmpty:Ow}=kf,{locStart:Lw,locEnd:Pw}=Na,{printOptionalToken:Iw,printTypeAnnotation:Mw}=zg,{shouldHugFunctionParameters:Bw}=jv,{shouldHugType:jw}=sD,{printHardlineAfterHeritage:Rw}=nE;var Vw={printObject:function(e,t,n){const r=t.semi?";":"",i=e.getValue();let o;o="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties";const s="ObjectTypeAnnotation"===i.type,a=[o];s&&a.push("indexers","callProperties","internalSlots");const u=a.map((e=>i[e][0])).sort(((e,t)=>Lw(e)-Lw(t)))[0],c=e.getParentNode(0),l=s&&c&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type)&&"body"===e.getName(),p="TSInterfaceBody"===i.type||l||"ObjectPattern"===i.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&i.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==i.type&&u&&Sw(t.originalText,Lw(i),Lw(u)),f=l?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?Ew(r,";"):",",h="RecordExpression"===i.type?"#{":i.exact?"{|":"{",d=i.exact?"|}":"}",m=[];for(const t of a)e.each((e=>{const t=e.getValue();m.push({node:t,printed:n(),loc:Lw(t)})}),t);a.length>1&&m.sort(((e,t)=>e.loc-t.loc));let g=[];const y=m.map((e=>{const n=[...g,Dw(e.printed)];return g=[f,bw],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Nw(e.node,_w.PrettierIgnore)||g.shift(),Ow(e.node,t)&&g.push(ww),n}));if(i.inexact){let n;if(Nw(i,_w.Dangling)){const r=Nw(i,_w.Line);n=[yw(e,t,!0),r||xw(t.originalText,Pw(Aw(kw(i))))?ww:bw,"..."]}else n=["..."];y.push([...g,...n])}const b=Aw(i[o]),v=!(i.inexact||b&&"RestElement"===b.type||b&&("TSPropertySignature"===b.type||"TSCallSignatureDeclaration"===b.type||"TSMethodSignature"===b.type||"TSConstructSignatureDeclaration"===b.type)&&Nw(b,_w.PrettierIgnore));let D;if(0===y.length){if(!Nw(i,_w.Dangling))return[h,d,Mw(e,t,n)];D=Dw([h,yw(e,t),vw,d,Iw(e),Mw(e,t,n)])}else D=[l&&Tw(i.properties)?Rw(c):"",h,Cw([t.bracketSpacing?bw:vw,...y]),Ew(v&&(","!==f||Fw(t))?f:""),t.bracketSpacing?bw:vw,d,Iw(e),Mw(e,t,n)];return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,n)=>Bw(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n))||e.match(jw,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,n)=>Bw(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))?D:Dw(D,{shouldBreak:p})}};const{builders:{hardline:$w}}=kn,{getLeftSidePathName:Uw,hasNakedLeftSide:Ww,isJsxNode:qw,isTheOnlyJsxElementInMarkdown:Kw,hasComment:Hw,CommentCheckFlags:Yw,isNextLineEmpty:zw}=kf,{shouldPrintParamsWithoutParens:Jw}=bC;function Gw(e,t,n,r){const i=e.getValue(),o=[],s="ClassBody"===i.type,a=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("EmptyStatement"!==n.type)return n}}(i[r]);return e.each(((e,r,i)=>{const u=e.getValue();if("EmptyStatement"===u.type)return;const c=n();t.semi||s||Kw(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>Qw(e,t)),"expression")}(e,t)?o.push(c):Hw(u,Yw.Leading)?o.push(n([],{needsSemi:!0})):o.push(";",c),!t.semi&&s&&Xw(u)&&function(e,t){const n=e.key&&e.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||e.value||e.typeAnnotation))return!0;if(!t)return!1;if(t.static||t.accessibility)return!1;if(!t.computed){const e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractClassProperty":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;const e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}(u,i[r+1])&&o.push(";"),u!==a&&(o.push($w),zw(u,t)&&o.push($w))}),r),o}function Qw(e,t){const 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(!Jw(e,t))return!0;break;case"UnaryExpression":{const{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(qw(n))return!0}return!!Cm(e,t)||!!Ww(n)&&e.call((e=>Qw(e,t)),...Uw(e,n))}const Xw=({type:e})=>"ClassProperty"===e||"PropertyDefinition"===e||"ClassPrivateProperty"===e;var Zw={printBody:function(e,t,n){return Gw(e,t,n,"body")},printSwitchCaseConsequent:function(e,t,n){return Gw(e,t,n,"consequent")}};const{printDanglingComments:eA}=Tl,{isNonEmptyArray:tA}=zt,{builders:{hardline:nA,indent:rA}}=kn,{hasComment:iA,CommentCheckFlags:oA,isNextLineEmpty:sA}=kf,{printHardlineAfterHeritage:aA}=nE,{printBody:uA}=Zw;function cA(e,t,n){const r=e.getValue(),i=tA(r.directives),o=r.body.some((e=>"EmptyStatement"!==e.type)),s=iA(r,oA.Dangling);if(!i&&!o&&!s)return"";const a=[];if(i&&e.each(((e,r,i)=>{a.push(n()),(r<i.length-1||o||s)&&(a.push(nA),sA(e.getValue(),t)&&a.push(nA))}),"directives"),o&&a.push(uA(e,t,n)),s&&a.push(eA(e,t,!0)),"Program"===r.type){const t=e.getParentNode();t&&"ModuleExpression"===t.type||a.push(nA)}return a}var lA={printBlock:function(e,t,n){const r=e.getValue(),i=[];if("StaticBlock"===r.type&&i.push("static "),"ClassBody"===r.type&&tA(r.body)){const t=e.getParentNode();i.push(aA(t))}i.push("{");const o=cA(e,t,n);if(o)i.push(rA([nA,o]),nA);else{const 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"===r.type||"ClassBody"===r.type||i.push(nA)}return i.push("}"),i},printBlockBody:cA};const{printDanglingComments:pA}=Tl,{hasNewlineInRange:fA}=zt,{builders:{join:hA,line:dA,hardline:mA,softline:gA,group:yA,indent:bA,conditionalGroup:vA,ifBreak:DA}}=kn,{isLiteral:CA,getTypeScriptMappedTypeModifier:EA,shouldPrintComma:wA,isCallExpression:AA,isMemberExpression:SA}=kf,{locStart:xA,locEnd:TA}=Na,{printOptionalToken:FA,printTypeScriptModifiers:NA}=zg,{printTernary:kA}=gw,{printFunctionParameters:_A,shouldGroupFunctionParameters:OA}=jv,{printTemplateLiteral:LA}=Jf,{printArrayItems:PA}=yy,{printObject:IA}=Vw,{printClassProperty:MA,printClassMethod:BA}=nE,{printTypeParameter:jA,printTypeParameters:RA}=SD,{printPropertyKey:VA}=BD,{printFunctionDeclaration:$A,printMethodInternal:UA}=bC,{printInterface:WA}=dE,{printBlock:qA}=lA,{printTypeAlias:KA,printIntersectionType:HA,printUnionType:YA,printFunctionType:zA,printTupleType:JA,printIndexedAccessType:GA}=sD;var QA={printTypescript:function(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[];switch(r.type){case"TSTypeAssertion":{const e=!("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type),t=yA(["<",bA([gA,n("typeAnnotation")]),gA,">"]),i=[DA("("),bA([gA,n("expression")]),gA,DA(")")];return e?vA([[t,n("expression")],[t,yA(i,{shouldBreak:!0})],[t,n("expression")]]):yA([t,n("expression")])}case"TSDeclareFunction":return $A(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),i];case"TSModuleBlock":return qA(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return IA(e,t,n);case"TSTypeAliasDeclaration":return KA(e,t,n);case"TSQualifiedName":return hA(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return BA(e,t,n);case"TSAbstractClassProperty":return MA(e,t,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return o.push(n("expression")),r.typeParameters&&o.push(n("typeParameters")),o;case"TSTemplateLiteralType":return LA(e,n,t);case"TSNamedTupleMember":return[n("label"),r.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return WA(e,t,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return RA(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":return jA(e,t,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSIntrinsicKeyword":return"intrinsic";case"TSAsExpression":{o.push(n("expression")," as ",n("typeAnnotation"));const t=e.getParentNode();return AA(t)&&t.callee===r||SA(t)&&t.object===r?yA([bA([gA,...o]),gA]):o}case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return r.export&&o.push("export "),r.accessibility&&o.push(r.accessibility+" "),r.static&&o.push("static "),r.readonly&&o.push("readonly "),o.push(VA(e,t,n),FA(e)),r.typeAnnotation&&o.push(": ",n("typeAnnotation")),r.initializer&&o.push(" = ",n("initializer")),o;case"TSParameterProperty":return r.accessibility&&o.push(r.accessibility+" "),r.export&&o.push("export "),r.static&&o.push("static "),r.readonly&&o.push("readonly "),o.push(n("parameter")),o;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":{const o=e.getParentNode(),s=r.parameters.length>1?DA(wA(t)?",":""):"",a=yA([bA([gA,hA([", ",gA],e.map(n,"parameters"))]),s,gA]);return[r.export?"export ":"",r.accessibility?[r.accessibility," "]:"",r.static?"static ":"",r.readonly?"readonly ":"",r.declare?"declare ":"","[",r.parameters?a:"",r.typeAnnotation?"]: ":"]",r.typeAnnotation?n("typeAnnotation"):"","ClassBody"===o.type?i:""]}case"TSTypePredicate":return[r.asserts?"asserts ":"",n("parameterName"),r.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[r.isTypeOf?"typeof ":"","import(",n(r.parameter?"parameter":"argument"),")",r.qualifier?[".",n("qualifier")]:"",RA(e,t,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return GA(e,t,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===r.type&&r.abstract&&o.push("abstract "),"TSCallSignatureDeclaration"!==r.type&&o.push("new "),o.push(yA(_A(e,n,t,!1,!0))),r.returnType||r.typeAnnotation){const e="TSConstructorType"===r.type;o.push(e?" => ":": ",n("returnType"),n("typeAnnotation"))}return o;case"TSTypeOperator":return[r.operator," ",n("typeAnnotation")];case"TSMappedType":{const o=fA(t.originalText,xA(r),TA(r));return yA(["{",bA([t.bracketSpacing?dA:gA,r.readonly?[EA(r.readonly,"readonly")," "]:"",NA(e,t,n),n("typeParameter"),r.optional?EA(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),DA(i)]),pA(e,t,!0),t.bracketSpacing?dA:gA,"}"],{shouldBreak:o})}case"TSMethodSignature":{const i=r.kind&&"method"!==r.kind?"".concat(r.kind," "):"";o.push(r.accessibility?[r.accessibility," "]:"",i,r.export?"export ":"",r.static?"static ":"",r.readonly?"readonly ":"",r.abstract?"abstract ":"",r.declare?"declare ":"",r.computed?"[":"",n("key"),r.computed?"]":"",FA(e));const s=_A(e,n,t,!1,!0),a=r.returnType?"returnType":"typeAnnotation",u=r[a],c=u?n(a):"",l=OA(r,c);return o.push(l?yA(s):s),u&&o.push(": ",yA(c)),yA(o)}case"TSNamespaceExportDeclaration":return o.push("export as namespace ",n("id")),t.semi&&o.push(";"),yA(o);case"TSEnumDeclaration":return r.declare&&o.push("declare "),r.modifiers&&o.push(NA(e,t,n)),r.const&&o.push("const "),o.push("enum ",n("id")," "),0===r.members.length?o.push(yA(["{",pA(e,t),gA,"}"])):o.push(yA(["{",bA([mA,PA(e,t,"members",n),wA(t,"es5")?",":""]),pA(e,t,!0),mA,"}"])),o;case"TSEnumMember":return o.push(n("id")),r.initializer&&o.push(" = ",n("initializer")),o;case"TSImportEqualsDeclaration":return r.isExport&&o.push("export "),o.push("import "),r.importKind&&"value"!==r.importKind&&o.push(r.importKind," "),o.push(n("id")," = ",n("moduleReference")),t.semi&&o.push(";"),yA(o);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":{const s=e.getParentNode(),a=CA(r.id),u="TSModuleDeclaration"===s.type,c=r.body&&"TSModuleDeclaration"===r.body.type;if(u)o.push(".");else{r.declare&&o.push("declare "),o.push(NA(e,t,n));const i=t.originalText.slice(xA(r),xA(r.id));"Identifier"===r.id.type&&"global"===r.id.name&&!/namespace|module/.test(i)||o.push(a||/(^|\s)module(\s|$)/.test(i)?"module ":"namespace ")}return o.push(n("id")),c?o.push(n("body")):r.body?o.push(" ",yA(n("body"))):o.push(i),o}case"TSPrivateIdentifier":return r.escapedText;case"TSConditionalType":return kA(e,t,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return HA(e,t,n);case"TSUnionType":return YA(e,t,n);case"TSFunctionType":return zA(e,t,n);case"TSTupleType":return JA(e,t,n);case"TSTypeReference":return[n("typeName"),RA(e,t,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return UA(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];case"TSJSDocFunctionType":return["function(","): ",n("typeAnnotation")]}}};const{hasNewline:XA}=zt,{builders:{join:ZA,hardline:eS},utils:{replaceNewlinesWithLiterallines:tS}}=kn,{isLineComment:nS,isBlockComment:rS}=kf,{locStart:iS,locEnd:oS}=Na;var sS={printComment:function(e,t){const n=e.getValue();if(nS(n))return t.originalText.slice(iS(n),oS(n)).trimEnd();if(rS(n)){if(function(e){const t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}(n)){const e=function(e){const t=e.value.split("\n");return["/*",ZA(eS,t.map(((e,n)=>0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart())))),"*/"]}(n);return n.trailing&&!XA(t.originalText,iS(n),{backwards:!0})?[eS,e]:e}const e=oS(n),r="*-/"===t.originalText.slice(e-3,e);return["/*",tS(n.value),r?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(n))}};const{printString:aS,printNumber:uS}=zt;function cS(e){return e.toLowerCase()}function lS({pattern:e,flags:t}){return t=t.split("").sort().join(""),"/".concat(e,"/").concat(t)}var pS={printLiteral:function(e,t){const n=e.getNode();switch(n.type){case"RegExpLiteral":return lS(n);case"BigIntLiteral":return cS(n.bigint||n.extra.raw);case"NumericLiteral":return uS(n.extra.raw);case"StringLiteral":return aS(n.extra.raw,t);case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DecimalLiteral":return uS(n.value)+"m";case"Literal":{if(n.regex)return lS(n.regex);if(n.bigint)return cS(n.raw);const{value:e}=n;return"number"==typeof e?uS(n.raw):"string"==typeof e?aS(n.raw,t):String(e)}}}};const{printDanglingComments:fS}=Tl,{hasNewline:hS,printString:dS,printNumber:mS}=zt,{builders:{join:gS,line:yS,hardline:bS,softline:vS,literalline:DS,group:CS,indent:ES}}=kn,{insertPragma:wS}=id,{getCallArguments:AS,hasFlowShorthandAnnotationComment:SS,hasComment:xS,CommentCheckFlags:TS,isFunctionNotation:FS,isGetterOrSetter:NS,isTheOnlyJsxElementInMarkdown:kS,isBlockComment:_S,isLineComment:OS,isNextLineEmpty:LS,needsHardlineAfterDanglingComment:PS,rawText:IS,shouldPrintComma:MS,hasIgnoreComment:BS,isCallExpression:jS,isMemberExpression:RS}=kf,{locStart:VS,locEnd:$S}=Na,{printHtmlBinding:US,isVueEventBindingExpression:WS}=Fm,{printAngular:qS}=ug,{printJsx:KS,hasJsxIgnoreComment:HS}=Ug,{printFlow:YS}=QE,{printTypescript:zS}=QA,{printOptionalToken:JS,printBindExpressionCallee:GS,printTypeAnnotation:QS,adjustClause:XS}=zg,{printImportDeclaration:ZS,printExportDeclaration:ex,printExportAllDeclaration:tx,printModuleSpecifier:nx}=ME,{printTernary:rx}=gw,{printTemplateLiteral:ix}=Jf,{printArray:ox,printArrayItems:sx}=yy,{printObject:ax}=Vw,{printClass:ux,printClassMethod:cx,printClassProperty:lx}=nE,{printTypeParameters:px}=SD,{printPropertyKey:fx,printProperty:hx}=BD,{printFunctionDeclaration:dx,printArrowFunctionExpression:mx,printMethod:gx,printReturnStatement:yx,printThrowStatement:bx}=bC,{printCallExpression:vx}=$b,{printInterface:Dx}=dE,{printVariableDeclarator:Cx,printAssignmentExpression:Ex}=fv,{printBinaryishExpression:wx}=Zm,{printSwitchCaseConsequent:Ax}=Zw,{printMemberExpression:Sx}=eb,{printBlock:xx,printBlockBody:Tx}=lA,{printComment:Fx}=sS,{printLiteral:Nx}=pS,{printDecorators:kx}=_C;function _x(e,t){const n=IS(e),r=n.slice(1,-1);if(r.includes('"')||r.includes("'"))return n;const i=t.singleQuote?"'":'"';return i+r+i}var Ox={preprocess:Em,print:function(e,t,n,r){const i=function(e,t,n,r){const i=e.getValue(),o=t.semi?";":"";if(!i)return"";if("string"==typeof i)return i;for(const r of[Nx,US,qS,KS,YS,zS]){const i=r(e,t,n);if(void 0!==i)return i}let s=[];switch(i.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[n("node"),bS];case"File":return i.program&&i.program.interpreter&&s.push(n(["program","interpreter"])),s.push(n("program")),s;case"Program":return Tx(e,t,n);case"EmptyStatement":return"";case"ExpressionStatement":if(i.directive)return[_x(i.expression,t),o];if("__vue_event_binding"===t.parser){const t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===i)return[n("expression"),WS(i.expression)?";":""]}return[n("expression"),kS(t,e)?"":o];case"ParenthesizedExpression":return xS(i.expression)||"ObjectExpression"!==i.expression.type&&"ArrayExpression"!==i.expression.type?CS(["(",ES([vS,n("expression")]),vS,")"]):["(",n("expression"),")"];case"AssignmentExpression":return Ex(e,t,n);case"VariableDeclarator":return Cx(e,t,n);case"BinaryExpression":case"LogicalExpression":return wx(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return Sx(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return i.object&&s.push(n("object")),s.push(CS(ES([vS,GS(e,t,n)]))),s;case"Identifier":return[i.name,JS(e),QS(e,t,n)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return["...",n("argument"),QS(e,t,n)];case"FunctionDeclaration":case"FunctionExpression":{let i=!1;if(r&&r.expandLastArg){const t=e.getParentNode();jS(t)&&AS(t).length>1&&(i=!0)}return dx(e,n,t,i)}case"ArrowFunctionExpression":return mx(e,t,n,r);case"YieldExpression":return s.push("yield"),i.delegate&&s.push("*"),i.argument&&s.push(" ",n("argument")),s;case"AwaitExpression":if(s.push("await"),i.argument){s.push(" ",n("argument"));const t=e.getParentNode();if(jS(t)&&t.callee===i||RS(t)&&t.object===i){s=[ES([vS,...s]),vS];const t=e.findAncestor((e=>"AwaitExpression"===e.type||"BlockStatement"===e.type));if(!t||"AwaitExpression"!==t.type)return CS(s)}}return s;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return ex(e,t,n);case"ExportAllDeclaration":return tx(e,t,n);case"ImportDeclaration":return ZS(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return nx(e,t,n);case"ImportAttribute":return[n("key"),": ",n("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return xx(e,t,n);case"ThrowStatement":return bx(e,t,n);case"ReturnStatement":return yx(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return vx(e,t,n);case"ObjectTypeInternalSlot":return[i.static?"static ":"","[[",n("id"),"]]",JS(e),i.method?"":": ",n("value")];case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"RecordExpression":return ax(e,t,n);case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?gx(e,t,n):hx(e,t,n);case"ObjectMethod":return gx(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return ox(e,t,n);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each(((e,r)=>{0===r?t.push(n()):t.push(",",ES([yS,n()]))}),"expressions"),CS(t)}return CS(gS([",",yS],e.map(n,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),o];case"DirectiveLiteral":return _x(i,t);case"UnaryExpression":return s.push(i.operator),/[a-z]$/.test(i.operator)&&s.push(" "),xS(i.argument)?s.push(CS(["(",ES([vS,n("argument")]),vS,")"])):s.push(n("argument")),s;case"UpdateExpression":return s.push(n("argument"),i.operator),i.prefix&&s.reverse(),s;case"ConditionalExpression":return rx(e,t,n);case"VariableDeclaration":{const t=e.map(n,"declarations"),r=e.getParentNode(),a="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,u=i.declarations.some((e=>e.init));let c;return 1!==t.length||xS(i.declarations[0])?t.length>0&&(c=ES(t[0])):c=t[0],s=[i.declare?"declare ":"",i.kind,c?[" ",c]:"",ES(t.slice(1).map((e=>[",",u&&!a?bS:yS,e])))],a&&r.body!==i||s.push(o),CS(s)}case"WithStatement":return CS(["with (",n("object"),")",XS(i.body,n("body"))]);case"IfStatement":{const r=XS(i.consequent,n("consequent")),o=CS(["if (",CS([ES([vS,n("test")]),vS]),")",r]);if(s.push(o),i.alternate){const r=xS(i.consequent,TS.Trailing|TS.Line)||PS(i),o="BlockStatement"===i.consequent.type&&!r;s.push(o?" ":bS),xS(i,TS.Dangling)&&s.push(fS(e,t,!0),r?bS:" "),s.push("else",CS(XS(i.alternate,n("alternate"),"IfStatement"===i.alternate.type)))}return s}case"ForStatement":{const r=XS(i.body,n("body")),o=fS(e,t,!0),s=o?[o,vS]:"";return i.init||i.test||i.update?[s,CS(["for (",CS([ES([vS,n("init"),";",yS,n("test"),";",yS,n("update")]),vS]),")",r])]:[s,CS(["for (;;)",r])]}case"WhileStatement":return CS(["while (",CS([ES([vS,n("test")]),vS]),")",XS(i.body,n("body"))]);case"ForInStatement":return CS(["for (",n("left")," in ",n("right"),")",XS(i.body,n("body"))]);case"ForOfStatement":return CS(["for",i.await?" await":""," (",n("left")," of ",n("right"),")",XS(i.body,n("body"))]);case"DoWhileStatement":{const e=XS(i.body,n("body"));return s=[CS(["do",e])],"BlockStatement"===i.body.type?s.push(" "):s.push(bS),s.push("while (",CS([ES([vS,n("test")]),vS]),")",o),s}case"DoExpression":return[i.async?"async ":"","do ",n("body")];case"BreakStatement":return s.push("break"),i.label&&s.push(" ",n("label")),s.push(o),s;case"ContinueStatement":return s.push("continue"),i.label&&s.push(" ",n("label")),s.push(o),s;case"LabeledStatement":return"EmptyStatement"===i.body.type?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),i.handler?[" ",n("handler")]:"",i.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(i.param){const e=xS(i.param,(e=>!_S(e)||e.leading&&hS(t.originalText,$S(e))||e.trailing&&hS(t.originalText,VS(e),{backwards:!0}))),r=n("param");return["catch ",e?["(",ES([vS,r]),vS,") "]:["(",r,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[CS(["switch (",ES([vS,n("discriminant")]),vS,")"])," {",i.cases.length>0?ES([bS,gS(bS,e.map(((e,r,i)=>{const o=e.getValue();return[n(),r!==i.length-1&&LS(o,t)?bS:""]}),"cases"))]):"",bS,"}"];case"SwitchCase":{i.test?s.push("case ",n("test"),":"):s.push("default:");const r=i.consequent.filter((e=>"EmptyStatement"!==e.type));if(r.length>0){const i=Ax(e,t,n);s.push(1===r.length&&"BlockStatement"===r[0].type?[" ",i]:ES([bS,i]))}return s}case"DebuggerStatement":return["debugger",o];case"ClassDeclaration":case"ClassExpression":return ux(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return cx(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return lx(e,t,n);case"TemplateElement":return gS(DS,i.value.raw.split(/\r?\n/g));case"TemplateLiteral":return ix(e,n,t);case"TaggedTemplateExpression":return[n("tag"),n("typeParameters"),n("quasi")];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(i.type));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[n("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(i.value);case"EnumDeclaration":return["enum ",n("id")," ",n("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===i.type||i.explicitType){let e=null;switch(i.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}s.push("of ",e," ")}if(0!==i.members.length||i.hasUnknownMembers){const r=i.members.length>0?[bS,sx(e,t,"members",n),i.hasUnknownMembers||MS(t)?",":""]:[];s.push(CS(["{",ES([...r,...i.hasUnknownMembers?[bS,"..."]:[]]),fS(e,t,!0),bS,"}"]))}else s.push(CS(["{",fS(e,t),vS,"}"]));return s;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[n("id")," = ","object"==typeof i.init?n("init"):String(i.init)];case"EnumDefaultedMember":return n("id");case"FunctionTypeParam":{const t=i.name?n("name"):e.getParentNode().this===i?"this":"";return[t,JS(e),t?": ":"",n("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Dx(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{const{kind:e}=i;return tl.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return i.static&&s.push("static "),s.push(n("value")),s;case"ObjectTypeIndexer":return[i.variance?n("variance"):"","[",n("id"),i.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":{let r="";return i.proto?r="proto ":i.static&&(r="static "),[r,NS(i)?i.kind+" ":"",i.variance?n("variance"):"",fx(e,t,n),JS(e),FS(i)?"":": ",n("value")]}case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"StringLiteralTypeAnnotation":return dS(IS(i),t);case"NumberLiteralTypeAnnotation":tl.strictEqual(typeof i.value,"number");case"BigIntLiteralTypeAnnotation":return i.extra?mS(i.extra.raw):mS(i.raw);case"TypeCastExpression":return["(",n("expression"),QS(e,t,n),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const r=px(e,t,n,"params");if("flow"===t.parser){const e=VS(i),n=$S(i),o=t.originalText.lastIndexOf("/*",e),s=t.originalText.indexOf("*/",n);if(-1!==o&&-1!==s){const e=t.originalText.slice(o+2,s).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",r," */"]}}return r}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",n("value"),")"];case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"ThisTypeAnnotation":case"TSThisType":return"this";case"PrivateIdentifier":return["#",n("name")];case"PrivateName":return["#",n("id")];case"InterpreterDirective":return s.push("#!",i.value,bS),LS(i,t)&&s.push(bS),s;case"PipelineBareFunction":return n("callee");case"PipelineTopicExpression":return n("expression");case"PipelinePrimaryTopicReference":return"#";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{s.push("module {");const e=n("body");return e&&s.push(ES([bS,e]),bS),s.push("}"),s}default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,n,r);if(!i)return"";const o=e.getValue(),{type:s}=o;if("ClassMethod"===s||"ClassPrivateMethod"===s||"ClassProperty"===s||"PropertyDefinition"===s||"TSAbstractClassProperty"===s||"ClassPrivateProperty"===s||"MethodDefinition"===s||"TSAbstractMethodDefinition"===s||"TSDeclareMethod"===s)return i;const a=kx(e,t,n);if(a)return CS([...a,i]);if(!Cm(e,t))return r&&r.needsSemi?[";",i]:i;const u=[r&&r.needsSemi?";(":"(",i];if(SS(o)){const[e]=o.trailingComments;u.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return u.push(")"),u},embed:function(e,t,n,r){const i=e.getValue();if("TemplateLiteral"!==i.type||function({quasis:e}){return e.some((({value:{cooked:e}})=>null===e))}(i))return;const o=function(e){return function(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((e=>"jsx"===e.name.name))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}(e)||function(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const{tag:n}=t;switch(n.type){case"MemberExpression":return xh(n.object)||Th(n);case"CallExpression":return xh(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(xh(n.callee.object.object)||Th(n.callee.object))||"CallExpression"===n.callee.object.type&&xh(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}(e)||function(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}(e)||function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...Sh)}(e)?"css":function(e){const t=e.getValue(),n=e.getParentNode();return Fh(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)?"graphql":function(e){return Fh(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}(e)?"html":function(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...Sh)}(e)?"angular":function(e){const 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)}(e)?"markdown":void 0}(e);return o?"markdown"===o?function(e,t,n){let r=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`"));const i=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(r),o=""!==i;o&&(r=r.replace(new RegExp("^".concat(i),"gm"),""));const s=eh(n(r,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",o?Gf([Qf,s]):[Xf,Zf(s)],Qf,"`"]}(e,0,n):"css"===o?function(e,t,n){const r=e.getValue(),i=r.quasis.map((e=>e.value.raw));let o=0;return function(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";const r=function(e,t){if(!th(t))return e;let n=0;const r=oh(ah(e),(e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map(((e,r)=>r%2==0?sh(e):(n++,t[e]))):e));return t.length===n?r:null}(e,n);if(!r)throw new Error("Couldn't insert all the expressions");return["`",nh([rh,r]),ih,"`"]}(n(i.reduce(((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t),""),{parser:"scss"},{stripTrailingHardline:!0}),r,uh(e,t))}(e,t,n):"graphql"===o?function(e,t,n){const r=e.getValue(),i=r.quasis.length;if(1===i&&""===r.quasis[0].value.raw.trim())return"``";const o=hh(e,t),s=[];for(let e=0;e<i;e++){const t=0===e,a=e===i-1,u=r.quasis[e].value.cooked,c=u.split("\n"),l=c.length,p=o[e],f=l>2&&""===c[0].trim()&&""===c[1].trim(),h=l>2&&""===c[l-1].trim()&&""===c[l-2].trim(),d=c.every((e=>/^\s*(?:#[^\n\r]*)?$/.test(e)));if(!a&&/#[^\n\r]*$/.test(c[l-1]))return null;let m=null;m=d?dh(c):n(u,{parser:"graphql"},{stripTrailingHardline:!0}),m?(m=fh(m,!1),!t&&f&&s.push(""),s.push(m),!a&&h&&s.push("")):t||a||!f||s.push(""),p&&s.push(p)}return["`",ch([ph,lh(ph,s)]),ph,"`"]}(e,t,n):"html"===o||"angular"===o?function(e,t,n,r,{parser:i}){const o=e.getValue(),s=Eh;Eh=Eh+1>>>0;const a=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS"),u=o.quasis.map(((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+a(t))).join(""),c=Dh(e,t);if(0===c.length&&0===u.trim().length)return"``";const l=new RegExp(a("(\\d+)"),"g");let p=0;const f=n(u,{parser:i,__onHtmlRoot(e){p=e.children.length}},{stripTrailingHardline:!0}),h=vh(f,(e=>{if("string"!=typeof e)return e;const t=[],n=e.split(l);for(let e=0;e<n.length;e++){let i=n[e];if(e%2==0){i&&(i=Ch(i),r.__embeddedInHtml&&(i=i.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(i));continue}const o=Number(i);t.push(c[o])}return t})),d=/^\s/.test(u)?" ":"",m=/\s$/.test(u)?" ":"",g="ignore"===r.htmlWhitespaceSensitivity?yh:d&&m?gh:null;return bh(g?["`",mh([g,bh(h)]),g,"`"]:["`",d,p>1?mh(bh(h)):bh(h),m,"`"])}(e,t,n,r,{parser:o}):void 0:void 0},insertPragma:wS,massageAstNode:Lh,hasPrettierIgnore:e=>BS(e)||HS(e),willPrintOwnComments:sm.willPrintOwnComments,canAttachComment:function(e){return e.type&&!_S(e)&&!OS(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:Fx,isBlockComment:_S,handleComments:{avoidAstMutation:!0,ownLine:sm.handleOwnLineComment,endOfLine:sm.handleEndOfLineComment,remaining:sm.handleRemainingComment},getCommentChildNodes:sm.getCommentChildNodes};const{builders:{hardline:Lx,indent:Px,join:Ix}}=kn,Mx=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Bx(e,t){const{type:n}=e;if("ObjectProperty"!==n||"Identifier"!==e.key.type){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(const[n,r]of e.elements.entries())null===r&&t.elements.splice(n,0,{type:"NullLiteral"})}else t.key={type:"StringLiteral",value:e.key.name}}Bx.ignoredProperties=Mx;var jx={preprocess:Em,print:function(e,t,n){const r=e.getValue();switch(r.type){case"JsonRoot":return[n("node"),Lx];case"ArrayExpression":{if(0===r.elements.length)return"[]";const t=e.map((()=>null===e.getValue()?"null":n()),"elements");return["[",Px([Lx,Ix([",",Lx],t)]),Lx,"]"]}case"ObjectExpression":return 0===r.properties.length?"{}":["{",Px([Lx,Ix([",",Lx],e.map(n,"properties"))]),Lx,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===r.operator?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":{const t=e.getParentNode();return t&&"ObjectProperty"===t.type&&t.key===r?JSON.stringify(r.name):r.name}case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:Bx};const Rx="Common";var Vx={bracketSpacing:{since:"0.0.0",category:Rx,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Rx,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Rx,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."}]}};const $x="JavaScript";var Ux={arrowParens:{since:"1.9.0",category:$x,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`"}]},bracketSpacing:Vx.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:$x,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:$x,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Vx.singleQuote,jsxSingleQuote:{since:"1.15.0",category:$x,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:$x,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:$x,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)."}]}},Wx={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",".jsb",".jscad",".jsfl",".jsm",".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},qx={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},Kx={languages:[_p(Wx,(e=>({since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[...e.extensions.filter((e=>".jsx"!==e)),".wxs"]}))),_p(Wx,(()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),_p(Wx,(()=>({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}))),_p({name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),_p({name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),_p(qx,(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}))),_p(qx,(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((e=>".jsonl"!==e))}))),_p({name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc"]}))),_p({name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))],options:Ux,printers:{estree:Ox,"estree-json":jx},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}};const{isFrontMatterNode:Hx}=zt,Yx=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function zx(e,t,n){if(Hx(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&n.nodes.length>0){if((n.nodes[0]===e||Hx(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("css-root"===n.type&&Ee(n.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=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,((e,t,n)=>{const r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value}zx.ignoredProperties=Yx;var Jx=zx;const{builders:{hardline:Gx,markAsRoot:Qx}}=kn;var Xx=function(e,t){if("yaml"===e.lang){const n=e.value.trim(),r=n?t(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return Qx([e.startDelimiter,Gx,r,r?Gx:"",e.endDelimiter])}};const{builders:{hardline:Zx}}=kn;const eT=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>[\\S\\s]*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)");var tT=function(e){const t=e.match(eT);if(!t)return{content:e};const{startDelimiter:n,language:r,value:i="",endDelimiter:o}=t.groups;let s=r.trim()||"yaml";if("+++"===n&&(s="toml"),"yaml"!==s&&n!==o)return{content:e};const[a]=t;return{frontMatter:{type:"front-matter",lang:s,value:i,startDelimiter:n,endDelimiter:o,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}},nT={hasPragma:function(e){return id.hasPragma(tT(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=tT(e);return(t?t.raw+"\n\n":"")+id.insertPragma(n)}};const{isNonEmptyArray:rT}=zt,iT=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 oT(e,t){const n=Array.isArray(t)?t:[t];let r,i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function sT(e,t){const n=oT(e,t);return-1===n?null:e.getParentNode(n)}function aT(e){return"value-operator"===e.type&&"*"===e.value}function uT(e){return"value-operator"===e.type&&"/"===e.value}function cT(e){return"value-operator"===e.type&&"+"===e.value}function lT(e){return"value-operator"===e.type&&"-"===e.value}function pT(e){return"value-operator"===e.type&&"%"===e.value}function fT(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function hT(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&fT(e.groups[0])}function dT(e){return e&&"value-colon"===e.type}var mT={getAncestorCounter:oT,getAncestorNode:sT,getPropOfDeclNode:function(e){const t=sT(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(rT(e))for(let t=e.length-1;t>0;t--)if("word"===e[t].type&&"{"===e[t].value&&"word"===e[t-1].type&&e[t-1].value.endsWith("#"))return!0;return!1},hasStringOrFunction:function(e){if(rT(e))for(let t=0;t<e.length;t++)if("string"===e[t].type||"func"===e[t].type)return!0;return!1},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){const n=sT(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},insideICSSRuleNode:function(e){const t=sT(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){const n=Array.isArray(t)?t:[t],r=sT(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){const t=e.getValue(),n=sT(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){const n=sT(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)},isSCSSVariable:function(e){return Boolean(e&&"word"===e.type&&e.value.startsWith("$"))},isLastNode:function(e,t){const n=e.getParentNode();if(!n)return!1;const{nodes:r}=n;return r&&r.indexOf(t)===r.length-1},isLessParser:function(e){return"css"===e.parser||"less"===e.parser},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:aT,isDivisionNode:uT,isAdditionNode:cT,isSubtractionNode:lT,isModuloNode:pT,isMathOperatorNode:function(e){return aT(e)||uT(e)||cT(e)||lT(e)||pT(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:fT,isKeyValuePairInParenGroupNode:hT,isKeyInValuePairNode:function(e,t){if(!fT(t))return!1;const{groups:n}=t,r=n.indexOf(e);return-1!==r&&dT(n[r+1])},isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!(hT(t)||n&&hT(n)))return!1;const r=sT(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!hT(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:dT,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&iT.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce(((n,r,i)=>n+e(r)+("comma_group"===t.groups[0].type&&i!==t.groups.length-1?",":"")),"")+(t.close&&t.close.value?t.close.value:"");const n=t.raws&&t.raws.before?t.raws.before:"",r=t.raws&&t.raws.quote?t.raws.quote:"";return n+r+("atword"===t.type?"@":"")+(t.value?t.value:"")+r+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&"value-atword"===e.type&&e.value.startsWith("prettier-placeholder-")}},gT=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};const{getLast:yT,skipEverythingButNewLine:bT}=zt;function vT(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?gT(e.source.start,t)-1:null}function DT(e,t){if("css-comment"===e.type&&e.inline)return bT(t,e.source.startOffset);const n=e.nodes&&yT(e.nodes);return n&&e.source&&!e.source.end&&(e=n),e.source&&e.source.end?gT(e.source.end,t):null}function CT(e,t,n){e.source&&(e.source.startOffset=vT(e,n)+t,e.source.endOffset=DT(e,n)+t);for(const r in e){const i=e[r];"source"!==r&&i&&"object"==typeof i&&CT(i,t,n)}}function ET(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}var wT={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,n){t.source&&(t.source.startOffset=vT(t,n),t.source.endOffset=DT(t,n));for(const r in t){const i=t[r];"source"!==r&&i&&"object"==typeof i&&("value-root"===i.type||"value-unknown"===i.type?CT(i,ET(t),i.text||i.value):e(i,n))}},replaceQuotesInInlineComments:function(e){let t,n="initial",r="initial",i=!1;const o=[];for(let s=0;s<e.length;s++){const a=e[s];switch(n){case"initial":if("'"===a){n="single-quotes";continue}if('"'===a){n="double-quotes";continue}if(("u"===a||"U"===a)&&"url("===e.slice(s,s+4).toLowerCase()){n="url",s+=3;continue}if("*"===a&&"/"===e[s-1]){n="comment-block";continue}if("/"===a&&"/"===e[s-1]){n="comment-inline",t=s-1;continue}continue;case"single-quotes":if("'"===a&&"\\"!==e[s-1]&&(n=r,r="initial"),"\n"===a||"\r"===a)return e;continue;case"double-quotes":if('"'===a&&"\\"!==e[s-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[s-1]&&(n="initial");continue;case"comment-inline":'"'!==a&&"'"!==a&&"*"!==a||(i=!0),"\n"!==a&&"\r"!==a||(i&&o.push([t,s]),n="initial",i=!1);continue}}for(const[t,n]of o)e=e.slice(0,t)+e.slice(t,n).replace(/["'*]/g," ")+e.slice(n);return e}};const{printNumber:AT,printString:ST,hasNewline:xT,isFrontMatterNode:TT,isNextLineEmpty:FT,isNonEmptyArray:NT}=zt,{builders:{join:kT,line:_T,hardline:OT,softline:LT,group:PT,fill:IT,indent:MT,dedent:BT,ifBreak:jT,breakParent:RT},utils:{removeLines:VT,getDocParts:$T}}=kn,{insertPragma:UT}=nT,{getAncestorNode:WT,getPropOfDeclNode:qT,maybeToLowerCase:KT,insideValueFunctionNode:HT,insideICSSRuleNode:YT,insideAtRuleNode:zT,insideURLFunctionInImportAtRuleNode:JT,isKeyframeAtRuleKeywords:GT,isWideKeywords:QT,isSCSS:XT,isLastNode:ZT,isLessParser:eF,isSCSSControlDirectiveNode:tF,isDetachedRulesetDeclarationNode:nF,isRelationalOperatorNode:rF,isEqualityOperatorNode:iF,isMultiplicationNode:oF,isDivisionNode:sF,isAdditionNode:aF,isSubtractionNode:uF,isMathOperatorNode:cF,isEachKeywordNode:lF,isForKeywordNode:pF,isURLFunctionNode:fF,isIfElseKeywordNode:hF,hasComposesNode:dF,hasParensAroundNode:mF,hasEmptyRawBefore:gF,isKeyValuePairNode:yF,isKeyInValuePairNode:bF,isDetachedRulesetCallNode:vF,isTemplatePlaceholderNode:DF,isTemplatePropNode:CF,isPostcssSimpleVarNode:EF,isSCSSMapItemNode:wF,isInlineValueCommentNode:AF,isHashNode:SF,isLeftCurlyBraceNode:xF,isRightCurlyBraceNode:TF,isWordNode:FF,isColonNode:NF,isMediaAndSupportsKeywords:kF,isColorAdjusterFuncNode:_F,lastLineHasInlineComment:OF,isAtWordPlaceholderNode:LF}=mT,{locStart:PF,locEnd:IF}=wT;function MF(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function BF(e,t,n){const r=[];return e.each(((e,i,o)=>{const s=o[i-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){const n=e.getValue();r.push(t.originalText.slice(PF(n),IF(n)))}else r.push(n());i!==o.length-1&&("css-comment"===o[i+1].type&&!xT(t.originalText,PF(o[i+1]),{backwards:!0})&&!TT(o[i])||"css-atrule"===o[i+1].type&&"else"===o[i+1].name&&"css-comment"!==o[i].type?r.push(" "):(r.push(t.__isHTMLStyleAttribute?_T:OT),FT(t.originalText,e.getValue(),IF)&&!TT(o[i])&&r.push(OT)))}),"nodes"),r}const jF=/(["'])(?:(?!\1)[^\\]|\\[\S\s])*\1/g,RF=new RegExp(jF.source+"|"+"(".concat(/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source,")")+"(".concat(/[A-Za-z]+/g.source,")?"),"g");function VF(e,t){return e.replace(jF,(e=>ST(e,t)))}function $F(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function UF(e){return e.replace(RF,((e,t,n,r,i)=>!n&&r?WF(r)+KT(i||""):e))}function WF(e){return AT(e).replace(/\.0(?=$|e)/,"")}var qF={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"front-matter":return[r.raw,OT];case"css-root":{const i=BF(e,t,n),o=r.raws.after.trim();return[i,o?" ".concat(o):"",$T(i).length>0?OT:""]}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(PF(r),IF(r));return e?n.trimEnd():n}case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[r.selector&&"selector-unknown"===r.selector.type&&OF(r.selector.value)?_T:" ","{",r.nodes.length>0?MT([OT,BF(e,t,n)]):"",OT,"}",nF(r)?";":""]:";"];case"css-decl":{const i=e.getParentNode(),{between:o}=r.raws,s=o.trim(),a=":"===s;let u=dF(r)?VT(n("value")):n("value");return!a&&OF(s)&&(u=MT([OT,BT(u)])),[r.raws.before.replace(/[\s;]/g,""),YT(e)?r.prop:KT(r.prop),s.startsWith("//")?" ":"",s,r.extend?"":" ",eF(t)&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",u,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",MT([LT,BF(e,t,n)]),LT,"}"]:CF(r)&&!i.raws.semicolon&&";"!==t.originalText[IF(r)-1]?"":t.__isHTMLStyleAttribute&&ZT(e,r)?jT(";"):";"]}case"css-atrule":{const i=e.getParentNode(),o=DF(r)&&!i.raws.semicolon&&";"!==t.originalText[IF(r)-1];if(eF(t)){if(r.mixin)return[n("selector"),r.important?" !important":"",o?"":";"];if(r.function)return[r.name,n("params"),o?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",MT([r.nodes.length>0?LT:"",BF(e,t,n)]),LT,"}"]:"",o?"":";"]}return["@",vF(r)||r.name.endsWith(":")?r.name:KT(r.name),r.params?[vF(r)?"":DF(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[OT,OT]:/^\s*\n/.test(r.raws.afterName)?OT:" ":" ",n("params")]:"",r.selector?MT([" ",n("selector")]):"",r.value?PT([" ",n("value"),tF(r)?mF(r)?" ":_T:""]):"else"===r.name?" ":"",r.nodes?[tF(r)?"":r.selector&&!r.selector.nodes&&"string"==typeof r.selector.value&&OF(r.selector.value)||!r.selector&&"string"==typeof r.params&&OF(r.params)?_T:" ","{",MT([r.nodes.length>0?LT:"",BF(e,t,n)]),LT,"}"]:o?"":";"]}case"media-query-list":{const t=[];return e.each((e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(n())}),"nodes"),PT(MT(kT(_T,t)))}case"media-query":return[kT(" ",e.map(n,"nodes")),ZT(e,r)?"":","];case"media-type":case"media-value":return UF(VF(r.value,t));case"media-feature-expression":return r.nodes?["(",...e.map(n,"nodes"),")"]:r.value;case"media-feature":return KT(VF(r.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[r.value," "];case"media-keyword":case"selector-string":return VF(r.value,t);case"media-url":return VF(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return r.value;case"selector-root":return PT([zT(e,"custom-selector")?[WT(e,"css-atrule").customSelector,_T]:"",kT([",",zT(e,["extend","custom-selector","nest"])?_T:OT],e.map(n,"nodes"))]);case"selector-selector":return PT(MT(e.map(n,"nodes")));case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),i=n&&t.nodes[n-1];return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"","selector-nesting"===i.type?r.value:UF(GT(e,r.value)?r.value.toLowerCase():r.value)]}case"selector-id":return["#",r.value];case"selector-class":return[".",UF(VF(r.value,t))];case"selector-attribute":return["[",r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator?r.operator:"",r.value?$F(VF(r.value.trim(),t),t):"",r.insensitive?" i":"","]"];case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===r?"":_T,r.value,ZT(e,r)?"":" "]}return[r.value.trim().startsWith("(")?_T:"",UF(VF(r.value.trim(),t))||_T];case"selector-universal":return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[KT(r.value),NT(r.nodes)?["(",kT(", ",e.map(n,"nodes")),")"]:""];case"selector-unknown":{const n=WT(e,"css-rule");if(n&&n.isSCSSNesterProperty)return UF(VF(KT(r.value),t));const i=e.getParentNode();if(i.raws&&i.raws.selector){const e=PF(i),n=e+i.raws.selector.length;return t.originalText.slice(e,n).trim()}const o=e.getParentNode(1);if("value-paren_group"===i.type&&o&&"value-func"===o.type&&"selector"===o.value){const e=PF(i.open)+1,n=IF(i.close)-1,r=t.originalText.slice(e,n).trim();return OF(r)?[RT,r]:r}return r.value}case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(PF(r),IF(r));case"value-comma_group":{const t=e.getParentNode(),i=e.getParentNode(1),o=qT(e),s=o&&"value-value"===t.type&&("grid"===o||o.startsWith("grid-template")),a=WT(e,"css-atrule"),u=a&&tF(a),c=r.groups.some((e=>AF(e))),l=e.map(n,"groups"),p=[],f=HT(e,"url");let h=!1,d=!1;for(let n=0;n<r.groups.length;++n){p.push(l[n]);const o=r.groups[n-1],c=r.groups[n],m=r.groups[n+1],g=r.groups[n+2];if(f){(m&&aF(m)||aF(c))&&p.push(" ");continue}if(!m)continue;if("value-word"===c.type&&c.value.endsWith("-")&&LF(m))continue;const y="value-string"===c.type&&c.value.startsWith("#{"),b=h&&"value-string"===m.type&&m.value.endsWith("}");if(y||b){h=!h;continue}if(h)continue;if(NF(c)||NF(m))continue;if("value-atword"===c.type&&""===c.value)continue;if("~"===c.value)continue;if(c.value&&c.value.includes("\\")&&m&&"value-comment"!==m.type)continue;if(o&&o.value&&o.value.indexOf("\\")===o.value.length-1&&"value-operator"===c.type&&"/"===c.value)continue;if("\\"===c.value)continue;if(EF(c,m))continue;if(SF(c)||xF(c)||TF(m)||xF(m)&&gF(m)||TF(c)&&gF(m))continue;if("--"===c.value&&SF(m))continue;const v=cF(c),D=cF(m);if((v&&SF(m)||D&&TF(c))&&gF(m))continue;if(!o&&sF(c))continue;if(HT(e,"calc")&&(aF(c)||aF(m)||uF(c)||uF(m))&&gF(m))continue;const C=(aF(c)||uF(c))&&0===n&&("value-number"===m.type||m.isHex)&&i&&_F(i)&&!gF(m),E=g&&"value-func"===g.type||g&&FF(g)||"value-func"===c.type||FF(c),w="value-func"===m.type||FF(m)||o&&"value-func"===o.type||o&&FF(o);if(oF(m)||oF(c)||HT(e,"calc")||C||!(sF(m)&&!E||sF(c)&&!w||aF(m)&&!E||aF(c)&&!w||uF(m)||uF(c))||!(gF(m)||v&&(!o||o&&cF(o))))if(AF(c)){if("value-paren_group"===t.type){p.push(BT(OT));continue}p.push(OT)}else u&&(iF(m)||rF(m)||hF(m)||lF(c)||pF(c))||a&&"namespace"===a.name.toLowerCase()?p.push(" "):s?c.source&&m.source&&c.source.start.line!==m.source.start.line?(p.push(OT),d=!0):p.push(" "):D?p.push(" "):m&&"..."===m.value||LF(c)&&LF(m)&&IF(c)===PF(m)||p.push(_T)}return c&&p.push(RT),d&&p.unshift(OT),u?PT(MT(p)):JT(e)?PT(IT(p)):PT(MT(IT(p)))}case"value-paren_group":{const i=e.getParentNode();if(i&&fF(i)&&(1===r.groups.length||r.groups.length>0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",kT(",",e.map(n,"groups")),r.close?n("close"):""];if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push([",",_T]),r.push(t[e]);return PT(MT(IT(r)))}const o=wF(e),s=Ee(r.groups),a=s&&"value-comment"===s.type,u=bF(r,i),c=PT([r.open?n("open"):"",MT([LT,kT([",",_T],e.map((e=>{const t=e.getValue(),r=n();if(yF(t)&&"value-comma_group"===t.type&&t.groups&&"value-paren_group"!==t.groups[0].type&&t.groups[2]&&"value-paren_group"===t.groups[2].type){const e=$T(r.contents.contents);return e[1]=PT(e[1]),PT(BT(r))}return r}),"groups"))]),jT(!a&&XT(t.parser,t.originalText)&&o&&MF(t)?",":""),LT,r.close?n("close"):""],{shouldBreak:o&&!u});return u?BT(c):c}case"value-func":return[r.value,zT(e,"supports")&&kF(r)?" ":"",n("group")];case"value-number":return[WF(r.value),KT(r.unit)];case"value-word":return r.isColor&&r.isHex||QT(r.value)?r.value.toLowerCase():r.value;case"value-colon":{const t=e.getParentNode(),n=t&&t.groups.indexOf(r),i=n&&t.groups[n-1];return[r.value,i&&"string"==typeof i.value&&"\\"===Ee(i.value)||HT(e,"url")?"":_T]}case"value-string":return ST(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return["@",r.value];default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:function(e,t,n){const r=e.getValue();if("front-matter"===r.type){const e=Xx(r,n);return e?[e,Zx]:""}},insertPragma:UT,massageAstNode:Jx},KF={singleQuote:Vx.singleQuote},HF={languages:[_p({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},(e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]}))),_p({name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),_p({name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),_p({name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],options:KF,printers:{postcss:qF},parsers:{get css(){return{}.parsers.css},get less(){return{}.parsers.less},get scss(){return{}.parsers.scss}}};function YF(e,t){if("TextNode"===e.type){const 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}YF.ignoredProperties=new Set(["loc","selfClosing"]);var zF=YF;const JF=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function GF(e){return QF(e,["TextNode"])&&!/\S/.test(e.chars)}function QF(e,t){return e&&t.includes(e.type)}function XF(e,t){return QF(e.getParentNode(0),t)}function ZF(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},i=r.children||r.body||r.parts||[],o=i.indexOf(n);return-1!==o&&i[o+t]}function eN(e,t=1){return ZF(e,-t)}function tN(e){return ZF(e,1)}function nN(e){return QF(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var rN={getNextNode:tN,getPreviousNode:eN,hasPrettierIgnore:function(e){const t=e.getValue(),n=eN(e,2);return nN(t)||nN(n)},isLastNodeOfSiblings:function(e){const t=e.getValue(),n=e.getParentNode(0);return!(!XF(e,["ElementNode"])||Ee(n.children)!==t)||!(!XF(e,["Block"])||Ee(n.body)!==t)},isNextNodeOfSomeType:function(e,t){return QF(tN(e),t)},isNodeOfSomeType:QF,isParentOfSomeType:XF,isPreviousNodeOfSomeType:function(e,t){return QF(eN(e),t)},isVoid:function(e){return function(e){return QF(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))}(e)&&e.children.every((e=>GF(e)))||JF.has(e.tag)},isWhitespaceNode:GF};const{builders:{dedent:iN,fill:oN,group:sN,hardline:aN,ifBreak:uN,indent:cN,join:lN,line:pN,softline:fN,literalline:hN},utils:{getDocParts:dN}}=kn,{isNonEmptyArray:mN,replaceEndOfLineWith:gN}=zt,{locStart:yN,locEnd:bN}={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}},{getNextNode:vN,getPreviousNode:DN,hasPrettierIgnore:CN,isLastNodeOfSiblings:EN,isNextNodeOfSomeType:wN,isNodeOfSomeType:AN,isParentOfSomeType:SN,isPreviousNodeOfSomeType:xN,isVoid:TN,isWhitespaceNode:FN}=rN;function NN(e,t,n){const r=e.getValue().children.every((e=>FN(e)));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map(((e,r)=>{const i=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[fN,i]:i}),"children")}function kN(e){return TN(e)?uN([fN,"/>"],[" />",fN]):uN([fN,">"],">")}function _N(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function ON(e){const t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function LN(e){return[_N(e),e.closeStrip.open?"~":"","/"]}function PN(e){const t=ON(e);return[e.closeStrip.close?"~":"",t]}function IN(e){return[_N(e),e.inverseStrip.open?"~":""]}function MN(e){const t=ON(e);return[e.inverseStrip.close?"~":"",t]}function BN(e,t){const n=e.getValue(),r=function(e){return[_N(e),e.openStrip.open?"~":"","#"]}(n),i=function(e){const t=ON(e);return[e.openStrip.close?"~":"",t]}(n),o=[QN(0,t)],s=XN(e,t);if(s&&o.push(pN,s),mN(n.program.blockParams)){const e=ZN(n.program);o.push(pN,e)}return sN([r,cN(o),fN,i])}function jN(e,t){return["ignore"===t.htmlWhitespaceSensitivity?aN:"",IN(e),"else",MN(e)]}function RN(e,t){const n=e.getParentNode(1);return[IN(n),"else if ",XN(e,t),MN(n)]}function VN(e,t,n){const r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[$N(r)?fN:aN,LN(r),t("path"),PN(r)]:[LN(r),t("path"),PN(r)]}function $N(e){return AN(e,["BlockStatement"])&&e.program.body.every((e=>FN(e)))}function UN(e){return AN(e,["BlockStatement"])&&e.inverse}function WN(e,t,n){if($N(e.getValue()))return"";const r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?cN([aN,r]):cN(r)}function qN(e,t,n){const r=e.getValue(),i=t("inverse"),o="ignore"===n.htmlWhitespaceSensitivity?[aN,i]:i;return function(e){return UN(e)&&1===e.inverse.body.length&&AN(e.inverse.body[0],["BlockStatement"])&&"if"===e.inverse.body[0].path.parts[0]}(r)?o:UN(r)?[jN(r,n),cN(o)]:""}function KN(e){return dN(lN(pN,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function HN(e){return(e="string"==typeof e?e:"").split("\n").length-1}function YN(e=0){return new Array(Math.min(e,2)).fill(aN)}function zN(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},i=e.singleQuote?r:n,o=i===r?n:r;let s=!1;return(t.includes(i.quote)||t.includes(o.quote))&&(s=(t.match(i.regex)||[]).length>(t.match(o.regex)||[]).length),s?o:i}function JN(e,t){const n=QN(0,t),r=XN(e,t);return r?cN([n,pN,sN(r)]):n}function GN(e,t){const n=QN(0,t),r=XN(e,t);return r?[cN([n,pN,r]),fN]:n}function QN(e,t){return t("path")}function XN(e,t){const n=e.getValue(),r=[];if(n.params.length>0){const n=e.map(t,"params");r.push(...n)}if(n.hash&&n.hash.pairs.length>0){const e=t("hash");r.push(e)}return 0===r.length?"":lN(pN,r)}function ZN(e){return["as |",e.blockParams.join(" "),"|"]}var ek={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(CN(e))return t.originalText.slice(yN(r),bN(r));switch(r.type){case"Block":case"Program":case"Template":return sN(e.map(n,"body"));case"ElementNode":{const i=sN(function(e,t){const n=e.getValue(),r=["attributes","modifiers","comments","blockParams"].filter((e=>mN(n[e]))).map((r=>[pN,"blockParams"===r?ZN(n):lN(pN,e.map(t,r))]));return["<",n.tag,cN(r),kN(n)]}(e,n)),o="ignore"===t.htmlWhitespaceSensitivity&&wN(e,["ElementNode"])?fN:"";if(TN(r))return[i,o];const s=["</",r.tag,">"];return 0===r.children.length?[i,cN(s),o]:"ignore"===t.htmlWhitespaceSensitivity?[i,cN(NN(e,t,n)),aN,cN(s),o]:[i,cN(sN(NN(e,t,n))),cN(s),o]}case"BlockStatement":{const i=e.getParentNode(1);return i&&i.inverse&&1===i.inverse.body.length&&i.inverse.body[0]===r&&"if"===i.inverse.body[0].path.parts[0]?[RN(e,n),WN(e,n,t),qN(e,n,t)]:[BN(e,n),sN([WN(e,n,t),qN(e,n,t),VN(e,n,t)])]}case"ElementModifierStatement":return sN(["{{",GN(e,n),"}}"]);case"MustacheStatement":return sN([_N(r),GN(e,n),ON(r)]);case"SubExpression":return sN(["(",JN(e,n),fN,")"]);case"AttrNode":{const e="TextNode"===r.value.type;if(e&&""===r.value.chars&&yN(r.value)===bN(r.value))return r.name;const i=e?zN(t,r.value.chars).quote:"ConcatStatement"===r.value.type?zN(t,r.value.parts.filter((e=>"TextNode"===e.type)).map((e=>e.chars)).join("")).quote:"",o=n("value");return[r.name,"=",i,"class"===r.name&&i?sN(cN(o)):o,i]}case"ConcatStatement":return e.map(n,"parts");case"Hash":return lN(pN,e.map(n,"pairs"));case"HashPair":return[r.key,"=",n("value")];case"TextNode":{let n=r.chars.replace(/{{/g,"\\{{");const i=function(e){for(let t=0;t<2;t++){const n=e.getParentNode(t);if(n&&"AttrNode"===n.type)return n.name.toLowerCase()}}(e);if(i){if("class"===i){const t=n.trim().split(/\s+/).join(" ");let r=!1,i=!1;return SN(e,["ConcatStatement"])&&(xN(e,["MustacheStatement"])&&/^\s/.test(n)&&(r=!0),wN(e,["MustacheStatement"])&&/\s$/.test(n)&&""!==t&&(i=!0)),[r?pN:"",t,i?pN:""]}return gN(n,hN)}const o=/^[\t\n\f\r ]*$/.test(n),s=!DN(e),a=!vN(e);if("ignore"!==t.htmlWhitespaceSensitivity){const t=/^[\t\n\f\r ]*/,r=/[\t\n\f\r ]*$/,i=a&&SN(e,["Template"]),u=s&&SN(e,["Template"]);if(o){if(u||i)return"";let t=[pN];const r=HN(n);return r&&(t=YN(r)),EN(e)&&(t=t.map((e=>iN(e)))),t}const[c]=n.match(t),[l]=n.match(r);let p=[];if(c){p=[pN];const e=HN(c);e&&(p=YN(e)),n=n.replace(t,"")}let f=[];if(l){if(!i){f=[pN];const t=HN(l);t&&(f=YN(t)),EN(e)&&(f=f.map((e=>iN(e))))}n=n.replace(r,"")}return[...p,oN(KN(n)),...f]}const u=HN(n);let c=function(e){return HN(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(n),l=function(e){return HN(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(n);if((s||a)&&o&&SN(e,["Block","ElementNode","Template"]))return"";o&&u?(c=Math.min(u,2),l=0):(wN(e,["BlockStatement","ElementNode"])&&(l=Math.max(l,1)),xN(e,["BlockStatement","ElementNode"])&&(c=Math.max(c,1)));let p="",f="";return 0===l&&wN(e,["MustacheStatement"])&&(f=" "),0===c&&xN(e,["MustacheStatement"])&&(p=" "),s&&(c=0,p=""),a&&(l=0,f=""),n=n.replace(/^[\t\n\f\r ]+/g,p).replace(/[\t\n\f\r ]+$/,f),[...YN(c),oN(KN(n)),...YN(l)]}case"MustacheCommentStatement":{const e=yN(r),n=bN(r),i="~"===t.originalText.charAt(e+2),o="~"===t.originalText.charAt(n-3),s=r.value.includes("}}")?"--":"";return["{{",i?"~":"","!",s,r.value,s,o?"~":"","}}"]}case"PathExpression":return r.original;case"BooleanLiteral":case"NumberLiteral":return String(r.value);case"CommentStatement":return["\x3c!--",r.value,"--\x3e"];case"StringLiteral":return function(e,t){const{quote:n,regex:r}=zN(t,e);return[n,e.replace(r,"\\".concat(n)),n]}(r.value,t);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:zF},tk={languages:[_p({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},(()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],printers:{glimmer:ek},parsers:{get glimmer(){return{}.parsers.glimmer}}};const{builders:{join:nk,hardline:rk,line:ik,softline:ok,group:sk,indent:ak,ifBreak:uk}}=kn,{isNextLineEmpty:ck,isNonEmptyArray:lk}=zt,{insertPragma:pk}={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}},{locStart:fk,locEnd:hk}={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}};function dk(e,t,n){if(0===n.directives.length)return"";const r=nk(ik,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?sk([ik,r]):[" ",sk(ak([ok,r]))]}function mk(e,t,n){const r=e.getValue().length;return e.map(((e,i)=>{const o=n();return ck(t.originalText,e.getValue(),hk)&&i<r-1?[o,rk]:o}))}function gk(e,t,n){const r=e.getNode(),i=[],{interfaces:o}=r,s=e.map((e=>n(e)),"interfaces");for(let e=0;e<o.length;e++){const n=o[e];i.push(s[e]);const r=o[e+1];if(r){const e=t.originalText.slice(n.loc.end,r.loc.start),o=e.includes("#"),s=e.replace(/#.*/g,"").trim();i.push(","===s?",":" &",o?ik:" ")}}return i}function yk(){}yk.ignoredProperties=new Set(["loc","comments"]);var bk={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.kind){case"Document":{const r=[];return e.each(((e,i,o)=>{r.push(n()),i!==o.length-1&&(r.push(rk),ck(t.originalText,e.getValue(),hk)&&r.push(rk))}),"definitions"),[...r,rk]}case"OperationDefinition":{const i="{"!==t.originalText[fk(r)],o=Boolean(r.name);return[i?r.operation:"",i&&o?[" ",n("name")]:"",i&&!o&&lk(r.variableDefinitions)?" ":"",lk(r.variableDefinitions)?sk(["(",ak([ok,nk([uk("",", "),ok],e.map(n,"variableDefinitions"))]),ok,")"]):"",dk(e,n,r),r.selectionSet&&(i||o)?" ":"",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),lk(r.variableDefinitions)?sk(["(",ak([ok,nk([uk("",", "),ok],e.map(n,"variableDefinitions"))]),ok,")"]):""," on ",n("typeCondition"),dk(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",ak([rk,nk(rk,e.call((e=>mk(e,t,n)),"selections"))]),rk,"}"];case"Field":return sk([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?sk(["(",ak([ok,nk([uk("",", "),ok],e.call((e=>mk(e,t,n)),"arguments"))]),ok,")"]):"",dk(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":return r.block?['"""',rk,nk(rk,r.value.replace(/"""/g,"\\$&").split("\n")),rk,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return sk(["[",ak([ok,nk([uk("",", "),ok],e.map(n,"values"))]),ok,"]"]);case"ObjectValue":return sk(["{",t.bracketSpacing&&r.fields.length>0?" ":"",ak([ok,nk([uk("",", "),ok],e.map(n,"fields"))]),ok,uk("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?sk(["(",ak([ok,nk([uk("",", "),ok],e.call((e=>mk(e,t,n)),"arguments"))]),ok,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",dk(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),r.description?rk:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",n("name"),r.interfaces.length>0?[" implements ",...gk(e,t,n)]:"",dk(e,n,r),r.fields.length>0?[" {",ak([rk,nk(rk,e.call((e=>mk(e,t,n)),"fields"))]),rk,"}"]:""];case"FieldDefinition":return[n("description"),r.description?rk:"",n("name"),r.arguments.length>0?sk(["(",ak([ok,nk([uk("",", "),ok],e.call((e=>mk(e,t,n)),"arguments"))]),ok,")"]):"",": ",n("type"),dk(e,n,r)];case"DirectiveDefinition":return[n("description"),r.description?rk:"","directive ","@",n("name"),r.arguments.length>0?sk(["(",ak([ok,nk([uk("",", "),ok],e.call((e=>mk(e,t,n)),"arguments"))]),ok,")"]):"",r.repeatable?" repeatable":""," on ",nk(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),r.description?rk:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",n("name"),dk(e,n,r),r.values.length>0?[" {",ak([rk,nk(rk,e.call((e=>mk(e,t,n)),"values"))]),rk,"}"]:""];case"EnumValueDefinition":return[n("description"),r.description?rk:"",n("name"),dk(e,n,r)];case"InputValueDefinition":return[n("description"),r.description?r.description.block?rk:ik:"",n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",dk(e,n,r)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),r.description?rk:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",n("name"),dk(e,n,r),r.fields.length>0?[" {",ak([rk,nk(rk,e.call((e=>mk(e,t,n)),"fields"))]),rk,"}"]:""];case"SchemaDefinition":return["schema",dk(e,n,r)," {",r.operationTypes.length>0?ak([rk,nk(rk,e.call((e=>mk(e,t,n)),"operationTypes"))]):"",rk,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),r.description?rk:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",n("name"),r.interfaces.length>0?[" implements ",...gk(e,t,n)]:"",dk(e,n,r),r.fields.length>0?[" {",ak([rk,nk(rk,e.call((e=>mk(e,t,n)),"fields"))]),rk,"}"]:""];case"FragmentSpread":return["...",n("name"),dk(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",dk(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return sk([n("description"),r.description?rk:"",sk(["UnionTypeExtension"===r.kind?"extend ":"","union ",n("name"),dk(e,n,r),r.types.length>0?[" =",uk(""," "),ak([uk([ik," "]),nk([ik,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),r.description?rk:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",n("name"),dk(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:yk,hasPrettierIgnore:function(e){const t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some((e=>"prettier-ignore"===e.value.trim()))},insertPragma:pk,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},vk={bracketSpacing:Vx.bracketSpacing},Dk={languages:[_p({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],options:vk,printers:{graphql:bk},parsers:{get graphql(){return{}.parsers.graphql}}},Ck={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}};const{getLast:Ek}=zt,{locStart:wk,locEnd:Ak}=Ck,{cjkPattern:Sk,kPattern:xk,punctuationPattern:Tk}={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]"},Fk=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],Nk=[...Fk,"tableCell","paragraph","heading"],kk=new RegExp(xk),_k=new RegExp(Tk);function Ok(e,t){const[,n,r,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:i}}var Lk={mapAst:function(e,t){return function e(n,r,i){const o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map(((t,n)=>e(t,n,[o,...i])))),o}(e,null,[])},splitText:function(e,t){const n="non-cjk",r="cj-letter",i="cjk-punctuation",o=[],s=("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(Sk,")\n(").concat(Sk,")"),"g"),"$1$2")).split(/([\t\n ]+)/);for(const[e,t]of s.entries()){if(e%2==1){o.push({type:"whitespace",value:/\n/.test(t)?"\n":" "});continue}if((0===e||e===s.length-1)&&""===t)continue;const u=t.split(new RegExp("(".concat(Sk,")")));for(const[e,t]of u.entries())(0!==e&&e!==u.length-1||""!==t)&&(e%2!=0?a(_k.test(t)?{type:"word",value:t,kind:i,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:t,kind:kk.test(t)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==t&&a({type:"word",value:t,kind:n,hasLeadingPunctuation:_k.test(t[0]),hasTrailingPunctuation:_k.test(Ek(t))}))}return o;function a(e){const t=Ek(o);var s,a;t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?o.push({type:"whitespace",value:" "}):(s=n,a=i,t.kind===s&&e.kind===a||t.kind===a&&e.kind===s||[t.value,e.value].some((e=>/\u3000/.test(e)))||o.push({type:"whitespace",value:""}))),o.push(e)}},punctuationPattern:Tk,getFencedCodeBlockValue:function(e,t){const{value:n}=e;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n},getOrderedListItemInfo:Ok,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(Ok(e.children[0],t.originalText).numberText),r=Number(Ok(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(Ok(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:Fk,INLINE_NODE_WRAPPER_TYPES:Nk,isAutolink:function(e){if(!e||"link"!==e.type||1!==e.children.length)return!1;const t=e.children[0];return t&&wk(e)===wk(t)&&Ak(e)===Ak(t)}};const{inferParserByLanguage:Pk,getMaxContinuousCount:Ik}=zt,{builders:{hardline:Mk,markAsRoot:Bk},utils:{replaceNewlinesWithLiterallines:jk}}=kn,{getFencedCodeBlockValue:Rk}=Lk;const Vk=["format","prettier"];function $k(e){const t="@(".concat(Vk.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var Uk={startWithPragma:$k,hasPragma:e=>$k(tT(e).content.trimStart()),insertPragma:e=>{const t=tT(e),n="\x3c!-- @".concat(Vk[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}};const{getOrderedListItemInfo:Wk,mapAst:qk,splitText:Kk}=Lk,Hk=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function Yk(e,t,n){return qk(e,(e=>{if(!e.children)return e;const r=e.children.reduce(((e,r)=>{const i=Ee(e);return i&&t(i,r)?e.splice(-1,1,n(i,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}const{isFrontMatterNode:zk}=zt,{startWithPragma:Jk}=Uk,Gk=new Set(["position","raw"]);function Qk(e,t,n){return"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?null:("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||(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),"definition"!==e.type&&"link"!==e.type&&"image"!==e.type||!e.title||(t.title=e.title.replace(/\\(["')])/g,"$1")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||zk(n.children[0])&&n.children[1]===e)&&"html"===e.type&&Jk(e.value)?null:void 0)}Qk.ignoredProperties=Gk;var Xk=Qk;const{getLast:Zk,getMinNotPresentContinuousCount:e_,getMaxContinuousCount:t_,getStringWidth:n_,isNonEmptyArray:r_}=zt,{builders:{breakParent:i_,join:o_,line:s_,literalline:a_,markAsRoot:u_,hardline:c_,softline:l_,ifBreak:p_,fill:f_,align:h_,indent:d_,group:m_,hardlineWithoutBreakParent:g_},utils:{normalizeDoc:y_},printer:{printDocToString:b_}}=kn,{replaceEndOfLineWith:v_}=zt,{insertPragma:D_}=Uk,{locStart:C_,locEnd:E_}=Ck,{getFencedCodeBlockValue:w_,hasGitDiffFriendlyOrderedList:A_,splitText:S_,punctuationPattern:x_,INLINE_NODE_TYPES:T_,INLINE_NODE_WRAPPER_TYPES:F_,isAutolink:N_}=Lk,k_=new Set(["importExport"]),__=["heading","tableCell","link","wikiLink"],O_=new Set(["listItem","definition","footnoteDefinition"]);function L_(e,t,n,r){const i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[o,R_(e,t,n,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return h_(" ".repeat(o.length),n());const s=" ".repeat((3,(a=t.tabWidth-r.length)<0?0:a>3?3:a));var a;return[s,h_(s,n())]}})]}function P_(e,t){return function(e,t,n){let r=-1;for(const i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}(e,t,(t=>t.ordered===e.ordered))}function I_(e,t){const n=Array.isArray(t)?t:[t];let r,i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function M_(e,t){const n=I_(e,t);return-1===n?null:e.getParentNode(n)}function B_(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return c_;const r="always"===n.proseWrap&&!M_(e,__);return""!==t?r?s_:" ":r?l_:""}function j_(e,t,n){const r=[];let i=null;const{children:o}=e.getValue();for(const[e,t]of o.entries())switch($_(t)){case"start":null===i&&(i={index:e,offset:t.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:e,offset:t.position.start.offset}}),i=null)}return R_(e,t,n,{processor:(e,i)=>{if(r.length>0){const e=r[0];if(i===e.start.index)return[o[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),o[e.end.index].value];if(e.start.index<i&&i<e.end.index)return!1;if(i===e.end.index)return r.shift(),!1}return n()}})}function R_(e,t,n,r={}){const{postprocessor:i}=r,o=r.processor||(()=>n()),s=e.getValue(),a=[];let u;return e.each(((e,n)=>{const r=e.getValue(),i=o(e,n);if(!1!==i){const e={parts:a,prevNode:u,parentNode:s,options:t};(function(e,t){const n=0===t.parts.length,r=T_.includes(e.type),i="html"===e.type&&F_.includes(t.parentNode.type);return!n&&!r&&!i})(r,e)&&(a.push(c_),u&&k_.has(u.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&O_.has(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,i=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,o="next"===$_(t.prevNode),s="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,a="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return i||!(n||r||o||s||a)}(r,e)||U_(r,e))&&a.push(c_),U_(r,e)&&a.push(c_)),a.push(i),u=r}}),"children"),i?i(a):a}function V_(e){let t=e;for(;r_(t.children);)t=Zk(t.children);return t}function $_(e){if("html"!==e.type)return!1;const t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return null!==t&&(t[1]?t[1]:"next")}function U_(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function W_(e,t=[]){const n=[" ",...Array.isArray(t)?t:[t]];return new RegExp(n.map((e=>"\\".concat(e))).join("|")).test(e)?"<".concat(e,">"):e}function q_(e,t,n=!0){if(!e)return"";if(n)return" "+q_(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");const r=e.split("'").length-1,i=e.split('"').length-1,o=r>i?'"':i>r||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(o,")"),"g"),"\\$1"),"".concat(o).concat(e).concat(o)}var K_={preprocess:function(e,t){return function(e){return Yk(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e){return qk(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})))}(e=function(e,t){return qk(e,((e,n,[r])=>{if("text"!==e.type)return e;let{value:i}=e;return"paragraph"===r.type&&(0===n&&(i=i.trimStart()),n===r.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:e.position,children:Kk(i,t)}}))}(e=function(e,t){return qk(e,((e,t,n)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t<n.length;t++){const r=n[t];if("list"===r.type&&!r.isAligned)return e.isAligned=!1,e}e.isAligned=r(e)}return e}));function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function r(e){if(!e.ordered)return!0;const[r,i]=e.children;if(Wk(r,t.originalText).leadingSpaces.length>1)return!0;const o=n(r);return-1!==o&&(1===e.children.length?o%t.tabWidth==0:o===n(i)&&(o%t.tabWidth==0||Wk(i,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return qk(e,((e,n,r)=>{if("code"===e.type){const n=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e<r.length;e++){const t=r[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e}))}(e=function(e){return qk(e,(e=>"inlineCode"!==e.type?e:Object.assign({},e,{value:e.value.replace(/\s+/g," ")})))}(e=function(e){return Yk(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}(e=function(e,t){return qk(e,(e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&Hk.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign({},e,{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e))}(e,t))),t),t),t)))},print:function(e,t,n){const r=e.getValue();if(function(e){const t=M_(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return S_(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((n=>"word"===n.type?n.value:""===n.value?"":B_(e,n.value,t)));switch(r.type){case"front-matter":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"root":return 0===r.children.length?"":[y_(j_(e,t,n)),k_.has(V_(r).type)?"":c_];case"paragraph":return R_(e,t,n,{postprocessor:f_});case"sentence":return R_(e,t,n);case"word":{let t=r.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(x_,")(_+)"),"(_+)(".concat(x_,"|$)")].join("|"),"g"),((e,t,n,r,i)=>(n?"".concat(t).concat(n):"".concat(r).concat(i)).replace(/_/g,"\\_")));const n=(e,t,n)=>"sentence"===e.type&&0===n,i=(e,t,n)=>N_(e.children[n-1]);return t!==r.value&&(e.match(void 0,n,i)||e.match(void 0,n,((e,t,n)=>"emphasis"===e.type&&0===n),i))&&(t=t.replace(/^(\\?[*_])+/,(e=>e.replace(/\\/g,"")))),t}case"whitespace":{const n=e.getParentNode(),i=n.children.indexOf(r),o=n.children[i+1],s=o&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":t.proseWrap;return B_(e,r.value,{proseWrap:s})}case"emphasis":{let i;if(N_(r.children[0]))i=t.originalText[r.position.start.offset];else{const t=e.getParentNode(),n=t.children.indexOf(r),o=t.children[n-1],s=t.children[n+1];i=o&&"sentence"===o.type&&o.children.length>0&&"word"===Zk(o.children).type&&!Zk(o.children).hasTrailingPunctuation||s&&"sentence"===s.type&&s.children.length>0&&"word"===s.children[0].type&&!s.children[0].hasLeadingPunctuation||M_(e,"emphasis")?"*":"_"}return[i,R_(e,t,n),i]}case"strong":return["**",R_(e,t,n),"**"];case"delete":return["~~",R_(e,t,n),"~~"];case"inlineCode":{const e=e_(r.value,"`"),t="`".repeat(e||1),n=e&&!/^\s/.test(r.value)?" ":"";return[t,n,r.value,n,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?r.value:r.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:";return["<",r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url,">"]}case"[":return["[",R_(e,t,n),"](",W_(r.url,")"),q_(r.title,t),")"];default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return["![",r.alt||"","](",W_(r.url,")"),q_(r.title,t),")"];case"blockquote":return["> ",h_("> ",R_(e,t,n))];case"heading":return["#".repeat(r.depth)+" ",R_(e,t,n)];case"code":{if(r.isIndented){const e=" ".repeat(4);return h_(e,[e,...v_(r.value,c_)])}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,t_(r.value,e)+1));return[n,r.lang||"",r.meta?" "+r.meta:"",c_,...v_(w_(r,t.originalText),c_),c_,n]}case"html":{const t=e.getParentNode(),n="root"===t.type&&Zk(t.children)===r?r.value.trimEnd():r.value,i=/^<!--[\S\s]*-->$/.test(n);return v_(n,i?c_:u_(a_))}case"list":{const i=P_(r,e.getParentNode()),o=A_(r,t);return R_(e,t,n,{processor:(e,s)=>{const a=function(){const e=r.ordered?(0===s?r.start:o?1:r.start+s)+(i%2==0?". ":") "):i%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=function(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}();return e+" ".repeat(n>=4?0:n)}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?[a,L_(e,t,n,a)]:[a,h_(" ".repeat(a.length),L_(e,t,n,a))]}})}case"thematicBreak":{const t=I_(e,"list");return-1===t?"---":P_(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return["[",R_(e,t,n),"]","full"===r.referenceType?["[",r.identifier,"]"]:"collapsed"===r.referenceType?"[]":""];case"imageReference":return"full"===r.referenceType?["![",r.alt||"","][",r.identifier,"]"]:["![",r.alt,"]","collapsed"===r.referenceType?"[]":""];case"definition":{const e="always"===t.proseWrap?s_:" ";return m_(["[",r.identifier,"]:",d_([e,W_(r.url),null===r.title?"":[e,q_(r.title,t,!1)]])])}case"footnote":return["[^",R_(e,t,n),"]"];case"footnoteReference":return["[^",r.identifier,"]"];case"footnoteDefinition":{const i=e.getParentNode().children[e.getName()+1],o=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return["[^",r.identifier,"]: ",o?R_(e,t,n):m_([h_(" ".repeat(4),R_(e,t,n,{processor:(e,t)=>0===t?m_([l_,n()]):n()})),i&&"footnoteDefinition"===i.type?l_:""])]}case"table":return function(e,t,n){const r=e.getValue(),i=[],o=e.map((e=>e.map(((e,r)=>{const o=b_(n(),t).formatted,s=n_(o);return i[r]=Math.max(i[r]||3,s),{text:o,width:s}}),"children")),"children"),s=u(!1);if("never"!==t.proseWrap)return[i_,s];const a=u(!0);return[i_,m_(p_(a,s))];function u(e){const t=[l(o[0],e),c(e)];return o.length>1&&t.push(o_(g_,o.slice(1).map((t=>l(t,e))))),o_(g_,t)}function c(e){const t=i.map(((t,n)=>{const i=r.align[n],o="center"===i||"left"===i?":":"-",s="center"===i||"right"===i?":":"-",a=e?"-":"-".repeat(t-2);return"".concat(o).concat(a).concat(s)}));return"| ".concat(t.join(" | ")," |")}function l(e,t){const n=e.map((({text:e,width:n},o)=>{if(t)return e;const s=i[o]-n,a=r.align[o];let u=0;"right"===a?u=s:"center"===a&&(u=Math.floor(s/2));const c=s-u;return"".concat(" ".repeat(u)).concat(e).concat(" ".repeat(c))}));return"| ".concat(n.join(" | ")," |")}}(e,t,n);case"tableCell":return R_(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?[" ",u_(a_)]:["\\",c_];case"liquidNode":return v_(r.value,c_);case"importExport":return[r.value,c_];case"jsx":return r.value;case"math":return["$$",c_,r.value?[...v_(r.value,c_),c_]:"","$$"];case"inlineMath":return t.originalText.slice(C_(r),E_(r));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:function(e,t,n,r){const i=e.getValue();if("code"===i.type&&null!==i.lang){const e=Pk(i.lang,r);if(e){const t=r.__inJsTemplate?"~":"`",o=t.repeat(Math.max(3,Ik(i.value,t)+1)),s=n(Rk(i,r.originalText),{parser:e},{stripTrailingHardline:!0});return Bk([o,i.lang,i.meta?" "+i.meta:"",Mk,jk(s),Mk,o])}}switch(i.type){case"front-matter":return Xx(i,n);case"importExport":return[n(i.value,{parser:"babel"},{stripTrailingHardline:!0}),Mk];case"jsx":return n("<$>".concat(i.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null},massageAstNode:Xk,hasPrettierIgnore:function(e){const t=Number(e.getName());return 0!==t&&"next"===$_(e.getParentNode().children[t-1])},insertPragma:D_},H_={proseWrap:Vx.proseWrap,singleQuote:Vx.singleQuote},Y_={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},z_={languages:[_p(Y_,(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter((e=>".mdx"!==e))}))),_p(Y_,(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))],options:H_,printers:{mdast:K_},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}};const{isFrontMatterNode:J_}=zt,G_=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function Q_(e,t){return"text"===e.type||"comment"===e.type||J_(e)||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))}Q_.ignoredProperties=G_;var X_=Q_;const{inferParserByLanguage:Z_,isFrontMatterNode:eO}=zt,{CSS_DISPLAY_TAGS:tO,CSS_DISPLAY_DEFAULT:nO,CSS_WHITE_SPACE_TAGS:rO,CSS_WHITE_SPACE_DEFAULT:iO}={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"},oO=lO(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),sO=function(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))n[r]=t(i,r);return n}({"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},lO),aO=new Set(["\t","\n","\f","\r"," "]),uO=e=>e.replace(/[\t\n\f\r ]+$/,""),cO=e=>e.match(/^[\t\n\f\r ]*/)[0];function lO(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function pO(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!wO(e)||!e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type)))||!(!NO(e,t)||hO(e)||"interpolation"===e.type)}function fO(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function hO(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||AO(e)&&("script"===e.name||"style"===e.name))}function dO(e){return SO(e).startsWith("pre")}function mO(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 gO(e){return DO(e)||"element"===e.type&&"br"===e.fullName||yO(e)}function yO(e){return bO(e)&&vO(e)}function bO(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 vO(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 DO(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function CO(e){const{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"))?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function EO(e){return"block"===e||"list-item"===e||e.startsWith("table")}function wO(e){return SO(e).startsWith("pre")}function AO(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function SO(e){return"element"===e.type&&(!e.namespace||AO(e))&&rO[e.name]||iO}const xO=new Set(["template","style","script"]);function TO(e,t){return FO(e,t)&&!xO.has(e.fullName)}function FO(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function NO(e,t){return FO(e,t)&&(TO(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var kO={HTML_ELEMENT_ATTRIBUTES:sO,HTML_TAGS:oO,htmlTrim:e=>(e=>e.replace(/^[\t\n\f\r ]+/,""))(uO(e)),htmlTrimPreserveIndentation:e=>(e=>e.replace(/^[\t\f\r ]*?\n/g,""))(uO(e)),splitByHtmlWhitespace:e=>e.split(/[\t\n\f\r ]+/),hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{const[,t,n,r]=e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/);return{leadingWhitespace:t,trailingWhitespace:r,text:n}},canHaveInterpolation:function(e){return e.children&&!hO(e)},countChars:function(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n},countParents:function(e,t){let n=0;for(let r=e.stack.length-1;r>=0;r--){const i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n},dedentString:function(e,t=function(e){let t=Number.POSITIVE_INFINITY;for(const n of e.split("\n")){if(0===n.length)continue;if(!aO.has(n[0]))return 0;const e=cO(n).length;n.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}(e)){return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")},forceBreakChildren:mO,forceBreakContent:function(e){return mO(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){return e.children&&e.children.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&bO(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||vO(e.lastChild))},forceNextEmptyLine:function(e){return eO(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){const 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(!function(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}(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||AO(e))&&tO[e.name]||nO}},getNodeCssStyleWhiteSpace:SO,getPrettierIgnoreAttributeCommentData:function(e){const t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:fO,inferScriptParser:function(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?function(e){const{lang:t}=e.attrMap;return t&&"postcss"!==t&&"css"!==t?"scss"===t?"scss":"less"===t?"less":void 0:"css"}(e):t&&NO(e,t)?CO(e)||!("src"in e.attrMap)&&Z_(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?CO(e):"babel"},isVueCustomBlock:TO,isVueNonHtmlBlock:NO,isVueSlotAttribute:function(e){const t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){const n=e.parent;if(!FO(n,t))return!1;const r=n.fullName,i=e.fullName;return"script"===r&&"setup"===i||"style"===r&&"vars"===i},isDanglingSpaceSensitiveNode:function(e){return!(EO(t=e.cssDisplay)||"inline-block"===t||hO(e));var t},isIndentationSensitiveNode:dO,isLeadingSpaceSensitiveNode:function(e,t){const n=function(){return!(eO(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!wO(e.parent)&&(!e.prev&&("root"===e.parent.type||wO(e)&&e.parent||hO(e.parent)||TO(e.parent,t)||(n=e.parent.cssDisplay,EO(n)||"inline-block"===n))||e.prev&&!function(e){return!EO(e)}(e.prev.cssDisplay))));var n}();return n&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:n},isPreLikeNode:wO,isScriptLikeTag:hO,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e,t){return!(eO(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!wO(e.parent)&&(!e.next&&("root"===e.parent.type||wO(e)&&e.parent||hO(e.parent)||TO(e.parent,t)||(n=e.parent.cssDisplay,EO(n)||"inline-block"===n))||e.next&&!function(e){return!EO(e)}(e.next.cssDisplay))));var n},isWhitespaceSensitiveNode:function(e){return hO(e)||"interpolation"===e.type||dO(e)},isUnknownNamespace:AO,preferHardlineAsLeadingSpaces:function(e){return DO(e)||e.prev&&gO(e.prev)||yO(e)},preferHardlineAsTrailingSpaces:gO,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(fO(e)||pO(e.parent,t))},shouldPreserveContent:pO,unescapeQuoteEntities:function(e){return e.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}},_O=s((function(e,t){function n(e){return t.$0<=e&&e<=t.$9}Object.defineProperty(t,"__esModule",{value:!0}),t.$EOF=0,t.$BSPACE=8,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63,t.$0=48,t.$7=55,t.$9=57,t.$A=65,t.$E=69,t.$F=70,t.$X=88,t.$Z=90,t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93,t.$CARET=94,t.$_=95,t.$a=97,t.$b=98,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125,t.$NBSP=160,t.$PIPE=124,t.$TILDA=126,t.$AT=64,t.$BT=96,t.isWhitespace=function(e){return e>=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=n,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||n(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}}));class OO{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),"."))}}var LO=OO,PO=Object.defineProperty({StaticSymbol:LO,StaticSymbolCache:class{constructor(){this.cache=new Map}get(e,t,n){const r=(n=n||[]).length?".".concat(n.join(".")):"",i='"'.concat(e,'".').concat(t).concat(r);let o=this.cache.get(i);return o||(o=new OO(e,t,n),this.cache.set(i,o)),o}}},"__esModule",{value:!0});const IO=/-+([a-z0-9])/g;function MO(e,t,n){const r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function BO(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===UO}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}var jO=BO,RO={assertSync:e=>{if(WO(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>WO(e)?e.then(t):t(e),all:e=>e.some(WO)?Promise.all(e):e};const VO="ngSyntaxError",$O="ngParseErrors";const UO=Object.getPrototypeOf({});function WO(e){return!!e&&"function"==typeof e.then}var qO=WO;const KO="undefined"!=typeof window&&window,HO="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;var YO=void 0!==i&&i||KO||HO,zO=Object.defineProperty({dashCaseToCamelCase:function(e){return e.replace(IO,((...e)=>e[1].toUpperCase()))},splitAtColon:function(e,t){return MO(e,":",t)},splitAtPeriod:function(e,t){return MO(e,".",t)},visitValue:jO,isDefined:function(e){return null!=e},noUndefined:function(e){return void 0===e?null:e},ValueTransformer:class{visitArray(e,t){return e.map((e=>BO(e,this,t)))}visitStringMap(e,t){const n={};return Object.keys(e).forEach((r=>{n[r]=BO(e[r],this,t)})),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}},SyncAsync:RO,error:function(e){throw new Error("Internal Error: ".concat(e))},syntaxError:function(e,t){const n=Error(e);return n[VO]=!0,t&&(n[$O]=t),n},isSyntaxError:function(e){return e[VO]},getParseErrors:function(e){return e[$O]||[]},escapeRegExp:function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},utf8Encode:function(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){const 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},stringify:function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";const n=t.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},resolveForwardRef:function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},isPromise:qO,Version:class{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},global:YO},"__esModule",{value:!0}),JO=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function r(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=r;let i=0;function o(e){if(!e||!e.reference)return null;const t=e.reference;if(t instanceof PO.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;let n=zO.stringify(t);return n.indexOf("(")>=0?(n="anonymous_".concat(i++),t.__anonymousType=n):n=r(n),n}var s;t.identifierName=o,t.identifierModuleUrl=function(e){const t=e.reference;return t instanceof PO.StaticSymbol?t.filePath:"./".concat(zO.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(o({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(o({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(o({reference:e}))},t.componentFactoryName=function(e){return"".concat(o({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(s=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?r(e.value):o(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},t.CompileStylesheetMetadata=class{constructor({moduleUrl:e,styles:t,styleUrls:n}={}){this.moduleUrl=e||null,this.styles=u(t),this.styleUrls=u(n)}},t.CompileTemplateMetadata=class{constructor({encapsulation:e,template:t,templateUrl:n,htmlAst:r,styles:i,styleUrls:o,externalStylesheets:s,animations:a,ngContentSelectors:l,interpolation:p,isInline:f,preserveWhitespaces:h}){if(this.encapsulation=e,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=u(i),this.styleUrls=u(o),this.externalStylesheets=u(s),this.animations=a?c(a):[],this.ngContentSelectors=l||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=f,this.preserveWhitespaces=h}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class a{static create({isHost:e,type:t,isComponent:r,selector:i,exportAs:o,changeDetection:s,inputs:u,outputs:c,host:l,providers:p,viewProviders:f,queries:h,guards:d,viewQueries:m,entryComponents:g,template:y,componentViewType:b,rendererType:v,componentFactory:D}){const C={},E={},w={};null!=l&&Object.keys(l).forEach((e=>{const t=l[e],r=e.match(n);null===r?w[e]=t:null!=r[1]?E[r[1]]=t:null!=r[2]&&(C[r[2]]=t)}));const A={};null!=u&&u.forEach((e=>{const t=zO.splitAtColon(e,[e,e]);A[t[0]]=t[1]}));const S={};return null!=c&&c.forEach((e=>{const t=zO.splitAtColon(e,[e,e]);S[t[0]]=t[1]})),new a({isHost:e,type:t,isComponent:!!r,selector:i,exportAs:o,changeDetection:s,inputs:A,outputs:S,hostListeners:C,hostProperties:E,hostAttributes:w,providers:p,viewProviders:f,queries:h,guards:d,viewQueries:m,entryComponents:g,template:y,componentViewType:b,rendererType:v,componentFactory:D})}constructor({isHost:e,type:t,isComponent:n,selector:r,exportAs:i,changeDetection:o,inputs:s,outputs:a,hostListeners:c,hostProperties:l,hostAttributes:p,providers:f,viewProviders:h,queries:d,guards:m,viewQueries:g,entryComponents:y,template:b,componentViewType:v,rendererType:D,componentFactory:C}){this.isHost=!!e,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=u(f),this.viewProviders=u(h),this.queries=u(d),this.guards=m,this.viewQueries=u(g),this.entryComponents=u(y),this.template=b,this.componentViewType=v,this.rendererType=D,this.componentFactory=C}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}}}function u(e){return e||[]}function c(e){return e.reduce(((e,t)=>{const n=Array.isArray(t)?c(t):t;return e.concat(n)}),[])}function l(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.CompileDirectiveMetadata=a,t.CompilePipeMetadata=class{constructor({type:e,name:t,pure:n}){this.type=e,this.name=t,this.pure=!!n}toSummary(){return{summaryKind:s.Pipe,type:this.type,name:this.name,pure:this.pure}}},t.CompileShallowModuleMetadata=class{},t.CompileNgModuleMetadata=class{constructor({type:e,providers:t,declaredDirectives:n,exportedDirectives:r,declaredPipes:i,exportedPipes:o,entryComponents:s,bootstrapComponents:a,importedModules:c,exportedModules:l,schemas:p,transitiveModule:f,id:h}){this.type=e||null,this.declaredDirectives=u(n),this.exportedDirectives=u(r),this.declaredPipes=u(i),this.exportedPipes=u(o),this.providers=u(t),this.entryComponents=u(s),this.bootstrapComponents=u(a),this.importedModules=u(c),this.exportedModules=u(l),this.schemas=u(p),this.id=h||null,this.transitiveModule=f||null}toSummary(){const 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}}},t.TransitiveCompileNgModuleMetadata=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))}},t.ProviderMeta=class{constructor(e,{useClass:t,useValue:n,useExisting:r,useFactory:i,deps:o,multi:s}){this.token=e,this.useClass=t||null,this.useValue=n,this.useExisting=r,this.useFactory=i||null,this.dependencies=o||null,this.multi=!!s}},t.flatten=c,t.templateSourceUrl=function(e,t,n){let r;return r=n.isInline?t.type.reference instanceof PO.StaticSymbol?"".concat(t.type.reference.filePath,".").concat(t.type.reference.name,".html"):"".concat(o(e),"/").concat(o(t.type),".html"):n.templateUrl,t.type.reference instanceof PO.StaticSymbol?r:l(r)},t.sharedStylesheetJitUrl=function(e,t){const n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return l("css/".concat(t).concat(r,".ngstyle.js"))},t.ngModuleJitUrl=function(e){return l("".concat(o(e.type),"/module.ngfactory.js"))},t.templateJitUrl=function(e,t){return l("".concat(o(e),"/").concat(o(t.type),".ngfactory.js"))}})),GO=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n{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){const t=this.file.content,r=t.length;let i=this.offset,o=this.line,s=this.col;for(;i>0&&e<0;)if(i--,e++,t.charCodeAt(i)==_O.$LF){o--;const e=t.substr(0,i-1).lastIndexOf(String.fromCharCode(_O.$LF));s=e>0?i-e:i}else s--;for(;i<r&&e>0;){const n=t.charCodeAt(i);i++,e--,n==_O.$LF?(o++,s=0):s++}return new n(this.file,i,o,s)}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let i=r,o=0,s=0;for(;o<e&&r>0&&(r--,o++,"\n"!=n[r]||++s!=t););for(o=0,s=0;o<e&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}}t.ParseLocation=n;class r{constructor(e,t){this.content=e,this.url=t}}t.ParseSourceFile=r;class i{constructor(e,t,n=null){this.start=e,this.end=t,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var o;t.ParseSourceSpan=i,t.EMPTY_PARSE_LOCATION=new n(new r("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new i(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(o=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=class{constructor(e,t,n=o.ERROR){this.span=e,this.msg=t,this.level=n}contextualMessage(){const e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(o[this.level]," ->]").concat(e.after,'")'):this.msg}toString(){const e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}},t.typeSourceSpan=function(e,t){const o=JO.identifierModuleUrl(t),s=null!=o?"in ".concat(e," ").concat(JO.identifierName(t)," in ").concat(o):"in ".concat(e," ").concat(JO.identifierName(t)),a=new r("",s);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,o){const s="in ".concat(e," ").concat(t," in ").concat(o),a=new r("",s);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))}}));const{ParseSourceSpan:QO}=GO,{htmlTrim:XO,getLeadingAndTrailingHtmlWhitespace:ZO,hasHtmlWhitespace:eL,canHaveInterpolation:tL,getNodeCssStyleDisplay:nL,isDanglingSpaceSensitiveNode:rL,isIndentationSensitiveNode:iL,isLeadingSpaceSensitiveNode:oL,isTrailingSpaceSensitiveNode:sL,isWhitespaceSensitiveNode:aL}=kO,uL=[function(e){return e.map((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;return e.clone({children:1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n]})}return e}))},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const i=e.children[r];if(!n[r+1])if(n[r]){const e=i.prev,n=i.firstChild,r=new QO(e.sourceSpan.start,n.sourceSpan.end),o=new QO(r.start,i.sourceSpan.end);t.push(i.clone({condition:e.condition,sourceSpan:o,startSourceSpan:r,children:i.children.slice(1)}))}else t.push(i)}return e.clone({children:t})}}return e}))},function(e){return function(e,t,n){return e.map((e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let i=0;i<e.children.length;i++){const o=e.children[i];if("text"!==o.type&&!r[i]){t.push(o);continue}const s="text"===o.type?o:o.clone({type:"text",value:n(o)});if(0===t.length||"text"!==Ee(t).type){t.push(s);continue}const a=t.pop();t.push(a.clone({value:a.value+s.value,sourceSpan:new QO(a.sourceSpan.start,s.sourceSpan.end)}))}return e.clone({children:t})}}return e}))}(e,(e=>"cdata"===e.type),(e=>"<![CDATA[".concat(e.value,"]]>")))},function(e,t){if("html"===t.parser)return e;const n=/{{([\S\s]+?)}}/g;return e.map((e=>{if(!tL(e))return e;const t=[];for(const r of e.children){if("text"!==r.type){t.push(r);continue}let e=r.sourceSpan.start,i=null;const o=r.value.split(n);for(let n=0;n<o.length;n++,e=i){const r=o[n];n%2!=0?(i=e.moveBy(r.length+4),t.push({type:"interpolation",sourceSpan:new QO(e,i),children:0===r.length?[]:[{type:"text",value:r,sourceSpan:new QO(e.moveBy(2),i.moveBy(-2))}]})):(i=e.moveBy(r.length),r.length>0&&t.push({type:"text",value:r,sourceSpan:new QO(e,i)}))}}return e.clone({children:t})}))},function(e){const t="whitespace";return e.map((e=>{if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===XO(e.children[0].value).length)return e.clone({children:[],hasDanglingSpaces:e.children.length>0});const n=aL(e),r=iL(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce(((e,r)=>{if("text"!==r.type||n)return[...e,r];const i=[],{leadingWhitespace:o,text:s,trailingWhitespace:a}=ZO(r.value);return o&&i.push({type:t}),s&&i.push({type:"text",value:s,sourceSpan:new QO(r.sourceSpan.start.moveBy(o.length),r.sourceSpan.end.moveBy(-a.length))}),a&&i.push({type:t}),[...e,...i]}),[]).reduce(((e,n,r,i)=>{if(n.type===t)return e;const o=0!==r&&i[r-1].type===t,s=r!==i.length-1&&i[r+1].type===t;return[...e,Object.assign({},n,{hasLeadingSpaces:o,hasTrailingSpaces:s})]}),[])})}))},function(e,t){return e.map((e=>Object.assign(e,{cssDisplay:nL(e,t)})))},function(e){return e.map((e=>Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})))},function(e,t){return e.map((e=>"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})))},function(e,t){return e.map((e=>e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:rL(e)}):e.clone({children:e.children.map((e=>Object.assign({},e,{isLeadingSpaceSensitive:oL(e,t),isTrailingSpaceSensitive:sL(e,t)}))).map(((e,t,n)=>Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})))}):e))},function(e){const t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!eL(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;return e.map((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const i=e.children[r];if(n[r]){const n=t.pop(),o=e.children[++r],{isTrailingSpaceSensitive:s,hasTrailingSpaces:a}=o;t.push(n.clone({value:n.value+"<".concat(i.rawName,">")+i.firstChild.value+"</".concat(i.rawName,">")+o.value,sourceSpan:new QO(n.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:s,hasTrailingSpaces:a}))}else t.push(i)}return e.clone({children:t})}}return e}))}];const{builders:{group:cL}}=kn;var lL={isVueEventBindingExpression:function(e){const t=e.trim();return/^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function(e,t){const{left:n,operator:r,right:i}=function(e){const t=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(!n)return;const r={};r.for=n[3].trim();const i=n[1].trim().replace(/^\(|\)$/g,""),o=i.match(t);return o?(r.alias=i.replace(t,""),r.iterator1=o[1].trim(),o[2]&&(r.iterator2=o[2].trim())):r.alias=i,{left:"".concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(",")),operator:n[2],right:r.for}}(e);return[cL(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(i,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}},pL=s((function(e){!function(t,n){e.exports?e.exports=n():t.parseSrcset=n()}(i,(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 o,s,a,u,c,l=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,y=0,b=[];;){if(i(f),y>=l)return b;o=i(h),s=[],","===o.slice(-1)?(o=o.replace(d,""),D()):v()}function v(){for(i(p),a="",u="in descriptor";;){if(c=e.charAt(y),"in descriptor"===u)if(r(c))a&&(s.push(a),a="",u="after descriptor");else{if(","===c)return y+=1,a&&s.push(a),void D();if("("===c)a+=c,u="in parens";else{if(""===c)return a&&s.push(a),void D();a+=c}}else if("in parens"===u)if(")"===c)a+=c,u="in descriptor";else{if(""===c)return s.push(a),void D();a+=c}else if("after descriptor"===u)if(r(c));else{if(""===c)return void D();u="in descriptor",y-=1}y+=1}}function D(){var t,r,i,a,u,c,l,p,f,h=!1,d={};for(a=0;a<s.length;a++)c=(u=s[a])[u.length-1],l=u.substring(0,u.length-1),p=parseInt(l,10),f=parseFloat(l),m.test(l)&&"w"===c?((t||r)&&(h=!0),0===p?h=!0:t=p):g.test(l)&&"x"===c?((t||r||i)&&(h=!0),f<0?h=!0:r=f):m.test(l)&&"h"===c?((i||r)&&(h=!0),0===p?h=!0:i=p):h=!0;h?n&&n.error&&n.error("Invalid srcset descriptor found in '"+e+"' at '"+u+"'."):(d.url=o,t&&(d.w=t),r&&(d.d=r),i&&(d.h=i),b.push(d))}}}))}));const{builders:{group:fL,ifBreak:hL,indent:dL,join:mL,line:gL,softline:yL}}=kn,bL=["__","--","_","-"];function vL(e){const t=e.search(/[^_-]/);if(-1!==t)for(const n of bL){const r=e.indexOf(n,t);if(-1!==r)return e.slice(0,r)}return e}var DL={printImgSrcset:function(e){const t=pL(e,{logger:{error(e){throw new Error(e)}}}),n=t.some((({w:e})=>e)),r=t.some((({h:e})=>e));if(n+r+t.some((({d:e})=>e))>1)throw new Error("Mixed descriptor in srcset is not supported");const i=n?"w":r?"h":"d",o=n?"w":r?"h":"x",s=e=>Math.max(...e),a=t.map((e=>e.url)),u=s(a.map((e=>e.length))),c=t.map((e=>e[i])).map((e=>e?e.toString():"")),l=c.map((e=>{const t=e.indexOf(".");return-1===t?e.length:t})),p=s(l);return mL([",",gL],a.map(((e,t)=>{const n=[e],r=c[t];if(r){const i=u-e.length+1,s=p-l[t],a=" ".repeat(i+s);n.push(hL(a," "),r+o)}return n})))},printClassNames:function(e){const t=e.trim().split(/\s+/),n=[];let r;for(let e=0;e<t.length;e++){const i=vL(t[e]);i!==r&&i!==t[e-1]&&n.push([]),Ee(n).push(t[e]),r=i}return[dL([yL,mL(gL,n.map((e=>fL(mL(gL,e)))))]),yL]}};const{builders:{breakParent:CL,dedentToRoot:EL,fill:wL,group:AL,hardline:SL,ifBreak:xL,indentIfBreak:TL,indent:FL,join:NL,line:kL,literalline:_L,softline:OL},utils:{mapDoc:LL,cleanDoc:PL,getDocParts:IL,isConcat:ML}}=kn,{replaceEndOfLineWith:BL,isNonEmptyArray:jL}=zt,{htmlTrimPreserveIndentation:RL,splitByHtmlWhitespace:VL,countChars:$L,countParents:UL,dedentString:WL,forceBreakChildren:qL,forceBreakContent:KL,forceNextEmptyLine:HL,getLastDescendant:YL,getPrettierIgnoreAttributeCommentData:zL,hasPrettierIgnore:JL,inferScriptParser:GL,isVueCustomBlock:QL,isVueNonHtmlBlock:XL,isVueSlotAttribute:ZL,isVueSfcBindingsAttribute:eP,isScriptLikeTag:tP,isTextLikeNode:nP,preferHardlineAsLeadingSpaces:rP,shouldNotPrintClosingTag:iP,shouldPreserveContent:oP,unescapeQuoteEntities:sP,isPreLikeNode:aP}=kO,{insertPragma:uP}={hasPragma:function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}},{locStart:cP,locEnd:lP}={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}},{printVueFor:pP,printVueBindings:fP,isVueEventBindingExpression:hP}=lL,{printImgSrcset:dP,printClassNames:mP}=DL;function gP(e,t,n){const r=e.getValue();if(qL(r))return[CL,...e.map((e=>{const t=e.getValue(),n=t.prev?s(t.prev,t):"";return[n?[n,HL(t.prev)?SL:""]:"",o(e)]}),"children")];const i=r.children.map((()=>Symbol("")));return e.map(((e,t)=>{const n=e.getValue();if(nP(n)){if(n.prev&&nP(n.prev)){const t=s(n.prev,n);if(t)return HL(n.prev)?[SL,SL,o(e)]:[t,o(e)]}return o(e)}const r=[],a=[],u=[],c=[],l=n.prev?s(n.prev,n):"",p=n.next?s(n,n.next):"";return l&&(HL(n.prev)?r.push(SL,SL):l===SL?r.push(SL):nP(n.prev)?a.push(l):a.push(xL("",OL,{groupId:i[t-1]}))),p&&(HL(n)?nP(n.next)&&c.push(SL,SL):p===SL?nP(n.next)&&c.push(SL):u.push(p)),[...r,AL([...a,AL([o(e),...u],{id:i[t]})]),...c]}),"children");function o(e){const r=e.getValue();return JL(r)?[kP(r,t),...BL(t.originalText.slice(cP(r)+(r.prev&&SP(r.prev)?LP(r).length:0),lP(r)-(r.next&&TP(r.next)?MP(r,t).length:0)),_L),OP(r,t)]:n()}function s(e,t){return nP(e)&&nP(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?rP(t)?SL:kL:"":rP(t)?SL:OL:SP(e)&&(JL(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&TP(t)?"":!t.isLeadingSpaceSensitive||rP(t)||TP(t)&&e.lastChild&&NP(e.lastChild)&&e.lastChild.lastChild&&NP(e.lastChild.lastChild)?SL:t.hasLeadingSpaces?kL:OL}}function yP(e,t){let n=e.startSourceSpan.end.offset;e.firstChild&&xP(e.firstChild)&&(n-=PP(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&NP(e.lastChild)?r+=IP(e,t).length:FP(e)&&(r-=MP(e.lastChild,t).length),t.originalText.slice(n,r)}function bP(e,t,n){const r=e.getValue();if(!jL(r.attrs))return r.isSelfClosing?" ":"";const i=r.prev&&"comment"===r.prev.type&&zL(r.prev.value),o="boolean"==typeof i?()=>i:Array.isArray(i)?e=>i.includes(e.rawName):()=>!1,s=e.map((e=>{const r=e.getValue();return o(r)?BL(t.originalText.slice(cP(r),lP(r)),_L):n()}),"attrs"),a="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length,u=[FL([a?" ":kL,NL(kL,s)])];return r.firstChild&&xP(r.firstChild)||r.isSelfClosing&&FP(r.parent)||a?u.push(r.isSelfClosing?" ":""):u.push(r.isSelfClosing?kL:OL),u}function vP(e,t,n){const r=e.getValue();return[DP(r,t),bP(e,t,n),r.isSelfClosing?"":CP(r)]}function DP(e,t){return e.prev&&SP(e.prev)?"":[kP(e,t),LP(e)]}function CP(e){return e.firstChild&&xP(e.firstChild)?"":PP(e)}function EP(e,t){return[e.isSelfClosing?"":wP(e,t),AP(e,t)]}function wP(e,t){return e.lastChild&&NP(e.lastChild)?"":[_P(e,t),IP(e,t)]}function AP(e,t){return(e.next?TP(e.next):FP(e.parent))?"":[MP(e,t),OP(e,t)]}function SP(e){return e.next&&!nP(e.next)&&nP(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function xP(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function TP(e){return e.prev&&"docType"!==e.prev.type&&!nP(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function FP(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!nP(YL(e.lastChild))&&!aP(e)}function NP(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&nP(YL(e))}function kP(e,t){return xP(e)?PP(e.parent):TP(e)?MP(e.prev,t):""}function _P(e,t){return FP(e)?MP(e.lastChild,t):""}function OP(e,t){return NP(e)?IP(e.parent,t):SP(e)?LP(e.next):""}function LP(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 PP(e){switch(tl(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}function IP(e,t){if(tl(!e.isSelfClosing),iP(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function MP(e,t){if(iP(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 BP(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?BL(t,_L):BL(WL(RL(t)),SL):IL(NL(kL,VL(t)))}var jP={preprocess:function(e,t){for(const n of uL)e=n(e,t);return e},print:function(e,t,n){const r=e.getValue();switch(r.type){case"front-matter":return BL(r.raw,_L);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[AL(gP(e,t,n)),SL];case"element":case"ieConditionalComment":{if(oP(r,t))return[kP(r,t),AL(vP(e,t,n)),...BL(yP(r,t),_L),...EP(r,t),OP(r,t)];const o=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return[AL([AL(vP(e,t,n),{id:s}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?kL:"":[KL(r)?CL:"",(i=[o?xL(OL,"",{groupId:s}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?kL:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?EL(OL):OL,gP(e,t,n)],o?TL(i,{groupId:s}):!tP(r)&&!QL(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?FL(i):i),(r.next?TP(r.next):FP(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":o?xL(OL,"",{groupId:s}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?kL:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*UL(e,(e=>e.parent&&"root"!==e.parent.type)),"}$")).test(r.lastChild.value)?"":OL]]),EP(r,t)]}case"ieConditionalStartComment":case"ieConditionalEndComment":return[DP(r),AP(r)];case"interpolation":return[DP(r,t),...e.map(n,"children"),AP(r,t)];case"text":{if("interpolation"===r.parent.type){const e=/\n[^\S\n]*?$/,t=e.test(r.value),n=t?r.value.replace(e,""):r.value;return[...BL(n,_L),t?SL:""]}const e=PL([kP(r,t),...BP(r),OP(r,t)]);return ML(e)||"fill"===e.type?wL(IL(e)):e}case"docType":return[AL([DP(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),AP(r,t)];case"comment":return[kP(r,t),...BL(t.originalText.slice(cP(r),lP(r)),_L),OP(r,t)];case"attribute":{if(null===r.value)return r.rawName;const e=sP(r.value),t=$L(e,"'")<$L(e,'"')?"'":'"';return[r.rawName,"=",t,...BL('"'===t?e.replace(/"/g,"&quot;"):e.replace(/'/g,"&apos;"),_L),t]}default:throw new Error("Unexpected node type ".concat(r.type))}var i},insertPragma:uP,massageAstNode:X_,embed:function(e,t,n,r){const i=e.getValue();switch(i.type){case"element":if(tP(i)||"interpolation"===i.type)return;if(!i.isSelfClosing&&XL(i,r)){const o=GL(i,r);if(!o)return;const s=yP(i,r);let a=/^\s*$/.test(s),u="";return a||(u=n(RL(s),{parser:o,__embeddedInHtml:!0},{stripTrailingHardline:!0}),a=""===u),[kP(i,r),AL(vP(e,r,t)),a?"":SL,u,a?"":SL,EP(i,r),OP(i,r)]}break;case"text":if(tP(i.parent)){const e=GL(i.parent);if(e){const t="markdown"===e?WL(i.value.replace(/^[^\S\n]*?\n/,"")):i.value,o={parser:e,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===e){let e="script";const{attrMap:t}=i.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),o.__babelSourceType=e}return[CL,kP(i,r),n(t,o,{stripTrailingHardline:!0}),OP(i,r)]}}else if("interpolation"===i.parent.type){const e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===r.parser?e.parser="__vue_expression":e.parser="__js_expression",[FL([kL,n(i.value,e,{stripTrailingHardline:!0})]),i.parent.next&&TP(i.parent.next)?" ":kL]}break;case"attribute":{if(!i.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return[i.rawName,"=",i.value];if("lwc"===r.parser&&/^{[\S\s]*}$/.test(r.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return[i.rawName,"=",i.value];const e=function(e,t,n){const r=t=>new RegExp(t.join("|")).test(e.fullName),i=()=>sP(e.value);let o=!1;const s=(e,t)=>{const n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(o=!0)},a=(e,t=!0)=>AL([FL([OL,e]),t?OL:""]),u=e=>o?(e=>AL(e))(e):a(e),c=(e,n)=>t(e,Object.assign({__onHtmlBindingRoot:s,__embeddedInHtml:!0},n));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return a(dP(i()));if("class"===e.fullName&&!n.parentParser){const e=i();if(!e.includes("{{"))return mP(e)}if("style"===e.fullName&&!n.parentParser){const e=i();if(!e.includes("{{"))return a(c(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return pP(i(),c);if(ZL(e)||eP(e,n))return fP(i(),c);const t=["^:","^v-bind:"],o=["^v-"];if(r(["^@","^v-on:"])){const e=i();return u(c(e,{parser:hP(e)?"__js_expression":"__vue_event_binding"}))}if(r(t))return u(c(i(),{parser:"__vue_expression"}));if(r(o))return u(c(i(),{parser:"__js_expression"}))}if("angular"===n.parser){const n=(e,t)=>c(e,Object.assign({},t,{trailingComma:"none"})),o=["^\\*"],s=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],l=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return u(n(i(),{parser:"__ng_action"}));if(r(s))return u(n(i(),{parser:"__ng_binding"}));if(r(l)){const t=i().trim();return a(wL(BP(e,t)),!t.includes("@@"))}if(r(o))return u(n(i(),{parser:"__ng_directive"}));const p=/{{([\S\s]+?)}}/g,f=i();if(p.test(f)){const e=[];for(const[r,i]of f.split(p).entries())if(r%2==0)e.push(BL(i,_L));else try{e.push(AL(["{{",FL([kL,n(i,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),kL,"}}"]))}catch(t){e.push("{{",BL(i,_L),"}}")}return AL(e)}}return null}(i,((e,t)=>n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})),r);if(e)return[i.rawName,'="',AL(LL(e,(e=>"string"==typeof e?e.replace(/"/g,"&quot;"):e))),'"'];break}case"front-matter":return Xx(i,n)}}};const RP="HTML";var VP={htmlWhitespaceSensitivity:{since:"1.15.0",category:RP,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:RP,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},$P={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},UP={languages:[_p($P,(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),_p($P,(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]}))),_p($P,(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),_p({name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))],printers:{html:jP},options:VP,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}};const{getLast:WP,isNonEmptyArray:qP}=zt;function KP(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function HP(e){return"prettier-ignore"===e.value.trim()}function YP(e){return e&&qP(e.leadingComments)}function zP(e){return e&&qP(e.middleComments)}function JP(e){return e&&e.indicatorComment}function GP(e){return e&&e.trailingComment}function QP(e){return e&&qP(e.endComments)}function XP(e){const t=[];let n;for(const r of e.split(/( +)/g))" "!==r?" "===n?t.push(r):t.push((t.pop()||"")+r):void 0===n&&t.unshift(""),n=r;return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var ZP={getLast:WP,getAncestorCount:function(e,t){let n=0;const r=e.stack.length-1;for(let i=0;i<r;i++){const r=e.stack[i];KP(r)&&t(r)&&n++}return n},isNode:KP,isEmptyNode:function(e){return!qP(e.children)&&!function(e){return YP(e)||zP(e)||JP(e)||GP(e)||QP(e)}(e)},isInlineNode:function(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}},mapNode:function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map((r=>e(r,n,t)))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){let n=0;const r=t.length;for(let i=e.position.end.offset-1;i<r;i++){const e=t[i];if("\n"===e&&n++,1===n&&/\S/.test(e))return!1;if(2===n)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}const t=e.stack.length;for(let n=1;n<t;n++){const t=e.stack[n],r=e.stack[n-1];if(Array.isArray(r)&&"number"==typeof t&&t!==r.length-1)return!1}return!0},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:n,options:r}){const i=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\S\s]*)$/)[1],o=null===e.indent?(s=i.match(/^( *)\S/m))?s[1].length:Number.POSITIVE_INFINITY:e.indent-1+t;var s;const a=i.split("\n").map((e=>e.slice(o)));return"preserve"===r.proseWrap||"blockLiteral"===e.type?u(a.map((e=>0===e.length?[]:[e]))):u(a.map((e=>0===e.length?[]:XP(e))).reduce(((e,t,n)=>0!==n&&a[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(WP(e))?[...e.slice(0,-1),[...WP(e),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/.test(WP(e))?[...e.slice(0,-1),WP(e)+" "+t]:[...e,t]),[]))).map((e=>"never"===r.proseWrap?[e.join(" ")]:e)));function u(t){if("keep"===e.chomping)return 0===WP(t).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function(e,t,n){const r=t.split("\n").map(((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?r.map((e=>0===e.length?[]:[e])):r.map((e=>0===e.length?[]:XP(e))).reduce(((t,n,i)=>0!==i&&r[i-1].length>0&&n.length>0&&("quoteDouble"!==e||!WP(WP(t)).endsWith("\\"))?[...t.slice(0,-1),[...WP(t),...n]]:[...t,n]),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))},getLastDescendantNode:function e(t){return qP(t.children)?e(WP(t.children)):t},hasPrettierIgnore:function(e){const t=e.getValue();if("documentBody"===t.type){const t=e.getParentNode();return QP(t.head)&&HP(WP(t.head.endComments))}return YP(t)&&HP(WP(t.leadingComments))},hasLeadingComments:YP,hasMiddleComments:zP,hasIndicatorComment:JP,hasTrailingComment:GP,hasEndComments:QP};const{defineShortcut:eI,mapNode:tI}=ZP;function nI(e){switch(e.type){case"document":eI(e,"head",(()=>e.children[0])),eI(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":eI(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":eI(e,"key",(()=>e.children[0])),eI(e,"value",(()=>e.children[1]))}return e}const{builders:{softline:rI,align:iI}}=kn,{hasEndComments:oI,isNextLineEmpty:sI,isNode:aI}=ZP,uI=new WeakMap;function cI(e){return oI(e)&&!aI(e,["documentHead","documentBody","flowMapping","flowSequence"])}var lI={alignWithSpaces:function(e,t){return iI(" ".repeat(e),t)},shouldPrintEndComments:cI,printNextEmptyLine:function(e,t){const n=e.getValue(),r=e.stack[0];let i;return uI.has(r)?i=uI.get(r):(i=new Set,uI.set(r,i)),i.has(n.position.end.line)||(i.add(n.position.end.line),!sI(n,t)||cI(e.getParentNode()))?"":rI}};const{builders:{ifBreak:pI,line:fI,softline:hI,hardline:dI,join:mI}}=kn,{isEmptyNode:gI,getLast:yI,hasEndComments:bI}=ZP,{printNextEmptyLine:vI,alignWithSpaces:DI}=lI;function CI(e,t,n){const r=e.getValue(),i="flowMapping"===r.type,o=i?"{":"[",s=i?"}":"]";let a=hI;i&&r.children.length>0&&n.bracketSpacing&&(a=fI);const u=yI(r.children),c=u&&"flowMappingItem"===u.type&&gI(u.key)&&gI(u.value);return[o,DI(n.tabWidth,[a,EI(e,t,n),"none"===n.trailingComma?"":pI(","),bI(r)?[dI,mI(dI,e.map(t,"endComments"))]:""]),c?"":a,s]}function EI(e,t,n){const r=e.getValue();return e.map(((e,i)=>[t(),i===r.children.length-1?"":[",",fI,r.children[i].position.start.line!==r.children[i+1].position.start.line?vI(e,n.originalText):""]]),"children")}var wI={printFlowMapping:CI,printFlowSequence:CI};const{builders:{conditionalGroup:AI,group:SI,hardline:xI,ifBreak:TI,join:FI,line:NI}}=kn,{hasLeadingComments:kI,hasMiddleComments:_I,hasTrailingComment:OI,hasEndComments:LI,isNode:PI,isEmptyNode:II,isInlineNode:MI}=ZP,{alignWithSpaces:BI}=lI;function jI(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}}const{builders:{dedent:RI,dedentToRoot:VI,fill:$I,hardline:UI,join:WI,line:qI,literalline:KI,markAsRoot:HI},utils:{getDocParts:YI}}=kn,{getAncestorCount:zI,getBlockValueLineContents:JI,hasIndicatorComment:GI,isLastDescendantNode:QI,isNode:XI}=ZP,{alignWithSpaces:ZI}=lI;const{builders:{breakParent:eM,fill:tM,group:nM,hardline:rM,join:iM,line:oM,lineSuffix:sM,literalline:aM},utils:{getDocParts:uM}}=kn,{replaceEndOfLineWith:cM,isPreviousLineEmpty:lM}=zt,{insertPragma:pM,isPragma:fM}={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}},{locStart:hM}={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},{getFlowScalarLineContents:dM,getLastDescendantNode:mM,hasLeadingComments:gM,hasMiddleComments:yM,hasTrailingComment:bM,hasEndComments:vM,hasPrettierIgnore:DM,isLastDescendantNode:CM,isNode:EM,isInlineNode:wM}=ZP,{alignWithSpaces:AM,printNextEmptyLine:SM,shouldPrintEndComments:xM}=lI,{printFlowMapping:TM,printFlowSequence:FM}=wI;function NM(e,t){return bM(e)||t&&(t.head.children.length>0||vM(t.head))}function kM(e,t,n){const r=dM(e,t,n);return iM(rM,r.map((e=>tM(uM(iM(oM,e))))))}var _M={preprocess:function(e){return tI(e,nI)},embed:function(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}))},print:function(e,t,n){const r=e.getValue(),i=[];"mappingValue"!==r.type&&gM(r)&&i.push([iM(rM,e.map(n,"leadingComments")),rM]);const{tag:o,anchor:s}=r;o&&i.push(n("tag")),o&&s&&i.push(" "),s&&i.push(n("anchor"));let a="";EM(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!CM(e)&&(a=SM(e,t.originalText)),(o||s)&&(EM(r,["sequence","mapping"])&&!yM(r)?i.push(rM):i.push(" ")),yM(r)&&i.push([1===r.middleComments.length?"":rM,iM(rM,e.map(n,"middleComments")),rM]);const u=e.getParentNode();return DM(e)?i.push(cM(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),aM)):i.push(nM(function(e,t,n,r,i){switch(e.type){case"root":{const{children:t}=e,r=[];n.each(((e,n)=>{const o=t[n],s=t[n+1];0!==n&&r.push(rM),r.push(i()),NM(o,s)?(r.push(rM,"..."),bM(o)&&r.push(" ",i("trailingComment"))):s&&!bM(s.head)&&r.push(rM,"---")}),"children");const o=mM(e);return EM(o,["blockLiteral","blockFolded"])&&"keep"===o.chomping||r.push(rM),r}case"document":{const o=[];return"head"===function(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(hM(e),hM(e)+4))||e.head.children.length>0||vM(e.head)||bM(e.head)?"head":!NM(e,t)&&!!t&&"root"}(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&o.push(i("head")),bM(e.head)?o.push(["---"," ",i(["head","trailingComment"])]):o.push("---")),function(e){return e.body.children.length>0||vM(e.body)}(e)&&o.push(i("body")),iM(rM,o)}case"documentHead":return iM(rM,[...n.map(i,"children"),...n.map(i,"endComments")]);case"documentBody":{const{children:t,endComments:r}=e;let o="";if(t.length>0&&r.length>0){const t=mM(e);EM(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(o=[rM,rM]):o=rM}return[iM(rM,n.map(i,"children")),o,iM(rM,n.map(i,"endComments"))]}case"directive":return["%",iM(" ",[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 kM(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":{const t="'",n='"',i=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&i.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(i)){const o="quoteDouble"===e.type?n:t;return[o,kM(e.type,i,r),o]}if(i.includes(n))return[t,kM(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,n).replace(/'/g,t.repeat(2)):i,r),t];if(i.includes(t))return[n,kM(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,r),n];const o=r.singleQuote?t:n;return[o,kM(e.type,i,r),o]}case"blockFolded":case"blockLiteral":return function(e,t,n){const r=e.getValue(),i=zI(e,(e=>XI(e,["sequence","mapping"]))),o=QI(e),s=["blockFolded"===r.type?">":"|"];null!==r.indent&&s.push(r.indent.toString()),"clip"!==r.chomping&&s.push("keep"===r.chomping?"+":"-"),GI(r)&&s.push(" ",t("indicatorComment"));const a=JI(r,{parentIndent:i,isLastDescendant:o,options:n}),u=[];for(const[e,t]of a.entries())0===e&&u.push(UI),u.push($I(YI(WI(qI,t)))),e!==a.length-1?u.push(0===t.length?UI:HI(KI)):"keep"===r.chomping&&o&&u.push(VI(0===t.length?UI:KI));return null===r.indent?s.push(RI(ZI(n.tabWidth,u))):s.push(VI(ZI(r.indent-1+i,u))),s}(n,i,r);case"mapping":case"sequence":return iM(rM,n.map(i,"children"));case"sequenceItem":return["- ",AM(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return function(e,t,n,r,i){const{key:o,value:s}=e,a=II(o),u=II(s);if(a&&u)return": ";const c=r("key"),l=function(e){return e.key.content&&"alias"===e.key.content.type}(e)?" ":"";if(u)return"flowMappingItem"===e.type&&"flowMapping"===t.type?c:"mappingItem"!==e.type||!jI(o.content,i)||OI(o.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",BI(2,c)]:[c,l,":"];const p=r("value");if(a)return[": ",BI(2,p)];if(kI(s)||!MI(o.content))return["? ",BI(2,c),xI,FI("",n.map(r,"value","leadingComments").map((e=>[e,xI]))),": ",BI(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(o.content)&&!kI(o.content)&&!_I(o.content)&&!OI(o.content)&&!LI(o)&&!kI(s.content)&&!_I(s.content)&&!LI(s)&&jI(s.content,i))return[c,l,": ",p];const f=Symbol("mappingKey"),h=SI([TI("? "),SI(BI(2,c),{id:f})]),d=[xI,": ",BI(2,p)],m=[l,":"];kI(s.content)||LI(s)&&s.content&&!PI(s.content,["mapping","sequence"])||"mapping"===t.type&&OI(o.content)&&MI(s.content)||PI(s.content,["mapping","sequence"])&&null===s.content.tag&&null===s.content.anchor?m.push(xI):s.content&&m.push(NI),m.push(p);const g=BI(i.tabWidth,m);return AI([[h,TI(d,g,{groupId:f})]])}(e,t,n,i,r);case"flowMapping":return TM(n,i,r);case"flowSequence":return FM(n,i,r);case"flowSequenceItem":return i("content");default:throw new Error("Unexpected node type ".concat(e.type))}}(r,u,e,t,n))),bM(r)&&!EM(r,["document","documentHead"])&&i.push(sM(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===u.type&&"mapping"===e.getParentNode(2).type&&wM(r)?"":eM,n("trailingComment")])),xM(r)&&i.push(AM("sequenceItem"===r.type?2:0,[rM,iM(rM,e.map((e=>[lM(t.originalText,e.getValue(),hM)?rM:"",n()]),"endComments"))])),i.push(a),i},massageAstNode:function(e,t){if(EM(t))switch(delete t.position,t.type){case"comment":if(fM(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:pM},OM={bracketSpacing:Vx.bracketSpacing,singleQuote:Vx.singleQuote,proseWrap:Vx.proseWrap},LM=[Kx,HF,tk,Dk,z_,UP,{languages:[_p({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","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter((e=>"yarn.lock"!==e)),".prettierrc"]})))],printers:{yaml:_M},options:OM,parsers:{get yaml(){return{}.parsers.yaml}}}];const{version:PM}=r,{getSupportInfo:IM}=Nt,MM=LM.map((t=>e(t,["parsers"])));function BM(e,t=1){return(...n)=>{const r=n[t]||{},i=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[...MM,...Array.isArray(i)?i:Object.values(i)]}),e(...n)}}const jM=BM(sp.formatWithCursor);return{formatWithCursor:jM,format:(e,t)=>jM(e,t).formatted,check(e,t){const{formatted:n}=jM(e,t);return n===e},doc:kn,getSupportInfo:BM(IM,0),version:PM,util:kp,__debug:{parse:BM(sp.parse),formatAST:BM(sp.formatAST),formatDoc:BM(sp.formatDoc),printToDoc:BM(sp.printToDoc),printDocToString:BM(sp.printDocToString)}}}()}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,i.d(o,s),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.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)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){var n;(n=t)instanceof o||n instanceof Error&&n.name===r&&n.message===r||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const r="Canceled";class o extends Error{constructor(){super(r),this.name=this.message}}function s(e){const t=this;let n,r=!1;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var a;Error,function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.equals=function(e,t,n=((e,t)=>e===t)){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=r.next(),t=i.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(a||(a={}));var u;class c extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function l(e){if(a.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new c(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function p(e){const t={dispose:s((()=>{e()}))};return t}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{l(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?f.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}}f.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new f,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0)},this}}class m{constructor(e){this.element=e,this.next=m.Undefined,this.prev=m.Undefined}}m.Undefined=new m(void 0);class g{constructor(){this._first=m.Undefined,this._last=m.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===m.Undefined}clear(){let e=this._first;for(;e!==m.Undefined;){const t=e.next;e.prev=m.Undefined,e.next=m.Undefined,e=t}this._first=m.Undefined,this._last=m.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new m(e);if(this._first===m.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!==m.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==m.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==m.Undefined&&e.next!==m.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===m.Undefined&&e.next===m.Undefined?(this._first=m.Undefined,this._last=m.Undefined):e.next===m.Undefined?(this._last=this._last.prev,this._last.next=m.Undefined):e.prev===m.Undefined&&(this._first=this._first.next,this._first.prev=m.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==m.Undefined;)yield e.element,e=e.next}}const y="en";let b,v,D=!1,C=!1,E=!1,w=!1,A=!1,S=!1,x=!1,T=!1,F=!1,N=null,k=null;const _="object"==typeof self?self:"object"==typeof i.g?i.g:{};let O;void 0!==_.vscode&&void 0!==_.vscode.process?O=_.vscode.process:"undefined"!=typeof process&&(O=process);const L="string"==typeof(null===(u=null==O?void 0:O.versions)||void 0===u?void 0:u.electron),P=L&&"renderer"===(null==O?void 0:O.type);if("object"!=typeof navigator||P)if("object"==typeof O){D="win32"===O.platform,C="darwin"===O.platform,E="linux"===O.platform,w=E&&!!O.env.SNAP&&!!O.env.SNAP_REVISION,x=L,F=!!O.env.CI||!!O.env.BUILD_ARTIFACTSTAGINGDIRECTORY,b=y,N=y;const e=O.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];b=t.locale,N=n||y,k=t._translationsConfigFile}catch(e){}A=!0}else console.error("Unable to resolve platform.");else v=navigator.userAgent,D=v.indexOf("Windows")>=0,C=v.indexOf("Macintosh")>=0,(v.indexOf("Macintosh")>=0||v.indexOf("iPad")>=0||v.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,E=v.indexOf("Linux")>=0,S=!0,b=navigator.language,N=b;let I=0;C?I=1:D?I=3:E&&(I=2);const M=D,B=C,j=(S&&_.importScripts,v);(()=>{if("function"==typeof _.postMessage&&!_.importScripts){let e=[];_.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}})();const R=!!(j&&j.indexOf("Chrome")>=0),V=(j&&j.indexOf("Firefox"),!R&&j&&j.indexOf("Safari"),j&&j.indexOf("Edg/"),j&&j.indexOf("Android"),_.performance&&"function"==typeof _.performance.now);class ${constructor(e){this._highResolution=V&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new $(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?_.performance.now():Date.now()}}var U,W;!function(e){function t(e){return(t,n=null,r)=>{let i,o=!1;return i=e((e=>{if(!o)return i?i.dispose():o=!0,t.call(n,e)}),null,r),o&&i.dispose(),i}}function n(e,t,n){return s(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)),n)}function r(e,t,n){return s(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)),n)}function i(e,t,n){return s(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)),n)}function o(e,t,r,i){let o=r;return n(e,(e=>(o=t(o,e),o)),i)}function s(e,t){let n;const r=new Y({onFirstListenerAdd(){n=e(r.fire,r)},onLastListenerRemove(){n.dispose()}});return t&&t.add(r),r.event}function a(e,t,n=100,r=!1,i,o){let s,a,u,c=0;const l=new Y({leakWarningThreshold:i,onFirstListenerAdd(){s=e((e=>{c++,a=t(a,e),r&&!u&&(l.fire(a),a=void 0),clearTimeout(u),u=setTimeout((()=>{const e=a;a=void 0,u=void 0,(!r||c>1)&&l.fire(e),c=0}),n)}))},onLastListenerRemove(){s.dispose()}});return o&&o.add(l),l.event}function u(e,t=((e,t)=>e===t),n){let r,o=!0;return i(e,(e=>{const n=o||!t(e,r);return o=!1,r=e,n}),n)}e.None=()=>h.None,e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(...e){return p((()=>l(e)))}(...e.map((e=>e((e=>t.call(n,e)),null,r))))},e.reduce=o,e.debounce=a,e.latch=u,e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e((e=>{r?r.push(e):s.fire(e)}));const o=()=>{r&&r.forEach((e=>s.fire(e))),r=null},s=new Y({onFirstListenerAdd(){i||(i=e((e=>s.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){i&&i.dispose(),i=null}});return s.event};class c{constructor(e){this.event=e}map(e){return new c(n(this.event,e))}forEach(e){return new c(r(this.event,e))}filter(e){return new c(i(this.event,e))}reduce(e,t){return new c(o(this.event,e,t))}latch(){return new c(u(this.event))}debounce(e,t=100,n=!1,r){return new c(a(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new Y({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new Y({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))},e.runAndSubscribeWithStore=function(e,t){let n=null;function r(e){null==n||n.dispose(),n=new f,t(e,n)}r(void 0);const i=e((e=>r(e)));return p((()=>{i.dispose(),null==n||n.dispose()}))}}(U||(U={}));class q{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${q._idPool++}`}start(e){this._stopWatch=new $(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}q._idPool=0;class K{constructor(e){this.value=e}static create(){var e;return new K(null!==(e=(new Error).stack)&&void 0!==e?e:"")}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class H{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new d}invoke(e){this.callback.call(this.callbackThis,e)}}class Y{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new q(this._options._profName):void 0}dispose(){var e,t,n,r;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),null===(e=this._deliveryQueue)||void 0===e||e.clear(),null===(n=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===n||n.call(t),null===(r=this._leakageMon)||void 0===r||r.dispose())}get event(){return this._event||(this._event=(e,t,n)=>{var r,i,o;this._listeners||(this._listeners=new g);const s=this._listeners.isEmpty();let a,u;s&&(null===(r=this._options)||void 0===r?void 0:r.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this),this._leakageMon&&this._listeners.size>=30&&(u=K.create(),a=this._leakageMon.check(u,this._listeners.size+1));const c=new H(e,t,u),l=this._listeners.push(c);s&&(null===(i=this._options)||void 0===i?void 0:i.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),(null===(o=this._options)||void 0===o?void 0:o.onListenerDidAdd)&&this._options.onListenerDidAdd(this,e,t);const p=c.subscription.set((()=>{a&&a(),!this._disposed&&(l(),this._options&&this._options.onLastListenerRemove)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this))}));return n instanceof f?n.add(p):Array.isArray(n)&&n.push(p),p}),this._event}fire(e){var n,r;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new g);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(n=this._perfMon)||void 0===n||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,n]=this._deliveryQueue.shift();try{e.invoke(n)}catch(e){t(e)}}null===(r=this._perfMon)||void 0===r||r.stop()}}}function z(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function J(e,t="Unreachable"){throw new Error(t)}class G{constructor(e){this.executor=e,this._didRun=!1}getValue(){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}}function Q(e){return e>=65&&e<=90}function X(e){return 55296<=e&&e<=56319}function Z(e){return 56320<=e&&e<=57343}function ee(e,t){return t-56320+(e-55296<<10)+65536}function te(e,t,n){const r=e.charCodeAt(n);if(X(r)&&n+1<t){const t=e.charCodeAt(n+1);if(Z(t))return ee(r,t)}return r}const ne=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class re{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]")}static getInstance(){return re._INSTANCE||(re._INSTANCE=new re),re._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}re._INSTANCE=null;class ie{constructor(e){this.confusableDictionary=e}static getInstance(e){return ie.cache.get(Array.from(e))}static getLocales(){return ie._locales.getValue()}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}W=ie,ie.ambiguousCharacterData=new G((()=>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],"_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]}'))),ie.cache=new class{constructor(e){this.computeFn=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.computeFn(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=W.ambiguousCharacterData.getValue();let i,o=e.filter((e=>!e.startsWith("_")&&e in r));0===o.length&&(o=["_default"]);for(const e of o)i=n(i,t(r[e]));const s=function(e,t){const n=new Map(e);for(const[e,r]of t)n.set(e,r);return n}(t(r._common),i);return new ie(s)})),ie._locales=new G((()=>Object.keys(ie.ambiguousCharacterData.getValue()).filter((e=>!e.startsWith("_")))));class oe{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(oe.getRawData())),this._data}static isInvisibleCharacter(e){return oe.getData().has(e)}static get codePoints(){return oe.getData()}}oe._data=void 0;let se;class ae{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class ue{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class ce{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class le{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class pe{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 ae(this._workerId,n,e,t))}))}listen(e,t){let n=null;const r=new Y({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new ce(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new pe(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");let 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){let t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new ue(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new ue(this._workerId,t,void 0,n(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new le(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){let 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 he(e){return"o"===e[0]&&"n"===e[1]&&Q(e.charCodeAt(2))}function de(e){return/^onDynamic/.test(e)&&Q(e.charCodeAt(9))}class me{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("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(de(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(he(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=function(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)};let o={};for(const t of e)de(t)?o[t]=i(t):he(t)?o[t]=n(t,void 0):o[t]=r(t);return o}(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(z(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,_.require.config(t)),new Promise(((e,t)=>{(0,_.require)([n],(n=>{this._requestHandler=n.create(i),this._requestHandler?e(z(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class ge{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 ye(e,t){return(t<<5)-t+e|0}function be(e,t){t=ye(149417,t);for(let n=0,r=e.length;n<r;n++)t=ye(e.charCodeAt(n),t);return t}function ve(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function De(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function Ce(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class Ee{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,i,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(r=s,i=-1,s=0):(r=e.charCodeAt(0),i=0);;){let a=r;if(X(r)){if(!(i+1<t)){s=r;break}{const t=e.charCodeAt(i+1);Z(t)?(i++,a=ee(r,t)):a=65533}}else Z(r)&&(a=65533);if(o=this._push(n,o,a),i++,!(i<t))break;r=e.charCodeAt(i)}this._buffLen=o,this._leftoverHighSurrogate=s}_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()),Ce(this._h0)+Ce(this._h1)+Ce(this._h2)+Ce(this._h3)+Ce(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,De(this._buff,this._buffLen),this._buffLen>56&&(this._step(),De(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=Ee._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,ve(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,r,i,o=this._h0,s=this._h1,a=this._h2,u=this._h3,c=this._h4;for(let t=0;t<80;t++)t<20?(n=s&a|~s&u,r=1518500249):t<40?(n=s^a^u,r=1859775393):t<60?(n=s&a|s&u|a&u,r=2400959708):(n=s^a^u,r=3395469782),i=ve(o,5)+n+c+r+e.getUint32(4*t,!1)&4294967295,c=u,u=a,a=ve(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+c&4294967295}}Ee._bigBlock32=new DataView(new ArrayBuffer(320));class we{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 Ae(e,t,n){return new Fe(new we(e),new we(t)).ComputeDiff(n).changes}class Se{static Assert(e,t){if(!e)throw new Error(t)}}class xe{static Copy(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}static Copy2(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}}class Te{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 ge(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 Fe{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,o]=Fe._getElements(e),[s,a,u]=Fe._getElements(t);this._hasStrings=o&&u,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(Fe._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=be(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){return!!this.ElementsAreEqual(e,t)&&Fe._getStrictElement(this._originalSequence,e)===Fe._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 o=[!1];let s=this.ComputeDiffRecursive(e,t,n,r,o);return i&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}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?(Se.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new ge(e,0,n,r-n+1)]):e<=t?(Se.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new ge(e,t-e+1,n,0)]):(Se.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Se.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,o,s,i),u=o[0],c=s[0];if(null!==a)return a;if(!i[0]){const o=this.ComputeDiffRecursive(e,u,n,c,i);let s=[];return s=i[0]?[new ge(u+1,t-(u+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(u+1,t,c+1,r,i),this.ConcatenateChanges(o,s)}return[new ge(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,o,s,a,u,c,l,p,f,h,d,m,g,y){let b=null,v=null,D=new Te,C=t,E=n,w=f[0]-m[0]-r,A=-1073741824,S=this.m_forwardHistory.length-1;do{const t=w+e;t===C||t<E&&u[t-1]<u[t+1]?(h=(l=u[t+1])-w-r,l<A&&D.MarkNextChange(),A=l,D.AddModifiedElement(l+1,h),w=t+1-e):(h=(l=u[t-1]+1)-w-r,l<A&&D.MarkNextChange(),A=l-1,D.AddOriginalElement(l,h+1),w=t-1-e),S>=0&&(e=(u=this.m_forwardHistory[S])[0],C=1,E=u.length-1)}while(--S>=-1);if(b=D.getReverseChanges(),y[0]){let e=f[0]+1,t=m[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}v=[new ge(e,p-e+1,t,d-t+1)]}else{D=new Te,C=o,E=s,w=f[0]-m[0]-a,A=1073741824,S=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+i;e===C||e<E&&c[e-1]>=c[e+1]?(h=(l=c[e+1]-1)-w-a,l>A&&D.MarkNextChange(),A=l+1,D.AddOriginalElement(l+1,h+1),w=e+1-i):(h=(l=c[e-1])-w-a,l>A&&D.MarkNextChange(),A=l,D.AddModifiedElement(l+1,h+1),w=e-1-i),S>=0&&(i=(c=this.m_reverseHistory[S])[0],C=1,E=c.length-1)}while(--S>=-1);v=D.getChanges()}return this.ConcatenateChanges(b,v)}ComputeRecursionPoint(e,t,n,r,i,o,s){let a=0,u=0,c=0,l=0,p=0,f=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const h=t-e+(r-n),d=h+1,m=new Int32Array(d),g=new Int32Array(d),y=r-n,b=t-e,v=e-n,D=t-r,C=(b-y)%2==0;m[y]=e,g[b]=t,s[0]=!1;for(let E=1;E<=h/2+1;E++){let h=0,w=0;c=this.ClipDiagonalBound(y-E,E,y,d),l=this.ClipDiagonalBound(y+E,E,y,d);for(let e=c;e<=l;e+=2){a=e===c||e<l&&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>h+w&&(h=a,w=u),!C&&Math.abs(e-b)<=E-1&&a>=g[e])return i[0]=a,o[0]=u,n<=g[e]&&E<=1448?this.WALKTRACE(y,c,l,v,b,p,f,D,m,g,a,t,i,u,r,o,C,s):null}const A=(h-e+(w-n)-E)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(h,A))return s[0]=!0,i[0]=h,o[0]=w,A>0&&E<=1448?this.WALKTRACE(y,c,l,v,b,p,f,D,m,g,a,t,i,u,r,o,C,s):(e++,n++,[new ge(e,t-e+1,n,r-n+1)]);p=this.ClipDiagonalBound(b-E,E,b,d),f=this.ClipDiagonalBound(b+E,E,b,d);for(let h=p;h<=f;h+=2){a=h===p||h<f&&g[h-1]>=g[h+1]?g[h+1]-1:g[h-1],u=a-(h-b)-D;const d=a;for(;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(g[h]=a,C&&Math.abs(h-y)<=E&&a<=m[h])return i[0]=a,o[0]=u,d>=m[h]&&E<=1448?this.WALKTRACE(y,c,l,v,b,p,f,D,m,g,a,t,i,u,r,o,C,s):null}if(E<=1447){let e=new Int32Array(l-c+2);e[0]=y-c+1,xe.Copy2(m,c,e,1,l-c+1),this.m_forwardHistory.push(e),e=new Int32Array(f-p+2),e[0]=b-p+1,xe.Copy2(g,p,e,1,f-p+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,c,l,v,b,p,f,D,m,g,a,t,i,u,r,o,C,s)}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,o=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||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++}let 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 o=n.originalLength>0,s=n.modifiedLength>0;let a=0,u=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<i)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const l=(t===r&&c===i?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);l>u&&(u=l,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,o=n.originalStart,s=r.originalStart+r.originalLength,a=s-o,u=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,l=c-u;if(i<5&&a<20&&l<20){const e=this._findBetterContiguousSequence(o,a,u,l,i);if(e){const[t,o]=e;t===n.originalStart+n.originalLength&&o===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=o-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=o+i,r.originalLength=s-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const o=e+t-i+1,s=n+r-i+1;let a=0,u=0,c=0;for(let t=e;t<o;t++)for(let e=n;e<s;e++){const n=this._contiguousSequenceScore(t,e,i);n>0&&n>a&&(a=n,u=t,c=e)}return a>0?[u,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<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){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return xe.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],xe.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return xe.Copy(e,0,n,0,e.length),xe.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Se.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Se.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new ge(r,i,o,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2==0;return e<0?i===(n%2==0)?0:1:i===((r-n-1)%2==0)?r-1:r-2}}if(void 0!==_.vscode&&void 0!==_.vscode.process){const e=_.vscode.process;se={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else se="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return M?"win32":B?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const Ne=se.cwd,ke=se.env,_e=se.platform,Oe=46,Le=47,Pe=92,Ie=58;class Me 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 o=`The "${e}" ${i} ${r} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function Be(e,t){if("string"!=typeof e)throw new Me(t,"string",e)}function je(e){return e===Le||e===Pe}function Re(e){return e===Le}function Ve(e){return e>=65&&e<=90||e>=97&&e<=122}function $e(e,t,n,r){let i="",o=0,s=-1,a=0,u=0;for(let c=0;c<=e.length;++c){if(c<e.length)u=e.charCodeAt(c);else{if(r(u))break;u=Le}if(r(u)){if(s===c-1||1===a);else if(2===a){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==Oe||i.charCodeAt(i.length-2)!==Oe){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):(i=i.slice(0,e),o=i.length-1-i.lastIndexOf(n)),s=c,a=0;continue}if(0!==i.length){i="",o=0,s=c,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",o=2)}else i.length>0?i+=`${n}${e.slice(s+1,c)}`:i=e.slice(s+1,c),o=c-s-1;s=c,a=0}else u===Oe&&-1!==a?++a:a=-1}return i}function Ue(e,t){if(null===t||"object"!=typeof t)throw new Me("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const We={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],Be(o,"path"),0===o.length)continue}else 0===t.length?o=Ne():(o=ke[`=${t}`]||Ne(),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Pe)&&(o=`${t}\\`));const s=o.length;let a=0,u="",c=!1;const l=o.charCodeAt(0);if(1===s)je(l)&&(a=1,c=!0);else if(je(l))if(c=!0,je(o.charCodeAt(1))){let e=2,t=e;for(;e<s&&!je(o.charCodeAt(e));)e++;if(e<s&&e!==t){const n=o.slice(t,e);for(t=e;e<s&&je(o.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!je(o.charCodeAt(e));)e++;e!==s&&e===t||(u=`\\\\${n}\\${o.slice(t,e)}`,a=e)}}}else a=1;else Ve(l)&&o.charCodeAt(1)===Ie&&(u=o.slice(0,2),a=2,s>2&&je(o.charCodeAt(2))&&(c=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,r=c,c&&t.length>0)break}return n=$e(n,!r,"\\",je),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Be(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const o=e.charCodeAt(0);if(1===t)return Re(o)?"\\":e;if(je(o))if(i=!0,je(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!je(e.charCodeAt(i));)i++;if(i<t&&i!==o){const s=e.slice(o,i);for(o=i;i<t&&je(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!je(e.charCodeAt(i));)i++;if(i===t)return`\\\\${s}\\${e.slice(o)}\\`;i!==o&&(n=`\\\\${s}\\${e.slice(o,i)}`,r=i)}}}else r=1;else Ve(o)&&e.charCodeAt(1)===Ie&&(n=e.slice(0,2),r=2,t>2&&je(e.charCodeAt(2))&&(i=!0,r=3));let s=r<t?$e(e.slice(r),!i,"\\",je):"";return 0!==s.length||i||(s="."),s.length>0&&je(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?i?`\\${s}`:s:i?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){Be(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return je(n)||t>2&&Ve(n)&&e.charCodeAt(1)===Ie&&je(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){const i=e[r];Be(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&je(n.charCodeAt(0))){++i;const e=n.length;e>1&&je(n.charCodeAt(1))&&(++i,e>2&&(je(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&je(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return We.normalize(t)},relative(e,t){if(Be(e,"from"),Be(t,"to"),e===t)return"";const n=We.resolve(e),r=We.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Pe;)i++;let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===Pe;)o--;const s=o-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===Pe;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Pe;)u--;const c=u-a,l=s<c?s:c;let p=-1,f=0;for(;f<l;f++){const n=e.charCodeAt(i+f);if(n!==t.charCodeAt(a+f))break;n===Pe&&(p=f)}if(f!==l){if(-1===p)return r}else{if(c>l){if(t.charCodeAt(a+f)===Pe)return r.slice(a+f+1);if(2===f)return r.slice(a+f)}s>l&&(e.charCodeAt(i+f)===Pe?p=f:2===f&&(p=3)),-1===p&&(p=0)}let h="";for(f=i+p+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==Pe||(h+=0===h.length?"..":"\\..");return a+=p,h.length>0?`${h}${r.slice(a,u)}`:(r.charCodeAt(a)===Pe&&++a,r.slice(a,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=We.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Pe){if(t.charCodeAt(1)===Pe){const e=t.charCodeAt(2);if(63!==e&&e!==Oe)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ve(t.charCodeAt(0))&&t.charCodeAt(1)===Ie&&t.charCodeAt(2)===Pe)return`\\\\?\\${t}`;return e},dirname(e){Be(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return je(i)?e:".";if(je(i)){if(n=r=1,je(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!je(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&je(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!je(e.charCodeAt(i));)i++;if(i===t)return e;i!==o&&(n=r=i+1)}}}}else Ve(i)&&e.charCodeAt(1)===Ie&&(n=t>2&&je(e.charCodeAt(2))?3:2,r=n);let o=-1,s=!0;for(let n=t-1;n>=r;--n)if(je(e.charCodeAt(n))){if(!s){o=n;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&Be(t,"ext"),Be(e,"path");let n,r=0,i=-1,o=!0;if(e.length>=2&&Ve(e.charCodeAt(0))&&e.charCodeAt(1)===Ie&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const u=e.charCodeAt(n);if(je(u)){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(je(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){Be(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===Ie&&Ve(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(je(t)){if(!o){r=a+1;break}}else-1===i&&(o=!1,i=a+1),t===Oe?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Ue.bind(null,"\\"),parse(e){Be(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 je(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(je(i)){if(r=1,je(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!je(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&je(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!je(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(Ve(i)&&e.charCodeAt(1)===Ie){if(n<=2)return t.root=t.dir=e,t;if(r=2,je(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let o=-1,s=r,a=-1,u=!0,c=e.length-1,l=0;for(;c>=r;--c)if(i=e.charCodeAt(c),je(i)){if(!u){s=c+1;break}}else-1===a&&(u=!1,a=c+1),i===Oe?-1===o?o=c:1!==l&&(l=1):-1!==o&&(l=-1);return-1!==a&&(-1===o||0===l||1===l&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==r?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},qe={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Ne();Be(i,"path"),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Le)}return t=$e(t,!n,"/",Re),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Be(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Le,n=e.charCodeAt(e.length-1)===Le;return 0===(e=$e(e,!t,"/",Re)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(Be(e,"path"),e.length>0&&e.charCodeAt(0)===Le),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];Be(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":qe.normalize(t)},relative(e,t){if(Be(e,"from"),Be(t,"to"),e===t)return"";if((e=qe.resolve(e))===(t=qe.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,o=r<i?r:i;let s=-1,a=0;for(;a<o;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===Le&&(s=a)}if(a===o)if(i>o){if(t.charCodeAt(1+a)===Le)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>o&&(e.charCodeAt(1+a)===Le?s=a:0===a&&(s=0));let u="";for(a=1+s+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Le||(u+=0===u.length?"..":"/..");return`${u}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(Be(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Le;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===Le){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&Be(t,"ext"),Be(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(u===Le){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Le){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){Be(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==Le)-1===r&&(i=!1,r=s+1),a===Oe?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Ue.bind(null,"/"),parse(e){Be(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Le;let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,s=-1,a=!0,u=e.length-1,c=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(t!==Le)-1===s&&(a=!1,s=u+1),t===Oe?-1===i?i=u:1!==c&&(c=1):-1!==i&&(c=-1);else if(!a){o=u+1;break}}if(-1!==s){const r=0===o&&n?1:o;-1===i||0===c||1===c&&i===s-1&&i===o+1?t.base=t.name=e.slice(r,s):(t.name=e.slice(r,i),t.base=e.slice(r,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};qe.win32=We.win32=We,qe.posix=We.posix=qe,"win32"===_e?We.normalize:qe.normalize,"win32"===_e?We.resolve:qe.resolve,"win32"===_e?We.relative:qe.relative,"win32"===_e?We.dirname:qe.dirname,"win32"===_e?We.basename:qe.basename,"win32"===_e?We.extname:qe.extname,"win32"===_e?We.sep:qe.sep;const Ke=/^\w[\w\d+.-]*$/,He=/^\//,Ye=/^\/\//;function ze(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ke.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!He.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Ye.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 Je="",Ge="/",Qe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Xe{constructor(e,t,n,r,i,o=!1){"object"==typeof e?(this.scheme=e.scheme||Je,this.authority=e.authority||Je,this.path=e.path||Je,this.query=e.query||Je,this.fragment=e.fragment||Je):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||Je,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ge&&(t=Ge+t):t=Ge}return t}(this.scheme,n||Je),this.query=r||Je,this.fragment=i||Je,ze(this,o))}static isUri(e){return e instanceof Xe||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return it(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=Je),void 0===n?n=this.authority:null===n&&(n=Je),void 0===r?r=this.path:null===r&&(r=Je),void 0===i?i=this.query:null===i&&(i=Je),void 0===o?o=this.fragment:null===o&&(o=Je),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new et(t,n,r,i,o)}static parse(e,t=!1){const n=Qe.exec(e);return n?new et(n[2]||Je,ut(n[4]||Je),ut(n[5]||Je),ut(n[7]||Je),ut(n[9]||Je),t):new et(Je,Je,Je,Je,Je)}static file(e){let t=Je;if(M&&(e=e.replace(/\\/g,Ge)),e[0]===Ge&&e[1]===Ge){const n=e.indexOf(Ge,2);-1===n?(t=e.substring(2),e=Ge):(t=e.substring(2,n),e=e.substring(n)||Ge)}return new et("file",t,e,Je,Je)}static from(e){const t=new et(e.scheme,e.authority,e.path,e.query,e.fragment);return ze(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=M&&"file"===e.scheme?Xe.file(We.join(it(e,!0),...t)).path:qe.join(e.path,...t),e.with({path:n})}toString(e=!1){return ot(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Xe)return e;{const t=new et(e);return t._formatted=e.external,t._fsPath=e._sep===Ze?e.fsPath:null,t}}return e}}const Ze=M?1:void 0;class et extends Xe{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=it(this,!1)),this._fsPath}toString(e=!1){return e?ot(this,!0):(this._formatted||(this._formatted=ot(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Ze),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 tt={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 nt(e,t){let n,r=-1;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=tt[o];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rt(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+=tt[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function it(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,M&&(n=n.replace(/\//g,"\\")),n}function ot(e,t){const n=t?rt:nt;let r="",{scheme:i,authority:o,path:s,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=Ge,r+=Ge),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.indexOf(":"),-1===e?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}o=o.toLowerCase(),e=o.indexOf(":"),-1===e?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:nt(u,!1)),r}function st(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+st(e.substr(3)):e}}const at=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ut(e){return e.match(at)?e.replace(at,(e=>st(e))):e}class ct{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ct(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ct.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ct.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return ct.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;return n===r?(0|e.column)-(0|t.column):n-r}clone(){return new ct(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new ct(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}class lt{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 lt.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return lt.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 lt.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 lt.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 lt.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;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,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new lt(n,r,i,o)}intersectRanges(e){return lt.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<s?(n=s,r=a):n===s&&(r=Math.max(r,a)),i>u?(i=u,o=c):i===u&&(o=Math.min(o,c)),n>i||n===i&&r>o?null:new lt(n,r,i,o)}equalsRange(e){return lt.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return lt.getEndPosition(this)}static getEndPosition(e){return new ct(e.endLineNumber,e.endColumn)}getStartPosition(){return lt.getStartPosition(this)}static getStartPosition(e){return new ct(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new lt(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new lt(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return lt.collapseToStart(this)}static collapseToStart(e){return new lt(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new lt(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new lt(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;return n===r?(0|e.endColumn)-(0|t.endColumn):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}}function pt(e,t,n,r){return new Fe(e,t,n).ComputeDiff(r)}class ft{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=yt(e[r],1),n[r]=bt(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=[],o=[];let s=0;for(let a=t;a<=n;a++){const t=this.lines[a],n=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=n;e<u;e++)r[s]=t.charCodeAt(e-1),i[s]=a+1,o[s]=e,s++}return new ht(r,i,o)}}class ht{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class dt{constructor(e,t,n,r,i,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let r,i,o,s,a,u,c,l;return 0===e.originalLength?(r=0,i=0,o=0,s=0):(r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(a=0,u=0,c=0,l=0):(a=n.getStartLineNumber(e.modifiedStart),u=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),l=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new dt(r,i,o,s,a,u,c,l)}}class mt{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,o,s){let a,u,c,l,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?(c=r.getStartLineNumber(t.modifiedStart)-1,l=0):(c=r.getStartLineNumber(t.modifiedStart),l=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let u=pt(o,a,i,!0).changes;s&&(u=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],o=i.originalStart-(n.originalStart+n.originalLength),s=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,s)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}(u)),p=[];for(let e=0,t=u.length;e<t;e++)p.push(dt.createFromDiffChange(u[e],o,a))}return new mt(a,u,c,l,p)}}class gt{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 ft(e),this.modified=new ft(t),this.continueLineDiff=vt(n.maxComputationTime),this.continueCharDiff=vt(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:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber: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:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=pt(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(mt.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,o=0;for(let e=-1,n=t.length;e<n;e++){const s=e+1<n?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,u=s?s.modifiedStart:this.modifiedLines.length;for(;i<a&&o<u;){const e=this.originalLines[i],t=this.modifiedLines[o];if(e!==t){{let n=yt(e,1),s=yt(t,1);for(;n>1&&s>1&&e.charCodeAt(n-2)===t.charCodeAt(s-2);)n--,s--;(n>1||s>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,o+1,1,s)}{let n=bt(e,1),s=bt(t,1);const a=e.length+1,u=t.length+1;for(;n<a&&s<u&&e.charCodeAt(n-1)===e.charCodeAt(s-1);)n++,s++;(n<a||s<u)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,o+1,s,u)}}i++,o++}s&&(r.push(mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=s.originalLength,o+=s.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s))return;let a;this.shouldComputeCharChanges&&(a=[new dt(t,n,t,r,i,o,i,s)]),e.push(new mt(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s){const a=e.length;if(0===a)return!1;const u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===i&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new dt(t,n,t,r,i,o,i,s)),!0)}}function yt(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 bt(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function vt(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Dt(e){return e<0?0:e>255?255:0|e}function Ct(e){return e<0?0:e>4294967295?4294967295:0|e}class Et{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Ct(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=Ct(e),t=Ct(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Ct(e),t=Ct(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=Ct(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,o=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],o=i-this.values[r],e<o)n=r-1;else{if(!(e>=i))break;t=r+1}return new wt(r,e-o)}}class wt{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}const At=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}(),St={maxLen:1e3,windowSize:15,timeBudget:150};function xt(e,t,n,r,i=St){if(n.length>i.maxLen){let o=e-i.maxLen/2;return o<0?o=0:r+=o,xt(e,t,n=n.substring(o,e+i.maxLen/2),r,i)}const o=Date.now(),s=e-1-r;let a=-1,u=null;for(let e=1;!(Date.now()-o>=i.timeBudget);e++){const r=s-i.windowSize*e;t.lastIndex=Math.max(0,r);const o=Tt(t,n,s,a);if(!o&&u)break;if(u=o,r<=0)break;a=r}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 Tt(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}class Ft{constructor(e){const t=Dt(e);this._defaultValue=t,this._asciiMap=Ft._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){const n=Dt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class Nt{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;i<o;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 r=0,i=e.length;r<i;r++){const[i,o,s]=e[r];o>t&&(t=o),i>n&&(n=i),s>n&&(n=s)}t++,n++;const r=new Nt(n,t,0);for(let t=0,n=e.length;t<n;t++){const[n,i,o]=e[t];r.set(n,i,o)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let _t=null,Ot=null;class Lt{static _createLink(e,t,n,r,i){let o=i-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=function(){return null===_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===Ot){Ot=new Ft(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t<e.length;t++)Ot.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)Ot.set(t.charCodeAt(e),2)}return Ot}(),r=[];for(let i=1,o=e.getLineCount();i<=o;i++){const o=e.getLineContent(i),s=o.length;let a=0,u=0,c=0,l=1,p=!1,f=!1,h=!1,d=!1;for(;a<s;){let e=!1;const s=o.charCodeAt(a);if(13===l){let t;switch(s){case 40:p=!0,t=0;break;case 41:t=p?0:1;break;case 91:h=!0,f=!0,t=0;break;case 93:h=!1,t=f?0:1;break;case 123:d=!0,t=0;break;case 125:t=d?0:1;break;case 39:t=34===c||96===c?0:1;break;case 34:t=39===c||96===c?0:1;break;case 96:t=39===c||34===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=h?0:1;break;default:t=n.get(s)}1===t&&(r.push(Lt._createLink(n,o,i,u,a)),e=!0)}else if(12===l){let t;91===s?(f=!0,t=0):t=n.get(s),1===t?e=!0:l=13}else l=t.nextState(l,s),0===l&&(e=!0);e&&(l=1,p=!1,f=!1,d=!1,u=a+1,c=s),a++}13===l&&r.push(Lt._createLink(n,o,i,u,s))}return r}}class Pt{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),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,o=e.length;null===r&&i<o;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}}Pt.INSTANCE=new Pt;const It=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Mt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof Bt||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:U.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:It})}(Mt||(Mt={}));class Bt{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?It:(this._emitter||(this._emitter=new Y),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class jt{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 Rt=new jt,Vt=new jt,$t=new jt,Ut=new Array(230),Wt={},qt=[],Kt=Object.create(null),Ht=Object.create(null),Yt=[],zt=[];for(let e=0;e<=193;e++)Yt[e]=-1;for(let e=0;e<=127;e++)zt[e]=-1;var Jt;!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],r=[];for(const e of t){const[t,i,o,s,a,u,c,l,p,f]=e;if(r[o]||(r[o]=!0,qt[o]=s,Kt[s]=o,Ht[s.toLowerCase()]=o,i&&(Yt[o]=a,0!==a&&3!==a&&5!==a&&4!==a&&6!==a&&57!==a&&(zt[a]=o))),!n[a]){if(n[a]=!0,!u)throw new Error(`String representation missing for key code ${a} around scan code ${s}`);Rt.define(a,u),Vt.define(a,p||u),$t.define(a,f||p||u)}c&&(Ut[c]=a),l&&(Wt[l]=a)}zt[3]=46}(),function(e){e.toString=function(e){return Rt.keyCodeToStr(e)},e.fromString=function(e){return Rt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Vt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return $t.keyCodeToStr(e)},e.fromUserSettings=function(e){return Vt.strToKeyCode(e)||$t.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Rt.keyCodeToStr(e)}}(Jt||(Jt={}));class Gt extends lt{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 Gt.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 Gt(this.startLineNumber,this.startColumn,e,t):new Gt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ct(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ct(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new Gt(e,t,this.endLineNumber,this.endColumn):new Gt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Gt(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new Gt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Gt(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Gt(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 Gt(e,t,n,r):new Gt(n,r,e,t)}}var Qt,Xt,Zt,en,tn,nn,rn,on,sn,an,un,cn,ln,pn,fn,hn,dn,mn,gn,yn,bn,vn,Dn,Cn,En,wn,An,Sn,xn,Tn,Fn,Nn,kn,_n,On,Ln,Pn,In,Mn,Bn,jn,Rn,Vn,$n,Un,Wn,qn,Kn,Hn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class Yn extends h{constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Hn(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return Hn(this,void 0,void 0,(function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}class zn{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,zn._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return zn._allCodicons}}zn._allCodicons=[],zn.add=new zn("add",{fontCharacter:"\\ea60"}),zn.plus=new zn("plus",zn.add.definition),zn.gistNew=new zn("gist-new",zn.add.definition),zn.repoCreate=new zn("repo-create",zn.add.definition),zn.lightbulb=new zn("lightbulb",{fontCharacter:"\\ea61"}),zn.lightBulb=new zn("light-bulb",{fontCharacter:"\\ea61"}),zn.repo=new zn("repo",{fontCharacter:"\\ea62"}),zn.repoDelete=new zn("repo-delete",{fontCharacter:"\\ea62"}),zn.gistFork=new zn("gist-fork",{fontCharacter:"\\ea63"}),zn.repoForked=new zn("repo-forked",{fontCharacter:"\\ea63"}),zn.gitPullRequest=new zn("git-pull-request",{fontCharacter:"\\ea64"}),zn.gitPullRequestAbandoned=new zn("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),zn.recordKeys=new zn("record-keys",{fontCharacter:"\\ea65"}),zn.keyboard=new zn("keyboard",{fontCharacter:"\\ea65"}),zn.tag=new zn("tag",{fontCharacter:"\\ea66"}),zn.tagAdd=new zn("tag-add",{fontCharacter:"\\ea66"}),zn.tagRemove=new zn("tag-remove",{fontCharacter:"\\ea66"}),zn.person=new zn("person",{fontCharacter:"\\ea67"}),zn.personFollow=new zn("person-follow",{fontCharacter:"\\ea67"}),zn.personOutline=new zn("person-outline",{fontCharacter:"\\ea67"}),zn.personFilled=new zn("person-filled",{fontCharacter:"\\ea67"}),zn.gitBranch=new zn("git-branch",{fontCharacter:"\\ea68"}),zn.gitBranchCreate=new zn("git-branch-create",{fontCharacter:"\\ea68"}),zn.gitBranchDelete=new zn("git-branch-delete",{fontCharacter:"\\ea68"}),zn.sourceControl=new zn("source-control",{fontCharacter:"\\ea68"}),zn.mirror=new zn("mirror",{fontCharacter:"\\ea69"}),zn.mirrorPublic=new zn("mirror-public",{fontCharacter:"\\ea69"}),zn.star=new zn("star",{fontCharacter:"\\ea6a"}),zn.starAdd=new zn("star-add",{fontCharacter:"\\ea6a"}),zn.starDelete=new zn("star-delete",{fontCharacter:"\\ea6a"}),zn.starEmpty=new zn("star-empty",{fontCharacter:"\\ea6a"}),zn.comment=new zn("comment",{fontCharacter:"\\ea6b"}),zn.commentAdd=new zn("comment-add",{fontCharacter:"\\ea6b"}),zn.alert=new zn("alert",{fontCharacter:"\\ea6c"}),zn.warning=new zn("warning",{fontCharacter:"\\ea6c"}),zn.search=new zn("search",{fontCharacter:"\\ea6d"}),zn.searchSave=new zn("search-save",{fontCharacter:"\\ea6d"}),zn.logOut=new zn("log-out",{fontCharacter:"\\ea6e"}),zn.signOut=new zn("sign-out",{fontCharacter:"\\ea6e"}),zn.logIn=new zn("log-in",{fontCharacter:"\\ea6f"}),zn.signIn=new zn("sign-in",{fontCharacter:"\\ea6f"}),zn.eye=new zn("eye",{fontCharacter:"\\ea70"}),zn.eyeUnwatch=new zn("eye-unwatch",{fontCharacter:"\\ea70"}),zn.eyeWatch=new zn("eye-watch",{fontCharacter:"\\ea70"}),zn.circleFilled=new zn("circle-filled",{fontCharacter:"\\ea71"}),zn.primitiveDot=new zn("primitive-dot",{fontCharacter:"\\ea71"}),zn.closeDirty=new zn("close-dirty",{fontCharacter:"\\ea71"}),zn.debugBreakpoint=new zn("debug-breakpoint",{fontCharacter:"\\ea71"}),zn.debugBreakpointDisabled=new zn("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),zn.debugHint=new zn("debug-hint",{fontCharacter:"\\ea71"}),zn.primitiveSquare=new zn("primitive-square",{fontCharacter:"\\ea72"}),zn.edit=new zn("edit",{fontCharacter:"\\ea73"}),zn.pencil=new zn("pencil",{fontCharacter:"\\ea73"}),zn.info=new zn("info",{fontCharacter:"\\ea74"}),zn.issueOpened=new zn("issue-opened",{fontCharacter:"\\ea74"}),zn.gistPrivate=new zn("gist-private",{fontCharacter:"\\ea75"}),zn.gitForkPrivate=new zn("git-fork-private",{fontCharacter:"\\ea75"}),zn.lock=new zn("lock",{fontCharacter:"\\ea75"}),zn.mirrorPrivate=new zn("mirror-private",{fontCharacter:"\\ea75"}),zn.close=new zn("close",{fontCharacter:"\\ea76"}),zn.removeClose=new zn("remove-close",{fontCharacter:"\\ea76"}),zn.x=new zn("x",{fontCharacter:"\\ea76"}),zn.repoSync=new zn("repo-sync",{fontCharacter:"\\ea77"}),zn.sync=new zn("sync",{fontCharacter:"\\ea77"}),zn.clone=new zn("clone",{fontCharacter:"\\ea78"}),zn.desktopDownload=new zn("desktop-download",{fontCharacter:"\\ea78"}),zn.beaker=new zn("beaker",{fontCharacter:"\\ea79"}),zn.microscope=new zn("microscope",{fontCharacter:"\\ea79"}),zn.vm=new zn("vm",{fontCharacter:"\\ea7a"}),zn.deviceDesktop=new zn("device-desktop",{fontCharacter:"\\ea7a"}),zn.file=new zn("file",{fontCharacter:"\\ea7b"}),zn.fileText=new zn("file-text",{fontCharacter:"\\ea7b"}),zn.more=new zn("more",{fontCharacter:"\\ea7c"}),zn.ellipsis=new zn("ellipsis",{fontCharacter:"\\ea7c"}),zn.kebabHorizontal=new zn("kebab-horizontal",{fontCharacter:"\\ea7c"}),zn.mailReply=new zn("mail-reply",{fontCharacter:"\\ea7d"}),zn.reply=new zn("reply",{fontCharacter:"\\ea7d"}),zn.organization=new zn("organization",{fontCharacter:"\\ea7e"}),zn.organizationFilled=new zn("organization-filled",{fontCharacter:"\\ea7e"}),zn.organizationOutline=new zn("organization-outline",{fontCharacter:"\\ea7e"}),zn.newFile=new zn("new-file",{fontCharacter:"\\ea7f"}),zn.fileAdd=new zn("file-add",{fontCharacter:"\\ea7f"}),zn.newFolder=new zn("new-folder",{fontCharacter:"\\ea80"}),zn.fileDirectoryCreate=new zn("file-directory-create",{fontCharacter:"\\ea80"}),zn.trash=new zn("trash",{fontCharacter:"\\ea81"}),zn.trashcan=new zn("trashcan",{fontCharacter:"\\ea81"}),zn.history=new zn("history",{fontCharacter:"\\ea82"}),zn.clock=new zn("clock",{fontCharacter:"\\ea82"}),zn.folder=new zn("folder",{fontCharacter:"\\ea83"}),zn.fileDirectory=new zn("file-directory",{fontCharacter:"\\ea83"}),zn.symbolFolder=new zn("symbol-folder",{fontCharacter:"\\ea83"}),zn.logoGithub=new zn("logo-github",{fontCharacter:"\\ea84"}),zn.markGithub=new zn("mark-github",{fontCharacter:"\\ea84"}),zn.github=new zn("github",{fontCharacter:"\\ea84"}),zn.terminal=new zn("terminal",{fontCharacter:"\\ea85"}),zn.console=new zn("console",{fontCharacter:"\\ea85"}),zn.repl=new zn("repl",{fontCharacter:"\\ea85"}),zn.zap=new zn("zap",{fontCharacter:"\\ea86"}),zn.symbolEvent=new zn("symbol-event",{fontCharacter:"\\ea86"}),zn.error=new zn("error",{fontCharacter:"\\ea87"}),zn.stop=new zn("stop",{fontCharacter:"\\ea87"}),zn.variable=new zn("variable",{fontCharacter:"\\ea88"}),zn.symbolVariable=new zn("symbol-variable",{fontCharacter:"\\ea88"}),zn.array=new zn("array",{fontCharacter:"\\ea8a"}),zn.symbolArray=new zn("symbol-array",{fontCharacter:"\\ea8a"}),zn.symbolModule=new zn("symbol-module",{fontCharacter:"\\ea8b"}),zn.symbolPackage=new zn("symbol-package",{fontCharacter:"\\ea8b"}),zn.symbolNamespace=new zn("symbol-namespace",{fontCharacter:"\\ea8b"}),zn.symbolObject=new zn("symbol-object",{fontCharacter:"\\ea8b"}),zn.symbolMethod=new zn("symbol-method",{fontCharacter:"\\ea8c"}),zn.symbolFunction=new zn("symbol-function",{fontCharacter:"\\ea8c"}),zn.symbolConstructor=new zn("symbol-constructor",{fontCharacter:"\\ea8c"}),zn.symbolBoolean=new zn("symbol-boolean",{fontCharacter:"\\ea8f"}),zn.symbolNull=new zn("symbol-null",{fontCharacter:"\\ea8f"}),zn.symbolNumeric=new zn("symbol-numeric",{fontCharacter:"\\ea90"}),zn.symbolNumber=new zn("symbol-number",{fontCharacter:"\\ea90"}),zn.symbolStructure=new zn("symbol-structure",{fontCharacter:"\\ea91"}),zn.symbolStruct=new zn("symbol-struct",{fontCharacter:"\\ea91"}),zn.symbolParameter=new zn("symbol-parameter",{fontCharacter:"\\ea92"}),zn.symbolTypeParameter=new zn("symbol-type-parameter",{fontCharacter:"\\ea92"}),zn.symbolKey=new zn("symbol-key",{fontCharacter:"\\ea93"}),zn.symbolText=new zn("symbol-text",{fontCharacter:"\\ea93"}),zn.symbolReference=new zn("symbol-reference",{fontCharacter:"\\ea94"}),zn.goToFile=new zn("go-to-file",{fontCharacter:"\\ea94"}),zn.symbolEnum=new zn("symbol-enum",{fontCharacter:"\\ea95"}),zn.symbolValue=new zn("symbol-value",{fontCharacter:"\\ea95"}),zn.symbolRuler=new zn("symbol-ruler",{fontCharacter:"\\ea96"}),zn.symbolUnit=new zn("symbol-unit",{fontCharacter:"\\ea96"}),zn.activateBreakpoints=new zn("activate-breakpoints",{fontCharacter:"\\ea97"}),zn.archive=new zn("archive",{fontCharacter:"\\ea98"}),zn.arrowBoth=new zn("arrow-both",{fontCharacter:"\\ea99"}),zn.arrowDown=new zn("arrow-down",{fontCharacter:"\\ea9a"}),zn.arrowLeft=new zn("arrow-left",{fontCharacter:"\\ea9b"}),zn.arrowRight=new zn("arrow-right",{fontCharacter:"\\ea9c"}),zn.arrowSmallDown=new zn("arrow-small-down",{fontCharacter:"\\ea9d"}),zn.arrowSmallLeft=new zn("arrow-small-left",{fontCharacter:"\\ea9e"}),zn.arrowSmallRight=new zn("arrow-small-right",{fontCharacter:"\\ea9f"}),zn.arrowSmallUp=new zn("arrow-small-up",{fontCharacter:"\\eaa0"}),zn.arrowUp=new zn("arrow-up",{fontCharacter:"\\eaa1"}),zn.bell=new zn("bell",{fontCharacter:"\\eaa2"}),zn.bold=new zn("bold",{fontCharacter:"\\eaa3"}),zn.book=new zn("book",{fontCharacter:"\\eaa4"}),zn.bookmark=new zn("bookmark",{fontCharacter:"\\eaa5"}),zn.debugBreakpointConditionalUnverified=new zn("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),zn.debugBreakpointConditional=new zn("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),zn.debugBreakpointConditionalDisabled=new zn("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),zn.debugBreakpointDataUnverified=new zn("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),zn.debugBreakpointData=new zn("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),zn.debugBreakpointDataDisabled=new zn("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),zn.debugBreakpointLogUnverified=new zn("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),zn.debugBreakpointLog=new zn("debug-breakpoint-log",{fontCharacter:"\\eaab"}),zn.debugBreakpointLogDisabled=new zn("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),zn.briefcase=new zn("briefcase",{fontCharacter:"\\eaac"}),zn.broadcast=new zn("broadcast",{fontCharacter:"\\eaad"}),zn.browser=new zn("browser",{fontCharacter:"\\eaae"}),zn.bug=new zn("bug",{fontCharacter:"\\eaaf"}),zn.calendar=new zn("calendar",{fontCharacter:"\\eab0"}),zn.caseSensitive=new zn("case-sensitive",{fontCharacter:"\\eab1"}),zn.check=new zn("check",{fontCharacter:"\\eab2"}),zn.checklist=new zn("checklist",{fontCharacter:"\\eab3"}),zn.chevronDown=new zn("chevron-down",{fontCharacter:"\\eab4"}),zn.dropDownButton=new zn("drop-down-button",zn.chevronDown.definition),zn.chevronLeft=new zn("chevron-left",{fontCharacter:"\\eab5"}),zn.chevronRight=new zn("chevron-right",{fontCharacter:"\\eab6"}),zn.chevronUp=new zn("chevron-up",{fontCharacter:"\\eab7"}),zn.chromeClose=new zn("chrome-close",{fontCharacter:"\\eab8"}),zn.chromeMaximize=new zn("chrome-maximize",{fontCharacter:"\\eab9"}),zn.chromeMinimize=new zn("chrome-minimize",{fontCharacter:"\\eaba"}),zn.chromeRestore=new zn("chrome-restore",{fontCharacter:"\\eabb"}),zn.circleOutline=new zn("circle-outline",{fontCharacter:"\\eabc"}),zn.debugBreakpointUnverified=new zn("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),zn.circleSlash=new zn("circle-slash",{fontCharacter:"\\eabd"}),zn.circuitBoard=new zn("circuit-board",{fontCharacter:"\\eabe"}),zn.clearAll=new zn("clear-all",{fontCharacter:"\\eabf"}),zn.clippy=new zn("clippy",{fontCharacter:"\\eac0"}),zn.closeAll=new zn("close-all",{fontCharacter:"\\eac1"}),zn.cloudDownload=new zn("cloud-download",{fontCharacter:"\\eac2"}),zn.cloudUpload=new zn("cloud-upload",{fontCharacter:"\\eac3"}),zn.code=new zn("code",{fontCharacter:"\\eac4"}),zn.collapseAll=new zn("collapse-all",{fontCharacter:"\\eac5"}),zn.colorMode=new zn("color-mode",{fontCharacter:"\\eac6"}),zn.commentDiscussion=new zn("comment-discussion",{fontCharacter:"\\eac7"}),zn.compareChanges=new zn("compare-changes",{fontCharacter:"\\eafd"}),zn.creditCard=new zn("credit-card",{fontCharacter:"\\eac9"}),zn.dash=new zn("dash",{fontCharacter:"\\eacc"}),zn.dashboard=new zn("dashboard",{fontCharacter:"\\eacd"}),zn.database=new zn("database",{fontCharacter:"\\eace"}),zn.debugContinue=new zn("debug-continue",{fontCharacter:"\\eacf"}),zn.debugDisconnect=new zn("debug-disconnect",{fontCharacter:"\\ead0"}),zn.debugPause=new zn("debug-pause",{fontCharacter:"\\ead1"}),zn.debugRestart=new zn("debug-restart",{fontCharacter:"\\ead2"}),zn.debugStart=new zn("debug-start",{fontCharacter:"\\ead3"}),zn.debugStepInto=new zn("debug-step-into",{fontCharacter:"\\ead4"}),zn.debugStepOut=new zn("debug-step-out",{fontCharacter:"\\ead5"}),zn.debugStepOver=new zn("debug-step-over",{fontCharacter:"\\ead6"}),zn.debugStop=new zn("debug-stop",{fontCharacter:"\\ead7"}),zn.debug=new zn("debug",{fontCharacter:"\\ead8"}),zn.deviceCameraVideo=new zn("device-camera-video",{fontCharacter:"\\ead9"}),zn.deviceCamera=new zn("device-camera",{fontCharacter:"\\eada"}),zn.deviceMobile=new zn("device-mobile",{fontCharacter:"\\eadb"}),zn.diffAdded=new zn("diff-added",{fontCharacter:"\\eadc"}),zn.diffIgnored=new zn("diff-ignored",{fontCharacter:"\\eadd"}),zn.diffModified=new zn("diff-modified",{fontCharacter:"\\eade"}),zn.diffRemoved=new zn("diff-removed",{fontCharacter:"\\eadf"}),zn.diffRenamed=new zn("diff-renamed",{fontCharacter:"\\eae0"}),zn.diff=new zn("diff",{fontCharacter:"\\eae1"}),zn.discard=new zn("discard",{fontCharacter:"\\eae2"}),zn.editorLayout=new zn("editor-layout",{fontCharacter:"\\eae3"}),zn.emptyWindow=new zn("empty-window",{fontCharacter:"\\eae4"}),zn.exclude=new zn("exclude",{fontCharacter:"\\eae5"}),zn.extensions=new zn("extensions",{fontCharacter:"\\eae6"}),zn.eyeClosed=new zn("eye-closed",{fontCharacter:"\\eae7"}),zn.fileBinary=new zn("file-binary",{fontCharacter:"\\eae8"}),zn.fileCode=new zn("file-code",{fontCharacter:"\\eae9"}),zn.fileMedia=new zn("file-media",{fontCharacter:"\\eaea"}),zn.filePdf=new zn("file-pdf",{fontCharacter:"\\eaeb"}),zn.fileSubmodule=new zn("file-submodule",{fontCharacter:"\\eaec"}),zn.fileSymlinkDirectory=new zn("file-symlink-directory",{fontCharacter:"\\eaed"}),zn.fileSymlinkFile=new zn("file-symlink-file",{fontCharacter:"\\eaee"}),zn.fileZip=new zn("file-zip",{fontCharacter:"\\eaef"}),zn.files=new zn("files",{fontCharacter:"\\eaf0"}),zn.filter=new zn("filter",{fontCharacter:"\\eaf1"}),zn.flame=new zn("flame",{fontCharacter:"\\eaf2"}),zn.foldDown=new zn("fold-down",{fontCharacter:"\\eaf3"}),zn.foldUp=new zn("fold-up",{fontCharacter:"\\eaf4"}),zn.fold=new zn("fold",{fontCharacter:"\\eaf5"}),zn.folderActive=new zn("folder-active",{fontCharacter:"\\eaf6"}),zn.folderOpened=new zn("folder-opened",{fontCharacter:"\\eaf7"}),zn.gear=new zn("gear",{fontCharacter:"\\eaf8"}),zn.gift=new zn("gift",{fontCharacter:"\\eaf9"}),zn.gistSecret=new zn("gist-secret",{fontCharacter:"\\eafa"}),zn.gist=new zn("gist",{fontCharacter:"\\eafb"}),zn.gitCommit=new zn("git-commit",{fontCharacter:"\\eafc"}),zn.gitCompare=new zn("git-compare",{fontCharacter:"\\eafd"}),zn.gitMerge=new zn("git-merge",{fontCharacter:"\\eafe"}),zn.githubAction=new zn("github-action",{fontCharacter:"\\eaff"}),zn.githubAlt=new zn("github-alt",{fontCharacter:"\\eb00"}),zn.globe=new zn("globe",{fontCharacter:"\\eb01"}),zn.grabber=new zn("grabber",{fontCharacter:"\\eb02"}),zn.graph=new zn("graph",{fontCharacter:"\\eb03"}),zn.gripper=new zn("gripper",{fontCharacter:"\\eb04"}),zn.heart=new zn("heart",{fontCharacter:"\\eb05"}),zn.home=new zn("home",{fontCharacter:"\\eb06"}),zn.horizontalRule=new zn("horizontal-rule",{fontCharacter:"\\eb07"}),zn.hubot=new zn("hubot",{fontCharacter:"\\eb08"}),zn.inbox=new zn("inbox",{fontCharacter:"\\eb09"}),zn.issueClosed=new zn("issue-closed",{fontCharacter:"\\eba4"}),zn.issueReopened=new zn("issue-reopened",{fontCharacter:"\\eb0b"}),zn.issues=new zn("issues",{fontCharacter:"\\eb0c"}),zn.italic=new zn("italic",{fontCharacter:"\\eb0d"}),zn.jersey=new zn("jersey",{fontCharacter:"\\eb0e"}),zn.json=new zn("json",{fontCharacter:"\\eb0f"}),zn.kebabVertical=new zn("kebab-vertical",{fontCharacter:"\\eb10"}),zn.key=new zn("key",{fontCharacter:"\\eb11"}),zn.law=new zn("law",{fontCharacter:"\\eb12"}),zn.lightbulbAutofix=new zn("lightbulb-autofix",{fontCharacter:"\\eb13"}),zn.linkExternal=new zn("link-external",{fontCharacter:"\\eb14"}),zn.link=new zn("link",{fontCharacter:"\\eb15"}),zn.listOrdered=new zn("list-ordered",{fontCharacter:"\\eb16"}),zn.listUnordered=new zn("list-unordered",{fontCharacter:"\\eb17"}),zn.liveShare=new zn("live-share",{fontCharacter:"\\eb18"}),zn.loading=new zn("loading",{fontCharacter:"\\eb19"}),zn.location=new zn("location",{fontCharacter:"\\eb1a"}),zn.mailRead=new zn("mail-read",{fontCharacter:"\\eb1b"}),zn.mail=new zn("mail",{fontCharacter:"\\eb1c"}),zn.markdown=new zn("markdown",{fontCharacter:"\\eb1d"}),zn.megaphone=new zn("megaphone",{fontCharacter:"\\eb1e"}),zn.mention=new zn("mention",{fontCharacter:"\\eb1f"}),zn.milestone=new zn("milestone",{fontCharacter:"\\eb20"}),zn.mortarBoard=new zn("mortar-board",{fontCharacter:"\\eb21"}),zn.move=new zn("move",{fontCharacter:"\\eb22"}),zn.multipleWindows=new zn("multiple-windows",{fontCharacter:"\\eb23"}),zn.mute=new zn("mute",{fontCharacter:"\\eb24"}),zn.noNewline=new zn("no-newline",{fontCharacter:"\\eb25"}),zn.note=new zn("note",{fontCharacter:"\\eb26"}),zn.octoface=new zn("octoface",{fontCharacter:"\\eb27"}),zn.openPreview=new zn("open-preview",{fontCharacter:"\\eb28"}),zn.package_=new zn("package",{fontCharacter:"\\eb29"}),zn.paintcan=new zn("paintcan",{fontCharacter:"\\eb2a"}),zn.pin=new zn("pin",{fontCharacter:"\\eb2b"}),zn.play=new zn("play",{fontCharacter:"\\eb2c"}),zn.run=new zn("run",{fontCharacter:"\\eb2c"}),zn.plug=new zn("plug",{fontCharacter:"\\eb2d"}),zn.preserveCase=new zn("preserve-case",{fontCharacter:"\\eb2e"}),zn.preview=new zn("preview",{fontCharacter:"\\eb2f"}),zn.project=new zn("project",{fontCharacter:"\\eb30"}),zn.pulse=new zn("pulse",{fontCharacter:"\\eb31"}),zn.question=new zn("question",{fontCharacter:"\\eb32"}),zn.quote=new zn("quote",{fontCharacter:"\\eb33"}),zn.radioTower=new zn("radio-tower",{fontCharacter:"\\eb34"}),zn.reactions=new zn("reactions",{fontCharacter:"\\eb35"}),zn.references=new zn("references",{fontCharacter:"\\eb36"}),zn.refresh=new zn("refresh",{fontCharacter:"\\eb37"}),zn.regex=new zn("regex",{fontCharacter:"\\eb38"}),zn.remoteExplorer=new zn("remote-explorer",{fontCharacter:"\\eb39"}),zn.remote=new zn("remote",{fontCharacter:"\\eb3a"}),zn.remove=new zn("remove",{fontCharacter:"\\eb3b"}),zn.replaceAll=new zn("replace-all",{fontCharacter:"\\eb3c"}),zn.replace=new zn("replace",{fontCharacter:"\\eb3d"}),zn.repoClone=new zn("repo-clone",{fontCharacter:"\\eb3e"}),zn.repoForcePush=new zn("repo-force-push",{fontCharacter:"\\eb3f"}),zn.repoPull=new zn("repo-pull",{fontCharacter:"\\eb40"}),zn.repoPush=new zn("repo-push",{fontCharacter:"\\eb41"}),zn.report=new zn("report",{fontCharacter:"\\eb42"}),zn.requestChanges=new zn("request-changes",{fontCharacter:"\\eb43"}),zn.rocket=new zn("rocket",{fontCharacter:"\\eb44"}),zn.rootFolderOpened=new zn("root-folder-opened",{fontCharacter:"\\eb45"}),zn.rootFolder=new zn("root-folder",{fontCharacter:"\\eb46"}),zn.rss=new zn("rss",{fontCharacter:"\\eb47"}),zn.ruby=new zn("ruby",{fontCharacter:"\\eb48"}),zn.saveAll=new zn("save-all",{fontCharacter:"\\eb49"}),zn.saveAs=new zn("save-as",{fontCharacter:"\\eb4a"}),zn.save=new zn("save",{fontCharacter:"\\eb4b"}),zn.screenFull=new zn("screen-full",{fontCharacter:"\\eb4c"}),zn.screenNormal=new zn("screen-normal",{fontCharacter:"\\eb4d"}),zn.searchStop=new zn("search-stop",{fontCharacter:"\\eb4e"}),zn.server=new zn("server",{fontCharacter:"\\eb50"}),zn.settingsGear=new zn("settings-gear",{fontCharacter:"\\eb51"}),zn.settings=new zn("settings",{fontCharacter:"\\eb52"}),zn.shield=new zn("shield",{fontCharacter:"\\eb53"}),zn.smiley=new zn("smiley",{fontCharacter:"\\eb54"}),zn.sortPrecedence=new zn("sort-precedence",{fontCharacter:"\\eb55"}),zn.splitHorizontal=new zn("split-horizontal",{fontCharacter:"\\eb56"}),zn.splitVertical=new zn("split-vertical",{fontCharacter:"\\eb57"}),zn.squirrel=new zn("squirrel",{fontCharacter:"\\eb58"}),zn.starFull=new zn("star-full",{fontCharacter:"\\eb59"}),zn.starHalf=new zn("star-half",{fontCharacter:"\\eb5a"}),zn.symbolClass=new zn("symbol-class",{fontCharacter:"\\eb5b"}),zn.symbolColor=new zn("symbol-color",{fontCharacter:"\\eb5c"}),zn.symbolCustomColor=new zn("symbol-customcolor",{fontCharacter:"\\eb5c"}),zn.symbolConstant=new zn("symbol-constant",{fontCharacter:"\\eb5d"}),zn.symbolEnumMember=new zn("symbol-enum-member",{fontCharacter:"\\eb5e"}),zn.symbolField=new zn("symbol-field",{fontCharacter:"\\eb5f"}),zn.symbolFile=new zn("symbol-file",{fontCharacter:"\\eb60"}),zn.symbolInterface=new zn("symbol-interface",{fontCharacter:"\\eb61"}),zn.symbolKeyword=new zn("symbol-keyword",{fontCharacter:"\\eb62"}),zn.symbolMisc=new zn("symbol-misc",{fontCharacter:"\\eb63"}),zn.symbolOperator=new zn("symbol-operator",{fontCharacter:"\\eb64"}),zn.symbolProperty=new zn("symbol-property",{fontCharacter:"\\eb65"}),zn.wrench=new zn("wrench",{fontCharacter:"\\eb65"}),zn.wrenchSubaction=new zn("wrench-subaction",{fontCharacter:"\\eb65"}),zn.symbolSnippet=new zn("symbol-snippet",{fontCharacter:"\\eb66"}),zn.tasklist=new zn("tasklist",{fontCharacter:"\\eb67"}),zn.telescope=new zn("telescope",{fontCharacter:"\\eb68"}),zn.textSize=new zn("text-size",{fontCharacter:"\\eb69"}),zn.threeBars=new zn("three-bars",{fontCharacter:"\\eb6a"}),zn.thumbsdown=new zn("thumbsdown",{fontCharacter:"\\eb6b"}),zn.thumbsup=new zn("thumbsup",{fontCharacter:"\\eb6c"}),zn.tools=new zn("tools",{fontCharacter:"\\eb6d"}),zn.triangleDown=new zn("triangle-down",{fontCharacter:"\\eb6e"}),zn.triangleLeft=new zn("triangle-left",{fontCharacter:"\\eb6f"}),zn.triangleRight=new zn("triangle-right",{fontCharacter:"\\eb70"}),zn.triangleUp=new zn("triangle-up",{fontCharacter:"\\eb71"}),zn.twitter=new zn("twitter",{fontCharacter:"\\eb72"}),zn.unfold=new zn("unfold",{fontCharacter:"\\eb73"}),zn.unlock=new zn("unlock",{fontCharacter:"\\eb74"}),zn.unmute=new zn("unmute",{fontCharacter:"\\eb75"}),zn.unverified=new zn("unverified",{fontCharacter:"\\eb76"}),zn.verified=new zn("verified",{fontCharacter:"\\eb77"}),zn.versions=new zn("versions",{fontCharacter:"\\eb78"}),zn.vmActive=new zn("vm-active",{fontCharacter:"\\eb79"}),zn.vmOutline=new zn("vm-outline",{fontCharacter:"\\eb7a"}),zn.vmRunning=new zn("vm-running",{fontCharacter:"\\eb7b"}),zn.watch=new zn("watch",{fontCharacter:"\\eb7c"}),zn.whitespace=new zn("whitespace",{fontCharacter:"\\eb7d"}),zn.wholeWord=new zn("whole-word",{fontCharacter:"\\eb7e"}),zn.window=new zn("window",{fontCharacter:"\\eb7f"}),zn.wordWrap=new zn("word-wrap",{fontCharacter:"\\eb80"}),zn.zoomIn=new zn("zoom-in",{fontCharacter:"\\eb81"}),zn.zoomOut=new zn("zoom-out",{fontCharacter:"\\eb82"}),zn.listFilter=new zn("list-filter",{fontCharacter:"\\eb83"}),zn.listFlat=new zn("list-flat",{fontCharacter:"\\eb84"}),zn.listSelection=new zn("list-selection",{fontCharacter:"\\eb85"}),zn.selection=new zn("selection",{fontCharacter:"\\eb85"}),zn.listTree=new zn("list-tree",{fontCharacter:"\\eb86"}),zn.debugBreakpointFunctionUnverified=new zn("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),zn.debugBreakpointFunction=new zn("debug-breakpoint-function",{fontCharacter:"\\eb88"}),zn.debugBreakpointFunctionDisabled=new zn("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),zn.debugStackframeActive=new zn("debug-stackframe-active",{fontCharacter:"\\eb89"}),zn.debugStackframeDot=new zn("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),zn.debugStackframe=new zn("debug-stackframe",{fontCharacter:"\\eb8b"}),zn.debugStackframeFocused=new zn("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),zn.debugBreakpointUnsupported=new zn("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),zn.symbolString=new zn("symbol-string",{fontCharacter:"\\eb8d"}),zn.debugReverseContinue=new zn("debug-reverse-continue",{fontCharacter:"\\eb8e"}),zn.debugStepBack=new zn("debug-step-back",{fontCharacter:"\\eb8f"}),zn.debugRestartFrame=new zn("debug-restart-frame",{fontCharacter:"\\eb90"}),zn.callIncoming=new zn("call-incoming",{fontCharacter:"\\eb92"}),zn.callOutgoing=new zn("call-outgoing",{fontCharacter:"\\eb93"}),zn.menu=new zn("menu",{fontCharacter:"\\eb94"}),zn.expandAll=new zn("expand-all",{fontCharacter:"\\eb95"}),zn.feedback=new zn("feedback",{fontCharacter:"\\eb96"}),zn.groupByRefType=new zn("group-by-ref-type",{fontCharacter:"\\eb97"}),zn.ungroupByRefType=new zn("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),zn.account=new zn("account",{fontCharacter:"\\eb99"}),zn.bellDot=new zn("bell-dot",{fontCharacter:"\\eb9a"}),zn.debugConsole=new zn("debug-console",{fontCharacter:"\\eb9b"}),zn.library=new zn("library",{fontCharacter:"\\eb9c"}),zn.output=new zn("output",{fontCharacter:"\\eb9d"}),zn.runAll=new zn("run-all",{fontCharacter:"\\eb9e"}),zn.syncIgnored=new zn("sync-ignored",{fontCharacter:"\\eb9f"}),zn.pinned=new zn("pinned",{fontCharacter:"\\eba0"}),zn.githubInverted=new zn("github-inverted",{fontCharacter:"\\eba1"}),zn.debugAlt=new zn("debug-alt",{fontCharacter:"\\eb91"}),zn.serverProcess=new zn("server-process",{fontCharacter:"\\eba2"}),zn.serverEnvironment=new zn("server-environment",{fontCharacter:"\\eba3"}),zn.pass=new zn("pass",{fontCharacter:"\\eba4"}),zn.stopCircle=new zn("stop-circle",{fontCharacter:"\\eba5"}),zn.playCircle=new zn("play-circle",{fontCharacter:"\\eba6"}),zn.record=new zn("record",{fontCharacter:"\\eba7"}),zn.debugAltSmall=new zn("debug-alt-small",{fontCharacter:"\\eba8"}),zn.vmConnect=new zn("vm-connect",{fontCharacter:"\\eba9"}),zn.cloud=new zn("cloud",{fontCharacter:"\\ebaa"}),zn.merge=new zn("merge",{fontCharacter:"\\ebab"}),zn.exportIcon=new zn("export",{fontCharacter:"\\ebac"}),zn.graphLeft=new zn("graph-left",{fontCharacter:"\\ebad"}),zn.magnet=new zn("magnet",{fontCharacter:"\\ebae"}),zn.notebook=new zn("notebook",{fontCharacter:"\\ebaf"}),zn.redo=new zn("redo",{fontCharacter:"\\ebb0"}),zn.checkAll=new zn("check-all",{fontCharacter:"\\ebb1"}),zn.pinnedDirty=new zn("pinned-dirty",{fontCharacter:"\\ebb2"}),zn.passFilled=new zn("pass-filled",{fontCharacter:"\\ebb3"}),zn.circleLargeFilled=new zn("circle-large-filled",{fontCharacter:"\\ebb4"}),zn.circleLargeOutline=new zn("circle-large-outline",{fontCharacter:"\\ebb5"}),zn.combine=new zn("combine",{fontCharacter:"\\ebb6"}),zn.gather=new zn("gather",{fontCharacter:"\\ebb6"}),zn.table=new zn("table",{fontCharacter:"\\ebb7"}),zn.variableGroup=new zn("variable-group",{fontCharacter:"\\ebb8"}),zn.typeHierarchy=new zn("type-hierarchy",{fontCharacter:"\\ebb9"}),zn.typeHierarchySub=new zn("type-hierarchy-sub",{fontCharacter:"\\ebba"}),zn.typeHierarchySuper=new zn("type-hierarchy-super",{fontCharacter:"\\ebbb"}),zn.gitPullRequestCreate=new zn("git-pull-request-create",{fontCharacter:"\\ebbc"}),zn.runAbove=new zn("run-above",{fontCharacter:"\\ebbd"}),zn.runBelow=new zn("run-below",{fontCharacter:"\\ebbe"}),zn.notebookTemplate=new zn("notebook-template",{fontCharacter:"\\ebbf"}),zn.debugRerun=new zn("debug-rerun",{fontCharacter:"\\ebc0"}),zn.workspaceTrusted=new zn("workspace-trusted",{fontCharacter:"\\ebc1"}),zn.workspaceUntrusted=new zn("workspace-untrusted",{fontCharacter:"\\ebc2"}),zn.workspaceUnspecified=new zn("workspace-unspecified",{fontCharacter:"\\ebc3"}),zn.terminalCmd=new zn("terminal-cmd",{fontCharacter:"\\ebc4"}),zn.terminalDebian=new zn("terminal-debian",{fontCharacter:"\\ebc5"}),zn.terminalLinux=new zn("terminal-linux",{fontCharacter:"\\ebc6"}),zn.terminalPowershell=new zn("terminal-powershell",{fontCharacter:"\\ebc7"}),zn.terminalTmux=new zn("terminal-tmux",{fontCharacter:"\\ebc8"}),zn.terminalUbuntu=new zn("terminal-ubuntu",{fontCharacter:"\\ebc9"}),zn.terminalBash=new zn("terminal-bash",{fontCharacter:"\\ebca"}),zn.arrowSwap=new zn("arrow-swap",{fontCharacter:"\\ebcb"}),zn.copy=new zn("copy",{fontCharacter:"\\ebcc"}),zn.personAdd=new zn("person-add",{fontCharacter:"\\ebcd"}),zn.filterFilled=new zn("filter-filled",{fontCharacter:"\\ebce"}),zn.wand=new zn("wand",{fontCharacter:"\\ebcf"}),zn.debugLineByLine=new zn("debug-line-by-line",{fontCharacter:"\\ebd0"}),zn.inspect=new zn("inspect",{fontCharacter:"\\ebd1"}),zn.layers=new zn("layers",{fontCharacter:"\\ebd2"}),zn.layersDot=new zn("layers-dot",{fontCharacter:"\\ebd3"}),zn.layersActive=new zn("layers-active",{fontCharacter:"\\ebd4"}),zn.compass=new zn("compass",{fontCharacter:"\\ebd5"}),zn.compassDot=new zn("compass-dot",{fontCharacter:"\\ebd6"}),zn.compassActive=new zn("compass-active",{fontCharacter:"\\ebd7"}),zn.azure=new zn("azure",{fontCharacter:"\\ebd8"}),zn.issueDraft=new zn("issue-draft",{fontCharacter:"\\ebd9"}),zn.gitPullRequestClosed=new zn("git-pull-request-closed",{fontCharacter:"\\ebda"}),zn.gitPullRequestDraft=new zn("git-pull-request-draft",{fontCharacter:"\\ebdb"}),zn.debugAll=new zn("debug-all",{fontCharacter:"\\ebdc"}),zn.debugCoverage=new zn("debug-coverage",{fontCharacter:"\\ebdd"}),zn.runErrors=new zn("run-errors",{fontCharacter:"\\ebde"}),zn.folderLibrary=new zn("folder-library",{fontCharacter:"\\ebdf"}),zn.debugContinueSmall=new zn("debug-continue-small",{fontCharacter:"\\ebe0"}),zn.beakerStop=new zn("beaker-stop",{fontCharacter:"\\ebe1"}),zn.graphLine=new zn("graph-line",{fontCharacter:"\\ebe2"}),zn.graphScatter=new zn("graph-scatter",{fontCharacter:"\\ebe3"}),zn.pieChart=new zn("pie-chart",{fontCharacter:"\\ebe4"}),zn.bracket=new zn("bracket",zn.json.definition),zn.bracketDot=new zn("bracket-dot",{fontCharacter:"\\ebe5"}),zn.bracketError=new zn("bracket-error",{fontCharacter:"\\ebe6"}),zn.lockSmall=new zn("lock-small",{fontCharacter:"\\ebe7"}),zn.azureDevops=new zn("azure-devops",{fontCharacter:"\\ebe8"}),zn.verifiedFilled=new zn("verified-filled",{fontCharacter:"\\ebe9"}),zn.newLine=new zn("newline",{fontCharacter:"\\ebea"}),zn.layout=new zn("layout",{fontCharacter:"\\ebeb"}),zn.layoutActivitybarLeft=new zn("layout-activitybar-left",{fontCharacter:"\\ebec"}),zn.layoutActivitybarRight=new zn("layout-activitybar-right",{fontCharacter:"\\ebed"}),zn.layoutPanelLeft=new zn("layout-panel-left",{fontCharacter:"\\ebee"}),zn.layoutPanelCenter=new zn("layout-panel-center",{fontCharacter:"\\ebef"}),zn.layoutPanelJustify=new zn("layout-panel-justify",{fontCharacter:"\\ebf0"}),zn.layoutPanelRight=new zn("layout-panel-right",{fontCharacter:"\\ebf1"}),zn.layoutPanel=new zn("layout-panel",{fontCharacter:"\\ebf2"}),zn.layoutSidebarLeft=new zn("layout-sidebar-left",{fontCharacter:"\\ebf3"}),zn.layoutSidebarRight=new zn("layout-sidebar-right",{fontCharacter:"\\ebf4"}),zn.layoutStatusbar=new zn("layout-statusbar",{fontCharacter:"\\ebf5"}),zn.layoutMenubar=new zn("layout-menubar",{fontCharacter:"\\ebf6"}),zn.layoutCentered=new zn("layout-centered",{fontCharacter:"\\ebf7"}),zn.target=new zn("target",{fontCharacter:"\\ebf8"}),zn.indent=new zn("indent",{fontCharacter:"\\ebf9"}),zn.recordSmall=new zn("record-small",{fontCharacter:"\\ebfa"}),zn.errorSmall=new zn("error-small",{fontCharacter:"\\ebfb"}),zn.arrowCircleDown=new zn("arrow-circle-down",{fontCharacter:"\\ebfc"}),zn.arrowCircleLeft=new zn("arrow-circle-left",{fontCharacter:"\\ebfd"}),zn.arrowCircleRight=new zn("arrow-circle-right",{fontCharacter:"\\ebfe"}),zn.arrowCircleUp=new zn("arrow-circle-up",{fontCharacter:"\\ebff"}),zn.dialogError=new zn("dialog-error",zn.error.definition),zn.dialogWarning=new zn("dialog-warning",zn.warning.definition),zn.dialogInfo=new zn("dialog-info",zn.info.definition),zn.dialogClose=new zn("dialog-close",zn.close.definition),zn.treeItemExpanded=new zn("tree-item-expanded",zn.chevronDown.definition),zn.treeFilterOnTypeOn=new zn("tree-filter-on-type-on",zn.listFilter.definition),zn.treeFilterOnTypeOff=new zn("tree-filter-on-type-off",zn.listSelection.definition),zn.treeFilterClear=new zn("tree-filter-clear",zn.close.definition),zn.treeItemLoading=new zn("tree-item-loading",zn.loading.definition),zn.menuSelection=new zn("menu-selection",zn.check.definition),zn.menuSubmenu=new zn("menu-submenu",zn.chevronRight.definition),zn.menuBarMore=new zn("menubar-more",zn.more.definition),zn.scrollbarButtonLeft=new zn("scrollbar-button-left",zn.triangleLeft.definition),zn.scrollbarButtonRight=new zn("scrollbar-button-right",zn.triangleRight.definition),zn.scrollbarButtonUp=new zn("scrollbar-button-up",zn.triangleUp.definition),zn.scrollbarButtonDown=new zn("scrollbar-button-down",zn.triangleDown.definition),zn.toolBarMore=new zn("toolbar-more",zn.more.definition),zn.quickInputBack=new zn("quick-input-back",zn.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof zn)return["codicon","codicon-"+e.id];const r=t.exec(e.id);if(!r)return n(zn.error);let[,i,o]=r;const s=["codicon","codicon-"+i];return o&&s.push("codicon-modifier-"+o.substr(1)),s}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(Qt||(Qt={}));!function(e){const t=new Map;t.set(0,zn.symbolMethod),t.set(1,zn.symbolFunction),t.set(2,zn.symbolConstructor),t.set(3,zn.symbolField),t.set(4,zn.symbolVariable),t.set(5,zn.symbolClass),t.set(6,zn.symbolStruct),t.set(7,zn.symbolInterface),t.set(8,zn.symbolModule),t.set(9,zn.symbolProperty),t.set(10,zn.symbolEvent),t.set(11,zn.symbolOperator),t.set(12,zn.symbolUnit),t.set(13,zn.symbolValue),t.set(15,zn.symbolEnum),t.set(14,zn.symbolConstant),t.set(15,zn.symbolEnum),t.set(16,zn.symbolEnumMember),t.set(17,zn.symbolKeyword),t.set(27,zn.symbolSnippet),t.set(18,zn.symbolText),t.set(19,zn.symbolColor),t.set(20,zn.symbolFile),t.set(21,zn.symbolReference),t.set(22,zn.symbolCustomColor),t.set(23,zn.symbolFolder),t.set(24,zn.symbolTypeParameter),t.set(25,zn.account),t.set(26,zn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=zn.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 void 0!==r||t||(r=9),r}}(Xt||(Xt={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Zt||(Zt={})),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"}(tn||(tn={})),function(e){const t=new Map;t.set(0,zn.symbolFile),t.set(1,zn.symbolModule),t.set(2,zn.symbolNamespace),t.set(3,zn.symbolPackage),t.set(4,zn.symbolClass),t.set(5,zn.symbolMethod),t.set(6,zn.symbolProperty),t.set(7,zn.symbolField),t.set(8,zn.symbolConstructor),t.set(9,zn.symbolEnum),t.set(10,zn.symbolInterface),t.set(11,zn.symbolFunction),t.set(12,zn.symbolVariable),t.set(13,zn.symbolConstant),t.set(14,zn.symbolString),t.set(15,zn.symbolNumber),t.set(16,zn.symbolBoolean),t.set(17,zn.symbolArray),t.set(18,zn.symbolObject),t.set(19,zn.symbolKey),t.set(20,zn.symbolNull),t.set(21,zn.symbolEnumMember),t.set(22,zn.symbolStruct),t.set(23,zn.symbolEvent),t.set(24,zn.symbolOperator),t.set(25,zn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=zn.symbolProperty),n}}(nn||(nn={}));class Jn{constructor(e){this.value=e}}Jn.Comment=new Jn("comment"),Jn.Imports=new Jn("imports"),Jn.Region=new Jn("region"),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(rn||(rn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(on||(on={})),new class{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new Y,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),p((()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))}))}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),p((()=>{const t=this._factories.get(e);t&&t===r&&(this._factories.delete(e),t.dispose())}))}getOrCreate(e){return Hn(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))}))}get(e){return this._map.get(e)||null}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._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(sn||(sn={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(an||(an={})),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"}(un||(un={})),function(e){e[e.Deprecated=1]="Deprecated"}(cn||(cn={})),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"}(pn||(pn={})),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"}(fn||(fn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(hn||(hn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(dn||(dn={})),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.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.foldingMaximumRegions=41]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=43]="fontFamily",e[e.fontInfo=44]="fontInfo",e[e.fontLigatures=45]="fontLigatures",e[e.fontSize=46]="fontSize",e[e.fontWeight=47]="fontWeight",e[e.formatOnPaste=48]="formatOnPaste",e[e.formatOnType=49]="formatOnType",e[e.glyphMargin=50]="glyphMargin",e[e.gotoLocation=51]="gotoLocation",e[e.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",e[e.hover=53]="hover",e[e.inDiffEditor=54]="inDiffEditor",e[e.inlineSuggest=55]="inlineSuggest",e[e.letterSpacing=56]="letterSpacing",e[e.lightbulb=57]="lightbulb",e[e.lineDecorationsWidth=58]="lineDecorationsWidth",e[e.lineHeight=59]="lineHeight",e[e.lineNumbers=60]="lineNumbers",e[e.lineNumbersMinChars=61]="lineNumbersMinChars",e[e.linkedEditing=62]="linkedEditing",e[e.links=63]="links",e[e.matchBrackets=64]="matchBrackets",e[e.minimap=65]="minimap",e[e.mouseStyle=66]="mouseStyle",e[e.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=68]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",e[e.multiCursorModifier=70]="multiCursorModifier",e[e.multiCursorPaste=71]="multiCursorPaste",e[e.occurrencesHighlight=72]="occurrencesHighlight",e[e.overviewRulerBorder=73]="overviewRulerBorder",e[e.overviewRulerLanes=74]="overviewRulerLanes",e[e.padding=75]="padding",e[e.parameterHints=76]="parameterHints",e[e.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",e[e.quickSuggestions=79]="quickSuggestions",e[e.quickSuggestionsDelay=80]="quickSuggestionsDelay",e[e.readOnly=81]="readOnly",e[e.renameOnType=82]="renameOnType",e[e.renderControlCharacters=83]="renderControlCharacters",e[e.renderFinalNewline=84]="renderFinalNewline",e[e.renderLineHighlight=85]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=87]="renderValidationDecorations",e[e.renderWhitespace=88]="renderWhitespace",e[e.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",e[e.roundedSelection=90]="roundedSelection",e[e.rulers=91]="rulers",e[e.scrollbar=92]="scrollbar",e[e.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=94]="scrollBeyondLastLine",e[e.scrollPredominantAxis=95]="scrollPredominantAxis",e[e.selectionClipboard=96]="selectionClipboard",e[e.selectionHighlight=97]="selectionHighlight",e[e.selectOnLineNumbers=98]="selectOnLineNumbers",e[e.showFoldingControls=99]="showFoldingControls",e[e.showUnused=100]="showUnused",e[e.snippetSuggestions=101]="snippetSuggestions",e[e.smartSelect=102]="smartSelect",e[e.smoothScrolling=103]="smoothScrolling",e[e.stickyTabStops=104]="stickyTabStops",e[e.stopRenderingLineAfter=105]="stopRenderingLineAfter",e[e.suggest=106]="suggest",e[e.suggestFontSize=107]="suggestFontSize",e[e.suggestLineHeight=108]="suggestLineHeight",e[e.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",e[e.suggestSelection=110]="suggestSelection",e[e.tabCompletion=111]="tabCompletion",e[e.tabIndex=112]="tabIndex",e[e.unicodeHighlighting=113]="unicodeHighlighting",e[e.unusualLineTerminators=114]="unusualLineTerminators",e[e.useShadowDOM=115]="useShadowDOM",e[e.useTabStops=116]="useTabStops",e[e.wordSeparators=117]="wordSeparators",e[e.wordWrap=118]="wordWrap",e[e.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=121]="wordWrapColumn",e[e.wordWrapOverride1=122]="wordWrapOverride1",e[e.wordWrapOverride2=123]="wordWrapOverride2",e[e.wrappingIndent=124]="wrappingIndent",e[e.wrappingStrategy=125]="wrappingStrategy",e[e.showDeprecated=126]="showDeprecated",e[e.inlayHints=127]="inlayHints",e[e.editorClassName=128]="editorClassName",e[e.pixelRatio=129]="pixelRatio",e[e.tabFocusMode=130]="tabFocusMode",e[e.layoutInfo=131]="layoutInfo",e[e.wrappingInfo=132]="wrappingInfo"}(gn||(gn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(yn||(yn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(bn||(bn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(vn||(vn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Dn||(Dn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Cn||(Cn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(En||(En={})),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.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"}(wn||(wn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(An||(An={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Sn||(Sn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(xn||(xn={})),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"}(Tn||(Tn={})),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"}(Fn||(Fn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Nn||(Nn={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None"}(kn||(kn={})),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"}(_n||(_n={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(On||(On={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Ln||(Ln={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Pn||(Pn={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(In||(In={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Mn||(Mn={})),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"}(Bn||(Bn={})),function(e){e[e.Deprecated=1]="Deprecated"}(jn||(jn={})),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"}(Rn||(Rn={})),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"}(Vn||(Vn={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}($n||($n={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Un||(Un={}));class Gn{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Gn.CtrlCmd=2048,Gn.Shift=1024,Gn.Alt=512,Gn.WinCtrl=256;function Qn(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)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 o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)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)}Object.prototype.hasOwnProperty,function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Wn||(Wn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(qn||(qn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Kn||(Kn={}));class Xn{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){te(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||Qn(this._wordSeparators,e,t,r,i))return n}while(n);return null}}class Zn{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ie.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of oe.codePoints)er(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(let e of t){const t=e.codePointAt(0),n=(o=e,ne.test(o));r=r||n,n||this.ambiguousCharacters.isAmbiguous(t)||oe.isInvisibleCharacter(t)||(i=!0)}var o;return!r&&i?0:this.options.invisibleCharacters&&!er(e)&&oe.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function er(e){return" "===e||"\n"===e||"\t"===e}var tr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class nr extends class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new ct(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Et(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 t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=xt(e.column,function(e){let t=At;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new lt(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){const e=i.substring(s[o].start,s[o].end);o+=1,yield e}else{if(!(r<t.length))break;i=t[r],s=n(i,e),o=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const e of r)i.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.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 e=n+1;e<r;e++)i.push(this._lines[e]);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(!ct.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 rr{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 nr(Xe.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,n){return tr(this,void 0,void 0,(function*(){const r=this._getModel(e);return r?class{static computeUnicodeHighlights(e,t,n){const r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),o=new Zn(t),s=o.getCandidateCodePoints();let a;var u;a="allNonBasicAscii"===s?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(`[${u=Array.from(s).map((e=>String.fromCodePoint(e))).join(""),u.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}]`,"g");const c=new Xn(null,a),l=[];let p,f=!1,h=0,d=0,m=0;e:for(let t=r,n=i;t<=n;t++){const n=e.getLineContent(t),r=n.length;c.reset(0);do{if(p=c.next(n),p){let e=p.index,i=p.index+p[0].length;e>0&&X(n.charCodeAt(e-1))&&e--,i+1<r&&X(n.charCodeAt(i-1))&&i++;const s=n.substring(e,i),a=xt(e+1,At,n,0),u=o.shouldHighlightNonBasicASCII(s,a?a.word:null);if(0!==u){3===u?h++:2===u?d++:1===u?m++:J();const n=1e3;if(l.length>=n){f=!0;break e}l.push(new lt(t,e+1,t,i+1))}}}while(p)}return{ranges:l,hasMore:f,ambiguousCharacterCount:h,invisibleCharacterCount:d,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new Zn(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),o=ie.getLocales().filter((e=>!ie.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}))}computeDiff(e,t,n,r){return tr(this,void 0,void 0,(function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const s=i.getLinesContent(),a=o.getLinesContent(),u=new gt(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),c=!(u.changes.length>0)&&this._modelsAreIdentical(i,o);return{quitEarly:u.quitEarly,identical:c,changes:u.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}computeMoreMinimalEdits(e,t){return tr(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i;t=t.slice(0).sort(((e,t)=>e.range&&t.range?lt.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:o,eol:s}of t){if("number"==typeof s&&(i=s),lt.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>rr._diffLimit){r.push({range:e,text:o});continue}const a=Ae(t,o,!1),u=n.offsetAt(lt.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(u+e.originalStart),i=n.positionAt(u+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return tr(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Lt.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return tr(this,void 0,void 0,(function*(){const i=new $(!0),o=new RegExp(n,r),s=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(o))if(n!==t&&isNaN(Number(n))&&(s.add(n),s.size>rr._suggestionsLimit))break e}return{words:Array.from(s),duration:i.elapsed()}}))}computeWordRanges(e,t,n,r){return tr(this,void 0,void 0,(function*(){const i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(n,r),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){const t=i.getLineWords(e,o);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=s[n.word];t||(t=[],s[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return s}))}navigateValueSet(e,t,n,r,i){return tr(this,void 0,void 0,(function*(){const o=this._getModel(e);if(!o)return null;const s=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=o.getValueInRange(t),u=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!u)return null;const c=o.getValueInRange(u);return Pt.INSTANCE.navigateValueSet(t,a,u,c,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)};let r={};for(const t of e)r[t]=n(t);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(z(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}rr._diffLimit=1e5,rr._suggestionsLimit=1e4,"function"==typeof importScripts&&(_.monaco={editor:void 0,languages:void 0,CancellationTokenSource:class{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 Bt),this._token}cancel(){this._token?this._token instanceof Bt&&this._token.cancel():this._token=Mt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Bt&&this._token.dispose():this._token=Mt.None}},Emitter:Y,KeyCode:wn,KeyMod:Gn,Position:ct,Range:lt,Selection:Gt,SelectionDirection:In,MarkerSeverity:An,MarkerTag:Sn,Uri:Xe,Token:class{constructor(e,t,n){this._tokenBrand=void 0,this.offset=e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}});let ir=!1;function or(e){if(ir)return;ir=!0;const t=new me((e=>{self.postMessage(e)}),(t=>new rr(t,e)));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{ir||or(null)};class sr{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 t of e)if(sr.isIncremental(t)){const e=fr(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0),o=Math.max(e.end.line,0);let s=this._lineOffsets;const a=pr(t.text,!1,n);if(o-i===a.length)for(let e=0,t=a.length;e<t;e++)s[e+i+1]=a[e];else a.length<1e4?s.splice(i+1,o-i,...a):this._lineOffsets=s=s.slice(0,i+1).concat(a,s.slice(o+1));const u=t.text.length-(r-n);if(0!==u)for(let e=i+1+a.length,t=s.length;e<t;e++)s[e]=s[e]+u}else{if(!sr.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=pr(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 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 null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var ar,ur,cr;function lr(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);lr(r,t),lr(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;){let n=t(r[o],i[s]);e[a++]=n<=0?r[o++]:i[s++]}for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function pr(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);13!==i&&10!==i||(13===i&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function fr(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 hr(e){const t=fr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function dr(e,t=!1){const n=e.length;let r=0,i="",o=0,s=16,a=0,u=0,c=0,l=0,p=0;function f(t,n){let i=0,o=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,i++}return i<t&&(o=-1),o}function h(){if(i="",p=0,o=r,u=a,l=c,r>=n)return o=n,s=17;let t=e.charCodeAt(r);if(mr(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(mr(t));return s=15}if(gr(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),p=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(gr(o)){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=f(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}i=r}}return t}(),s=10;case 47:const u=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!gr(e.charCodeAt(r));)r++;return i=e.substring(u,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,gr(t)&&(13===t&&10===e.charCodeAt(r)&&r++,a++,c=r)}return o||(r++,p=1),i=e.substring(u,r),s=13}return i+=String.fromCharCode(t),r++,s=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!yr(e.charCodeAt(r)))return s=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&&yr(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&yr(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&yr(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&&yr(e.charCodeAt(r))){for(r++;r<e.length&&yr(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&d(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(t),r++,s=16}}function d(e){if(mr(e)||gr(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="",o=0,s=16,p=0},getPosition:()=>r,scan:t?function(){let e;do{e=h()}while(e>=12&&e<=15);return e}:h,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>u,getTokenStartCharacter:()=>o-l,getTokenError:()=>p}}function mr(e){return 32===e||9===e}function gr(e){return 10===e||13===e}function yr(e){return e>=48&&e<=57}!function(e){e.create=function(e,t,n,r){return new sr(e,t,n,r)},e.update=function(e,t,n){if(e instanceof sr)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=lr(t.map(hr),((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 o=[];for(const t of r){let r=e.offsetAt(t.range.start);if(r<i)throw new Error("Overlapping edit");r>i&&o.push(n.substring(i,r)),t.newText.length&&o.push(t.newText),i=e.offsetAt(t.range.end)}return o.push(n.substr(i)),o.join("")}}(ar||(ar={})),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"}(ur||(ur={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(cr||(cr={}));const br=dr;var vr,Dr;!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"}(vr||(vr={})),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"}(Dr||(Dr={}));const Cr=function(e,t=[],n=cr.DEFAULT){let r=null,i=[];const o=[];function s(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return function(e,t,n=cr.DEFAULT){const r=dr(e,!1),i=[];function o(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(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 c=s(t.onObjectBegin),l=u(t.onObjectProperty),p=o(t.onObjectEnd),f=s(t.onArrayBegin),h=o(t.onArrayEnd),d=u(t.onLiteralValue),m=a(t.onSeparator),g=o(t.onComment),y=a(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function D(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:C(14);break;case 5:C(15);break;case 3:C(13);break;case 1:b||C(11);break;case 2:C(12);break;case 6:C(16)}switch(e){case 12:case 13:b?C(10):g();break;case 16:C(1);break;case 15:case 14:break;default:return e}}}function C(e,t=[],n=[]){if(y(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){D();break}if(-1!==n.indexOf(e))break;e=D()}}}function E(e){const t=r.getTokenValue();return e?d(t):(l(t),i.push(t)),D(),!0}D(),17===r.getToken()?!!n.allowEmptyContent||C(4,[],[]):function e(){switch(r.getToken()){case 3:return function(){f(),D();let t=!0,n=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(n||C(4,[],[]),m(","),D(),4===r.getToken()&&v)break}else n&&C(6,[],[]);t?(i.push(0),t=!1):i[i.length-1]++,e()||C(4,[],[4,5]),n=!0}return h(),t||i.pop(),4!==r.getToken()?C(8,[4],[]):D(),!0}();case 1:return function(){c(),D();let t=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||C(4,[],[]),m(","),D(),2===r.getToken()&&v)break}else t&&C(6,[],[]);(10!==r.getToken()?(C(3,[],[2,5]),0):(E(!1),6===r.getToken()?(m(":"),D(),e()||C(4,[],[2,5])):C(5,[],[2,5]),i.pop(),1))||C(4,[],[2,5]),t=!0}return p(),2!==r.getToken()?C(7,[2],[]):D(),!0}();case 10:return E(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(C(2),t=0),d(t);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return D(),!0}()}}()?17!==r.getToken()&&C(9,[],[]):C(4,[],[])}(e,{onObjectBegin:()=>{const e={};s(e),o.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=o.pop()},onArrayBegin:()=>{const e=[];s(e),o.push(i),i=e,r=null},onArrayEnd:()=>{i=o.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]},Er=function e(t,n,r=!1){if(function(e,t,n=!1){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 o=e(i[t],n,r);if(o)return o}return t}},wr=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},Ar=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 Sr,xr;!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"}(Sr||(Sr={})),(()=>{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,o=-1,s=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(o===a-1||1===s);else if(o!==a-1&&2===s){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("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,i=47===s.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 o=e.length,s=o-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,c=s<u?s:u,l=-1,p=0;p<=c;++p){if(p===c){if(u>c){if(47===n.charCodeAt(a+p))return n.slice(a+p+1);if(0===p)return n.slice(a+p)}else s>c&&(47===e.charCodeAt(i+p)?l=p:0===p&&(l=0));break}var f=e.charCodeAt(i+p);if(f!==n.charCodeAt(a+p))break;47===f&&(l=p)}var h="";for(p=i+l+1;p<=o;++p)p!==o&&47!==e.charCodeAt(p)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+l):(a+=l,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,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,s=!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 c=e.charCodeAt(r);if(47===c){if(!s){i=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===o&&(s=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(o=!1,i=a+1),46===u?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!o){r=a+1;break}}return-1===n||-1===i||0===s||1===s&&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),o=47===i;o?(n.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,p=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===i?-1===s?s=l:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===p||1===p&&s===u-1&&s===a+1?-1!==u&&(n.base=n.name=0===a&&o?e.slice(1,u):e.slice(a,u)):(0===a&&o?(n.name=e.slice(1,s),n.base=e.slice(1,u)):(n.name=e.slice(a,s),n.base=e.slice(a,u)),n.ext=e.slice(s,u)),a>0?n.dir=e.slice(0,a-1):o&&(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 o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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={};(()=>{var e;if(n.r(r),n.d(r,{URI:()=>h,Utils:()=>A}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){var t=navigator.userAgent;e=t.indexOf("Windows")>=0}var i,o,s=(i=function(e,t){return i=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])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=/^\w[\w\d+.-]*$/,u=/^\//,c=/^\/\//,l="",p="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,h=function(){function t(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==p&&(t=p+t):t=p}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,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&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.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(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return t.isUri=function(e){return e instanceof t||!!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},Object.defineProperty(t.prototype,"fsPath",{get:function(){return v(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new m(t,n,r,i,o)},t.parse=function(e,t){void 0===t&&(t=!1);var n=f.exec(e);return n?new m(n[2]||l,w(n[4]||l),w(n[5]||l),w(n[7]||l),w(n[9]||l),t):new m(l,l,l,l,l)},t.file=function(t){var n=l;if(e&&(t=t.replace(/\\/g,p)),t[0]===p&&t[1]===p){var r=t.indexOf(p,2);-1===r?(n=t.substring(2),t=p):(n=t.substring(2,r),t=t.substring(r)||p)}return new m("file",n,t,l,l)},t.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},t.prototype.toString=function(e){return void 0===e&&(e=!1),D(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var n=new m(e);return n._formatted=e.external,n._fsPath=e._sep===d?e.fsPath:null,n}return e},t}(),d=e?1:void 0,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?D(this,!0):(this._formatted||(this._formatted=D(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(h),g=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function y(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=g[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function b(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=g[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function v(t,n){var 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 D(e,t){var n=t?b:y,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=p,r+=p),o){var c=o.indexOf("@");if(-1!==c){var l=o.substr(0,c);o=o.substr(c+1),-1===(c=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,c),!1),r+=":",r+=n(l.substr(c+1),!1)),r+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/".concat(String.fromCharCode(f+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s="".concat(String.fromCharCode(f+32),":").concat(s.substr(2)))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:y(u,!1)),r}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(E)?e.replace(E,(function(e){return C(e)})):e}var A,S=n(470),x=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},T=S.posix||S,F="/";!function(e){e.joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:T.join.apply(T,x([e.path],t,!1))})},e.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.path,i=!1;r[0]!==F&&(r=F+r,i=!0);var o=T.resolve.apply(T,x([r],t,!1));return i&&o[0]===F&&!e.authority&&(o=o.substring(1)),e.with({path:o})},e.dirname=function(e){if(0===e.path.length||e.path===F)return e;var t=T.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return T.basename(e.path)},e.extname=function(e){return T.extname(e.path)}}(A||(A={}))})(),xr=r})();const{URI:Tr,Utils:Fr}=xr;var Nr,kr,_r,Or,Lr,Pr,Ir,Mr,Br,jr,Rr,Vr,$r,Ur,Wr,qr,Kr,Hr,Yr,zr,Jr,Gr,Qr,Xr,Zr,ei,ti,ni,ri,ii;!function(e){e.is=function(e){return"string"==typeof e}}(Nr||(Nr={})),(kr||(kr={})).is=function(e){return"string"==typeof e},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}}(_r||(_r={})),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}}(Or||(Or={})),(ii=Lr||(Lr={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Or.MAX_VALUE),t===Number.MAX_VALUE&&(t=Or.MAX_VALUE),{line:e,character:t}},ii.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.uinteger(t.line)&&Xi.uinteger(t.character)},(ri=Pr||(Pr={})).create=function(e,t,n,r){if(Xi.uinteger(e)&&Xi.uinteger(t)&&Xi.uinteger(n)&&Xi.uinteger(r))return{start:Lr.create(e,t),end:Lr.create(n,r)};if(Lr.is(e)&&Lr.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},ri.is=function(e){var t=e;return Xi.objectLiteral(t)&&Lr.is(t.start)&&Lr.is(t.end)},function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Pr.is(t.range)&&(Xi.string(t.uri)||Xi.undefined(t.uri))}}(Ir||(Ir={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Pr.is(t.targetRange)&&Xi.string(t.targetUri)&&Pr.is(t.targetSelectionRange)&&(Pr.is(t.originSelectionRange)||Xi.undefined(t.originSelectionRange))}}(Mr||(Mr={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.numberRange(t.red,0,1)&&Xi.numberRange(t.green,0,1)&&Xi.numberRange(t.blue,0,1)&&Xi.numberRange(t.alpha,0,1)}}(Br||(Br={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Pr.is(t.range)&&Br.is(t.color)}}(jr||(jr={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.string(t.label)&&(Xi.undefined(t.textEdit)||zr.is(t))&&(Xi.undefined(t.additionalTextEdits)||Xi.typedArray(t.additionalTextEdits,zr.is))}}(Rr||(Rr={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(Vr||(Vr={})),function(e){e.create=function(e,t,n,r,i,o){var s={startLine:e,endLine:t};return Xi.defined(n)&&(s.startCharacter=n),Xi.defined(r)&&(s.endCharacter=r),Xi.defined(i)&&(s.kind=i),Xi.defined(o)&&(s.collapsedText=o),s},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.uinteger(t.startLine)&&Xi.uinteger(t.startLine)&&(Xi.undefined(t.startCharacter)||Xi.uinteger(t.startCharacter))&&(Xi.undefined(t.endCharacter)||Xi.uinteger(t.endCharacter))&&(Xi.undefined(t.kind)||Xi.string(t.kind))}}($r||($r={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Xi.defined(t)&&Ir.is(t.location)&&Xi.string(t.message)}}(Ur||(Ur={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Wr||(Wr={})),function(e){e.Unnecessary=1,e.Deprecated=2}(qr||(qr={})),function(e){e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.string(t.href)}}(Kr||(Kr={})),function(e){e.create=function(e,t,n,r,i,o){var s={range:e,message:t};return Xi.defined(n)&&(s.severity=n),Xi.defined(r)&&(s.code=r),Xi.defined(i)&&(s.source=i),Xi.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t,n=e;return Xi.defined(n)&&Pr.is(n.range)&&Xi.string(n.message)&&(Xi.number(n.severity)||Xi.undefined(n.severity))&&(Xi.integer(n.code)||Xi.string(n.code)||Xi.undefined(n.code))&&(Xi.undefined(n.codeDescription)||Xi.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Xi.string(n.source)||Xi.undefined(n.source))&&(Xi.undefined(n.relatedInformation)||Xi.typedArray(n.relatedInformation,Ur.is))}}(Hr||(Hr={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return Xi.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.string(t.title)&&Xi.string(t.command)}}(Yr||(Yr={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.string(t.newText)&&Pr.is(t.range)}}(zr||(zr={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Xi.string(t.label)&&(Xi.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Xi.string(t.description)||void 0===t.description)}}(Jr||(Jr={})),function(e){e.is=function(e){var t=e;return Xi.string(t)}}(Gr||(Gr={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return zr.is(t)&&(Jr.is(t.annotationId)||Gr.is(t.annotationId))}}(Qr||(Qr={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Xi.defined(t)&&ai.is(t.textDocument)&&Array.isArray(t.edits)}}(Xr||(Xr={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Xi.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Xi.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Xi.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Gr.is(t.annotationId))}}(Zr||(Zr={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Xi.string(t.oldUri)&&Xi.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Xi.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Xi.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Gr.is(t.annotationId))}}(ei||(ei={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Xi.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Xi.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Xi.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Gr.is(t.annotationId))}}(ti||(ti={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Xi.string(e.kind)?Zr.is(e)||ei.is(e)||ti.is(e):Xr.is(e)})))}}(ni||(ni={}));var oi,si,ai,ui,ci,li,pi,fi,hi,di,mi,gi,yi,bi,vi,Di,Ci,Ei,wi,Ai,Si,xi,Ti,Fi,Ni,ki,_i,Oi,Li,Pi,Ii,Mi,Bi,ji,Ri,Vi,$i,Ui,Wi,qi,Ki,Hi,Yi,zi,Ji,Gi=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=zr.insert(e,t):Gr.is(n)?(i=n,r=Qr.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Qr.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=zr.replace(e,t):Gr.is(n)?(i=n,r=Qr.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Qr.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=zr.del(e):Gr.is(t)?(r=t,n=Qr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=Qr.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Qi=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Gr.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Qi(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Xr.is(e)){var n=new Gi(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Gi(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ai.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Gi(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Gi(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Qi,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Jr.is(t)||Gr.is(t)?r=t:n=t,void 0===r?i=Zr.create(e,n):(o=Gr.is(r)?r:this._changeAnnotations.manage(r),i=Zr.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(Jr.is(n)||Gr.is(n)?i=n:r=n,void 0===i?o=ei.create(e,t,r):(s=Gr.is(i)?i:this._changeAnnotations.manage(i),o=ei.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Jr.is(t)||Gr.is(t)?r=t:n=t,void 0===r?i=ti.create(e,n):(o=Gr.is(r)?r:this._changeAnnotations.manage(r),i=ti.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.string(t.uri)}}(oi||(oi={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.string(t.uri)&&Xi.integer(t.version)}}(si||(si={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.string(t.uri)&&(null===t.version||Xi.integer(t.version))}}(ai||(ai={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.string(t.uri)&&Xi.string(t.languageId)&&Xi.integer(t.version)&&Xi.string(t.text)}}(ui||(ui={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(ci||(ci={})),function(e){e.is=function(e){var t=e;return Xi.objectLiteral(e)&&ci.is(t.kind)&&Xi.string(t.value)}}(li||(li={})),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}(pi||(pi={})),function(e){e.PlainText=1,e.Snippet=2}(fi||(fi={})),function(e){e.Deprecated=1}(hi||(hi={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Xi.string(t.newText)&&Pr.is(t.insert)&&Pr.is(t.replace)}}(di||(di={})),function(e){e.asIs=1,e.adjustIndentation=2}(mi||(mi={})),function(e){e.is=function(e){var t=e;return t&&(Xi.string(t.detail)||void 0===t.detail)&&(Xi.string(t.description)||void 0===t.description)}}(gi||(gi={})),function(e){e.create=function(e){return{label:e}}}(yi||(yi={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(bi||(bi={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Xi.string(t)||Xi.objectLiteral(t)&&Xi.string(t.language)&&Xi.string(t.value)}}(vi||(vi={})),function(e){e.is=function(e){var t=e;return!!t&&Xi.objectLiteral(t)&&(li.is(t.contents)||vi.is(t.contents)||Xi.typedArray(t.contents,vi.is))&&(void 0===e.range||Pr.is(e.range))}}(Di||(Di={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Ci||(Ci={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return Xi.defined(t)&&(i.documentation=t),Xi.defined(n)?i.parameters=n:i.parameters=[],i}}(Ei||(Ei={})),function(e){e.Text=1,e.Read=2,e.Write=3}(wi||(wi={})),function(e){e.create=function(e,t){var n={range:e};return Xi.number(t)&&(n.kind=t),n}}(Ai||(Ai={})),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}(Si||(Si={})),function(e){e.Deprecated=1}(xi||(xi={})),function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(Ti||(Ti={})),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}}}}(Fi||(Fi={})),function(e){e.create=function(e,t,n,r,i,o){var s={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(s.children=o),s},e.is=function(e){var t=e;return t&&Xi.string(t.name)&&Xi.number(t.kind)&&Pr.is(t.range)&&Pr.is(t.selectionRange)&&(void 0===t.detail||Xi.string(t.detail))&&(void 0===t.deprecated||Xi.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Ni||(Ni={})),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"}(ki||(ki={})),function(e){e.Invoked=1,e.Automatic=2}(_i||(_i={})),function(e){e.create=function(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.typedArray(t.diagnostics,Hr.is)&&(void 0===t.only||Xi.typedArray(t.only,Xi.string))&&(void 0===t.triggerKind||t.triggerKind===_i.Invoked||t.triggerKind===_i.Automatic)}}(Oi||(Oi={})),function(e){e.create=function(e,t,n){var r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):Yr.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&Xi.string(t.title)&&(void 0===t.diagnostics||Xi.typedArray(t.diagnostics,Hr.is))&&(void 0===t.kind||Xi.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Yr.is(t.command))&&(void 0===t.isPreferred||Xi.boolean(t.isPreferred))&&(void 0===t.edit||ni.is(t.edit))}}(Li||(Li={})),function(e){e.create=function(e,t){var n={range:e};return Xi.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return Xi.defined(t)&&Pr.is(t.range)&&(Xi.undefined(t.command)||Yr.is(t.command))}}(Pi||(Pi={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return Xi.defined(t)&&Xi.uinteger(t.tabSize)&&Xi.boolean(t.insertSpaces)}}(Ii||(Ii={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return Xi.defined(t)&&Pr.is(t.range)&&(Xi.undefined(t.target)||Xi.string(t.target))}}(Mi||(Mi={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return Xi.objectLiteral(n)&&Pr.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(Bi||(Bi={})),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"}(ji||(ji={})),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"}(Ri||(Ri={})),function(e){e.is=function(e){var t=e;return Xi.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Vi||(Vi={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){var t=e;return null!=t&&Pr.is(t.range)&&Xi.string(t.text)}}($i||($i={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){var t=e;return null!=t&&Pr.is(t.range)&&Xi.boolean(t.caseSensitiveLookup)&&(Xi.string(t.variableName)||void 0===t.variableName)}}(Ui||(Ui={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){var t=e;return null!=t&&Pr.is(t.range)&&(Xi.string(t.expression)||void 0===t.expression)}}(Wi||(Wi={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return Xi.defined(t)&&Pr.is(e.stoppedLocation)}}(qi||(qi={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ki||(Ki={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&(void 0===t.tooltip||Xi.string(t.tooltip)||li.is(t.tooltip))&&(void 0===t.location||Ir.is(t.location))&&(void 0===t.command||Yr.is(t.command))}}(Hi||(Hi={})),function(e){e.create=function(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return Xi.objectLiteral(t)&&Lr.is(t.position)&&(Xi.string(t.label)||Xi.typedArray(t.label,Hi.is))&&(void 0===t.kind||Ki.is(t.kind))&&void 0===t.textEdits||Xi.typedArray(t.textEdits,zr.is)&&(void 0===t.tooltip||Xi.string(t.tooltip)||li.is(t.tooltip))&&(void 0===t.paddingLeft||Xi.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Xi.boolean(t.paddingRight))}}(Yi||(Yi={})),function(e){e.is=function(e){var t=e;return Xi.objectLiteral(t)&&kr.is(t.uri)&&Xi.string(t.name)}}(zi||(zi={})),function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var s=0,a=0,u=0;s<i.length&&a<o.length;){var c=n(i[s],o[a]);e[u++]=c<=0?i[s++]:o[a++]}for(;s<i.length;)e[u++]=i[s++];for(;a<o.length;)e[u++]=o[a++];return e}e.create=function(e,t,n,r){return new Zi(e,t,n,r)},e.is=function(e){var t=e;return!!(Xi.defined(t)&&Xi.string(t.uri)&&(Xi.undefined(t.languageId)||Xi.string(t.languageId))&&Xi.uinteger(t.lineCount)&&Xi.func(t.getText)&&Xi.func(t.positionAt)&&Xi.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,s=i.length-1;s>=0;s--){var a=i[s],u=e.offsetAt(a.range.start),c=e.offsetAt(a.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+a.newText+r.substring(c,r.length),o=u}return r}}(Ji||(Ji={}));var Xi,Zi=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var 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},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Lr.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return Lr.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===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)}}(Xi||(Xi={}));const eo=Symbol.for("yaml.alias"),to=Symbol.for("yaml.document"),no=Symbol.for("yaml.map"),ro=Symbol.for("yaml.pair"),io=Symbol.for("yaml.scalar"),oo=Symbol.for("yaml.seq"),so=Symbol.for("yaml.node.type"),ao=e=>!!e&&"object"==typeof e&&e[so]===eo,uo=e=>!!e&&"object"==typeof e&&e[so]===to,co=e=>!!e&&"object"==typeof e&&e[so]===no,lo=e=>!!e&&"object"==typeof e&&e[so]===ro,po=e=>!!e&&"object"==typeof e&&e[so]===io,fo=e=>!!e&&"object"==typeof e&&e[so]===oo;function ho(e){if(e&&"object"==typeof e)switch(e[so]){case no:case oo:return!0}return!1}function mo(e){if(e&&"object"==typeof e)switch(e[so]){case eo:case no:case io:case oo:return!0}return!1}class go{constructor(e){Object.defineProperty(this,so,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const yo=Symbol("break visit"),bo=Symbol("skip children"),vo=Symbol("remove node");function Do(e,t){const n=Ao(t);uo(e)?Co(null,e.contents,n,Object.freeze([e]))===vo&&(e.contents=null):Co(null,e,n,Object.freeze([]))}function Co(e,t,n,r){const i=So(e,t,n,r);if(mo(i)||lo(i))return xo(e,r,i),Co(e,i,n,r);if("symbol"!=typeof i)if(ho(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=Co(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===yo)return yo;i===vo&&(t.items.splice(e,1),e-=1)}}}else if(lo(t)){r=Object.freeze(r.concat(t));const e=Co("key",t.key,n,r);if(e===yo)return yo;e===vo&&(t.key=null);const i=Co("value",t.value,n,r);if(i===yo)return yo;i===vo&&(t.value=null)}return i}async function Eo(e,t){const n=Ao(t);uo(e)?await wo(null,e.contents,n,Object.freeze([e]))===vo&&(e.contents=null):await wo(null,e,n,Object.freeze([]))}async function wo(e,t,n,r){const i=await So(e,t,n,r);if(mo(i)||lo(i))return xo(e,r,i),wo(e,i,n,r);if("symbol"!=typeof i)if(ho(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=await wo(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===yo)return yo;i===vo&&(t.items.splice(e,1),e-=1)}}}else if(lo(t)){r=Object.freeze(r.concat(t));const e=await wo("key",t.key,n,r);if(e===yo)return yo;e===vo&&(t.key=null);const i=await wo("value",t.value,n,r);if(i===yo)return yo;i===vo&&(t.value=null)}return i}function Ao(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 So(e,t,n,r){var i,o,s,a,u;return"function"==typeof n?n(e,t,r):co(t)?null===(i=n.Map)||void 0===i?void 0:i.call(n,e,t,r):fo(t)?null===(o=n.Seq)||void 0===o?void 0:o.call(n,e,t,r):lo(t)?null===(s=n.Pair)||void 0===s?void 0:s.call(n,e,t,r):po(t)?null===(a=n.Scalar)||void 0===a?void 0:a.call(n,e,t,r):ao(t)?null===(u=n.Alias)||void 0===u?void 0:u.call(n,e,t,r):void 0}function xo(e,t,n){const r=t[t.length-1];if(ho(r))r.items[e]=n;else if(lo(r))"key"===e?r.key=n:r.value=n;else{if(!uo(r)){const e=ao(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}}Do.BREAK=yo,Do.SKIP=bo,Do.REMOVE=vo,Eo.BREAK=yo,Eo.SKIP=bo,Eo.REMOVE=vo;const To={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class Fo{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Fo.defaultYaml,e),this.tags=Object.assign({},Fo.defaultTags,t)}clone(){const e=new Fo(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Fo(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Fo.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Fo.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Fo.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Fo.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;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const i=this.tags[n];return i?i+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${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=>To[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&mo(e.contents)){const t={};Do(e.contents,((e,n)=>{mo(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,o]of n)"!!"===i&&"tag:yaml.org,2002:"===o||e&&!r.some((e=>e.startsWith(o)))||t.push(`%TAG ${i} ${o}`);return t.join("\n")}}function No(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function ko(e){const t=new Set;return Do(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function _o(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}Fo.defaultYaml={explicit:!1,version:"1.2"},Fo.defaultTags={"!!":"tag:yaml.org,2002:"};class Oo extends go{constructor(e){super(eo),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Do(e,{Node:(e,n)=>{if(n===this)return Do.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,o=this.resolve(r);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const s=n.get(o);if(!s||void 0===s.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=Lo(r,o,n)),s.count*s.aliasCount>i))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(No(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function Lo(e,t,n){if(ao(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(ho(t)){let r=0;for(const i of t.items){const t=Lo(e,i,n);t>r&&(r=t)}return r}if(lo(t)){const r=Lo(e,t.key,n),i=Lo(e,t.value,n);return Math.max(r,i)}return 1}function Po(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>Po(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!po(r=e)&&!ho(r)||!r.anchor)return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=e=>{i.res=e,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}var r;return"bigint"!=typeof e||(null==n?void 0:n.keep)?e:Number(e)}const Io=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Mo extends go{constructor(e){super(io),this.value=e}toJSON(e,t){return(null==t?void 0:t.keep)?this.value:Po(this.value,e,t)}toString(){return String(this.value)}}function Bo(e,t,n){var r,i;if(uo(e)&&(e=e.contents),mo(e))return e;if(lo(e)){const t=null===(i=(r=n.schema[no]).createNode)||void 0===i?void 0:i.call(r,n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"function"==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:o,onAnchor:s,onTagObj:a,schema:u,sourceObjects:c}=n;let l;if(o&&e&&"object"==typeof e){if(l=c.get(e),l)return l.anchor||(l.anchor=s(e)),new Oo(l.anchor);l={anchor:null,node:null},c.set(e,l)}(null==t?void 0:t.startsWith("!!"))&&(t="tag:yaml.org,2002:"+t.slice(2));let p=function(e,t,n){var r;if(t){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 ${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,u.tags);if(!p){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new Mo(e);return l&&(l.node=t),t}p=e instanceof Map?u[no]:Symbol.iterator in Object(e)?u[oo]:u[no]}a&&(a(p),delete n.onTagObj);const f=(null==p?void 0:p.createNode)?p.createNode(n.schema,e,n):new Mo(e);return t&&(f.tag=t),l&&(l.node=f),f}function jo(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Bo(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}Mo.BLOCK_FOLDED="BLOCK_FOLDED",Mo.BLOCK_LITERAL="BLOCK_LITERAL",Mo.PLAIN="PLAIN",Mo.QUOTE_DOUBLE="QUOTE_DOUBLE",Mo.QUOTE_SINGLE="QUOTE_SINGLE";const Ro=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class Vo extends go{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=>mo(t)||lo(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ro(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(ho(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,jo(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(ho(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&po(i)?i.value:i:ho(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!lo(t))return!1;const n=t.value;return null==n||e&&po(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!!ho(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(ho(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,jo(this.schema,r,t))}}}}Vo.maxFlowStringSingleLineLength=60;const $o=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Uo(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Wo=(e,t,n)=>e.endsWith("\n")?Uo(n,t):n.includes("\n")?"\n"+Uo(n,t):(e.endsWith(" ")?"":" ")+n,qo="flow",Ko="block",Ho="quoted";function Yo(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){if(!i||i<0)return e;const u=Math.max(1+o,1+i-t.length);if(e.length<=u)return e;const c=[],l={};let p,f,h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?c.push(0):h=i-r);let d,m=!1,g=-1,y=-1,b=-1;for(n===Ko&&(g=zo(e,g),-1!==g&&(h=g+u));d=e[g+=1];){if(n===Ho&&"\\"===d){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===d)n===Ko&&(g=zo(e,g)),h=g+u,p=void 0;else{if(" "===d&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[g+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=g)}if(g>=h)if(p)c.push(p),h=p+u,p=void 0;else if(n===Ho){for(;" "===f||"\t"===f;)f=d,d=e[g+=1],m=!0;const t=g>b+1?g-2:y-1;if(l[t])return e;c.push(t),l[t]=!0,h=t+u,p=void 0}else m=!0}f=d}if(m&&a&&a(),0===c.length)return e;s&&s();let v=e.slice(0,c[0]);for(let r=0;r<c.length;++r){const i=c[r],o=c[r+1]||e.length;0===i?v=`\n${t}${e.slice(0,o)}`:(n===Ho&&l[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,o)}`)}return v}function zo(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}const Jo=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Go=e=>/^(%|---|\.\.\.)/m.test(e);function Qo(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Go(e)?" ":"");let s="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(s+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{s+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<i)e+=1;else{for(s+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)s+="\n",e+=2;s+=o," "===n[e+2]&&(s+="\\"),e+=1,a=e+1}break;default:e+=1}return s=a?s+n.slice(a):n,r?s:Yo(s,o,Ho,Jo(t))}function Xo(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Qo(e,t);const n=t.indent||(Go(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:Yo(r,n,qo,Jo(t))}function Zo(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=Qo;else{const t=e.includes('"'),i=e.includes("'");r=t&&!i?Xo:i&&!t?Qo:n?Xo:Qo}return r(e,t)}function es({comment:e,type:t,value:n},r,i,o){const{blockQuote:s,commentString:a,lineWidth:u}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Zo(n,r);const c=r.indent||(r.forceBlockIndent||Go(n)?" ":""),l="literal"===s||"folded"!==s&&t!==Mo.BLOCK_FOLDED&&(t===Mo.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 t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,u,c.length));if(!n)return l?"|\n":">\n";let p,f;for(f=n.length;f>0;--f){const e=n[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=n.substring(f);const d=h.indexOf("\n");-1===d?p="-":n===h||d!==h.length-1?(p="+",o&&o()):p="",h&&(n=n.slice(0,-h.length),"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(/\n+(?!\n|$)/g,`$&${c}`));let m,g=!1,y=-1;for(m=0;m<n.length;++m){const e=n[m];if(" "===e)g=!0;else{if("\n"!==e)break;y=m}}let b=n.substring(0,y<m?y+1:m);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let v=(l?"|":">")+(g?c?"2":"1":"")+p;return e&&(v+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),l?`${v}\n${c}${b}${n=n.replace(/\n+/g,`$&${c}`)}${h}`:`${v}\n${c}${Yo(`${b}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${h}`,c,Ko,Jo(r))}`}function ts(e,t,n,r){const{implicitKey:i,inFlow:o}=t,s="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Mo.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Mo.QUOTE_DOUBLE);const u=e=>{switch(e){case Mo.BLOCK_FOLDED:case Mo.BLOCK_LITERAL:return i||o?Zo(s.value,t):es(s,t,n,r);case Mo.QUOTE_DOUBLE:return Qo(s.value,t);case Mo.QUOTE_SINGLE:return Xo(s.value,t);case Mo.PLAIN:return function(e,t,n,r){const{type:i,value:o}=e,{actualString:s,implicitKey:a,indent:u,inFlow:c}=t;if(a&&/[\n[\]{},]/.test(o)||c&&/[[\]{},]/.test(o))return Zo(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||c||!o.includes("\n")?Zo(o,t):es(e,t,n,r);if(!a&&!c&&i!==Mo.PLAIN&&o.includes("\n"))return es(e,t,n,r);if(""===u&&Go(o))return t.forceBlockIndent=!0,es(e,t,n,r);const l=o.replace(/\n+/g,`$&\n${u}`);if(s){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(l))},{compat:n,tags:r}=t.doc.schema;if(r.some(e)||(null==n?void 0:n.some(e)))return Zo(o,t)}return a?l:Yo(l,u,qo,Jo(t))}(s,t,n,r);default:return null}};let c=u(a);if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(c=u(r),null===c)throw new Error(`Unsupported default string type ${r}`)}return c}function ns(e,t){const n=Object.assign({blockQuote:!0,commentString:$o,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",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,indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function rs(e,t,n,r){var i,o;if(lo(e))return e.toString(t,n,r);if(ao(e)){if(t.doc.directives)return e.toString(t);if(null===(i=t.resolvedAliases)||void 0===i?void 0:i.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 s;const a=mo(e)?e:t.doc.createNode(e,{onTagObj:e=>s=e});s||(s=function(e,t){var n,r,i,o;if(t.tag){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 s,a;if(po(t)){a=t.value;const n=e.filter((e=>{var t;return null===(t=e.identify)||void 0===t?void 0:t.call(e,a)}));s=null!==(r=n.find((e=>e.format===t.format)))&&void 0!==r?r:n.find((e=>!e.format))}else a=t,s=e.find((e=>e.nodeClass&&a instanceof e.nodeClass));if(!s){const e=null!==(o=null===(i=null==a?void 0:a.constructor)||void 0===i?void 0:i.name)&&void 0!==o?o:typeof a;throw new Error(`Tag not resolved for ${e} value`)}return s}(t.doc.schema.tags,a));const u=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],o=(po(e)||ho(e))&&e.anchor;o&&No(o)&&(n.add(o),i.push(`&${o}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&i.push(r.directives.tagString(s)),i.join(" ")}(a,s,t);u.length>0&&(t.indentAtStart=(null!==(o=t.indentAtStart)&&void 0!==o?o:0)+u.length+1);const c="function"==typeof s.stringify?s.stringify(a,t,n,r):po(a)?ts(a,t,n,r):a.toString(t,n,r);return u?po(a)||"{"===c[0]||"["===c[0]?`${u} ${c}`:`${u}\n${t.indent}${c}`:c}function is(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}function os(e,t,{key:n,value:r}){if((null==e?void 0:e.doc.schema.merge)&&ss(n))if(r=ao(r)?r.resolve(e.doc):r,fo(r))for(const n of r.items)as(e,t,n);else if(Array.isArray(r))for(const n of r)as(e,t,n);else as(e,t,r);else{const i=Po(n,"",e);if(t instanceof Map)t.set(i,Po(r,i,e));else if(t instanceof Set)t.add(i);else{const o=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(mo(e)&&n&&n.doc){const t=ns(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)+'..."'),is(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),s=Po(r,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}const ss=e=>"<<"===e||po(e)&&"<<"===e.value&&(!e.type||e.type===Mo.PLAIN);function as(e,t,n){const r=e&&ao(n)?n.resolve(e.doc):n;if(!co(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function us(e,t,n){const r=Bo(e,void 0,n),i=Bo(t,void 0,n);return new cs(r,i)}class cs{constructor(e,t=null){Object.defineProperty(this,so,{value:ro}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return mo(t)&&(t=t.clone(e)),mo(n)&&(n=n.clone(e)),new cs(t,n)}toJSON(e,t){return os(t,(null==t?void 0:t.mapAsMap)?new Map:{},this)}toString(e,t,n){return(null==e?void 0:e.doc)?function({key:e,value:t},n,r,i){const{allNullValues:o,doc:s,indent:a,indentStep:u,options:{commentString:c,indentSeq:l,simpleKeys:p}}=n;let f=mo(e)&&e.comment||null;if(p){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(ho(e))throw new Error("With simple keys, collection cannot be used as a key value")}let h=!p&&(!e||f&&null==t&&!n.inFlow||ho(e)||(po(e)?e.type===Mo.BLOCK_FOLDED||e.type===Mo.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(p||!o),indent:a+u});let d=!1,m=!1,g=rs(e,n,(()=>d=!0),(()=>m=!0));if(!h&&!n.inFlow&&g.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(o||null==t)return d&&r&&r(),""===g?"?":h?`? ${g}`:g}else if(o&&!p||null==t&&h)return g=`? ${g}`,f&&!d?g+=Wo(g,n.indent,c(f)):m&&i&&i(),g;d&&(f=null),h?(f&&(g+=Wo(g,n.indent,c(f))),g=`? ${g}\n${a}:`):(g=`${g}:`,f&&(g+=Wo(g,n.indent,c(f))));let y="",b=null;mo(t)?(t.spaceBefore&&(y="\n"),t.commentBefore&&(y+=`\n${Uo(c(t.commentBefore),n.indent)}`),b=t.comment):t&&"object"==typeof t&&(t=s.createNode(t)),n.implicitKey=!1,h||f||!po(t)||(n.indentAtStart=g.length+1),m=!1,l||!(u.length>=2)||n.inFlow||h||!fo(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substr(2));let v=!1;const D=rs(t,n,(()=>v=!0),(()=>m=!0));let C=" ";return y||f?C=""!==D||n.inFlow?`${y}\n${n.indent}`:"\n"===y?"\n\n":y:!h&&ho(t)?("["===D[0]||"{"===D[0])&&!D.includes("\n")||(C=`\n${n.indent}`):""!==D&&"\n"!==D[0]||(C=""),g+=C+D,n.inFlow?v&&r&&r():b&&!v?g+=Wo(g,n.indent,c(b)):m&&i&&i(),g}(this,e,t,n):JSON.stringify(this)}}function ls(e,t,n){var r;return((null!==(r=t.inFlow)&&void 0!==r?r:e.flow)?fs:ps)(e,t,n)}function ps({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:o,onChompKeep:s,onComment:a}){const{indent:u,options:{commentString:c}}=n,l=Object.assign({},n,{indent:o,type:null});let p=!1;const f=[];for(let e=0;e<t.length;++e){const i=t[e];let s=null;if(mo(i))!p&&i.spaceBefore&&f.push(""),hs(n,f,i.commentBefore,p),i.comment&&(s=i.comment);else if(lo(i)){const e=mo(i.key)?i.key:null;e&&(!p&&e.spaceBefore&&f.push(""),hs(n,f,e.commentBefore,p))}p=!1;let a=rs(i,l,(()=>s=null),(()=>p=!0));s&&(a+=Wo(a,o,c(s))),p&&s&&(p=!1),f.push(r+a)}let h;if(0===f.length)h=i.start+i.end;else{h=f[0];for(let e=1;e<f.length;++e){const t=f[e];h+=t?`\n${u}${t}`:"\n"}}return e?(h+="\n"+Uo(c(e),u),a&&a()):p&&s&&s(),h}function fs({comment:e,items:t},n,{flowChars:r,itemIndent:i,onComment:o}){const{indent:s,indentStep:a,options:{commentString:u}}=n;i+=a;const c=Object.assign({},n,{indent:i,inFlow:!0,type:null});let l=!1,p=0;const f=[];for(let e=0;e<t.length;++e){const r=t[e];let o=null;if(mo(r))r.spaceBefore&&f.push(""),hs(n,f,r.commentBefore,!1),r.comment&&(o=r.comment);else if(lo(r)){const e=mo(r.key)?r.key:null;e&&(e.spaceBefore&&f.push(""),hs(n,f,e.commentBefore,!1),e.comment&&(l=!0));const t=mo(r.value)?r.value:null;t?(t.comment&&(o=t.comment),t.commentBefore&&(l=!0)):null==r.value&&e&&e.comment&&(o=e.comment)}o&&(l=!0);let s=rs(r,c,(()=>o=null));e<t.length-1&&(s+=","),o&&(s+=Wo(s,i,u(o))),!l&&(f.length>p||s.includes("\n"))&&(l=!0),f.push(s),p=f.length}let h;const{start:d,end:m}=r;if(0===f.length)h=d+m;else if(l||(l=f.reduce(((e,t)=>e+t.length+2),2)>Vo.maxFlowStringSingleLineLength),l){h=d;for(const e of f)h+=e?`\n${a}${s}${e}`:"\n";h+=`\n${s}${m}`}else h=`${d} ${f.join(" ")} ${m}`;return e&&(h+=Wo(h,u(e),s),o&&o()),h}function hs({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const i=Uo(t(r),e);n.push(i.trimStart())}}function ds(e,t){const n=po(t)?t.value:t;for(const r of e)if(lo(r)){if(r.key===t||r.key===n)return r;if(po(r.key)&&r.key.value===n)return r}}class ms extends Vo{constructor(e){super(no,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(e,t){var n;let r;r=lo(e)?e:new cs(e&&"object"==typeof e&&"key"in e?e.key:e,e.value);const i=ds(this.items,r.key),o=null===(n=this.schema)||void 0===n?void 0:n.sortMapEntries;if(i){if(!t)throw new Error(`Key ${r.key} already set`);po(i.value)&&Io(r.value)?i.value.value=r.value:i.value=r.value}else if(o){const e=this.items.findIndex((e=>o(r,e)<0));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){const t=ds(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ds(this.items,e),r=null==n?void 0:n.value;return!t&&po(r)?r.value:r}has(e){return!!ds(this.items,e)}set(e,t){this.add(new cs(e,t),!0)}toJSON(e,t,n){const r=n?new n:(null==t?void 0:t.mapAsMap)?new Map:{};(null==t?void 0:t.onCreate)&&t.onCreate(r);for(const e of this.items)os(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!lo(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ls(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const gs={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:i}=n,o=new ms(e),s=(e,s)=>{if("function"==typeof i)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==s||r)&&o.items.push(us(e,s,n))};if(t instanceof Map)for(const[e,n]of t)s(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))s(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:ms,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(co(e)||t("Expected a mapping for this tag"),e)};class ys extends Vo{constructor(e){super(oo,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(e){this.items.push(e)}delete(e){const t=bs(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=bs(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&po(r)?r.value:r}has(e){const t=bs(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=bs(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];po(r)&&Io(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];(null==t?void 0:t.onCreate)&&t.onCreate(n);let r=0;for(const e of this.items)n.push(Po(e,String(r++),t));return n}toString(e,t,n){return e?ls(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}}function bs(e){let t=po(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const vs={collection:"seq",createNode:function(e,t,n){const{replacer:r}=n,i=new ys(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if("function"==typeof r){const n=t instanceof Set?o:String(e++);o=r.call(t,n,o)}i.items.push(Bo(o,void 0,n))}}return i},default:!0,nodeClass:ys,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(fo(e)||t("Expected a sequence for this tag"),e)},Ds={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>ts(e,t=Object.assign({actualString:!0},t),n,r)},Cs={identify:e=>null==e,createNode:()=>new Mo(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Mo(null),stringify:({source:e},t)=>"string"==typeof e&&Cs.test.test(e)?e:t.options.nullStr},Es={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Mo("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&Es.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function ws({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}const As={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:ws},Ss={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():ws(e)}},xs={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 Mo(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:ws},Ts=e=>"bigint"==typeof e||Number.isInteger(e),Fs=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Ns(e,t,n){const{value:r}=e;return Ts(r)&&r>=0?n+r.toString(t):ws(e)}const ks={identify:e=>Ts(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Fs(e,2,8,n),stringify:e=>Ns(e,8,"0o")},_s={identify:Ts,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Fs(e,0,10,n),stringify:ws},Os={identify:e=>Ts(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Fs(e,2,16,n),stringify:e=>Ns(e,16,"0x")},Ls=[gs,vs,Ds,Cs,Es,ks,_s,Os,As,Ss,xs];function Ps(e){return"bigint"==typeof e||Number.isInteger(e)}const Is=({value:e})=>JSON.stringify(e),Ms=[gs,vs].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Is},{identify:e=>null==e,createNode:()=>new Mo(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Is},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Is},{identify:Ps,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ps(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Is}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Bs={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({comment:e,type:t,value:n},r,i,o){const s=n;let a;if("function"==typeof Buffer)a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.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<s.length;++t)e+=String.fromCharCode(s[t]);a=btoa(e)}}if(t||(t=Mo.BLOCK_LITERAL),t!==Mo.QUOTE_DOUBLE){const e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/e),i=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=a.substr(r,e);a=i.join(t===Mo.BLOCK_LITERAL?"\n":" ")}return ts({comment:e,type:t,value:a},r,i,o)}};function js(e,t){var n;if(fo(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!lo(i)){if(co(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new cs(new Mo(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore),i.comment){const t=null!==(n=e.value)&&void 0!==n?n:e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=lo(i)?i:new cs(i)}}else t("Expected a sequence for this tag");return e}function Rs(e,t,n){const{replacer:r}=n,i=new ys(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,a;if("function"==typeof r&&(e=r.call(t,String(o++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);s=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);s=t[0],a=e[s]}else s=e;i.items.push(us(s,a,n))}return i}const Vs={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:js,createNode:Rs};class $s extends ys{constructor(){super(),this.add=ms.prototype.add.bind(this),this.delete=ms.prototype.delete.bind(this),this.get=ms.prototype.get.bind(this),this.has=ms.prototype.has.bind(this),this.set=ms.prototype.set.bind(this),this.tag=$s.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;(null==t?void 0:t.onCreate)&&t.onCreate(n);for(const e of this.items){let r,i;if(lo(e)?(r=Po(e.key,"",t),i=Po(e.value,r,t)):r=Po(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}}$s.tag="tag:yaml.org,2002:omap";const Us={collection:"seq",identify:e=>e instanceof Map,nodeClass:$s,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=js(e,t),r=[];for(const{key:e}of n.items)po(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new $s,n)},createNode(e,t,n){const r=Rs(e,t,n),i=new $s;return i.items=r.items,i}};function Ws({value:e,source:t},n){return t&&(e?qs:Ks).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const qs={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 Mo(!0),stringify:Ws},Ks={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Mo(!1),stringify:Ws},Hs={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:ws},Ys={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():ws(e)}},zs={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 Mo(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:ws},Js=e=>"bigint"==typeof e||Number.isInteger(e);function Gs(e,t,n,{intAsBigInt:r}){const i=e[0];if("-"!==i&&"+"!==i||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===i?-1*o:o}function Qs(e,t,n){const{value:r}=e;if(Js(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return ws(e)}const Xs={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Gs(e,2,2,n),stringify:e=>Qs(e,2,"0b")},Zs={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Gs(e,1,8,n),stringify:e=>Qs(e,8,"0")},ea={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Gs(e,0,10,n),stringify:ws},ta={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Gs(e,2,16,n),stringify:e=>Qs(e,16,"0x")};class na extends ms{constructor(e){super(e),this.tag=na.tag}add(e){let t;t=lo(e)?e:"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new cs(e.key,null):new cs(e,null),ds(this.items,t.key)||this.items.push(t)}get(e,t){const n=ds(this.items,e);return!t&&lo(n)?po(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 "+typeof t);const n=ds(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new cs(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")}}na.tag="tag:yaml.org,2002:set";const ra={collection:"map",identify:e=>e instanceof Set,nodeClass:na,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(co(e)){if(e.hasAllNullValues(!0))return Object.assign(new na,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,i=new na(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(us(e,null,n));return i}};function ia(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*o:o}function oa(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return ws(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const sa={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,{intAsBigInt:n})=>ia(e,n),stringify:oa},aa={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=>ia(e,!1),stringify:oa},ua={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(ua.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,o,s,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,o||0,s||0,a||0,u);const l=t[8];if(l&&"Z"!==l){let e=ia(l,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ca=[gs,vs,Ds,Cs,qs,Ks,Xs,Zs,ea,ta,Hs,Ys,zs,Bs,Us,Vs,ra,sa,aa,ua],la=new Map([["core",Ls],["failsafe",[gs,vs,Ds]],["json",Ms],["yaml11",ca],["yaml-1.1",ca]]),pa={binary:Bs,bool:Es,float:xs,floatExp:Ss,floatNaN:As,floatTime:aa,int:_s,intHex:Os,intOct:ks,intTime:sa,map:gs,null:Cs,omap:Us,pairs:Vs,seq:vs,set:ra,timestamp:ua},fa={"tag:yaml.org,2002:binary":Bs,"tag:yaml.org,2002:omap":Us,"tag:yaml.org,2002:pairs":Vs,"tag:yaml.org,2002:set":ra,"tag:yaml.org,2002:timestamp":ua};function ha(e,t){let n=la.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(la.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=pa[e];if(t)return t;const n=Object.keys(pa).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const da=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class ma{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:s}){this.compat=Array.isArray(e)?ha(e,"compat"):e?ha(null,e):null,this.merge=!!n,this.name="string"==typeof i&&i||"core",this.knownTags=r?fa:{},this.tags=ha(t,this.name),this.toStringOptions=null!=s?s:null,Object.defineProperty(this,no,{value:gs}),Object.defineProperty(this,io,{value:Ds}),Object.defineProperty(this,oo,{value:vs}),this.sortMapEntries="function"==typeof o?o:!0===o?da:null}clone(){const e=Object.create(ma.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function ga(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){const n=r[t],i=ga(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(const t of Array.from(r.keys())){const n=r.get(t),i=ga(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(const t of Array.from(r)){const n=ga(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(const[t,n]of Object.entries(r)){const i=ga(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}class ya{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,so,{value:to});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;(null==n?void 0:n.directives)?(this.directives=n.directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Fo({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(ya.prototype,{[so]:{value:to}});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=mo(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ba(this.contents)&&this.contents.add(e)}addIn(e,t){ba(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=ko(this);e.anchor=!t||n.has(t)?_o(t||"a",n):t}return new Oo(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=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)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:s,keepUndefined:a,onTagObj:u,tag:c}=null!=n?n:{},{onAnchor:l,setAnchors:p,sourceObjects:f}=function(e,t){const n=[],r=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=ko(e));const o=_o(t,i);return i.add(o),o},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!po(t.node)&&!ho(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=Bo(e,c,{aliasDuplicateObjects:null==i||i,keepUndefined:null!=a&&a,onAnchor:l,onTagObj:u,replacer:r,schema:this.schema,sourceObjects:f});return s&&ho(h)&&(h.flow=!0),p(),h}createPair(e,t,n={}){const r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new cs(r,i)}delete(e){return!!ba(this.contents)&&this.contents.delete(e)}deleteIn(e){return Ro(e)?null!=this.contents&&(this.contents=null,!0):!!ba(this.contents)&&this.contents.deleteIn(e)}get(e,t){return ho(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ro(e)?!t&&po(this.contents)?this.contents.value:this.contents:ho(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!ho(this.contents)&&this.contents.has(e)}hasIn(e){return Ro(e)?void 0!==this.contents:!!ho(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=jo(this.schema,[e],t):ba(this.contents)&&this.contents.set(e,t)}setIn(e,t){Ro(e)?this.contents=t:null==this.contents?this.contents=jo(this.schema,Array.from(e),t):ba(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Fo({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Fo({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new ma(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){const s={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:rs},a=Po(this.contents,null!=t?t:"",s);if("function"==typeof i)for(const{count:e,res:t}of s.anchors.values())i(t,e);return"function"==typeof o?ga(o,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){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 ${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 o=ns(e,t),{commentString:s}=o.options;if(e.commentBefore){1!==r.length&&r.unshift("");const t=s(e.commentBefore);r.unshift(Uo(t,""))}let a=!1,u=null;if(e.contents){if(mo(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const t=s(e.contents.commentBefore);r.push(Uo(t,""))}o.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>a=!0;let n=rs(e.contents,o,(()=>u=null),t);u&&(n+=Wo(n,"",s(u))),"|"!==n[0]&&">"!==n[0]||"---"!==r[r.length-1]?r.push(n):r[r.length-1]=`--- ${n}`}else r.push(rs(e.contents,o));if(null===(n=e.directives)||void 0===n?void 0:n.docEnd)if(e.comment){const t=s(e.comment);t.includes("\n")?(r.push("..."),r.push(Uo(t,""))):r.push(`... ${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(Uo(s(t),"")))}return r.join("\n")+"\n"}(this,e)}}function ba(e){if(ho(e))return!0;throw new Error("Expected a YAML collection as document contents")}class va extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Da extends va{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Ca extends va{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Ea=(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 ${r}, column ${i}`;let o=i-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){const e=Math.min(o-39,s.length-79);s="…"+s.substring(e),o-=e-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,o))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),s=n+s}if(/[^ ]/.test(s)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.min(t.col-i,80-o));const a=" ".repeat(o)+"^".repeat(e);n.message+=`:\n\n${s}\n${a}\n`}};function wa(e,{flow:t,indicator:n,next:r,offset:i,onError:o,startOnNewline:s}){let a=!1,u=s,c=s,l="",p="",f=!1,h=!1,d=!1,m=null,g=null,y=null,b=null,v=null;for(const r of e)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),r.type){case"space":!t&&u&&"doc-start"!==n&&"\t"===r.source[0]&&o(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||o(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";l?l+=p+e:l=e,p="",u=!1;break}case"newline":u?l?l+=r.source:a=!0:p+=r.source,u=!0,f=!0,(m||g)&&(h=!0),c=!0;break;case"anchor":m&&o(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&o(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===v&&(v=r.offset),u=!1,c=!1,d=!0;break;case"tag":g&&o(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===v&&(v=r.offset),u=!1,c=!1,d=!0;break;case n:(m||g)&&o(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),b&&o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${null!=t?t:"collection"}`),b=r,u=!1,c=!1;break;case"comma":if(t){y&&o(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,u=!1,c=!1;break}default:o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),u=!1,c=!1}const D=e[e.length-1],C=D?D.offset+D.source.length:i;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:b,spaceBefore:a,comment:l,hasNewline:f,hasNewlineAfterProp:h,anchor:m,tag:g,end:C,start:null!=v?v:C}}function Aa(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(Aa(t.key)||Aa(t.value))return!0}return!1;default:return!0}}function Sa(e,t,n){if("flow-collection"===(null==t?void 0:t.type)){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!Aa(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function xa(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const i="function"==typeof r?r:(t,n)=>t===n||po(t)&&po(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}const Ta="All mapping items must start at the same column";function Fa(e,t,n,r){let i="";if(e){let o=!1,s="";for(const a of e){const{source:e,type:u}=a;switch(u){case"space":o=!0;break;case"comment":{n&&!o&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=s+t:i=t,s="";break}case"newline":i&&(s+=e),o=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=e.length}}return{comment:i,offset:t}}const Na="Block collections are not allowed within flow collections",ka=e=>e&&("block-map"===e.type||"block-seq"===e.type);function _a(e){var t;let n,r;try{n=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){n=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=n.exec(e);if(!i)return e;let o=i[1],s=" ",a=n.lastIndex;for(r.lastIndex=a;i=r.exec(e);)""===i[1]?"\n"===s?o+=s:s="\n":(o+=s+i[1],s=" "),a=r.lastIndex;const u=/[ \t]*(.*)/sy;return u.lastIndex=a,i=u.exec(e),o+s+(null!==(t=null==i?void 0:i[1])&&void 0!==t?t:"")}function Oa(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 La={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Pa(e,t,n,r){const i=e.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const i=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(o)}function Ia(e,t,n,r){const{value:i,type:o,comment:s,range:a}="block-scalar"===t.type?function(e,t,n){const r=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],o=i[0];let s=0,a="",u=-1;for(let t=1;t<i.length;++t){const n=i[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!s&&r?s=r:-1===u&&(u=e+t)}else a=n}-1!==u&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,l="",p=i.length;for(let e=1;e<t.length;++e){const i=t[e];switch(i.type){case"space":c=!0;case"newline":p+=i.source.length;break;case"comment":n&&!c&&r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=i.source.length,l=i.source.substring(1);break;case"error":r(i,"UNEXPECTED_TOKEN",i.message),p+=i.source.length;break;default:{r(i,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${i.type}`);const e=i.source;e&&"string"==typeof e&&(p+=e.length)}}}return{mode:o,indent:s,chomp:a,comment:l,length:p}}(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const o=">"===i.mode?Mo.BLOCK_FOLDED:Mo.BLOCK_LITERAL,s=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[(null==r?void 0:r[1])?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(e.source):[];let a=s.length;for(let e=s.length-1;e>=0;--e){const t=s[e][1];if(""!==t&&"\r"!==t)break;a=e}if(0===a){const t="+"===i.chomp&&s.length>0?"\n".repeat(Math.max(1,s.length-1)):"";let n=r+i.length;return e.source&&(n+=e.source.length),{value:t,type:o,comment:i.comment,range:[r,n,n]}}let u=e.indent+i.indent,c=e.offset+i.length,l=0;for(let e=0;e<a;++e){const[t,r]=s[e];if(""!==r&&"\r"!==r){if(t.length<u){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(c+t.length,"MISSING_CHAR",e)}0===i.indent&&(u=t.length),l=e;break}0===i.indent&&t.length>u&&(u=t.length),c+=t.length+r.length+1}for(let e=s.length-1;e>=a;--e)s[e][0].length>u&&(a=e+1);let p="",f="",h=!1;for(let e=0;e<l;++e)p+=s[e][0].slice(u)+"\n";for(let e=l;e<a;++e){let[t,r]=s[e];c+=t.length+r.length+1;const a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&t.length<u){const e="Block scalar lines must not be less indented than their "+(i.indent?"explicit indentation indicator":"first line");n(c-r.length-(a?2:1),"BAD_INDENT",e),t=""}o===Mo.BLOCK_LITERAL?(p+=f+t.slice(u)+r,f="\n"):t.length>u||"\t"===r[0]?(" "===f?f="\n":h||"\n"!==f||(f="\n\n"),p+=f+t.slice(u)+r,f="\n",h=!0):""===r?"\n"===f?p+="\n":f="\n":(p+=f+r,f=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;e<s.length;++e)p+="\n"+s[e][0].slice(u);"\n"!==p[p.length-1]&&(p+="\n");break;default:p+="\n"}const d=r+i.length+e.source.length;return{value:p,type:o,comment:i.comment,range:[r,d,d]}}(t,e.options.strict,r):function(e,t,n){const{offset:r,type:i,source:o,end:s}=e;let a,u;const c=(e,t,i)=>n(r+e,t,i);switch(i){case"scalar":a=Mo.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 ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),_a(e)}(o,c);break;case"single-quoted-scalar":a=Mo.QUOTE_SINGLE,u=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),_a(e.slice(1,-1)).replace(/''/g,"'")}(o,c);break;case"double-quoted-scalar":a=Mo.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}=Oa(e,r);n+=t,r=i}else if("\\"===i){let i=e[++r];const o=La[i];if(o)n+=o;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 o={x:2,u:4,U:8}[i];n+=Pa(e,r+1,o,t),r+=o}else{const i=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||"\t"===i){const t=r;let o=e[r+1];for(;" "===o||"\t"===o;)o=e[1+ ++r];"\n"===o||"\r"===o&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):i)}else n+=i}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(o,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+o.length,r+o.length]}}const l=r+o.length,p=Fa(s,l,t,n);return{value:u,type:a,comment:p.comment,range:[r,l,p.offset]}}(t,e.options.strict,r),u=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,c=n&&u?function(e,t,n,r,i){var o;if("!"===n)return e[io];const s=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(const e of s)if(null===(o=e.test)||void 0===o?void 0:o.test(t))return e;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[io])}(e.schema,i,u,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,i){var o;const s=t.tags.find((e=>{var t;return e.default&&(null===(t=e.test)||void 0===t?void 0:t.test(n))}))||t[io];if(t.compat){const a=null!==(o=t.compat.find((e=>{var t;return e.default&&(null===(t=e.test)||void 0===t?void 0:t.test(n))})))&&void 0!==o?o:t[io];s.tag!==a.tag&&i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(a.tag)}`,!0)}return s}(e,i,t,r):e.schema[io];let l;try{const o=c.resolve(i,(e=>r(null!=n?n:t,"TAG_RESOLVE_FAILED",e)),e.options);l=po(o)?o:new Mo(o)}catch(e){const o=e instanceof Error?e.message:String(e);r(null!=n?n:t,"TAG_RESOLVE_FAILED",o),l=new Mo(i)}return l.range=a,l.source=i,o&&(l.type=o),u&&(l.tag=u),c.format&&(l.format=c.format),s&&(l.comment=s),l}function Ma(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===(null==n?void 0:n.type);)e+=n.source.length,n=t[++r];break}}return e}const Ba={composeNode:ja,composeEmptyNode:Ra};function ja(e,t,n,r){const{spaceBefore:i,comment:o,anchor:s,tag:a}=n;let u,c=!0;switch(t.type){case"alias":u=function({options:e},{offset:t,source:n,end:r},i){const o=new Oo(n.substring(1));""===o.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=Fa(r,s,e.strict,i);return o.range=[t,s,a.offset],a.comment&&(o.comment=a.comment),o}(e,t,r),(s||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=Ia(e,t,a,r),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=function(e,t,n,r,i){let o;switch(n.type){case"block-map":o=function({composeNode:e,composeEmptyNode:t},n,r,i){var o;const s=new ms(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset;for(const u of r.items){const{start:c,key:l,sep:p,value:f}=u,h=wa(c,{indicator:"explicit-key-ind",next:null!=l?l:null==p?void 0:p[0],offset:a,onError:i,startOnNewline:!0}),d=!h.found;if(d){if(l&&("block-seq"===l.type?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in l&&l.indent!==r.indent&&i(a,"BAD_INDENT",Ta)),!h.anchor&&!h.tag&&!p){h.comment&&(s.comment?s.comment+="\n"+h.comment:s.comment=h.comment);continue}(h.hasNewlineAfterProp||Aa(l))&&i(null!=l?l:c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else(null===(o=h.found)||void 0===o?void 0:o.indent)!==r.indent&&i(a,"BAD_INDENT",Ta);const m=h.end,g=l?e(n,l,h,i):t(n,m,c,null,h,i);n.schema.compat&&Sa(r.indent,l,i),xa(n,s.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");const y=wa(null!=p?p:[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,startOnNewline:!l||"block-scalar"===l.type});if(a=y.end,y.found){d&&("block-map"!==(null==f?void 0:f.type)||y.hasNewline||i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start<y.found.offset-1024&&i(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const o=f?e(n,f,y,i):t(n,a,p,null,y,i);n.schema.compat&&Sa(r.indent,f,i),a=o.range[2];const c=new cs(g,o);n.options.keepSourceTokens&&(c.srcToken=u),s.items.push(c)}else{d&&i(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);const e=new cs(g);n.options.keepSourceTokens&&(e.srcToken=u),s.items.push(e)}}return s.range=[r.offset,a,a],s}(e,t,n,i);break;case"block-seq":o=function({composeNode:e,composeEmptyNode:t},n,r,i){const o=new ys(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const{start:a,value:u}of r.items){const c=wa(a,{indicator:"seq-item-ind",next:u,offset:s,onError:i,startOnNewline:!0});if(s=c.end,!c.found){if(!(c.anchor||c.tag||u)){c.comment&&(o.comment=c.comment);continue}u&&"block-seq"===u.type?i(s,"BAD_INDENT","All sequence items must start at the same column"):i(s,"MISSING_CHAR","Sequence item without - indicator")}const l=u?e(n,u,c,i):t(n,s,a,null,c,i);n.schema.compat&&Sa(r.indent,u,i),s=l.range[2],o.items.push(l)}return o.range=[r.offset,s,s],o}(e,t,n,i);break;case"flow-collection":o=function({composeNode:e,composeEmptyNode:t},n,r,i){var o;const s="{"===r.start.source,a=s?"flow map":"flow sequence",u=s?new ms(n.schema):new ys(n.schema);u.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let l=r.offset+r.start.source.length;for(let c=0;c<r.items.length;++c){const p=r.items[c],{start:f,key:h,sep:d,value:m}=p,g=wa(f,{flow:a,indicator:"explicit-key-ind",next:null!=h?h:null==d?void 0:d[0],offset:l,onError:i,startOnNewline:!1});if(!g.found){if(!(g.anchor||g.tag||d||m)){0===c&&g.comma?i(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):c<r.items.length-1&&i(g.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),g.comment&&(u.comment?u.comment+="\n"+g.comment:u.comment=g.comment),l=g.end;continue}!s&&n.options.strict&&Aa(h)&&i(h,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===c)g.comma&&i(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(g.comma||i(g.start,"MISSING_CHAR",`Missing , between ${a} items`),g.comment){let e="";e:for(const t of f)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=u.items[u.items.length-1];lo(t)&&(t=null!==(o=t.value)&&void 0!==o?o:t.key),t.comment?t.comment+="\n"+e:t.comment=e,g.comment=g.comment.substring(e.length+1)}}if(s||d||g.found){const r=g.end,o=h?e(n,h,g,i):t(n,r,f,null,g,i);ka(h)&&i(o.range,"BLOCK_IN_FLOW",Na);const c=wa(null!=d?d:[],{flow:a,indicator:"map-value-ind",next:m,offset:o.range[2],onError:i,startOnNewline:!1});if(c.found){if(!s&&!g.found&&n.options.strict){if(d)for(const e of d){if(e===c.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}g.start<c.found.offset-1024&&i(c.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else m&&("source"in m&&m.source&&":"===m.source[0]?i(m,"MISSING_CHAR",`Missing space after : in ${a}`):i(c.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const y=m?e(n,m,c,i):c.found?t(n,c.end,d,null,c,i):null;y?ka(m)&&i(y.range,"BLOCK_IN_FLOW",Na):c.comment&&(o.comment?o.comment+="\n"+c.comment:o.comment=c.comment);const b=new cs(o,y);if(n.options.keepSourceTokens&&(b.srcToken=p),s){const e=u;xa(n,e.items,o)&&i(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(b)}else{const e=new ms(n.schema);e.flow=!0,e.items.push(b),u.items.push(e)}l=y?y.range[2]:c.end}else{const r=m?e(n,m,g,i):t(n,g.end,d,null,g,i);u.items.push(r),l=r.range[2],ka(m)&&i(r.range,"BLOCK_IN_FLOW",Na)}}const p=s?"}":"]",[f,...h]=r.end;let d=l;if(f&&f.source===p)d=f.offset+f.source.length;else{const e=a[0].toUpperCase()+a.substring(1);i(l,c?"MISSING_CHAR":"BAD_INDENT",c?`${e} must end with a ${p}`:`${e} in block collection must be sufficiently indented and end with a ${p}`),f&&1!==f.source.length&&h.unshift(f)}if(h.length>0){const e=Fa(h,d,n.options.strict,i);e.comment&&(u.comment?u.comment+="\n"+e.comment:u.comment=e.comment),u.range=[r.offset,d,e.offset]}else u.range=[r.offset,d,d];return u}(e,t,n,i)}if(!r)return o;const s=t.directives.tagName(r.source,(e=>i(r,"TAG_RESOLVE_FAILED",e)));if(!s)return o;const a=o.constructor;if("!"===s||s===a.tagName)return o.tag=a.tagName,o;const u=co(o)?"map":"seq";let c=t.schema.tags.find((e=>e.collection===u&&e.tag===s));if(!c){const e=t.schema.knownTags[s];if(!e||e.collection!==u)return i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),o.tag=s,o;t.schema.tags.push(Object.assign({},e,{default:!1})),c=e}const l=c.resolve(o,(e=>i(r,"TAG_RESOLVE_FAILED",e)),t.options),p=mo(l)?l:new Mo(l);return p.range=o.range,p.tag=s,(null==c?void 0:c.format)&&(p.format=c.format),p}(Ba,e,t,a,r),s&&(u.anchor=s.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),u=Ra(e,t.offset,void 0,null,n,r),c=!1}return s&&""===u.anchor&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(u.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?u.comment=o:u.commentBefore=o),e.options.keepSourceTokens&&c&&(u.srcToken=t),u}function Ra(e,t,n,r,{spaceBefore:i,comment:o,anchor:s,tag:a},u){const c=Ia(e,{type:"scalar",offset:Ma(t,n,r),indent:-1,source:""},a,u);return s&&(c.anchor=s.source.substring(1),""===c.anchor&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),o&&(c.comment=o),c}function Va(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 $a(e){var t;let n="",r=!1,i=!1;for(let o=0;o<e.length;++o){const s=e[o];switch(s[0]){case"#":n+=(""===n?"":i?"\n\n":"\n")+(s.substring(1)||" "),r=!0,i=!1;break;case"%":"#"!==(null===(t=e[o+1])||void 0===t?void 0:t[0])&&(o+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:n,afterEmptyLine:i}}class Ua{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const i=Va(e);r?this.warnings.push(new Ca(i,t,n)):this.errors.push(new Da(i,t,n))},this.directives=new Fo({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=$a(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(ho(i)&&!i.flow&&i.items.length>0){let e=i.items[0];lo(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=i.commentBefore;i.commentBefore=e?`${n}\n${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:$a(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const i=Va(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,{offset:n,start:r,value:i,end:o},s){const a=Object.assign({directives:t},e),u=new ya(void 0,a),c={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},l=wa(r,{indicator:"doc-start",next:null!=i?i:null==o?void 0:o[0],offset:n,onError:s,startOnNewline:!0});l.found&&(u.directives.docStart=!0,!i||"block-map"!==i.type&&"block-seq"!==i.type||l.hasNewline||s(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=i?ja(c,i,l,s):Ra(c,l.end,r,null,l,s);const p=u.contents.range[2],f=Fa(o,p,!1,s);return f.comment&&(u.comment=f.comment),u.range=[n,p,f.offset],u}(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?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Da(Va(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 Da(Va(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=Fa(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?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Da(Va(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({directives:this.directives},this.options),n=new ya(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}const Wa=Symbol("break visit"),qa=Symbol("skip children"),Ka=Symbol("remove item");function Ha(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),Ya(Object.freeze([]),e,t)}function Ya(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){const r=Ya(Object.freeze(e.concat([[i,t]])),o.items[t],n);if("number"==typeof r)t=r-1;else{if(r===Wa)return Wa;r===Ka&&(o.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,e))}}return"function"==typeof r?r(t,e):r}Ha.BREAK=Wa,Ha.SKIP=qa,Ha.REMOVE=Ka,Ha.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=null==n?void 0:n[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Ha.parentCollection=(e,t)=>{const n=Ha.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=null==n?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function za(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const Ja="0123456789ABCDEFabcdef".split(""),Ga="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Qa=",[]{}".split(""),Xa=" ,[]{}\n\r\t".split(""),Za=e=>!e||Xa.includes(e);class eu{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,t=!1){var n;e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let r=null!==(n=this.next)&&void 0!==n?n:"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}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)&&za(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"",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&&za(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&za(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!za(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)&&za(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(Za),"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("..."))&&za(r[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==r[0]&&"}"!==r[0]))return this.flowLevel=0,yield"",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(Za),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||za(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=>za(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"",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(za(t)||e&&","===t)break;n=r}else if(za(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&&Qa.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&&Qa.includes(t))break;n=r}return t||this.atEnd?(yield"",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(Za))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(za(t)||e&&Qa.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(;!za(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(Ga.includes(t))t=this.buffer[++e];else{if("%"!==t||!Ja.includes(this.buffer[e+1])||!Ja.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 tu{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}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}function nu(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function ru(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 iu(e){switch(null==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 ou(e){var t;switch(e.type){case"document":return e.start;case"block-map":{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 su(e){var t;if(0===e.length)return[];let n=e.length;e:for(;--n>=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===(null===(t=e[++n])||void 0===t?void 0:t.type););return e.splice(n,e.length)}function au(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||nu(t.start,"explicit-key-ind")||nu(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,iu(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 uu{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 eu,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.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"":return"doc-mode";case"":return"flow-error-end";case"":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: ${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?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&&au(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=!nu(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===ru(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 ${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!==ru(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 ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=su(ou(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){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],i=null===(t=null==r?void 0:r.value)||void 0===t?void 0:t.end;if(Array.isArray(i))return Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const t=!this.onKeyLine&&this.indent===e.indent&&n.sep;let r=[];if(t&&n.sep&&!n.value){const t=[];for(let r=0;r<n.sep.length;++r){const i=n.sep[r];switch(i.type){case"newline":t.push(r);break;case"space":break;case"comment":i.indent>e.indent&&(t.length=0);break;default:t.length=0}}t.length>=2&&(r=n.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag":return void(t||n.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken));case"explicit-key-ind":return n.sep||nu(n.start,"explicit-key-ind")?t||n.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]}]}):n.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(nu(n.start,"explicit-key-ind"))if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(nu(n.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(iu(n.key)&&!nu(n.sep,"newline")){const e=su(n.start),t=n.key,r=n.sep;r.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:r}]})}else r.length>0?n.sep=n.sep.concat(r,this.sourceToken):n.sep.push(this.sourceToken);else if(nu(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const e=su(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||t?e.items.push({start:r,key:null,sep:[this.sourceToken]}):nu(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{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(t||n.value?(e.items.push({start:r,key:i,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(i):(Object.assign(n,{key:i,sep:[]}),this.onKeyLine=!0))}default:{const i=this.startBlockValue(e);if(i)return t&&"block-seq"!==i.type&&nu(n.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(i)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],i=null===(t=null==r?void 0:r.value)||void 0===t?void 0:t.end;if(Array.isArray(i))return Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;return void n.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(n.value||nu(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.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=su(ou(t));au(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=su(ou(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=su(ou(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 cu(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const i=function(e,t={}){const{lineCounter:n,prettyErrors:r}=function(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new tu||null,prettyErrors:t}}(t),i=new uu(null==n?void 0:n.addNewLine),o=new Ua(t);let s=null;for(const t of o.compose(i.parse(e),!0,e.length))if(s){if("silent"!==s.options.logLevel){s.errors.push(new Da(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else s=t;return r&&n&&(s.errors.forEach(Ea(e,n)),s.warnings.forEach(Ea(e,n))),s}(e,n);if(!i)return null;if(i.warnings.forEach((e=>is(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 lu,pu,fu,hu=i(410),du=i(932),mu=i(535),gu=i.t(mu,2);function yu(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 bu(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function vu(e){return yu(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function Du(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Du(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!Du(i,o))return!1;for(n=0;n<i.length;n++)if(!Du(e[i[n]],t[i[n]]))return!1}return!0}function Cu(e){return"number"==typeof e}function Eu(e){return void 0!==e}function wu(e){return"boolean"==typeof e}function Au(e,t,...n){return function(e,t){return 0===t.length?e:e.replace(/{(\d+)}/g,((e,n)=>{const[r]=n;return void 0===t[r]?e:t[r]}))}(t,n)}function Su(){return Au}(pu=lu||(lu={}))[pu.Undefined=0]="Undefined",pu[pu.EnumValueMismatch=1]="EnumValueMismatch",pu[pu.Deprecated=2]="Deprecated",pu[pu.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",pu[pu.UnexpectedEndOfString=258]="UnexpectedEndOfString",pu[pu.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",pu[pu.InvalidUnicode=260]="InvalidUnicode",pu[pu.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",pu[pu.InvalidCharacter=262]="InvalidCharacter",pu[pu.PropertyExpected=513]="PropertyExpected",pu[pu.CommaExpected=514]="CommaExpected",pu[pu.ColonExpected=515]="ColonExpected",pu[pu.ValueExpected=516]="ValueExpected",pu[pu.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",pu[pu.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",pu[pu.TrailingComma=519]="TrailingComma",pu[pu.DuplicateKey=520]="DuplicateKey",pu[pu.CommentNotPermitted=521]="CommentNotPermitted",pu[pu.SchemaResolveError=768]="SchemaResolveError",(fu||(fu={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ci.Markdown,ci.PlainText],commitCharactersSupport:!0}}}};var xu,Tu,Fu,Nu,ku=(xu=function(e,t){return(xu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}xu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_u=Su(),Ou={"color-hex":{errorMessage:_u("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:_u("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:_u("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:_u("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:_u("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,}))$/}},Lu=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 Pu(e){return wu(e)?e?{}:{not:{}}:e}ku((function(e,t){var n=Nu.call(this,e,t)||this;return n.type="null",n.value=null,n}),Nu=Lu),function(e){ku((function(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}),e)}(Lu),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}ku(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}(Lu),function(e){ku((function(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}),e)}(Lu),function(e){ku((function(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}),e)}(Lu),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}ku(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}(Lu),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}ku(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}(Lu),(Fu=Tu||(Tu={}))[Fu.Key=0]="Key",Fu[Fu.Enum=1]="Enum";var Iu=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||Vu(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Mu=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}(),Bu=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===lu.EnumValueMismatch&&(r.message=_u("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 ju(e){return Ar(e)}function Ru(e){return wr(e)}function Vu(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function $u(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),o=[],s=0,a=e.properties;s<a.length;s++)i[R=(g=a[s]).keyNode.value]=g.valueNode,o.push(R);if(Array.isArray(t.required))for(var u=0,c=t.required;u<c.length;u++)if(!i[w=c[u]]){var l=e.parent&&"property"===e.parent.type&&e.parent.keyNode,p=l?{offset:l.offset,length:l.length}:{offset:e.offset,length:1};n.problems.push({location:p,message:_u("MissingRequiredPropWarning",'Missing property "{0}".',w)})}var f=function(e){for(var t=o.indexOf(e);t>=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var h=0,d=Object.keys(t.properties);h<d.length;h++){f(w=d[h]);var m=t.properties[w];if(N=i[w])if(wu(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||_u("DisallowedExtraPropWarning","Property {0} is not allowed.",w)})}else $u(N,m,x=new Bu,r),n.mergePropertyMatch(x)}if(t.patternProperties)for(var y=0,b=Object.keys(t.patternProperties);y<b.length;y++)for(var v=b[y],D=vu(v),C=0,E=o.slice(0);C<E.length;C++){var w=E[C];D.test(w)&&(f(w),(N=i[w])&&(wu(m=t.patternProperties[v])?m?(n.propertiesMatches++,n.propertiesValueMatches++):(g=N.parent,n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||_u("DisallowedExtraPropWarning","Property {0} is not allowed.",w)})):($u(N,m,x=new Bu,r),n.mergePropertyMatch(x))))}if("object"==typeof t.additionalProperties){for(var A=0,S=o;A<S.length;A++)if(N=i[w=S[A]]){var x=new Bu;$u(N,t.additionalProperties,x,r),n.mergePropertyMatch(x)}}else if(!1===t.additionalProperties&&o.length>0)for(var T=0,F=o;T<F.length;T++){var N;(N=i[w=F[T]])&&(g=N.parent,n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||_u("DisallowedExtraPropWarning","Property {0} is not allowed.",w)}))}if(Cu(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),Cu(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependencies)for(var k=0,_=Object.keys(t.dependencies);k<_.length;k++)if(i[R=_[k]]){var O=t.dependencies[R];if(Array.isArray(O))for(var L=0,P=O;L<P.length;L++){var I=P[L];i[I]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:_u("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",I,R)})}else(m=Pu(O))&&($u(e,m,x=new Bu,r),n.mergePropertyMatch(x))}var M=Pu(t.propertyNames);if(M)for(var B=0,j=e.properties;B<j.length;B++){var R;(R=j[B].keyNode)&&$u(R,M,n,Mu.instance)}}(i,t,n,r);break;case"array":!function(e,t,n,r){if(Array.isArray(t.items)){for(var i=t.items,o=0;o<i.length;o++){var s=Pu(i[o]),a=new Bu;(f=e.items[o])?($u(f,s,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 Bu,$u(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:_u("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",i.length)})}else{var c=Pu(t.items);if(c)for(var l=0,p=e.items;l<p.length;l++){var f;$u(f=p[l],c,a=new Bu,r),n.mergePropertyMatch(a)}}var h=Pu(t.contains);if(h&&(e.items.some((function(e){var t=new Bu;return $u(e,h,t,Mu.instance),!t.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||_u("requiredItemMissingWarning","Array does not contain required item.")})),Cu(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)}),Cu(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var d=ju(e);d.some((function(e,t){return t!==d.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n,r){if(Cu(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)}),Cu(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern&&(vu(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||_u("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var i=void 0;if(e.value){var o=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);o?o[2]||"uri"!==t.format||(i=_u("uriSchemeMissing","URI with a scheme is expected.")):i=_u("uriMissing","URI is expected.")}else i=_u("uriEmpty","URI expected.");i&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||_u("uriFormatWarning","String is not a URI: {0}",i)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var s=Ou[t.format];e.value&&s.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||s.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n,r){var i=e.value;function o(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(Cu(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=i%t.multipleOf;else{var a=o(t.multipleOf),u=o(i);if(a&&u){var c=Math.pow(10,Math.abs(u.multiplier-a.multiplier));u.multiplier<a.multiplier?u.value*=c:a.value*=c,s=u.value%a.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function l(e,t){return Cu(t)?t:wu(t)&&t?e:void 0}function p(e,t){if(!wu(t)||!t)return e}var f=l(t.minimum,t.exclusiveMinimum);Cu(f)&&i<=f&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",f)});var h=l(t.maximum,t.exclusiveMaximum);Cu(h)&&i>=h&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",h)});var d=p(t.minimum,t.exclusiveMinimum);Cu(d)&&i<d&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("minimumWarning","Value is below the minimum of {0}.",d)});var m=p(t.maximum,t.exclusiveMaximum);Cu(m)&&i>m&&n.problems.push({location:{offset:e.offset,length:e.length},message:_u("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return $u(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||_u("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||_u("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var o=0,s=t.allOf;o<s.length;o++){var a=s[o];$u(i,Pu(a),n,r)}var u=Pu(t.not);if(u){var c=new Bu,l=r.newSub();$u(i,u,c,l),c.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},message:_u("notSchemaWarning","Matches a schema that is not allowed.")});for(var p=0,f=l.schemas;p<f.length;p++){var h=f[p];h.inverted=!h.inverted,r.add(h)}}var d=function(e,t){for(var o=[],s=void 0,a=0,u=e;a<u.length;a++){var c=Pu(u[a]),l=new Bu,p=r.newSub();if($u(i,c,l,p),l.hasProblems()||o.push(c),s)if(t||l.hasProblems()||s.validationResult.hasProblems()){var f=l.compare(s.validationResult);f>0?s={schema:c,validationResult:l,matchingSchemas:p}:0===f&&(s.matchingSchemas.merge(p),s.validationResult.mergeEnumValues(l))}else s.matchingSchemas.merge(p),s.validationResult.propertiesMatches+=l.propertiesMatches,s.validationResult.propertiesValueMatches+=l.propertiesValueMatches;else s={schema:c,validationResult:l,matchingSchemas:p}}return o.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:_u("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(n.merge(s.validationResult),n.propertiesMatches+=s.validationResult.propertiesMatches,n.propertiesValueMatches+=s.validationResult.propertiesValueMatches,r.merge(s.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1),Array.isArray(t.oneOf)&&d(t.oneOf,!0);var m,g,y,b,v,D,C=function(e){var t=new Bu,o=r.newSub();$u(i,Pu(e),t,o),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(o)},E=Pu(t.if);if(E&&(m=E,g=Pu(t.then),y=Pu(t.else),b=Pu(m),v=new Bu,D=r.newSub(),$u(i,b,v,D),r.merge(D),v.hasProblems()?y&&C(y):g&&C(g)),Array.isArray(t.enum)){for(var w=ju(i),A=!1,S=0,x=t.enum;S<x.length;S++){if(Du(w,x[S])){A=!0;break}}n.enumValues=t.enum,n.enumValueMatch=A,A||n.problems.push({location:{offset:i.offset,length:i.length},code:lu.EnumValueMismatch,message:t.errorMessage||_u("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}Eu(t.const)&&(Du(w=ju(i),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:lu.EnumValueMismatch,message:t.errorMessage||_u("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:Wr.Warning,message:t.deprecationMessage,code:lu.Deprecated})}(),r.add({node:i,schema:t})}}function Uu(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,u=t&&"string"==typeof t.flags?t.flags:"",c=0,l=r.length;c<l;c++)switch(n=r[c]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(o){i+=".";break}case"[":case"]":if(o){i+=n;break}case"{":if(o){a=!0,i+="(";break}case"}":if(o){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var p=r[c-1],f=1;"*"===r[c+1];)f++,c++;var h=r[c+1];s?!(f>1)||"/"!==p&&void 0!==p&&"{"!==p&&","!==p||"/"!==h&&void 0!==h&&","!==h&&"}"!==h?i+="([^/]*)":("/"===h?c++:"/"===p&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=n}return u&&~u.indexOf("g")||(i="^"+i+"$"),new RegExp(i,u)}!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 Er(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 o=0;o<i.length&&r;o++)r=t(i[o]);return r};t(this.root)}},e.prototype.validate=function(e,t,n){if(void 0===n&&(n=Wr.Warning),this.root&&t){var r=new Bu;return $u(this.root,t,r,Mu.instance),r.problems.map((function(t){var r,i=Pr.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return Hr.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 Iu(t,n);return this.root&&e&&$u(this.root,e,new Bu,r),r.schemas}}();var Wu=Su(),qu=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],o="!"!==i[0];o||(i=i.substring(1)),i.length>0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:Uu("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],o=i.regexp,s=i.include;o.test(e)&&(t=s)}return t},e.prototype.getURIs=function(){return this.uris},e}(),Ku=function(){function e(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new Hu(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}(),Hu=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},Yu=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 Pu(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 o=i[r];if(vu(o).test(n))return this.getSectionRecursive(e,t.patternProperties[o])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var s=parseInt(n,10);if(!isNaN(s)&&t.items[s])return this.getSectionRecursive(e,t.items[s])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),zu=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=Tr.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=Gu(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),s=0;s<i.length;s++){var a=i[s];a&&(a.url===o||a.dependencies[o])&&(a.url!==o&&r.push(a.url),a.clearSchema(),i[s]=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=Gu(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var i=0,o=e.schemaAssociations;i<o.length;i++){var s=o[i],a=s.uris.map(Gu),u=this.addFilePatternAssociation(s.pattern,a);this.contributionAssociations.push(u)}},e.prototype.addSchemaHandle=function(e,t){var n=new Ku(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 qu(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=Gu(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=Gu(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=Wu("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Qu(e));return this.promise.resolve(new Hu({},[t]))}return this.requestService(e).then((function(t){if(!t){var n=Wu("json.schema.nocontent","Unable to load schema from '{0}': No content.",Qu(e));return new Hu({},[n])}var r,i=[];r=Cr(t,i);var o=i.length?[Wu("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Qu(e),i[0].offset)]:[];return new Hu(r,o)}),(function(t){var n=t.toString(),r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),bu(n,".")&&(n=n.substr(0,n.length-1)),new Hu({},[Wu("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Qu(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var s=Gu(o.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new Yu({},[Wu("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&i.push(Wu("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,u=function(e,t,n,r){var o=r?decodeURIComponent(r):void 0,s=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,o);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else i.push(Wu("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,n))},c=function(e,t,n,o,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,o)),t=Gu(t);var c=r.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((function(r){if(s[t]=!0,r.errors.length){var o=n?t+"#"+n:t;i.push(Wu("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,r.errors[0]))}return u(e,r.schema,t,n),l(e,r.schema,t,c.dependencies)}))},l=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],s=[],a=[],l=function(e){for(var r=[];e.$ref;){var s=e.$ref,l=s.split("#",2);if(delete e.$ref,l[0].length>0)return void a.push(c(e,l[0],l[1],n,i));-1===r.indexOf(s)&&(u(e,t,n,l[1]),r.push(s))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"==typeof i&&o.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 s in i){var a=i[s];"object"==typeof a&&o.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 s=0,a=i;s<a.length;s++){var u=a[s];"object"==typeof u&&o.push(u)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};o.length;){var p=o.pop();s.indexOf(p)>=0||(s.push(p),l(p))}return r.promise.all(a)};return l(o,o,t,n).then((function(e){return new Yu(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var i=ju(r);if(i&&yu(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=Gu(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],u=function(e){try{return Tr.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),c=0,l=this.filePatternAssociations;c<l.length;c++){var p=l[c];if(p.matchesPattern(u))for(var f=0,h=p.getURIs();f<h.length;f++){var d=h[f];s[d]||(a.push(d),s[d]=!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/"+Ju++;return this.resolveSchemaContent(new Hu(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}(),Ju=0;function Gu(e){try{return Tr.parse(e).toString()}catch(t){return e}}function Qu(e){try{var t=Tr.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function Xu(e){try{return new RegExp(e,"u")}catch(t){return new RegExp(e)}}function Zu(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 ec(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!ec(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!ec(i,o))return!1;for(n=0;n<i.length;n++)if(!ec(e[i[n]],t[i[n]]))return!1}return!0}function tc(e){return"number"==typeof e}function nc(e){return void 0!==e}function rc(e){return"boolean"==typeof e}function ic(e){return"string"==typeof e}function oc(e){var t;return e?e instanceof Error&&null!==(t=e.stack)&&void 0!==t?t:e.toString():"null"}function sc(e){return e.title?e.title:e.$id?ac(e.$id):e.$ref||e._$ref?ac(e.$ref||e._$ref):e.closestTitle||(Array.isArray(e.type)?e.type.join(" | "):e.type)}function ac(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function uc(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",o=0;o<e.length;o++)i+=r+uc(e[o],r,n),o<e.length-1&&(i+=","),i+="\n";return i+(t+"]")}var s=Object.keys(e);if(0===s.length)return"{}";for(i="{\n",o=0;o<s.length;o++){var a=s[o];i+=r+JSON.stringify(a)+": "+uc(e[a],r,n),o<s.length-1&&(i+=","),i+="\n"}return i+(t+"}")}return n(e)}var cc=Su();!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},o=e.getText(),s=e.offsetAt(t),a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(i);if(a&&s===a.offset+a.length&&s>0){var u=o[s-1];("object"===a.type&&"}"===u||"array"===a.type&&"]"===u)&&(a=a.parent)}var c,l=this.getCurrentWord(e,s);if(!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type){var p=s-l.length;p>0&&'"'===o[p-1]&&p--,c=Pr.create(e.positionAt(p),t)}else c=Pr.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));var f={},h={add:function(e){var t=e.label,n=f[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";f[r]||(t=r)}c&&void 0!==e.insertText&&(e.textEdit=zr.replace(c,e.insertText)),e.label=t,f[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,d="",m=void 0;if(a&&"string"===a.type){var g=a.parent;g&&"property"===g.type&&g.keyNode===a&&(p=!g.valueNode,m=g,d=o.substr(a.offset+1,a.length-2),g&&(a=g.parent))}if(a&&"object"===a.type){if(a.offset===s)return i;a.properties.forEach((function(e){m&&m===e||(f[e.keyNode.value]=yi.create("__"))}));var y="";p&&(y=r.evaluateSeparatorAfter(e,e.offsetAt(c.end))),t?r.getPropertyCompletions(t,n,a,p,y,h):r.getSchemaLessPropertyCompletions(n,a,d,h);var b=Ru(a);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,b,l,p,""===y,h);n&&u.push(n)})),!t&&l.length>0&&'"'!==o.charAt(s-l.length-1)&&(h.add({kind:pi.Property,label:r.getLabelForValue(l),insertText:r.getInsertTextForProperty(l,void 0,!1,y),insertTextFormat:fi.Snippet,documentation:""}),h.setAsIncomplete())}var v={};return t?r.getValueCompletions(t,n,a,s,e,h,v):r.getSchemaLessValueCompletions(n,a,s,e,h),r.contributions.length>0&&r.getContributedValueCompletions(n,a,s,e,h,u),r.promiseConstructor.all(u).then((function(){if(0===h.getNumberOfProposals()){var t=s;!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,h)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,o){var s=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:pi.Property,label:e,insertText:s.getInsertTextForProperty(e,n,r,i),insertTextFormat:fi.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(a.sortText=n.suggestSortText),a.insertText&&bu(a.insertText,"$1"+i)&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.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:pi.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:fi.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(a.markdownDescription)||a.description||""};void 0!==a.suggestSortText&&(n.sortText=a.suggestSortText),n.insertText&&bu(n.insertText,"$1"+i)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(n)};if(a.enum)for(var c=0;c<a.enum.length;c++){var l=void 0;a.markdownEnumDescriptions&&c<a.markdownEnumDescriptions.length?l=s.fromMarkup(a.markdownEnumDescriptions[c]):a.enumDescriptions&&c<a.enumDescriptions.length&&(l=a.enumDescriptions[c]),u(a.enum[c],l)}a.const&&u(a.const)}}}))},e.prototype.getSchemaLessPropertyCompletions=function(e,t,n,r){var i=this,o=function(e){e.properties.forEach((function(e){var t=e.keyNode.value;r.add({kind:pi.Property,label:t,insertText:i.getInsertTextForValue(t,""),insertTextFormat:fi.Snippet,filterText:i.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){var s=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===s&&e.valueNode&&"object"===e.valueNode.type&&o(e.valueNode),!0}))}else"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&o(e)}));else"object"===t.type&&r.add({kind:pi.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:fi.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(e,t,n,r,i){var o=this,s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:fi.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:fi.Snippet,documentation:""});var a=this.evaluateSeparatorAfter(r,s),u=function(e){e.parent&&!Vu(e.parent,n,!0)&&i.add({kind:o.getSuggestionKind(e.type),label:o.getLabelTextForMatchingNode(e,r),insertText:o.getInsertTextForMatchingNode(e,r,a),insertTextFormat:fi.Snippet,documentation:""}),"boolean"===e.type&&o.addBooleanValueCompletion(!e.value,a,i)};if("property"===t.type&&n>(t.colonOffset||0)){var c=t.valueNode;if(c&&(n>c.offset+c.length||"object"===c.type||"array"===c.type))return;var l=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===l&&e.valueNode&&u(e.valueNode),!0})),"$schema"===l&&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,o,s){var a=r,u=void 0,c=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,c=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var l=n.valueNode;if(l&&r>l.offset+l.length)return;u=n.keyNode.value,n=n.parent}if(n&&(void 0!==u||"array"===n.type)){for(var p=this.evaluateSeparatorAfter(i,a),f=0,h=t.getMatchingSchemas(e.schema,n.offset,c);f<h.length;f++){var d=h[f];if(d.node===n&&!d.inverted&&d.schema){if("array"===n.type&&d.schema.items)if(Array.isArray(d.schema.items)){var m=this.findItemAtOffset(n,i,r);m<d.schema.items.length&&this.addSchemaValueCompletions(d.schema.items[m],p,o,s)}else this.addSchemaValueCompletions(d.schema.items,p,o,s);if(void 0!==u){var g=!1;if(d.schema.properties&&(D=d.schema.properties[u])&&(g=!0,this.addSchemaValueCompletions(D,p,o,s)),d.schema.patternProperties&&!g)for(var y=0,b=Object.keys(d.schema.patternProperties);y<b.length;y++){var v=b[y];if(vu(v).test(u)){g=!0;var D=d.schema.patternProperties[v];this.addSchemaValueCompletions(D,p,o,s)}}d.schema.additionalProperties&&!g&&(D=d.schema.additionalProperties,this.addSchemaValueCompletions(D,p,o,s))}}}"$schema"!==u||n.parent||this.addDollarSchemaCompletions(p,o),s.boolean&&(this.addBooleanValueCompletion(!0,p,o),this.addBooleanValueCompletion(!1,p,o)),s.null&&this.addNullValueCompletion(p,o)}}else this.addSchemaValueCompletions(e.schema,"",o,s)},e.prototype.getContributedValueCompletions=function(e,t,n,r,i,o){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 s=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var u=Ru(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,u,s,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this;void 0===r&&(r=0);var o=!1;if(Eu(e.default)){for(var s=e.type,a=e.default,u=r;u>0;u--)a=[a],s="array";n.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:fi.Snippet,detail:cc("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var a=e.type,u=s,c=r;c>0;c--)u=[u],a="array";n.add({kind:i.getSuggestionKind(a),label:i.getLabelForValue(u),insertText:i.getInsertTextForValue(u,t),insertTextFormat:fi.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(s){var a,u,c=e.type,l=s.body,p=s.label;if(Eu(l)){e.type;for(var f=r;f>0;f--)l=[l];a=i.getInsertTextForSnippetValue(l,t),u=i.getFilterTextForSnippetValue(l),p=p||i.getLabelForSnippetValue(l)}else{if("string"!=typeof s.bodyText)return;var h="",d="",m="";for(f=r;f>0;f--)h=h+m+"[\n",d=d+"\n"+m+"]",m+="\t",c="array";a=h+m+s.bodyText.split("\n").join("\n"+m)+d+t,p=p||a,u=a.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(c),label:p,documentation:i.fromMarkup(s.markdownDescription)||s.description,insertText:a,insertTextFormat:fi.Snippet,filterText:u}),o=!0})),!o&&"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(Eu(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:fi.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r<i;r++){var o=e.enum[r],s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:fi.Snippet,documentation:s})}},e.prototype.collectTypes=function(e,t){if(!Array.isArray(e.enum)&&!Eu(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:fi.Snippet,detail:cc("defaults.object","New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:fi.Snippet,detail:cc("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:fi.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:fi.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:pi.Module,label:n.getLabelForValue(r),filterText:n.getFilterTextForValue(r),insertText:n.getInsertTextForValue(r,e),insertTextFormat:fi.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 uc(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 pi.Value;switch(e){case"string":default:return pi.Value;case"object":return pi.Module;case"property":return pi.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 o,s=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var u=t.defaultSnippets[0].body;Eu(u)&&(o=this.getInsertTextForSnippetValue(u,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),Eu(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var c=Array.isArray(t.type)?t.type[0]:t.type;switch(c||(t.properties?c="object":t.items&&(c="array")),c){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=br(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=br(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var s=i[o];if(n>s.offset+s.length)return r.setPosition(s.offset+s.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?o+1:o;if(n>=s.offset)return o}return 0},e.prototype.isInComment=function(e,t,n){var r=br(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:ci.Markdown,value:e}},e.prototype.doesSupportMarkdown=function(){if(!Eu(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(ci.Markdown)}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Eu(this.supportsCommitCharacters)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport}return this.supportsCommitCharacters}}();var lc=Su(),pc=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:Wr.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],s={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,o.push(e))},u=function(r){var s=(null==n?void 0:n.trailingCommas)?mc(n.trailingCommas):Wr.Error,u=(null==n?void 0:n.comments)?mc(n.comments):i.commentSeverity,c=(null==n?void 0:n.schemaValidation)?mc(n.schemaValidation):Wr.Warning,l=(null==n?void 0:n.schemaRequest)?mc(n.schemaRequest):Wr.Warning;if(r){if(r.errors.length&&t.root&&l){var p=t.root,f="object"===p.type?p.properties[0]:void 0;if(f&&"$schema"===f.keyNode.value){var h=f.valueNode||f,d=Pr.create(e.positionAt(h.offset),e.positionAt(h.offset+h.length));a(Hr.create(d,r.errors[0],l,lu.SchemaResolveError))}else d=Pr.create(e.positionAt(p.offset),e.positionAt(p.offset+1)),a(Hr.create(d,r.errors[0],l,lu.SchemaResolveError))}else if(c){var m=t.validate(e,r.schema,c);m&&m.forEach(a)}hc(r.schema)&&(u=void 0),dc(r.schema)&&(s=void 0)}for(var g=0,y=t.syntaxErrors;g<y.length;g++){var b=y[g];if(b.code===lu.TrailingComma){if("number"!=typeof s)continue;b.severity=s}a(b)}if("number"==typeof u){var v=lc("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){a(Hr.create(e,v,u,lu.CommentNotPermitted))}))}return o};if(r){var c=r.id||"schemaservice://untitled/"+fc++;return this.jsonSchemaService.resolveSchemaContent(new Hu(r),c,{}).then((function(e){return u(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return u(e)}))},e}(),fc=0;function hc(e){if(e&&"object"==typeof e){if(wu(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=hc(n[t]);if(wu(r))return r}}}function dc(e){if(e&&"object"==typeof e){if(wu(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(wu(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=dc(r[n]);if(wu(i))return i}}}function mc(e){switch(e){case"error":return Wr.Error;case"warning":return Wr.Warning;case"ignore":return}}function gc(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function yc(e){if("#"===e[0])switch(e.length){case 4:return{red:17*gc(e.charCodeAt(1))/255,green:17*gc(e.charCodeAt(2))/255,blue:17*gc(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*gc(e.charCodeAt(1))/255,green:17*gc(e.charCodeAt(2))/255,blue:17*gc(e.charCodeAt(3))/255,alpha:17*gc(e.charCodeAt(4))/255};case 7:return{red:(16*gc(e.charCodeAt(1))+gc(e.charCodeAt(2)))/255,green:(16*gc(e.charCodeAt(3))+gc(e.charCodeAt(4)))/255,blue:(16*gc(e.charCodeAt(5))+gc(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*gc(e.charCodeAt(1))+gc(e.charCodeAt(2)))/255,green:(16*gc(e.charCodeAt(3))+gc(e.charCodeAt(4)))/255,blue:(16*gc(e.charCodeAt(5))+gc(e.charCodeAt(6)))/255,alpha:(16*gc(e.charCodeAt(7))+gc(e.charCodeAt(8)))/255}}}var bc=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 o=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||bu(s.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],u=0,c=i.items;u<c.length;u++){var l=c[u];if("object"===l.type)for(var p=0,f=l.properties;p<f.length;p++){var h=f[p];if("key"===h.keyNode.value&&h.valueNode){var d=Ir.create(e.uri,vc(e,l));if(a.push({name:ju(h.valueNode),kind:Si.Function,location:d}),--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}}}return a}for(var m=[{node:i,containerName:""}],g=0,y=!1,b=[],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(o>0){o--;var s=Ir.create(e.uri,vc(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;b.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:s,containerName:n}),m.push({node:i,containerName:a})}else y=!0}))};g<m.length;){var D=m[g++];v(D.node,D.containerName)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),b},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 o=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||bu(s.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],u=0,c=i.items;u<c.length;u++){var l=c[u];if("object"===l.type)for(var p=0,f=l.properties;p<f.length;p++){var h=f[p];if("key"===h.keyNode.value&&h.valueNode){var d=vc(e,l),m=vc(e,h.keyNode);if(a.push({name:ju(h.valueNode),kind:Si.Function,range:d,selectionRange:m}),--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}}}return a}for(var g=[],y=[{node:i,result:g}],b=0,v=!1,D=function(t,n){"array"===t.type?t.items.forEach((function(t,i){if(t)if(o>0){o--;var s=vc(e,t),a=s,u={name:String(i),kind:r.getSymbolKind(t.type),range:s,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(o>0){o--;var s=vc(e,t),a=vc(e,t.keyNode),u=[],c={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:s,selectionRange:a,children:u,detail:r.getDetail(i)};n.push(c),y.push({result:u,node:i})}else v=!0}))};b<y.length;){var C=y[b++];D(C.node,C.result)}return v&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),g},e.prototype.getSymbolKind=function(e){switch(e){case"object":return Si.Module;case"string":return Si.String;case"number":return Si.Number;case"array":return Si.Array;case"boolean":return Si.Boolean;default:return Si.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),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 o=n&&"number"==typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,s={},a=0,u=t.getMatchingSchemas(r.schema);a<u.length;a++){var c=u[a];if(!c.inverted&&c.schema&&("color"===c.schema.format||"color-hex"===c.schema.format)&&c.node&&"string"===c.node.type){var l=String(c.node.offset);if(!s[l]){var p=yc(ju(c.node));if(p){var f=vc(e,c.node);i.push({color:p,range:f})}if(s[l]=!0,--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))},e.prototype.getColorPresentations=function(e,t,n,r){var i,o=[],s=Math.round(255*n.red),a=Math.round(255*n.green),u=Math.round(255*n.blue);function c(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return i=1===n.alpha?"#"+c(s)+c(a)+c(u):"#"+c(s)+c(a)+c(u)+c(Math.round(255*n.alpha)),o.push({label:i,textEdit:zr.replace(r,JSON.stringify(i))}),o},e}();function vc(e,t){return Pr.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var Dc,Cc,Ec,wc,Ac,Sc=Su(),xc={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}}},Tc={id:Sc("schema.json.id","A unique identifier for the schema."),$schema:Sc("schema.json.$schema","The schema to verify this document against."),title:Sc("schema.json.title","A descriptive title of the element."),description:Sc("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Sc("schema.json.default","A default value. Used by suggestions."),multipleOf:Sc("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Sc("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Sc("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Sc("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Sc("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Sc("schema.json.maxLength","The maximum length of a string."),minLength:Sc("schema.json.minLength","The minimum length of a string."),pattern:Sc("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Sc("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:Sc("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:Sc("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Sc("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Sc("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Sc("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Sc("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Sc("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Sc("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:Sc("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Sc("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Sc("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Sc("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:Sc("schema.json.enum","The set of literal values that are valid."),type:Sc("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:Sc("schema.json.format","Describes the format expected for the value."),allOf:Sc("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Sc("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Sc("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Sc("schema.json.not","A schema which must not match."),$id:Sc("schema.json.$id","A unique identifier for the schema."),$ref:Sc("schema.json.$ref","Reference a definition hosted on any location."),$comment:Sc("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Sc("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Sc("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Sc("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Sc("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:Sc("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Sc("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Sc("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Sc("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Sc("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Sc("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Ac in xc.schemas)for(wc in(Dc=xc.schemas[Ac]).properties)"boolean"==typeof(Cc=Dc.properties[wc])&&(Cc=Dc.properties[wc]={}),(Ec=Tc[wc])?Cc.description=Ec:console.log(wc+": localize('schema.json."+wc+'\', "")');function Fc(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 o=r.valueNode.value,s=function(e,t){var n=function(e){return"#"===e?[]:"#"!==e[0]||"/"!==e[1]?null:e.substring(2).split(/\//).map(_c)}(t);return n?kc(n,e.root):null}(t,o);if(s){var a=e.positionAt(s.offset);n.push({target:e.uri+"#"+(a.line+1)+","+(a.character+1),range:Nc(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function Nc(e,t){return Pr.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function kc(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?kc(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),o=t.items[i];return o?kc(e,o):null}return null}function _c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Oc(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 Lc(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 Pc(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 Ic,Mc,Bc=Su(),jc={"color-hex":{errorMessage:Bc("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:Bc("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:Bc("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:Bc("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:Bc("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,}))$/}},Rc="YAML";(Mc=Ic||(Ic={})).missingRequiredPropWarning="missingRequiredPropWarning",Mc.typeMismatchWarning="typeMismatchWarning",Mc.constWarning="constWarning";var Vc,$c={[Ic.missingRequiredPropWarning]:'Missing property "{0}".',[Ic.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[Ic.constWarning]:"Value must be {0}."},Uc=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,o=null;for(const n of t){const t=n.length+n.offset-e+(e-n.offset);t<i&&(o=n,i=t)}return o||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Wc=class extends Uc{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},qc=class extends Uc{constructor(e,t,n,r,i){super(e,t,r,i),this.type="boolean",this.value=n}},Kc=class extends Uc{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},Hc=class extends Uc{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Yc=class extends Uc{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},zc=class extends Uc{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]}},Jc=class extends Uc{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function Gc(e){if(void 0!==e)return rc(e)?e?{}:{not:{}}:("object"!=typeof e&&(console.warn(`Wrong schema: ${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"}(Vc||(Vc={}));var Qc=class{constructor(e=-1,t=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||tl(e,this.focusOffset))&&e!==this.exclude}newSub(){return new Qc(-1,this.exclude)}},Xc=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Xc.instance=new Xc;var Zc=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===lu.EnumValueMismatch&&(e.message=Bc("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map((e=>JSON.stringify(e))).join(", ")))}}mergeWarningGeneric(e,t){var n,r;if(null===(n=this.problems)||void 0===n?void 0:n.length)for(const n of t){const t=this.problems.filter((e=>e.problemType===n));for(const i of t){const t=null===(r=e.problems)||void 0===r?void 0:r.find((e=>e.problemType===n&&i.location.offset===e.location.offset&&(n!==Ic.missingRequiredPropWarning||Pc(e.problemArgs,i.problemArgs))));t&&(t.problemArgs.length&&(t.problemArgs.filter((e=>!i.problemArgs.includes(e))).forEach((e=>i.problemArgs.push(e))),i.message=sl(i.problemType,i.problemArgs)),this.mergeSources(t,i))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace("yaml-schema: ","");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function el(e){switch(e.type){case"array":return e.children.map(el);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]=el(i))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function tl(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function nl(e,t,n){if(void 0===n&&(n=!1),tl(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=nl(r[e],t,n);if(i)return i}return e}}function rl(e,t,n,r,i,o){const{isKubernetes:s}=o;if(e&&i.include(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),c=[],l=[...e.properties];for(;l.length>0;){const e=l.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":l.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{var t;e&&(t=e.properties,Symbol.iterator in Object(t))&&l.push(...e.properties)}))}else u[t]=e.valueNode,c.push(t)}if(Array.isArray(t.required))for(const i of t.required)if(void 0===u[i]){const o=e.parent&&"property"===e.parent.type&&e.parent.keyNode,s=o?{offset:o.offset,length:o.length}:{offset:e.offset,length:1};r.problems.push({location:s,severity:Wr.Warning,message:sl(Ic.missingRequiredPropWarning,[i]),source:il(t,n),schemaUri:ol(t,n),problemArgs:[i],problemType:Ic.missingRequiredPropWarning})}const p=e=>{let t=c.indexOf(e);for(;t>=0;)c.splice(t,1),t=c.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){p(e);const c=t.properties[e],l=u[e];if(l)if(rc(c))if(c)r.propertiesMatches++,r.propertiesValueMatches++;else{const i=l.parent;r.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:Wr.Warning,message:t.errorMessage||Bc("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:il(t,n),schemaUri:ol(t,n)})}else{c.url=null!==(a=t.url)&&void 0!==a?a:n.url;const e=new Zc(s);rl(l,c,t,e,i,o),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const a=Xu(e);for(const l of c.slice(0))if(a.test(l)){p(l);const a=u[l];if(a){const u=t.patternProperties[e];if(rc(u))if(u)r.propertiesMatches++,r.propertiesValueMatches++;else{const e=a.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:Wr.Warning,message:t.errorMessage||Bc("DisallowedExtraPropWarning","Property {0} is not allowed.",l),source:il(t,n),schemaUri:ol(t,n)})}else{const e=new Zc(s);rl(a,u,t,e,i,o),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of c){const n=u[e];if(n){const e=new Zc(s);rl(n,t.additionalProperties,t,e,i,o),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===o.disableAdditionalProperties)&&c.length>0)for(const e of c){const i=u[e];if(i){let o=null;"property"!==i.type?(o=i.parent,"object"===o.type&&(o=o.properties[0])):o=i,r.problems.push({location:{offset:o.keyNode.offset,length:o.keyNode.length},severity:Wr.Warning,message:t.errorMessage||Bc("DisallowedExtraPropWarning","Property {0} is not allowed.",e),source:il(t,n),schemaUri:ol(t,n)})}}if(tc(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:il(t,n),schemaUri:ol(t,n)}),tc(t.minProperties)&&e.properties.length<t.minProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties),source:il(t,n),schemaUri:ol(t,n)}),t.dependencies)for(const a of Object.keys(t.dependencies))if(u[a]){const c=t.dependencies[a];if(Array.isArray(c))for(const i of c)u[i]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",i,a),source:il(t,n),schemaUri:ol(t,n)});else{const n=Gc(c);if(n){const a=new Zc(s);rl(e,n,t,a,i,o),r.mergePropertyMatch(a),r.mergeEnumValues(a)}}}const f=Gc(t.propertyNames);if(f)for(const n of e.properties){const e=n.keyNode;e&&rl(e,f,t,r,Xc.instance,o)}}(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=Gc(a[n]),c=new Zc(s),l=e.items[n];l?(rl(l,u,t,c,i,o),r.mergePropertyMatch(c),r.mergeEnumValues(c)):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 Zc(s);rl(e.items[n],t.additionalItems,t,a,i,o),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else!1===t.additionalItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",a.length),source:il(t,n),schemaUri:ol(t,n)})}else{const n=Gc(t.items);if(n){const a=new Zc(s);e.items.forEach((e=>{if(n.oneOf&&1===n.oneOf.length){const s=Gc(n.oneOf[0]);s.title=t.title,s.closestTitle=t.closestTitle,rl(e,s,t,a,i,o),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else rl(e,n,t,a,i,o),r.mergePropertyMatch(a),r.mergeEnumValues(a)}))}}const a=Gc(t.contains);if(a&&(e.items.some((e=>{const n=new Zc(s);return rl(e,a,t,n,Xc.instance,o),!n.hasProblems()}))||r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:t.errorMessage||Bc("requiredItemMissingWarning","Array does not contain required item."),source:il(t,n),schemaUri:ol(t,n)})),tc(t.minItems)&&e.items.length<t.minItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems),source:il(t,n),schemaUri:ol(t,n)}),tc(t.maxItems)&&e.items.length>t.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:il(t,n),schemaUri:ol(t,n)}),!0===t.uniqueItems){const i=el(e);i.some(((e,t)=>t!==i.lastIndexOf(e)))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("uniqueItemsWarning","Array has duplicate items."),source:il(t,n),schemaUri:ol(t,n)})}}(e,t,r,i);break;case"string":!function(e,t,r){if(tc(t.minLength)&&e.value.length<t.minLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength),source:il(t,n),schemaUri:ol(t,n)}),tc(t.maxLength)&&e.value.length>t.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:il(t,n),schemaUri:ol(t,n)}),ic(t.pattern)&&(Xu(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:t.patternErrorMessage||t.errorMessage||Bc("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:il(t,n),schemaUri:ol(t,n)})),t.format)switch(t.format){case"uri":case"uri-reference":{let i;if(e.value)try{Tr.parse(e.value).scheme||"uri"!==t.format||(i=Bc("uriSchemeMissing","URI with a scheme is expected."))}catch(e){i=e.message}else i=Bc("uriEmpty","URI expected.");i&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:t.patternErrorMessage||t.errorMessage||Bc("uriFormatWarning","String is not a URI: {0}",i),source:il(t,n),schemaUri:ol(t,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const i=jc[t.format];e.value&&i.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:t.patternErrorMessage||t.errorMessage||i.errorMessage,source:il(t,n),schemaUri:ol(t,n)})}}}(e,t,r);break;case"number":!function(e,t,r){const i=e.value;function o(e,t){return tc(t)?t:rc(t)&&t?e:void 0}function s(e,t){if(!rc(t)||!t)return e}tc(t.multipleOf)&&i%t.multipleOf!=0&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:il(t,n),schemaUri:ol(t,n)});const a=o(t.minimum,t.exclusiveMinimum);tc(a)&&i<=a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",a),source:il(t,n),schemaUri:ol(t,n)});const u=o(t.maximum,t.exclusiveMaximum);tc(u)&&i>=u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",u),source:il(t,n),schemaUri:ol(t,n)});const c=s(t.minimum,t.exclusiveMinimum);tc(c)&&i<c&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("minimumWarning","Value is below the minimum of {0}.",c),source:il(t,n),schemaUri:ol(t,n)});const l=s(t.maximum,t.exclusiveMaximum);tc(l)&&i>l&&r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("maximumWarning","Value is above the maximum of {0}.",l),source:il(t,n),schemaUri:ol(t,n)})}(e,t,r);break;case"property":return rl(e.valueNode,t,t,r,i,o)}!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:Wr.Warning,message:t.errorMessage||Bc("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:il(t,n),schemaUri:ol(t,n)});else if(t.type&&!c(t.type)){const i="object"===t.type?sc(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:t.errorMessage||sl(Ic.typeMismatchWarning,[i]),source:il(t,n),schemaUri:ol(t,n),problemType:Ic.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(const n of t.allOf)rl(e,Gc(n),t,r,i,o);const l=Gc(t.not);if(l){const a=new Zc(s),u=i.newSub();rl(e,l,t,a,u,o),a.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,message:Bc("notSchemaWarning","Matches a schema that is not allowed."),source:il(t,n),schemaUri:ol(t,n)});for(const e of u.schemas)e.inverted=!e.inverted,i.add(e)}const p=(c,l)=>{const p=[],f=[];let h=null;for(const n of c){const r=Gc(n),c=new Zc(s),d=i.newSub();rl(e,r,t,c,d,o),c.hasProblems()||(p.push(r),0===c.propertiesMatches&&f.push(r)),h=h?s?a(c,h,r,d):u(e,l,c,h,r,d):{schema:r,validationResult:c,matchingSchemas:d}}return p.length>1&&0===f.length&&l&&r.problems.push({location:{offset:e.offset,length:1},severity:Wr.Warning,message:Bc("oneOfWarning","Minimum one schema should validate."),source:il(t,n),schemaUri:ol(t,n)}),null!==h&&(r.merge(h.validationResult),r.propertiesMatches+=h.validationResult.propertiesMatches,r.propertiesValueMatches+=h.validationResult.propertiesValueMatches,i.merge(h.matchingSchemas)),p.length};Array.isArray(t.anyOf)&&p(t.anyOf,!1),Array.isArray(t.oneOf)&&p(t.oneOf,!0);const f=(t,n)=>{const a=new Zc(s),u=i.newSub();rl(e,Gc(t),n,a,u,o),r.merge(a),r.propertiesMatches+=a.propertiesMatches,r.propertiesValueMatches+=a.propertiesValueMatches,i.merge(u)},h=Gc(t.if);if(h&&((t,n,r,a)=>{const u=Gc(t),c=new Zc(s),l=i.newSub();rl(e,u,n,c,l,o),i.merge(l),c.hasProblems()?a&&f(a,n):r&&f(r,n)})(h,t,Gc(t.then),Gc(t.else)),Array.isArray(t.enum)){const i=el(e);let o=!1;for(const n of t.enum)if(ec(i,n)||e.value&&n.startsWith(i)){o=!0;break}r.enumValues=t.enum,r.enumValueMatch=o,o||r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,code:lu.EnumValueMismatch,message:t.errorMessage||Bc("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", ")),source:il(t,n),schemaUri:ol(t,n)})}nc(t.const)&&(ec(el(e),t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:Wr.Warning,code:lu.EnumValueMismatch,problemType:Ic.constWarning,message:t.errorMessage||sl(Ic.constWarning,[JSON.stringify(t.const)]),source:il(t,n),schemaUri:ol(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:Wr.Warning,message:t.deprecationMessage,source:il(t,n),schemaUri:ol(t,n)})}(),i.add({node:e,schema:t})}function a(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 u(e,t,n,r,i,o){if(t||n.hasProblems()||r.validationResult.hasProblems()){const s=n.compareGeneric(r.validationResult);s>0||0===s&&t&&"object"===r.schema.type&&"null"!==e.type&&e.type!==r.schema.type?r={schema:i,validationResult:n,matchingSchemas:o}:0===s&&(r.matchingSchemas.merge(o),r.validationResult.mergeEnumValues(n),r.validationResult.mergeWarningGeneric(n,[Ic.missingRequiredPropWarning,Ic.typeMismatchWarning,Ic.constWarning]))}else r.matchingSchemas.merge(o),r.validationResult.propertiesMatches+=n.propertiesMatches,r.validationResult.propertiesValueMatches+=n.propertiesValueMatches;return r}}function il(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)&&void 0!==n?n:t.url;if(i){const e=Tr.parse(i);"file"===e.scheme&&(r=e.fsPath),r=e.toString()}}if(r)return`yaml-schema: ${r}`}return Rc}function ol(e,t){var n;const r=null!==(n=e.url)&&void 0!==n?n:t.url;return r?[r]:[]}function sl(e,t){return Bc(e,$c[e],t.join(" | "))}var al=0;function ul(e,t,n,r){if(e||(al=0),!t)return null;if(co(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)lo(r)&&(mo(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),mo(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}(e):e.range;const o=new Jc(t,e,...ll(i,r));for(const t of e.items)lo(t)&&o.properties.push(ul(o,t,n,r));return o}(t,e,n,r);if(lo(t))return function(e,t,n,r){const i=e.key,o=e.value,s=i.range[0];let a=i.range[1],u=i.range[2];o&&(a=o.range[1],u=o.range[2]);const c=new zc(t,e,...ll([s,a,u],r));if(ao(i)){const e=new Yc(t,i,...cl(i.range));e.value=i.source,c.keyNode=e}else c.keyNode=ul(c,i,n,r);return c.valueNode=ul(c,o,n,r),c}(t,e,n,r);if(fo(t))return function(e,t,n,r){const i=new Kc(t,e,...cl(e.range));for(const t of e.items)if(mo(t)){const e=ul(i,t,n,r);e&&i.children.push(e)}return i}(t,e,n,r);if(po(t))return function(e,t){if(null===e.value)return new Wc(t,e,...cl(e.range));switch(typeof e.value){case"string":{const n=new Yc(t,e,...cl(e.range));return n.value=e.value,n}case"boolean":return new qc(t,e,e.value,...cl(e.range));case"number":{const n=new Hc(t,e,...cl(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Yc(t,e,...cl(e.range));return n.value=e.source,n}}}(t,e);if(ao(t)){if(al>1e3)return;return function(e,t,n,r){al++;const i=e.resolve(n);if(i)return ul(t,i,n,r);{const n=new Yc(t,e,...cl(e.range));return n.value=e.source,n}}(t,e,n,r)}}function cl(e){return[e[0],e[1]-e[0]]}function ll(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 pl(e){return void 0!==e.start}function fl(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){const r=fl(Object.freeze(e.concat([[i,t]])),o.items[t],n);if("number"==typeof r)t=r-1;else{if(r===Do.BREAK)return Do.BREAK;r===Do.REMOVE&&(o.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,e))}}const i=t.sep;if(i)for(let t=0;t<i.length;++t){const r=fl(Object.freeze(e),i[t],n);if("number"==typeof r)t=r-1;else{if(r===Do.BREAK)return Do.BREAK;r===Do.REMOVE&&(i.items.splice(t,1),t-=1)}}return"function"==typeof r?r(t,e):r}var hl=class extends class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return nl(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 Zc(this.isKubernetes);return rl(this.root,t,t,n,Xc.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),n.problems.map((t=>{const n=Pr.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),r=Hr.create(n,t.message,t.severity,t.code?t.code:lu.Undefined,t.source);return r.data={schemaUri:t.schemaUri},r}))}return null}getMatchingSchemas(e,t=-1,n=null){const r=new Qc(t,n);return this.root&&e&&rl(this.root,e,e,new Zc(this.isKubernetes),r,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties}),r.schemas}}{constructor(e){super(null,[]),this.lineCounter=e}clone(){const e=new hl(this.lineCounter);return e.isKubernetes=this.isKubernetes,e.disableAdditionalProperties=this.disableAdditionalProperties,e.currentDocIndex=this.currentDocIndex,e._lineComments=this.lineComments.slice(),e.internalDocument=this._internalDocument.clone(),e}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split("\n").forEach((e=>this._lineComments.push(`#${e}`))),Do(this.internalDocument,((e,t)=>{(null==t?void 0:t.commentBefore)&&(null==t?void 0:t.commentBefore.split("\n")).forEach((e=>this._lineComments.push(`#${e}`))),(null==t?void 0:t.comment)&&this._lineComments.push(`#${t.comment}`)})),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}set internalDocument(e){this._internalDocument=e,this.root=ul(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}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(gl)}get warnings(){return this.internalDocument.warnings.map(gl)}getNodeFromPosition(e,t,n){const r=t.getPosition(e);if(0===t.getLineContent(r.line).trim().length)return[this.findClosestNode(e,t,n),!0];let i;return Do(this.internalDocument,((t,n)=>{if(!n)return;const r=n.range;return r?r[0]<=e&&r[1]>=e?void(i=n):Do.SKIP:void 0})),[i,!1]}findClosestNode(e,t,n){let r,i=this.internalDocument.range[2],o=this.internalDocument.range[0];Do(this.internalDocument,((t,n)=>{if(!n)return;const s=n.range;if(!s)return;const a=s[2]-e;o<=s[0]&&a<=0&&Math.abs(a)<=i&&(i=Math.abs(a),o=s[0],r=n)}));const s=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(s.line),s.character);return po(r)&&null===r.value||a===s.character&&(r=this.getProperParentByIndentation(a,r,t,"",n)),r}getProperParentByIndentation(e,t,n,r,i,o){if(!t)return this.internalDocument.contents;if(i=i||2,mo(t)&&t.range){const s=n.getPosition(t.range[0]),a=n.getLineContent(s.line);if((r=""===r?a.trim():r).startsWith("-")&&e===i&&r===a.trim()&&(s.character+=e),s.character>e&&s.character>0){const s=this.getParent(t);if(s)return this.getProperParentByIndentation(e,s,n,r,i,o)}else{if(!(s.character<e))return t;{const e=this.getParent(t);if(lo(e)&&mo(e.value))return e.value;if(lo(o)&&mo(o.value))return o.value}}}else if(lo(t)){o=t;const s=this.getParent(t);return this.getProperParentByIndentation(e,s,n,r,i,o)}return t}getParent(e){return function(e,t){let n;if(Do(e,((e,r,i)=>{if(r===t)return n=i[i.length-1],Do.BREAK})),!uo(n))return n}(this.internalDocument,e)}},dl=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},ml=new class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,null!=t?t:Dl,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 dl([],[]),parserOptions:Dl});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!Pc(i.parserOptions.customTags,t.customTags)){let r=e.getText();n&&!/\S/.test(r)&&(r=`{${r}}`);const o=function(e,t=Dl,n){var r;const i={strict:!1,customTags:bl(t.customTags),version:null!==(r=t.yamlVersion)&&void 0!==r?r:Dl.yamlVersion,keepSourceTokens:!0},o=new Ua(i),s=new tu;let a=!1;if(n){const t=new vl(n),r=t.getPosition(e.length);a=0===t.getLineContent(r.line).trim().length}const u=(a?new uu:new uu(s.addNewLine)).parse(e),c=Array.from(u),l=o.compose(c,!0,e.length),p=Array.from(l,(e=>function(e,t){const n=new hl(t);return n.internalDocument=e,n}(e,s)));return new dl(p,c)}(r,t,e);i.document=o,i.version=e.version,i.parserOptions=t}}};function gl(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:lu.Undefined}}var yl=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 co(e)&&"mapping"===this.type||fo(e)&&"sequence"===this.type||"string"==typeof e&&"scalar"===this.type?e:void 0}};function bl(e){const t=[],n=Lc(e);for(const e of n){const n=e.split(" "),r=n[0],i=n[1]&&n[1].toLowerCase()||"scalar";t.push(new yl(r,i))}return t.push(new class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}}),t}var vl=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(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(Pr.create(e-1,t-1,e-1,t)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},Dl={customTags:[],yamlVersion:"1.2"};function Cl(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}var El,wl,Al=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},Sl=Su();(wl=El||(El={}))[wl.delete=0]="delete",wl[wl.add=1]="add",wl[wl.deleteAll=2]="deleteAll";var xl=class extends zu{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}resolveSchemaContent(e,t,n){return Al(this,void 0,void 0,(function*(){const r=e.errors.slice(0);let i=e.schema;const o=this.contextService,s=(e,t,n,i)=>{const o=((e,t)=>{if(!t)return e;let n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((e=>(n=n[e],!n))),n})(t,i);if(o)for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=o[t]);else r.push(Sl("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},a=(e,t,n,i,a)=>{o&&!/^\w+:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i)),t=this.normalizeId(t);const c=this.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((i=>{if(a[t]=!0,i.errors.length){const e=n?t+"#"+n:t;r.push(Sl("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,i.errors[0]))}return s(e,i.schema,t,n),e.url=t,u(e,i.schema,t,c.dependencies)}))},u=(e,t,n,r)=>Al(this,void 0,void 0,(function*(){if(!e||"object"!=typeof e)return null;const o=[e],u=[],c=[],l=e=>{const i=[];for(;e.$ref;){const o=e.$ref,u=o.split("#",2);if(e._$ref=e.$ref,delete e.$ref,u[0].length>0)return void c.push(a(e,u[0],u[1],n,r));-1===i.indexOf(o)&&(s(e,t,n,u[1]),i.push(o))}((...e)=>{for(const t of e)"object"==typeof t&&o.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const n=t[e];"object"==typeof n&&o.push(n)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&o.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={};yield 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(;o.length;){const e=o.pop();u.indexOf(e)>=0||(u.push(e),l(e))}return Promise.all(c)}));return yield u(i,i,t,n),new Yu(i,r)}))}getSchemaForResource(e,t){const n=()=>{const n=Object.create(null),r=[];let i=function(e){if(e instanceof hl){const t=e.lineComments.find((e=>Cl(e)));if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring("$schema=".length)}}}(t);if(void 0!==i){if(!i.startsWith("file:")&&!i.startsWith("http")){let t="";if(i.indexOf("#")>0){const e=i.split("#",2);i=e[0],t=e[1]}if(hu.isAbsolute(i))i=Tr.file(i).toString();else{const t=Tr.parse(e);i=Tr.file(hu.resolve(hu.parse(t.fsPath).dir,i)).toString()}t.length>0&&(i+="#"+t)}this.addSchemaPriority(i,Kl.Modeline),r.push(i),n[i]=!0}for(const t of this.filePatternAssociations)if(t.matchesPattern(e))for(const e of t.getURIs())n[e]||(r.push(e),n[e]=!0);const o=this.normalizeId(e);if(this.schemasById[o]&&r.push(o),r.length>0){const n=this.highestPrioritySchemas(r),i=super.createCombinedSchema(e,n);return i.getResolvedSchema().then((e=>(e.schema&&"object"==typeof e.schema&&(e.schema.url=i.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new Yu(e.schema.schemaSequence[t.currentDocIndex]):e)))}return Promise.resolve(null)};return this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?n():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{anyOf:e.map((e=>e.schema))}})),(()=>n())):e?this.resolveCustomSchema(e,t):n())).then((e=>e),(()=>n())):n()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,(new Set).add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach((e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach((r=>{r>t&&(t=r);let i=n.get(r);i?(i=i.concat(e),n.set(r,i)):n.set(r,[e])}))})),n.get(t)||[]}resolveCustomSchema(e,t){return Al(this,void 0,void 0,(function*(){const n=yield this.loadSchema(e),r=yield this.resolveSchemaContent(n,e,[]);return r.schema&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new Yu(r.schema.schemaSequence[t.currentDocIndex]):r}))}saveSchema(e,t){return Al(this,void 0,void 0,(function*(){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,(new Set).add(Kl.Settings)),Promise.resolve(void 0)}))}deleteSchemas(e){return Al(this,void 0,void 0,(function*(){return e.schemas.forEach((e=>{this.deleteSchema(e)})),Promise.resolve(void 0)}))}deleteSchema(e){return Al(this,void 0,void 0,(function*(){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}))}addContent(e){return Al(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&(n[e.key]=e.content),yield this.saveSchema(e.schema,t.schema)}}))}deleteContent(e){return Al(this,void 0,void 0,(function*(){const t=yield this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&delete n[e.key],yield this.saveSchema(e.schema,t.schema)}}))}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const e of n)""!==e&&(this.resolveNext(r,e),r=r[e]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return Tr.parse(e).toString()}catch(t){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then((n=>{if(n.errors&&void 0===n.schema)return t(e).then((t=>{if(!t){const t=Sl("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",Tl(e),n.errors);return new Hu({},[t])}try{const e=cu(t);return new Hu(e,[])}catch(t){const n=Sl("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",Tl(e),t);return new Hu({},[n])}}),(e=>{let t=e.toString();const n=e.toString().split("Error: ");return n.length>1&&(t=n[1]),new Hu({},[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,o){return(r||i)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:i,versions:o}),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 Tl(e){try{const t=Tr.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function Fl(e,t){for(const n of e)n.isKubernetes=t}function Nl(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function kl(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 _l,Ol=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?Lr.create(n.line,new vl(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Hr.create(r,e.message,e.severity,e.code,Rc)};function Ll(e,t){if(!e)return;const n=[],r=ml.getYamlDocument(e);for(const t of r.documents)r.documents.length>1&&n.push(Pl(e,t.root)),t.visit((t=>{var r;if("object"===t.type&&"array"===(null===(r=t.parent)||void 0===r?void 0:r.type)&&n.push(Pl(e,t)),"property"===t.type&&t.valueNode)switch(t.valueNode.type){case"array":case"object":n.push(Pl(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(Pl(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 Pl(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText(Pr.create(n,r)),o=i.length-i.trimRight().length;return o>0&&(r=e.positionAt(t.offset+t.length-o)),$r.create(n.line,r.line,n.character,r.character)}function Il(e,t){const n={};return n[e]=t,{changes:n}}(_l||(_l={})).JUMP_TO_SCHEMA="jumpToSchema";var Ml=new class{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command))return this.commands.get(e.command)(...e.arguments);throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}};function Bl(e,t){const{position:n}=t,r=new vl(e);if("\n"===t.ch){const e=r.getLineContent(n.line-1);if(e.trimRight().endsWith(":")){const i=r.getLineContent(n.line),o=i.substring(n.character,i.length),s=-1!==e.indexOf(" - ");if(0===o.trimRight().length){const r=n.character-(e.length-e.trimLeft().length);if(r===t.options.tabSize&&!s)return;const o=[];return i.length>0&&o.push(zr.del(Pr.create(n,Lr.create(n.line,i.length-1)))),o.push(zr.insert(n," ".repeat(t.options.tabSize+(s?2-r:0)))),o}if(s)return[zr.insert(n," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[zr.insert(n," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[zr.insert(n,"- ")];if(e.includes(" - ")&&e.includes(": "))return[zr.insert(n," ")]}}function jl(e){const t=new Map;return e?(e.url?e.url.startsWith("schemaservice://combinedSchema/")?Rl(e,t):t.set(e.url,e):Rl(e,t),t):t}function Rl(e,t){e.allOf&&Vl(e.allOf,t),e.anyOf&&Vl(e.anyOf,t),e.oneOf&&Vl(e.oneOf,t)}function Vl(e,t){for(const n of e)rc(n)||n.url&&!t.has(n.url)&&t.set(n.url,n)}function $l(e,t){const n=Tr.parse(e);let r=hu.basename(n.fsPath);return hu.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(t,"name")?Object.getOwnPropertyDescriptor(t,"name").value+` (${r})`:t.title?t.title+` (${r})`:r}function Ul(e,t,n,r,i){let o;for(i.spacesDiff=0,i.looksLikeAlignment=!1,o=0;o<t&&o<r&&e.charCodeAt(o)===n.charCodeAt(o);o++);let s=0,a=0;for(let n=o;n<t;n++)32===e.charCodeAt(n)?s++:a++;let u=0,c=0;for(let e=o;e<r;e++)32===n.charCodeAt(e)?u++:c++;if(s>0&&a>0)return;if(u>0&&c>0)return;const l=Math.abs(a-c),p=Math.abs(s-u);if(0===l)return i.spacesDiff=p,void(p>0&&0<=u-1&&u-1<e.length&&u<n.length&&32!==n.charCodeAt(u)&&32===e.charCodeAt(u-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0));p%l!=0||(i.spacesDiff=p/l)}function Wl(e,t,n,r,i=0,o=0){if(null!==e&&"object"==typeof e){const s=0===i&&r.shouldIndentWithTab||i>0?t+r.indentation:"";if(Array.isArray(e)){if(o+=1,0===e.length)return"";let a="";for(let u=0;u<e.length;u++){let c=e[u];"object"==typeof e[u]?(Array.isArray(e[u])||(c=ql(e[u],o)),a+=Wl(c,t,n,r,i+=1,o)):a+="\n"+s+"- "+n(e[u])}return a}{const o=Object.keys(e);if(0===o.length)return"";let a=0===i&&r.newLineFirst||i>0?"\n":"";for(let u=0;u<o.length;u++){const c=o[u],l="object"==typeof e[c],p=l?":":": ",f=s+(l&&/^\s|-/.test(c)?r.indentation:"");0!==i||0!==u||r.indentFirstObject?a+=s+c+p+Wl(e[c],f,n,r,i+=1,0):a+=t+c+p+Wl(e[c],f,n,r,i+=1,0),u<o.length-1&&(a+="\n")}return a}}return n(e)}function ql(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 Kl,Hl,Yl,zl=Su(),Jl=/[\\]+"/g,Gl=pi.Class,Ql=/^\d+$/;function Xl(e){let t;if(t="string"==typeof e?e:""+e,0===t.length)return t;if("true"===t||"false"===t||"null"===t||Ql.test(t))return`"${t}"`;-1!==t.indexOf('"')&&(t=t.replace(Jl,'"'));let n="@"===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=`"${t}"`),t}function Zl(){}function ep(e,t,n,r,i,o){const s=new xl(e,t),a=new class{constructor(e,t={},n,r){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}doComplete(e,t,n=!1){return r=this,i=void 0,s=function*(){const r=bi.create([],!1);if(!this.completionEnabled)return r;const i=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),o=new vl(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,o=0,s="",a=0;const u=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],l=new class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};for(let t=1;t<=r;t++){const n=e.getLineLength(t),r=e.getLineContent(t),u=n<=65536;let p=!1,f=0,h=0,d=0;for(let i=0,o=n;i<o;i++){const n=u?r.charCodeAt(i):e.getLineCharCode(t,i);if(9===n)d++;else{if(32!==n){p=!0,f=i;break}h++}}if(!p)continue;if(d>0?i++:h>1&&o++,Ul(s,a,r,f,l),l.looksLikeAlignment&&2!==l.spacesDiff)continue;const m=l.spacesDiff;m<=8&&c[m]++,s=r,a=f}let p=!0;i!==o&&(p=i<o);let f=2;if(p){let e=p?0:.1*r;u.forEach((t=>{const n=c[t];n>e&&(e=n,f=t)})),4===f&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(f=2)}return{insertSpaces:p,tabSize:f}}(o);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}Fl(i.documents,n);const s=e.offsetAt(t),a=e.getText();if(":"===a.charAt(s-1))return Promise.resolve(r);let u=Oc(s,i);if(null===u)return Promise.resolve(r);u=u.clone();let[c,l]=u.getNodeFromPosition(s,o,this.indentation.length);const p=this.getCurrentWord(e,s);this.arrayPrefixIndentation="";let f=null;if(c&&po(c)&&"null"===c.value){const t=e.positionAt(c.range[0]);t.character+=1;const n=e.positionAt(c.range[2]);n.character+=1,f=Pr.create(t,n)}else if(c&&po(c)&&c.value){const t=e.positionAt(c.range[0]);s>0&&t.character>0&&"-"===a.charAt(s-1)&&(t.character-=1),f=Pr.create(t,e.positionAt(c.range[1]))}else if(c&&po(c)&&null===c.value&&"-"===p)f=Pr.create(t,t),this.arrayPrefixIndentation=" ";else{let n=e.offsetAt(t)-p.length;n>0&&'"'===a[n-1]&&n--,f=Pr.create(e.positionAt(n),t)}const h={},d="__",m={add:e=>{const t=!!e.parent;let n=e.label;if(!n)return void console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`);if(ic(n)||(n=String(n)),n=n.replace(/[\n]/g,"↵"),n.length>60){const e=n.substr(0,57).trim()+"...";h[e]||(n=e)}if(e.insertText.endsWith("$1")&&!t&&(e.insertText=e.insertText.substr(0,e.insertText.length-2)),f&&f.start.line===f.end.line&&(e.textEdit=zr.replace(f,e.insertText)),e.label=n,t)return void function(e){var t;if((null===(t=h[e.label])||void 0===t?void 0:t.label)===d)return;const n=e.parent.schema,i=sc(n),o=n.markdownDescription||n.description;let s=r.items.find((e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.schema)===n&&e.kind===Gl}));s&&s.parent.insertTexts.includes(e.insertText)||(s?s.parent.insertTexts.push(e.insertText):(s=Object.assign(Object.assign({},e),{label:i,documentation:o,sortText:"_"+i,kind:Gl}),s.parent.insertTexts=[e.insertText],r.items.push(s)))}(e);this.arrayPrefixIndentation&&this.updateCompletionText(e,this.arrayPrefixIndentation+e.insertText);const i=h[n],o=(null==i?void 0:i.label)!==d&&(null==i?void 0:i.insertText)!==e.insertText;if(i){if(o){const t=this.mergeSimpleInsertTexts(n,i.insertText,e.insertText);t?this.updateCompletionText(i,t):(h[n]=e,r.items.push(e))}}else h[n]=e,r.items.push(e);i&&!i.documentation&&e.documentation&&(i.documentation=e.documentation)},error:e=>{this.telemetry.sendError("yaml.completion.error",{error:oc(e)})},log:e=>{console.log(e)},getNumberOfProposals:()=>r.items.length};this.customTags.length>0&&this.getCustomTagValueCompletions(m);let g=o.getLineContent(t.line);g.endsWith("\n")&&(g=g.substr(0,g.length-1));try{const n=yield this.schemaService.getSchemaForResource(e.uri,u);if((!n||n.errors.length)&&0===t.line&&0===t.character&&!Cl(g)){const e={kind:pi.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:fi.PlainText};r.items.push(e)}if(Cl(g)||function(e,t){let n=!1;for(const r of e){if("document"===r.type)fl([],r,(e=>{var i;if(pl(e)&&"comment"===(null===(i=e.value)||void 0===i?void 0:i.type)){if(r.offset<=t&&e.value.source.length+e.value.offset>=t)return n=!0,Do.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return n=!0,Do.BREAK}));else if("comment"===r.type&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}(i.tokens,s)){const e=g.indexOf("$schema=");return-1!==e&&e+"$schema=".length<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{var t;const n={kind:pi.Constant,label:null!==(t=e.name)&&void 0!==t?t:e.uri,detail:e.description,insertText:e.uri,insertTextFormat:fi.PlainText,insertTextMode:mi.asIs};r.items.push(n)})),r}if(!n||n.errors.length)return r;let y=null;if(!c)if(!u.internalDocument.contents||po(u.internalDocument.contents)){const e=u.internalDocument.createNode({});e.range=[s,s+1,s+1],u.internalDocument.contents=e,u.internalDocument=u.internalDocument,c=e}else c=u.findClosestNode(s,o),l=!0;let b=c;if(c){if(co(c)&&c.items.length&&lo(c.items[0])){const e=c.items[0];po(e.value)&&po(e.key)&&null===e.value.value&&e.key.range[2]<s&&e.value.range[0]>s&&(c=e.value,f.end.character+=e.value.range[2]-s)}if(fo(c)&&c.items.length&&po(c.items[0])&&g.includes("-")){const e=c.items[0];null===e.value&&e.range[0]>s&&(c=e,b=c,f.end.character+=e.range[2]-s)}if(0===g.length)c=u.internalDocument.contents;else{const n=u.getParent(c);if(n){if(po(c)){if(c.value){if(lo(n)){if(n.value===c){if(g.trim().length>0&&g.indexOf(":")<0){const e=this.createTempObjNode(p,c,u);if(fo(u.internalDocument.contents)){const t=function(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}(u.internalDocument.contents,n);"number"==typeof t&&(u.internalDocument.set(t,e),u.internalDocument=u.internalDocument)}else u.internalDocument.set(n.key,e),u.internalDocument=u.internalDocument;y=e.items[0],c=e}else if(0===g.trim().length){const e=u.getParent(n);e&&(c=e)}}else if(n.key===c){const e=u.getParent(n);y=n,e&&(c=e)}}else if(fo(n))if(g.trim().length>0){const e=this.createTempObjNode(p,c,u);n.delete(c),n.add(e),u.internalDocument=u.internalDocument,c=e}else c=n}else if(null===c.value)if(lo(n)){if(n.key===c)c=n;else if(mo(n.key)&&n.key.range){const r=u.getParent(n);if(l&&r&&co(r)&&function(e){if(e.items.length>1)return!1;const t=e.items[0];return!(!po(t.key)||!po(t.value)||""!==t.key.value||t.value.value)}(r))c=r;else{const i=e.positionAt(n.key.range[0]);if(t.character>i.character&&t.line!==i.line){const e=this.createTempObjNode(p,c,u);r&&(co(r)||fo(r))?(r.set(n.key,e),u.internalDocument=u.internalDocument):(u.internalDocument.set(n.key,e),u.internalDocument=u.internalDocument),y=e.items[0],c=e}else i.character===t.character&&r&&(c=r)}}}else if(fo(n))if("-"!==g.charAt(t.character-1)){const e=this.createTempObjNode(p,c,u);n.delete(c),n.add(e),u.internalDocument=u.internalDocument,c=e}else if("-"===g.charAt(t.character-1)){const e=this.createTempObjNode("",c,u);n.delete(c),n.add(e),u.internalDocument=u.internalDocument,c=e}else c=n}else if(co(c)&&!l&&0===g.trim().length&&fo(n)){const e=o.getLineContent(t.line+1);o.getLineCount()!==t.line+1&&0!==e.trim().length||(c=n)}}else if(po(c)){const e=this.createTempObjNode(p,c,u);u.internalDocument.contents=e,u.internalDocument=u.internalDocument,y=e.items[0],c=e}else if(co(c))for(const e of c.items)mo(e.value)&&e.value.range&&e.value.range[0]===s+1&&(c=e.value)}}if(c&&co(c)){const e=c.items;for(const t of e)y&&y===t||po(t.key)&&(h[t.key.value+""]=yi.create(d));this.addPropertyCompletions(n,u,c,b,"",m,o,f),!n&&p.length>0&&'"'!==a.charAt(s-p.length-1)&&m.add({kind:pi.Property,label:p,insertText:this.getInsertTextForProperty(p,null,""),insertTextFormat:fi.Snippet})}const v={};this.getValueCompletions(n,u,c,s,e,m,v)}catch(e){this.telemetry.sendError("yaml.completion.error",{error:oc(e)})}return this.finalizeParentCompletion(r),r},new((o=void 0)||(o=Promise))((function(e,t){function n(e){try{u(s.next(e))}catch(e){t(e)}}function a(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,a)}u((s=s.apply(r,i||[])).next())}));var r,i,o,s}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n){const r=e=>e.includes("\n");if(r(t)||r(n))return;const i=this.getValuesFromInsertText(t),o=this.getValuesFromInsertText(n),s=Array.prototype.concat(i,o);return s.length?1===s.length?`${e}: \${1:${s[0]}}`:`${e}: \${1|${s.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${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:ci.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,o,s,a){var u,c;const l=t.getMatchingSchemas(e.schema),p=s.getText(a),f=s.getLineContent(a.start.line),h=0===f.trim().length,d=-1!==f.indexOf(":"),m=t.getParent(n),g=l.find((e=>e.node.internalNode===r&&e.schema.properties));for(const e of l){if((e.node.internalNode===n&&!g||e.node.internalNode===r)&&!e.inverted){this.collectDefaultSnippets(e.schema,i,o,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1});const t=e.schema.properties;if(t){const l=e.schema.maxProperties;if(void 0===l||void 0===n.items||n.items.length<l||n.items.length===l&&!h)for(const l in t)if(Object.prototype.hasOwnProperty.call(t,l)){const f=t[l];if("object"==typeof f&&!f.deprecationMessage&&!f.doNotSuggest){let t,g="";if(m&&fo(m)&&n.items.length<=1&&!h){const e=s.getText(),t=e.lastIndexOf("-",n.range[0]-1);if(t>=0){const r=a.end.character-a.start.character;g=" "+e.slice(t+1,n.range[1]-r)}}if(g+=this.arrayPrefixIndentation,"array"===f.type&&(t=n.items.find((e=>po(e.key)&&e.key.range&&e.key.value===l&&po(e.value)&&!e.value.value&&s.getPosition(e.key.range[2]).line===a.end.line-1)))&&t)if(Array.isArray(f.items))this.addSchemaValueCompletions(f.items[0],i,o,{});else if("object"==typeof f.items&&"object"===f.items.type){const e=`- ${this.getInsertTextForObject(f.items,i," ").insertText.trimLeft()}`,t=this.getDocumentationWithMarkdownText("Create an item of an array"+(f.description?" ("+f.description+")":""),e);o.add({kind:this.getSuggestionKind(f.items.type),label:"- (array item)",documentation:t,insertText:e,insertTextFormat:fi.Snippet})}let y=l;l.startsWith(p)&&d||(y=this.getInsertTextForProperty(l,f,i,g+this.indentation));const b=po(r)&&null===r.value||co(r)&&0===r.items.length,v=(null===(u=e.schema.required)||void 0===u?void 0:u.length)>0;this.parentSkeletonSelectedFirst&&b&&v||o.add({kind:pi.Property,label:l,insertText:y,insertTextFormat:fi.Snippet,documentation:this.fromMarkup(f.markdownDescription)||f.description||""}),(null===(c=e.schema.required)||void 0===c?void 0:c.includes(l))&&o.add({label:l,insertText:this.getInsertTextForProperty(l,f,i,g+this.indentation),insertTextFormat:fi.Snippet,documentation:this.fromMarkup(f.markdownDescription)||f.description||"",parent:{schema:e.schema,indent:g}})}}}if(m&&fo(m)&&"object"!==e.schema.type&&this.addSchemaValueCompletions(e.schema,i,o,{},Array.isArray(m.items)),e.schema.propertyNames&&e.schema.additionalProperties&&"object"===e.schema.type){const t=Gc(e.schema.propertyNames),n=t.title||"property";o.add({kind:pi.Property,label:n,insertText:`\${1:${n}}: `,insertTextFormat:fi.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description||""})}}m&&e.node.internalNode===m&&e.schema.defaultSnippets&&(1===n.items.length?this.collectDefaultSnippets(e.schema,i,o,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,i,o,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,o,s){let a=null;if(n&&po(n)&&(n=t.getParent(n)),n){if(lo(n)){const e=n.value;if(e&&e.range&&r>e.range[0]+e.range[2])return;a=po(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(null!==a||fo(n))){const u="",c=t.getMatchingSchemas(e.schema);for(const e of c)if(e.node.internalNode===n&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,u,o,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),fo(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],u,o,s)}else if("object"==typeof e.schema.items&&"object"===e.schema.items.type){const t=`- ${this.getInsertTextForObject(e.schema.items,u," ").insertText.trimLeft()}`,n=this.getDocumentationWithMarkdownText("Create an item of an array"+(e.schema.description?" ("+e.schema.description+")":""),t);o.add({kind:this.getSuggestionKind(e.schema.items.type),label:"- (array item)",documentation:n,insertText:t,insertTextFormat:fi.Snippet}),this.addSchemaValueCompletions(e.schema.items,u,o,s)}else"object"==typeof e.schema.items&&e.schema.items.anyOf?(e.schema.items.anyOf.filter((e=>"object"==typeof e)).forEach(((t,n)=>{const r=sc(t),i=`- ${this.getInsertTextForObject(t,u).insertText.trimLeft()}`,s=r?" type `"+r+"`":"",a=e.schema.description?" ("+e.schema.description+")":"",c=this.getDocumentationWithMarkdownText(`Create an item of an array${s}${a}`,i);o.add({kind:this.getSuggestionKind(t.type),label:"- (array item) "+(r||n+1),documentation:c,insertText:i,insertTextFormat:fi.Snippet})})),this.addSchemaValueCompletions(e.schema.items,u,o,s)):this.addSchemaValueCompletions(e.schema.items,u,o,s);if(e.schema.properties){const t=e.schema.properties[a];t&&this.addSchemaValueCompletions(t,u,o,s)}else e.schema.additionalProperties&&this.addSchemaValueCompletions(e.schema.additionalProperties,u,o,s)}s.boolean&&(this.addBooleanValueCompletion(!0,u,o),this.addBooleanValueCompletion(!1,u,o)),s.null&&this.addNullValueCompletion(u,o)}}else this.addSchemaValueCompletions(e.schema,"",o,s)}getInsertTextForProperty(e,t,n,r=this.indentation){const i=this.getInsertTextForValue(e,"","string"),o=i+":";let s,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;nc(e)&&(s=this.getInsertTextForSnippetValue(e,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},1),s.startsWith(" ")||s.startsWith("\n")||(s=" "+s))}a+=t.defaultSnippets.length}if(t.enum&&(s||1!==t.enum.length||(s=" "+this.getInsertTextForGuessedValue(t.enum[0],"",e)),a+=t.enum.length),t.const&&(s||(s=this.getInsertTextForGuessedValue(t.const,"",e),s=function(e){return e.replace(/\$\{1:(.*)\}/,"$1")}(s),s=" "+s),a++),nc(t.default)&&(s||(s=" "+this.getInsertTextForGuessedValue(t.default,"",e)),a++),Array.isArray(t.examples)&&t.examples.length&&(s||(s=" "+this.getInsertTextForGuessedValue(t.examples[0],"",e)),a+=t.examples.length),t.properties)return`${o}\n${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${o}\n${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(0===a)switch(e){case"boolean":case"string":case"anyOf":s=" $1";break;case"object":s=`\n${r}`;break;case"array":s=`\n${r}- `;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+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let i="";return e.properties?(Object.keys(e.properties).forEach((o=>{const s=e.properties[o];let a=Array.isArray(s.type)?s.type[0]:s.type;if(a||(s.anyOf&&(a="anyOf"),s.properties&&(a="object"),s.items&&(a="array")),e.required&&e.required.indexOf(o)>-1)switch(a){case"boolean":case"string":case"number":case"integer":case"anyOf":{let e=s.default||s.const;e?("string"===a&&(e=Xl(e)),i+=`${n}${o}: \${${r++}:${e}}\n`):i+=`${n}${o}: $${r++}\n`;break}case"array":{const e=this.getInsertTextForArray(s.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]=`${n}${this.indentation} ${t.trimLeft()}`}u=a.join("\n")}r=e.insertIndex,i+=`${n}${o}:\n${n}${this.indentation}- ${u}\n`}break;case"object":{const e=this.getInsertTextForObject(s,t,`${n}${this.indentation}`,r++);r=e.insertIndex,i+=`${n}${o}:\n${e.insertText}\n`}}else if(!this.disableDefaultProperties&&void 0!==s.default)switch(a){case"boolean":case"number":case"integer":i+=`${n}${o}: \${${r++}:${s.default}}\n`;break;case"string":i+=`${n}${o}: \${${r++}:${Xl(s.default)}}\n`}})),0===i.trim().length&&(i=`${n}$${r++}\n`),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}\n`,{insertText:i,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let i="";if(!e)return i="$"+n++,{insertText:i,insertIndex:n};let o=Array.isArray(e.type)?e.type[0]:e.type;switch(o||(e.properties&&(o="object"),e.items&&(o="array")),e.type){case"boolean":i=`\${${n++}:false}`;break;case"number":case"integer":i=`\${${n++}:0}`;break;case"string":i=`\${${n++}:""}`;break;case"object":{const o=this.getInsertTextForObject(e,t,`${r} `,n++);i=o.insertText.trimLeft(),n=o.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=Xl(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&&(e="null"),"object"==typeof e){const n=this.indentation;return this.getInsertTemplateForValue(e,n,{index:1},t)}return"string"===(n=Array.isArray(n)?n[0]:n)&&(e=Xl(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let r="\n";for(const i of e)r+=`${t}- \${${n.index++}:${i}}\n`;return r}if("object"==typeof e){let i="\n";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=e[o];let a;i+=`${t}\${${n.index++}:${o}}:`,a="object"==typeof s?`${this.getInsertTemplateForValue(s,t+this.indentation,n,r)}`:` \${${n.index++}:${this.getInsertTextForPlainText(s+r)}}\n`,i+=`${a}`}return i}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,i){"object"==typeof e&&(this.addEnumValueCompletions(e,t,n,i),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))))}collectTypes(e,t){if(Array.isArray(e.enum)||nc(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,r=0){let i=!1;if(nc(e.default)){let o,s=e.type,a=e.default;for(let e=r;e>0;e--)a=[a],s="array";o="object"==typeof a?"Default value":a.toString().replace(Jl,'"'),n.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:fi.Snippet,detail:zl("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((o=>{let s=e.type,a=o;for(let e=r;e>0;e--)a=[a],s="array";n.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:fi.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(nc(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:fi.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const i=e.enum[r];let 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(i),insertText:this.getInsertTextForValue(i,t,void 0),insertTextFormat:fi.Snippet,documentation:o})}}getLabelForValue(e){return null===e?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r,i=0){if(Array.isArray(e.defaultSnippets))for(const o of e.defaultSnippets){let s,a,u=e.type,c=o.body,l=o.label;if(nc(c)){const n=o.type||e.type;if(0===i&&"array"===n){const e={};Object.keys(c).forEach(((t,n)=>{0!==n||t.startsWith("-")?e[` ${t}`]=c[t]:e[`- ${t}`]=c[t]})),c=e}s=this.getInsertTextForSnippetValue(c,t,r),l=l||this.getLabelForSnippetValue(c)}else if("string"==typeof o.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";s=e+r+o.bodyText.split("\n").join("\n"+r)+n+t,l=l||s,a=s.replace(/[\n]/g,"")}n.add({kind:o.suggestionKind||this.getSuggestionKind(u),label:l,sortText:o.sortText||o.label,documentation:this.fromMarkup(o.markdownDescription)||o.description,insertText:s,insertTextFormat:fi.Snippet,filterText:a})}}getInsertTextForSnippetValue(e,t,n,r){return Wl(e,"",(e=>{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e}),Object.assign(Object.assign({},n),{indentation:this.indentation}),r)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:fi.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:fi.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){Lc(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:fi.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(`${e}\n \`\`\`\n${t}\n\`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return pi.Value;switch(e){case"string":default:return pi.Value;case"object":return pi.Module;case"property":return pi.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:ci.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(ci.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let t=e.items.length-1;t>=0;t--){const r=e.items[t];if(mo(r)&&r.range){if(n>r.range[1])return t;if(n>=r.range[0])return t}}return 0}}(s,o,ml,r),u=new class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover)}doHover(e,t,n=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const r=ml.getYamlDocument(e),i=Oc(e.offsetAt(t),r);if(null===i)return Promise.resolve(void 0);Fl(r.documents,n);const o=r.documents.indexOf(i);return i.currentDocIndex=o,this.getHover(e,t,i)}catch(e){this.telemetry.sendError("yaml.hover.error",{error:oc(e)})}}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 o=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 s=Pr.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length));return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i&&!e.errors.length){const r=n.getMatchingSchemas(e.schema,i.offset);let o,a,u,c;const l=[];r.every((e=>{if(e.node===i&&!e.inverted&&e.schema){if(o=o||e.schema.title||e.schema.closestTitle,a=a||e.schema.markdownDescription||Nl(e.schema.description),e.schema.enum){const t=e.schema.enum.indexOf(el(i));e.schema.markdownEnumDescriptions?u=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(u=Nl(e.schema.enumDescriptions[t])),u&&(c=e.schema.enum[t],"string"!=typeof c&&(c=JSON.stringify(c)))}e.schema.examples&&e.schema.examples.forEach((e=>{l.push(JSON.stringify(e))}))}return!0}));let p="";return o&&(p="#### "+Nl(o)),a&&(p.length>0&&(p+="\n\n"),p+=a),u&&(p.length>0&&(p+="\n\n"),p+=`\`${t=c,-1!==t.indexOf("`")?"`` "+t+" ``":t}\`: ${u}`),0!==l.length&&(p.length>0&&(p+="\n\n"),p+="Examples:",l.forEach((e=>{p+=`\n\n\`\`\`${e}\`\`\``}))),p.length>0&&e.schema.url&&(p+=`\n\nSource: [${function(e){let t="JSON Schema";const n=e.url;if(n){const e=Tr.parse(n);t=hu.basename(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),{contents:{kind:"markdown",value:p},range:s}}var t;return null}))}}(s,r),c=new class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new bc(e),this.jsonDocumentSymbols.getKeyLabel=e=>{const t=e.keyNode.internalNode;let n="";return n=co(t)?"{}":fo(t)?"[]":t.source,n}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=ml.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(e){this.telemetry.sendError("yaml.documentSymbols.error",{error:oc(e)})}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=ml.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(e){this.telemetry.sendError("yaml.hierarchicalDocumentSymbols.error",{error:oc(e)})}return n}}(s,r),l=new class{constructor(e,t){this.telemetry=t,this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new pc(e,Promise),this.additionalValidation=new class{constructor(){this.validators=[],this.validators.push(new class{validate(e,t){const n=[],r=new Set,i=new Set,o=new Map;Do(t.internalDocument,((e,n,s)=>{mo(n)&&((ho(n)||po(n))&&n.anchor&&(r.add(n),o.set(n,s[s.length-1])),ao(n)&&i.add(n.resolve(t.internalDocument)))}));for(const t of r)if(!i.has(t)){const r=this.getAnchorNode(o.get(t));if(r){const t=Pr.create(e.positionAt(r.offset),e.positionAt(r.offset+r.source.length)),i=Hr.create(t,`Unused anchor "${r.source}"`,Wr.Hint,0);i.tags=[qr.Unnecessary],n.push(i)}}return n}getAnchorNode(e){if(e&&e.srcToken){const t=e.srcToken;if(pl(t))return kl(t);if((e=>!!e&&"items"in e)(t))for(const e of t.items){const t=kl(e);if(t)return t}}}})}validate(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}}}configure(e){e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion)}doValidation(e,t=!1){return n=this,r=void 0,o=function*(){if(!this.validationEnabled)return Promise.resolve([]);const n=[];try{const r=ml.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let i=0;for(const o of r.documents){o.isKubernetes=t,o.currentDocIndex=i,o.disableAdditionalProperties=this.disableAdditionalProperties;const r=yield this.jsonValidation.doValidation(e,o),s=o;s.errors.length>0&&n.push(...s.errors),s.warnings.length>0&&n.push(...s.warnings),n.push(...r),n.push(...this.additionalValidation.validate(e,o)),i++}}catch(e){this.telemetry.sendError("yaml.validation.error",oc(e))}let r;const i=new Set,o=[];for(let s of n){if(t&&s.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(s,"location")&&(s=Ol(s,e)),s.source||(s.source=Rc),r&&r.message===s.message&&r.range.end.line===s.range.start.line&&Math.abs(r.range.end.character-s.range.end.character)>=1){r.range.end=s.range.end;continue}r=s;const n=s.range.start.line+" "+s.range.start.character+" "+s.message;i.has(n)||(o.push(s),i.add(n))}return o},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{u(o.next(e))}catch(e){t(e)}}function a(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}}(s,r),p=new class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[gu],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=du.format(n,r);return[zr.replace(Pr.create(Lr.create(0,0),e.positionAt(n.length)),i)]}catch(e){return[]}}},f=new class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.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}getJumpToSchemaActions(e){var t,n,r,i,o;if(null===(i=null===(r=null===(n=null===(t=this.clientCapabilities)||void 0===t?void 0:t.window)||void 0===n?void 0:n.showDocument)||void 0===r?void 0:r.support)||void 0===i||!i)return[];const s=new Map;for(const t of e){const e=(null===(o=t.data)||void 0===o?void 0:o.schemaUri)||[];for(const n of e)n&&(s.has(n)||s.set(n,[]),s.get(n).push(t))}const a=[];for(const e of s.keys()){const t=Li.create(`Jump to schema location (${hu.basename(e)})`,Yr.create("JumpToSchema",_l.JUMP_TO_SCHEMA,e));t.diagnostics=s.get(e),a.push(t)}return a}getTabToSpaceConverting(e,t){const n=[],r=new vl(t),i=[];for(const o of e)if("Using tabs can lead to unpredictable results"===o.message){if(i.includes(o.range.start.line))continue;const e=r.getLineContent(o.range.start.line);let s=0,a="";for(let t=o.range.start.character;t<=o.range.end.character&&"\t"===e.charAt(t);t++)s++,a+=this.indentation;i.push(o.range.start.line);let u=o.range;s!==o.range.end.character-o.range.start.character&&(u=Pr.create(o.range.start,Lr.create(o.range.end.line,o.range.start.character+s))),n.push(Li.create("Convert Tab to Spaces",Il(t.uri,[zr.replace(u,a)]),ki.QuickFix))}if(0!==n.length){const e=[];for(let t=0;t<=r.getLineCount();t++){const n=r.getLineContent(t);let i=0,o="";for(let r=0;r<n.length;r++){const s=n.charAt(r);if(" "!==s&&"\t"!==s){0!==i&&(e.push(zr.replace(Pr.create(t,r-i,t,r),o)),i=0,o="");break}" "!==s||0===i?"\t"===s&&(o+=this.indentation,i++):(e.push(zr.replace(Pr.create(t,r-i,t,r),o)),i=0,o="")}0!==i&&e.push(zr.replace(Pr.create(t,0,t,r.getLineLength(t)),o))}e.length>0&&n.push(Li.create("Convert all Tabs to Spaces",Il(t.uri,e),ki.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new vl(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===Rc){const e=Pr.create(i.range.start,i.range.end),o=r.getText(e),s=Zu(r.getLineContent(e.end.line),e.end.character);e.end.character=s;const a=Li.create(`Delete unused anchor: ${o}`,Il(t.uri,[zr.del(e)]),ki.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(Li.create("Convert to boolean",Il(t.uri,[zr.replace(r.range,i)]),ki.QuickFix))}}return n}}(o),h=new class{constructor(e,t){this.schemaService=e,this.telemetry=t}getCodeLens(e){return t=this,n=void 0,i=function*(){const t=[];try{const n=ml.getYamlDocument(e);let r=new Map;for(const t of n.documents){const n=yield this.schemaService.getSchemaForResource(e.uri,t);(null==n?void 0:n.schema)&&(r=new Map([...jl(null==n?void 0:n.schema),...r]))}for(const e of r){const n=Pi.create(Pr.create(0,0,0,0));n.command={title:$l(e[0],e[1]),command:_l.JUMP_TO_SCHEMA,arguments:[e[0]]},t.push(n)}}catch(e){this.telemetry.sendError("yaml.codeLens.error",{error:oc(e)})}return t},new((r=void 0)||(r=Promise))((function(e,o){function s(e){try{u(i.next(e))}catch(e){o(e)}}function a(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}u((i=i.apply(t,n||[])).next())}));var t,n,r,i}resolveCodeLens(e){return e}}(s,r),d=new class{constructor(e){this.telemetry=e}findLinks(e){try{const t=ml.getYamlDocument(e),n=[];for(const r of t.documents)n.push(Fc(e,r));return Promise.all(n).then((e=>[].concat(...e)))}catch(e){this.telemetry.sendError("yaml.documentLink.error",{error:oc(e)})}}}(r),m=new class{constructor(e){this.telemetry=e}getDefinition(e,t){try{const n=ml.getYamlDocument(e),r=e.offsetAt(t.position),i=Oc(r,n);if(i){const[t]=i.getNodeFromPosition(r,new vl(e));if(t&&ao(t)){const n=t.resolve(i.internalDocument);if(n&&n.range){const t=Pr.create(e.positionAt(n.range[0]),e.positionAt(n.range[2])),r=Pr.create(e.positionAt(n.range[0]),e.positionAt(n.range[1]));return[Mr.create(e.uri,t,r)]}}}}catch(e){this.telemetry.sendError("yaml.definition.error",{error:oc(e)})}}}(r);return new Zl(s,i,n),function(e,t){e.registerCommand(_l.JUMP_TO_SCHEMA,(e=>{return n=this,r=void 0,o=function*(){if(e){if(!e.startsWith("file")&&!/^[a-z]:[\\/]/i.test(e)){const t=Tr.parse(e),n=Tr.from({scheme:"json-schema",authority:t.authority,path:t.path.endsWith(".json")?t.path:t.path+".json",fragment:e});e=n.toString()}if(/^[a-z]:[\\/]/i.test(e)){const t=Tr.file(e);e=t.toString()}(yield t.window.showDocument({uri:e,external:!1,takeFocus:!0}))||t.window.showErrorMessage(`Cannot open ${e}`)}},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{u(o.next(e))}catch(e){t(e)}}function a(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}))}(Ml,n),{configure:e=>{s.clearExternalSchemas(),e.schemas&&(s.schemaPriorityMapping=new Map,e.schemas.forEach((e=>{const t=e.priority?e.priority:0;s.addSchemaPriority(e.uri,t),s.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description,e.versions)}))),l.configure(e),u.configure(e),a.configure(e),p.configure(e),f.configure(e)},registerCustomSchemaProvider:e=>{s.registerCustomSchemaProvider(e)},findLinks:d.findLinks.bind(d),doComplete:a.doComplete.bind(a),doValidation:l.doValidation.bind(l),doHover:u.doHover.bind(u),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findHierarchicalDocumentSymbols.bind(c),doDefinition:m.getDefinition.bind(m),resetSchema:e=>s.onResourceChange(e),doFormat:p.format.bind(p),doDocumentOnTypeFormatting:Bl,addSchema:(e,t)=>s.saveSchema(e,t),deleteSchema:e=>s.deleteSchema(e),modifySchemaContent:e=>s.addContent(e),deleteSchemaContent:e=>s.deleteContent(e),deleteSchemasWhole:e=>s.deleteSchemas(e),getFoldingRanges:Ll,getCodeAction:(e,t)=>f.getCodeAction(e,t),getCodeLens:e=>h.getCodeLens(e),resolveCodeLens:e=>h.resolveCodeLens(e)}}async function tp(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}(Hl=Kl||(Kl={}))[Hl.SchemaStore=1]="SchemaStore",Hl[Hl.SchemaAssociation=2]="SchemaAssociation",Hl[Hl.Settings=3]="Settings",Hl[Hl.Modeline=4]="Modeline",Yl=(e,{enableSchemaRequest:t,languageSettings:n})=>{const r=ep(t?tp:null,null,null,null,null);r.configure(n);const i=t=>{const n=e.getMirrorModels();for(const e of n)if(String(e.uri)===t)return ar.create(t,"yaml",e.version,e.getValue())};return{doValidation(e){const t=i(e);return t?r.doValidation(t,n.isKubernetes):[]},doComplete(e,t){const o=i(e);return r.doComplete(o,t,n.isKubernetes)},doDefinition(e,t){const n=i(e);return r.doDefinition(n,{position:t,textDocument:{uri:e}})},doHover(e,t){const n=i(e);return r.doHover(n,t)},format(e,t){const n=i(e);return r.doFormat(n,t)},resetSchema:e=>r.resetSchema(e),findDocumentSymbols(e){const t=i(e);return r.findDocumentSymbols2(t,{})},findLinks(e){const t=i(e);return r.findLinks(t)},getCodeAction(e,t,n){const o=i(e);return r.getCodeAction(o,{range:t,textDocument:{uri:e},context:{diagnostics:n}})}}},self.onmessage=()=>{or(((e,t)=>Object.create(Yl(e,t))))}})()})();