@batijs/core 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1891,4 +1891,4 @@ import*as e from"tty";import*as t from"util";import*as r from"os";import*as n fr
|
|
|
1891
1891
|
`,cliCategory:i},requirePragma:{since:"1.7.0",category:l,type:"boolean",default:!1,description:r`
|
|
1892
1892
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
1893
1893
|
in order for it to be formatted.
|
|
1894
|
-
`,cliCategory:a},tabWidth:{type:"int",category:u,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:u,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:u,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:n,CATEGORY_EDITOR:i,CATEGORY_FORMAT:s,CATEGORY_OTHER:a,CATEGORY_OUTPUT:o,CATEGORY_GLOBAL:u,CATEGORY_SPECIAL:l,options:c}}}),ie=m({"src/main/support.js"(e,t){x();var n={compare:Q(),lt:Z(),gte:ee()},i=te(),a=E().version,o=ne().options;function u(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:u=!1,showInternal:c=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=a.split("-",1)[0],d=e.flatMap((e=>e.languages||[])).filter(f),h=i(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),o),"name").filter((e=>f(e)&&m(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map(y).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(f).sort(((e,t)=>n.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>f(e)&&m(e))),"parser"===t.name&&l(t,d,e));let r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));return{languages:d,options:h};function f(e){return t||!("since"in e)||e.since&&n.gte(p,e.since)}function m(e){return u||!("deprecated"in e)||e.deprecated&&n.lt(p,e.deprecated)}function y(e){return c?e:s(e,r)}}function l(e,t,r){let n=new Set(e.choices.map((e=>e.value)));for(let i of t)if(i.parsers)for(let t of i.parsers)if(!n.has(t)){n.add(t);let s=r.find((e=>e.parsers&&e.parsers[t])),a=i.name;s&&s.name&&(a+=` (plugin: ${s.name})`),e.choices.push({value:t,description:a})}}t.exports={getSupportInfo:u}}}),se=m({"src/utils/is-non-empty-array.js"(e,t){function r(e){return Array.isArray(e)&&e.length>0}x(),t.exports=r}}),ae=m({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}x();var n=r(/\s/),i=r(" \t"),s=r(",; \t"),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:a}}}),oe=m({"src/utils/text/skip-inline-comment.js"(e,t){function r(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}x(),t.exports=r}}),ue=m({"src/utils/text/skip-trailing-comment.js"(e,t){x();var{skipEverythingButNewLine:r}=ae();function n(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}t.exports=n}}),le=m({"src/utils/text/skip-newline.js"(e,t){function r(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let i=e.charAt(t);if(n){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}x(),t.exports=r}}),ce=m({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){x();var r=oe(),n=le(),i=ue(),{skipSpaces:s}=ae();function a(e,t){let a=null,o=t;for(;o!==a;)a=o,o=s(e,o),o=r(e,o),o=i(e,o),o=n(e,o);return o}t.exports=a}}),pe=m({"src/common/util.js"(e,t){x();var{default:r}=(z(),v(q)),n=A(),{getSupportInfo:i}=ie(),s=se(),a=M(),{skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c}=ae(),p=oe(),d=ue(),h=le(),f=ce(),m=e=>e[e.length-2];function y(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=u(e,r.backwards?t-1:t,r);return n!==h(e,n,r)}function b(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1}function E(e,t,r){let n=r(t)-1;return n=u(e,n,{backwards:!0}),n=h(e,n,{backwards:!0}),n=u(e,n,{backwards:!0}),n!==h(e,n,{backwards:!0})}function S(e,t){let r=null,n=t;for(;n!==r;)r=n,n=l(e,n),n=p(e,n),n=u(e,n);return n=d(e,n),n=h(e,n),!1!==n&&g(e,n)}function D(e,t,r){return S(e,r(t))}function T(e,t,r){return f(e,r(t))}function C(e,t,r){return e.charAt(T(e,t,r))}function P(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(e,r.backwards?t-1:t,r)!==t}function w(e,t){let r=0;for(let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n<e.length;++n)"\t"===e[n]?r=r+t-r%t:r++;return r}function k(e,t){let r=e.lastIndexOf("\n");return-1===r?0:w(e.slice(r+1).match(/^[\t ]*/)[0],t)}function I(e,t){let r={quote:'"',regex:/"/g,escaped:"""},n={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?n:r,s=i===n?r:n,a=i;return(e.includes(i.quote)||e.includes(s.quote))&&(a=(e.match(i.regex)||[]).length>(e.match(s.regex)||[]).length?s:i),a}function F(e,t){let r=e.slice(1,-1);return N(r,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":I(r,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function N(e,t,r){let n='"'===t?"'":'"',i=/\\(.)|(["'])/gs,s=e.replace(i,((e,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+s+t}function _(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function O(e,t){let n=e.match(new RegExp(`(${r(t)})+`,"g"));return null===n?0:n.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)}function B(e,t){let n=e.match(new RegExp(`(${r(t)})+`,"g"));if(null===n)return 0;let i=new Map,s=0;for(let e of n){let r=e.length/t.length;i.set(r,!0),r>s&&(s=r)}for(let e=1;e<s;e++)if(!i.get(e))return e;return s+1}function j(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=K(e)}function L(e,t){t.leading=!0,t.trailing=!1,j(e,t)}function R(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),j(e,t)}function $(e,t){t.leading=!1,t.trailing=!0,j(e,t)}function U(e,t){let{languages:r}=i({plugins:t.plugins}),n=r.find((t=>{let{name:r}=t;return r.toLowerCase()===e}))||r.find((t=>{let{aliases:r}=t;return Array.isArray(r)&&r.includes(e)}))||r.find((t=>{let{extensions:r}=t;return Array.isArray(r)&&r.includes(`.${e}`)}));return n&&n.parsers[0]}function V(e){return e&&"front-matter"===e.type}function W(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}function K(e){let t=e.type||e.kind||"(unknown type)",r=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 r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}t.exports={inferParserByLanguage:U,getStringWidth:a,getMaxContinuousCount:O,getMinNotPresentContinuousCount:B,getPenultimate:m,getLast:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:T,getNextNonSpaceNonCommentCharacter:C,skip:y,skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c,skipInlineComment:p,skipTrailingComment:d,skipNewline:h,isNextLineEmptyAfterIndex:S,isNextLineEmpty:D,isPreviousLineEmpty:E,hasNewline:g,hasNewlineInRange:b,hasSpaces:P,getAlignmentSize:w,getIndentSize:k,getPreferredQuote:I,printString:F,printNumber:_,makeString:N,addLeadingComment:L,addDanglingComment:R,addTrailingComment:$,isFrontMatterNode:V,isNonEmptyArray:s,createGroupIdMapper:W}}}),de={};function he(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function fe(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=he(Se(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function me(e){var t=ye(e),r="/"===we(e,-1);return!(e=he(Se(e.split("/"),(function(e){return!!e})),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function ye(e){return"/"===e.charAt(0)}function ge(){return me(Se(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 be(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=fe(e).substr(1),t=fe(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),a=s,o=0;o<s;o++)if(n[o]!==i[o]){a=o;break}var u=[];for(o=a;o<n.length;o++)u.push("..");return(u=u.concat(i.slice(a))).join("/")}function ve(e){var t=Te(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function xe(e,t){var r=Te(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function Ee(e){return Te(e)[3]}function Se(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}y(de,{basename:()=>xe,default:()=>Pe,delimiter:()=>Ae,dirname:()=>ve,extname:()=>Ee,isAbsolute:()=>ye,join:()=>ge,normalize:()=>me,relative:()=>be,resolve:()=>fe,sep:()=>Ce});var De,Te,Ce,Ae,Pe,we,ke=f({"node-modules-polyfills:path"(){x(),De=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Te=function(e){return De.exec(e).slice(1)},Pe={extname:Ee,basename:xe,dirname:ve,sep:Ce="/",delimiter:Ae=":",relative:be,join:ge,isAbsolute:ye,normalize:me,resolve:fe},we="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}}),Ie=m({"node-modules-polyfills-commonjs:path"(e,t){x();var r=(ke(),v(de));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),Fe=m({"src/common/errors.js"(e,t){x();var r=class extends Error{},n=class extends Error{},i=class extends Error{},s=class extends Error{};t.exports={ConfigError:r,DebugError:n,UndefinedParserError:i,ArgExpansionBailout:s}}}),Ne={};function _e(e,t){function r(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Oe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function Be(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a}function je(e,t){return function(r,n){t(r,n,e)}}function Le(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Me(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function a(e){try{u(n.next(e))}catch(e){s(e)}}function o(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,o)}u((n=n.apply(e,t||[])).next())}))}function Re(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function $e(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function Ue(e,t){for(var r in e)"default"!==r&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ve(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a}function We(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qe(arguments[t]));return e}function ze(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n}function Ke(e){return this instanceof Ke?(this.v=e,this):new Ke(e)}function He(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{u(i[e](t))}catch(e){p(s[0][3],e)}}function u(e){e.value instanceof Ke?Promise.resolve(e.value.v).then(l,c):p(s[0][2],e)}function l(e){o("next",e)}function c(e){o("throw",e)}function p(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function Je(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:Ke(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function Xe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof Ve?Ve(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,s){i(n,s,(t=e[r](t)).done,t.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function Ge(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Ye(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Qe(e){return e&&e.__esModule?e:{default:e}}function Ze(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function et(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}y(Ne,{__assign:()=>rt,__asyncDelegator:()=>Je,__asyncGenerator:()=>He,__asyncValues:()=>Xe,__await:()=>Ke,__awaiter:()=>Me,__classPrivateFieldGet:()=>Ze,__classPrivateFieldSet:()=>et,__createBinding:()=>$e,__decorate:()=>Be,__exportStar:()=>Ue,__extends:()=>_e,__generator:()=>Re,__importDefault:()=>Qe,__importStar:()=>Ye,__makeTemplateObject:()=>Ge,__metadata:()=>Le,__param:()=>je,__read:()=>qe,__rest:()=>Oe,__spread:()=>We,__spreadArrays:()=>ze,__values:()=>Ve});var tt,rt,nt=f({"node_modules/tslib/tslib.es6.js"(){x(),tt=function(e,t){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rt.apply(this,arguments)}}}),it=m({"node_modules/vnopts/lib/descriptors/api.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map((t=>e.apiDescriptor.value(t))).join(", ")}]`;let r=Object.keys(t);return 0===r.length?"{}":`{ ${r.map((r=>`${e.apiDescriptor.key(r)}: ${e.apiDescriptor.value(t[r])}`)).join(", ")} }`},pair:t=>{let{key:r,value:n}=t;return e.apiDescriptor.value({[r]:n})}}}}),st=m({"node_modules/vnopts/lib/descriptors/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(it(),e)}}),at=m({"scripts/build/shims/chalk.cjs"(e,t){x();var r=e=>e;r.grey=r,r.red=r,r.bold=r,r.yellow=r,r.blue=r,r.default=r,t.exports=r}}),ot=m({"node_modules/vnopts/lib/handlers/deprecated/common.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=at();e.commonDeprecatedHandler=(e,r,n)=>{let{descriptor:i}=n,s=[`${t.default.yellow("string"==typeof e?i.key(e):i.pair(e))} is deprecated`];return r&&s.push(`we now treat it as ${t.default.blue("string"==typeof r?i.key(r):i.pair(r))}`),s.join("; ")+"."}}}),ut=m({"node_modules/vnopts/lib/handlers/deprecated/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(ot(),e)}}),lt=m({"node_modules/vnopts/lib/handlers/invalid/common.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=at();e.commonInvalidHandler=(e,r,n)=>[`Invalid ${t.default.red(n.descriptor.key(e))} value.`,`Expected ${t.default.blue(n.schemas[e].expected(n))},`,`but received ${t.default.red(n.descriptor.value(r))}.`].join(" ")}}),ct=m({"node_modules/vnopts/lib/handlers/invalid/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(lt(),e)}}),pt=m({"node_modules/vnopts/node_modules/leven/index.js"(e,t){x();var r=[],n=[];t.exports=function(e,t){if(e===t)return 0;var i=e;e.length>t.length&&(e=t,t=i);var s=e.length,a=t.length;if(0===s)return a;if(0===a)return s;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-a);)s--,a--;if(0===s)return a;for(var o=0;o<s&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(a-=o,0==(s-=o))return a;for(var u,l,c,p,d=0,h=0;d<s;)n[o+d]=e.charCodeAt(o+d),r[d]=++d;for(;h<a;)for(u=t.charCodeAt(o+h),c=h++,l=h,d=0;d<s;d++)p=u===n[o+d]?c:c+1,c=r[d],l=r[d]=c>l?p>l?l+1:p:p>c?c+1:p;return l}}}),dt=m({"node_modules/vnopts/lib/handlers/unknown/leven.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=at(),r=pt();e.levenUnknownHandler=(e,n,i)=>{let{descriptor:s,logger:a,schemas:o}=i,u=[`Ignored unknown option ${t.default.yellow(s.pair({key:e,value:n}))}.`],l=Object.keys(o).sort().find((t=>r(e,t)<3));l&&u.push(`Did you mean ${t.default.blue(s.key(l))}?`),a.warn(u.join(" "))}}}),ht=m({"node_modules/vnopts/lib/handlers/unknown/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(dt(),e)}}),ft=m({"node_modules/vnopts/lib/handlers/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne));t.__exportStar(ut(),e),t.__exportStar(ct(),e),t.__exportStar(ht(),e)}}),mt=m({"node_modules/vnopts/lib/schema.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,r){let s=new e(r),a=Object.create(s);for(let e of t)e in r&&(a[e]=i(r[e],s,n.prototype[e].length));return a}e.createSchema=r;var n=class{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return e}};function i(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return e(...i.slice(0,r-1),t,...i.slice(r-1))}:()=>e}e.Schema=n}}),yt=m({"node_modules/vnopts/lib/schemas/alias.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}};e.AliasSchema=r}}),gt=m({"node_modules/vnopts/lib/schemas/any.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"anything"}validate(){return!0}};e.AnySchema=r}}),bt=m({"node_modules/vnopts/lib/schemas/array.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne)),r=mt(),n=class extends r.Schema{constructor(e){var{valueSchema:r,name:n=r.name}=e,i=t.__rest(e,["valueSchema","name"]);super(Object.assign({},i,{name:n})),this._valueSchema=r}expected(e){return`an array of ${this._valueSchema.expected(e)}`}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map((e=>{let{value:t}=e;return{value:[t]}})))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(i))}return r}redirect(e,t){let r=[],n=[];for(let s of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(i))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function i(e){let{from:t,to:r}=e;return{from:[t],to:r}}e.ArraySchema=n}}),vt=m({"node_modules/vnopts/lib/schemas/boolean.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};e.BooleanSchema=r}}),xt=m({"node_modules/vnopts/lib/utils.js"(e){function t(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r}function r(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r}function n(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}}function i(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function s(e){return e===Math.floor(e)}function a(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function o(e){return void 0===e?{}:e}function u(e,t){return!0===e||(!1===e?{value:t}:e)}function l(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function c(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function p(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>c(e,t))):[c(e,t)]}function d(e,t){let r=p("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.recordFromArray=t,e.mapFromArray=r,e.createAutoChecklist=n,e.partition=i,e.isInt=s,e.comparePrimitive=a,e.normalizeDefaultResult=o,e.normalizeValidateResult=u,e.normalizeDeprecatedResult=l,e.normalizeTransferResult=c,e.normalizeForwardResult=p,e.normalizeRedirectResult=d}}),Et=m({"node_modules/vnopts/lib/schemas/choice.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=xt(),n=class extends t.Schema{constructor(e){super(e),this._choices=r.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected(e){let{descriptor:t}=e,n=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(r.comparePrimitive).map(t.value),i=n.slice(0,-2),s=n.slice(-2);return i.concat(s.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}};e.ChoiceSchema=n}}),St=m({"node_modules/vnopts/lib/schemas/number.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}};e.NumberSchema=r}}),Dt=m({"node_modules/vnopts/lib/schemas/integer.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=xt(),r=St(),n=class extends r.NumberSchema{expected(){return"an integer"}validate(e,r){return!0===r.normalizeValidateResult(super.validate(e,r),e)&&t.isInt(e)}};e.IntegerSchema=n}}),Tt=m({"node_modules/vnopts/lib/schemas/string.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}};e.StringSchema=r}}),Ct=m({"node_modules/vnopts/lib/schemas/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne));t.__exportStar(yt(),e),t.__exportStar(gt(),e),t.__exportStar(bt(),e),t.__exportStar(vt(),e),t.__exportStar(Et(),e),t.__exportStar(Dt(),e),t.__exportStar(St(),e),t.__exportStar(Tt(),e)}}),At=m({"node_modules/vnopts/lib/defaults.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=it(),r=ot(),n=ct(),i=dt();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=i.levenUnknownHandler,e.defaultInvalidHandler=n.commonInvalidHandler,e.defaultDeprecatedHandler=r.commonDeprecatedHandler}}),Pt=m({"node_modules/vnopts/lib/normalize.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=At(),r=xt();e.normalize=(e,t,r)=>new n(t,r).normalize(e);var n=class{constructor(e,n){let{logger:i=console,descriptor:s=t.defaultDescriptor,unknown:a=t.defaultUnknownHandler,invalid:o=t.defaultInvalidHandler,deprecated:u=t.defaultDeprecatedHandler}=n||{};this._utils={descriptor:s,logger:i||{warn:()=>{}},schemas:r.recordFromArray(e,"name"),normalizeDefaultResult:r.normalizeDefaultResult,normalizeDeprecatedResult:r.normalizeDeprecatedResult,normalizeForwardResult:r.normalizeForwardResult,normalizeRedirectResult:r.normalizeRedirectResult,normalizeValidateResult:r.normalizeValidateResult},this._unknownHandler=a,this._invalidHandler=o,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=r.createAutoChecklist()}normalize(e){let t={},n=[e],i=()=>{for(;0!==n.length;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};i();for(let e of Object.keys(this._utils.schemas)){let i=this._utils.schemas[e];if(!(e in t)){let t=r.normalizeDefaultResult(i.default(this._utils));"value"in t&&n.push({[e]:t.value})}}i();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];e in t&&(t[e]=r.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){let n=[],[i,s]=r.partition(Object.keys(e),(e=>e in this._utils.schemas));for(let s of i){let i=this._utils.schemas[s],a=i.preprocess(e[s],this._utils),o=r.normalizeValidateResult(i.validate(a,this._utils),a);if(!0!==o){let{value:e}=o,t=this._invalidHandler(s,e,this._utils);throw"string"==typeof t?new Error(t):t}let u=e=>{let{from:t,to:r}=e;n.push("string"==typeof r?{[r]:t}:{[r.key]:r.value})},l=e=>{let{value:t,redirectTo:n}=e,o=r.normalizeDeprecatedResult(i.deprecated(t,this._utils),a,!0);if(!1!==o)if(!0===o)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,n,this._utils));else for(let{value:e}of o){let t={key:s,value:e};if(!this._hasDeprecationWarned(t)){let r="string"==typeof n?{key:n,value:e}:n;this._utils.logger.warn(this._deprecatedHandler(t,r,this._utils))}}};r.normalizeForwardResult(i.forward(a,this._utils),a).forEach(u);let c=r.normalizeRedirectResult(i.redirect(a,this._utils),a);if(c.redirect.forEach(u),"remain"in c){let e=c.remain;t[s]=s in t?i.overlap(t[s],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of c.redirect)l({value:e,redirectTo:t})}for(let r of s){let i=e[r],s=this._unknownHandler(r,i,this._utils);if(s)for(let e of Object.keys(s)){let r={[e]:s[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}};e.Normalizer=n}}),wt=m({"node_modules/vnopts/lib/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne));t.__exportStar(st(),e),t.__exportStar(ft(),e),t.__exportStar(Ct(),e),t.__exportStar(Pt(),e),t.__exportStar(mt(),e)}}),kt=m({"src/main/options-normalizer.js"(e,t){x();var r,i=wt(),a=A(),o={key:e=>1===e.length?`-${e}`:`--${e}`,value:e=>i.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return!1===r?`--no-${t}`:!0===r?o.key(t):""===r?`${o.key(t)} without an argument`:`${o.key(t)}=${r}`}},u=e=>{let{colorsModule:t,levenshteinDistance:r}=e;return class extends i.ChoiceSchema{constructor(e){let{name:t,flags:r}=e;super({name:t,choices:r}),this._flags=[...r].sort()}preprocess(e,n){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){let i=this._flags.find((t=>r(t,e)<3));if(i)return n.logger.warn([`Unknown flag ${t.yellow(n.descriptor.value(e))},`,`did you mean ${t.blue(n.descriptor.value(i))}?`].join(" ")),i}return e}expected(){return"a flag"}}};function l(e,t){let{logger:a=!1,isCLI:u=!1,passThrough:l=!1,colorsModule:p=null,levenshteinDistance:d=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=l?Array.isArray(l)?(e,t)=>l.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let a=s(r.schemas,n);return i.levenUnknownHandler(e,t,Object.assign(Object.assign({},r),{},{schemas:a}))},f=u?o:i.apiDescriptor,m=c(t,{isCLI:u,colorsModule:p,levenshteinDistance:d}),y=new i.Normalizer(m,{logger:a,unknown:h,descriptor:f}),g=!1!==a;g&&r&&(y._hasDeprecationWarned=r);let b=y.normalize(e);return g&&(r=y._hasDeprecationWarned),u&&!1===b["plugin-search"]&&(b["plugin-search-dir"]=!1),b}function c(e,t){let{isCLI:r,colorsModule:n,levenshteinDistance:s}=t,a=[];r&&a.push(i.AnySchema.create({name:"_"}));for(let t of e)a.push(p(t,{isCLI:r,optionInfos:e,colorsModule:n,levenshteinDistance:s})),t.alias&&r&&a.push(i.AliasSchema.create({name:t.alias,sourceName:t.name}));return a}function p(e,t){let{isCLI:r,optionInfos:n,colorsModule:s,levenshteinDistance:o}=t,{name:l}=e;if("plugin-search-dir"===l||"pluginSearchDirs"===l)return i.AnySchema.create({name:l,preprocess:e=>(!1===e||(e=Array.isArray(e)?e:[e]),e),validate:e=>!1===e||e.every((e=>"string"==typeof e)),expected:()=>"false or paths to plugin search dir"});let c,p={name:l},d={};switch(e.type){case"int":c=i.IntegerSchema,r&&(p.preprocess=Number);break;case"string":case"path":c=i.StringSchema;break;case"choice":c=i.ChoiceSchema,p.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":c=i.BooleanSchema;break;case"flag":c=u({colorsModule:s,levenshteinDistance:o}),p.flags=n.flatMap((e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?p.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):p.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(d.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(d.deprecated=!0),r&&!e.array){let e=p.preprocess||(e=>e);p.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?a(t):t),n)}return e.array?i.ArraySchema.create(Object.assign(Object.assign(Object.assign({},r?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),d),{},{valueSchema:c.create(p)})):c.create(Object.assign(Object.assign({},p),d))}function d(e,t,r){return l(e,t,r)}function h(e,t,r){return l(e,t,Object.assign({isCLI:!0},r))}t.exports={normalizeApiOptions:d,normalizeCliOptions:h}}}),It=m({"src/language-js/loc.js"(e,t){x();var r=se();function n(e){var t,i;let s=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}function a(e,t){let r=i(e);return Number.isInteger(r)&&r===i(t)}function o(e,t){return s(e,t)&&a(e,t)}t.exports={locStart:n,locEnd:i,hasSameLocStart:s,hasSameLoc:o}}}),Ft=m({"src/main/load-parser.js"(e,t){x(),t.exports=()=>{}}}),Nt=m({"scripts/build/shims/babel-highlight.cjs"(e,t){x();var r=at(),n={shouldHighlight:()=>!1,getChalk:()=>r};t.exports=n}}),_t=m({"node_modules/@babel/code-frame/lib/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=a,e.default=u;var t=Nt(),r=!1;function n(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var i=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),d=Math.min(t.length,l+a);-1===o&&(p=0),-1===l&&(d=t.length);let h=l-o,f={};if(h)for(let e=0;e<=h;e++){let r=e+o;if(u)if(0===e){let e=t[r-1].length;f[r]=[u,e-u+1]}else if(e===h)f[r]=[0,c];else{let n=t[r-e].length;f[r]=[0,n]}else f[r]=!0}else f[o]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:d,markerLines:f}}function a(e,r){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(a.highlightCode||a.forceColor)&&(0,t.shouldHighlight)(a),u=(0,t.getChalk)(a),l=n(u),c=(e,t)=>o?e(t):t,p=e.split(i),{start:d,end:h,markerLines:f}=s(r,p,a),m=r.start&&"number"==typeof r.start.column,y=String(h).length,g=(o?(0,t.default)(e,a):e).split(i,h).slice(d,h).map(((e,t)=>{let r=d+1+t,n=` ${` ${r}`.slice(-y)} |`,i=f[r],s=!f[r+1];if(i){let t="";if(Array.isArray(i)){let r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",c(l.gutter,n.replace(/\d/g," "))," ",r,c(l.marker,"^").repeat(o)].join(""),s&&a.message&&(t+=" "+c(l.message,a.message))}return[c(l.marker,">"),c(l.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${c(l.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\n");return a.message&&!m&&(g=`${" ".repeat(y+1)}${a.message}\n${g}`),o?u.reset(g):g}function u(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";o.emitWarning?o.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return a(e,{start:{column:n=Math.max(n,0),line:t}},i)}}}),Ot=m({"src/main/parser.js"(e,t){x();var{ConfigError:r}=Fe(),n=It();Ft();var{locStart:i,locEnd:s}=n,a=Object.getOwnPropertyNames,o=Object.getOwnPropertyDescriptor;function u(e){let t={};for(let r of e.plugins)if(r.parsers)for(let e of a(r.parsers))Object.defineProperty(t,e,o(r.parsers,e));return t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:i,locEnd:s};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new r(`Couldn't resolve parser "${e.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function c(e,t){let r=u(t),n=Object.defineProperties({},Object.fromEntries(Object.keys(r).map((e=>[e,{enumerable:!0,get:()=>r[e].parse}])))),i=l(t,r);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,n,t)}}catch(t){let{loc:r}=t;if(r){let{codeFrameColumns:n}=_t();throw t.codeFrame=n(e,r,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t}}t.exports={parse:c,resolveParser:l}}}),Bt=m({"src/main/options.js"(e,t){x();var r=Ie(),{UndefinedParserError:n}=Fe(),{getSupportInfo:i}=ie(),s=kt(),{resolveParser:a}=Ot(),o={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e),u=i({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,p=Object.assign(Object.assign({},o),Object.fromEntries(u.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!r.parser)if(r.filepath){if(r.parser=c(r.filepath,r.plugins),!r.parser)throw new n(`No parser could be inferred for file: ${r.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."),r.parser="babel";let d=a(s.normalizeApiOptions(r,[u.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));r.astFormat=d.astFormat,r.locEnd=d.locEnd,r.locStart=d.locStart;let h=l(r);r.printer=h.printers[r.astFormat];let f=Object.fromEntries(u.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[h.name])).map((e=>[e.name,e.pluginDefaults[h.name]]))),m=Object.assign(Object.assign({},p),f);for(let[e,t]of Object.entries(m))(null===r[e]||void 0===r[e])&&(r[e]=t);return"json"===r.parser&&(r.trailingComma="none"),s.normalizeApiOptions(r,u,Object.assign({passThrough:Object.keys(o)},t))}function l(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find((e=>e.printers&&e.printers[t]));if(!r)throw new Error(`Couldn't find plugin for AST format "${t}"`);return r}function c(e,t){let n=r.basename(e).toLowerCase(),s=i({plugins:t}).languages.filter((e=>null!==e.since)).find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.some((e=>e.toLowerCase()===n))));return s&&s.parsers[0]}t.exports={normalize:u,hiddenDefaults:o,inferParser:c}}}),jt=m({"src/main/massage-ast.js"(e,t){function r(e,t,n){if(Array.isArray(e))return e.map((e=>r(e,t,n))).filter(Boolean);if(!e||"object"!=typeof e)return e;let i,s=t.printer.massageAstNode;i=s&&s.ignoredProperties?s.ignoredProperties:new Set;let a={};for(let[n,s]of Object.entries(e))!i.has(n)&&"function"!=typeof s&&(a[n]=r(s,t,e));if(s){let t=s(e,a,n);if(null===t)return;if(t)return t}return a}x(),t.exports=r}}),Lt=m({"scripts/build/shims/assert.cjs"(e,t){x();var r=()=>{};r.ok=r,r.strictEqual=r,t.exports=r}}),Mt=m({"src/main/comments.js"(e,t){x();var r=Lt(),{builders:{line:n,hardline:i,breakParent:s,indent:a,lineSuffix:o,join:u,cursor:l}}=V(),{hasNewline:c,skipNewline:p,skipSpaces:d,isPreviousLineEmpty:h,addLeadingComment:f,addDanglingComment:m,addTrailingComment:y}=pe(),g=new WeakMap;function b(e,t,r){if(!e)return;let{printer:n,locStart:i,locEnd:s}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let t;for(t=r.length-1;t>=0&&!(i(r[t])<=i(e)&&s(r[t])<=s(e));--t);return void r.splice(t+1,0,e)}}else if(g.has(e))return g.get(e);let a=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t})).map((e=>{let[,t]=e;return t}));if(a){r||(r=[],g.set(e,r));for(let e of a)b(e,t,r);return r}}function v(e,t,r,n){let i,s,{locStart:a,locEnd:o}=r,u=a(t),l=o(t),c=b(e,r),p=0,d=c.length;for(;p<d;){let e=p+d>>1,n=c[e],h=a(n),f=o(n);if(h<=u&&l<=f)return v(n,t,r,n);if(f<=u)i=n,p=e+1;else{if(!(l<=h))throw new Error("Comment location overlaps with node location");s=n,d=e}}if(n&&"TemplateLiteral"===n.type){let{quasis:e}=n,a=w(e,t,r);i&&w(e,i,r)!==a&&(i=null),s&&w(e,s,r)!==a&&(s=null)}return{enclosingNode:n,precedingNode:i,followingNode:s}}var E=()=>!1;function S(e,t,r,n){if(!Array.isArray(e))return;let i=[],{locStart:s,locEnd:a,printer:{handleComments:o={}}}=n,{avoidAstMutation:u,ownLine:l=E,endOfLine:c=E,remaining:p=E}=o,d=e.map(((i,s)=>Object.assign(Object.assign({},v(t,i,n)),{},{comment:i,text:r,options:n,ast:t,isLastComment:e.length-1===s})));for(let[e,t]of d.entries()){let r,{comment:n,precedingNode:o,enclosingNode:h,followingNode:g,text:b,options:v,ast:x,isLastComment:E}=t;if("json"===v.parser||"json5"===v.parser||"__js_expression"===v.parser||"__vue_expression"===v.parser||"__vue_ts_expression"===v.parser){if(s(n)-s(x)<=0){f(x,n);continue}if(a(n)-a(x)>=0){y(x,n);continue}}if(u?r=[t]:(n.enclosingNode=h,n.precedingNode=o,n.followingNode=g,r=[n,b,v,x,E]),T(b,v,d,e))n.placement="ownLine",l(...r)||(g?f(g,n):o?y(o,n):m(h||x,n));else if(C(b,v,d,e))n.placement="endOfLine",c(...r)||(o?y(o,n):g?f(g,n):m(h||x,n));else if(n.placement="remaining",!p(...r))if(o&&g){let e=i.length;e>0&&i[e-1].followingNode!==g&&A(i,b,v),i.push(t)}else o?y(o,n):g?f(g,n):m(h||x,n)}if(A(i,r,n),!u)for(let t of e)delete t.precedingNode,delete t.enclosingNode,delete t.followingNode}var D=e=>!/[\S\n\u2028\u2029]/.test(e);function T(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=a(i);if(s)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:i}=r[t];if(i!==s||!D(e.slice(o(n),u)))break;u=a(n)}return c(e,u,{backwards:!0})}function C(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=o(i);if(s)for(let t=n+1;t<r.length;t++){let{comment:n,followingNode:i}=r[t];if(i!==s||!D(e.slice(u,a(n))))break;u=o(n)}return c(e,u)}function A(e,t,n){let i=e.length;if(0===i)return;let s,{precedingNode:a,followingNode:o,enclosingNode:u}=e[0],l=n.printer.getGapRegex&&n.printer.getGapRegex(u)||/^[\s(]*$/,c=n.locStart(o);for(s=i;s>0;--s){let{comment:i,precedingNode:u,followingNode:p}=e[s-1];r.strictEqual(u,a),r.strictEqual(p,o);let d=t.slice(n.locEnd(i),c);if(!l.test(d))break;c=n.locStart(i)}for(let[t,{comment:r}]of e.entries())t<s?y(a,r):f(o,r);for(let e of[a,o])e.comments&&e.comments.length>1&&e.comments.sort(((e,t)=>n.locStart(e)-n.locStart(t)));e.length=0}function P(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function w(e,t,r){let n=r.locStart(t)-1;for(let t=1;t<e.length;++t)if(n<r.locStart(e[t]))return t-1;return 0}function k(e,t){let r=e.getValue(),s=[P(e,t)],{printer:a,originalText:o,locStart:u,locEnd:l}=t;if(a.isBlockComment&&a.isBlockComment(r)){let e=c(o,l(r))?c(o,u(r),{backwards:!0})?i:n:" ";s.push(e)}else s.push(i);let h=p(o,d(o,l(r)));return!1!==h&&c(o,h)&&s.push(i),s}function I(e,t){let r=e.getValue(),n=P(e,t),{printer:a,originalText:u,locStart:l}=t,p=a.isBlockComment&&a.isBlockComment(r);if(c(u,l(r),{backwards:!0})){let e=h(u,r,l);return o([i,e?i:"",n])}let d=[" ",n];return p||(d=[o(d),s]),d}function F(e,t,r,n){let s=[],o=e.getValue();return o&&o.comments&&(e.each((()=>{let r=e.getValue();!r.leading&&!r.trailing&&(!n||n(r))&&s.push(P(e,t))}),"comments"),0!==s.length)?r?u(i,s):a([i,u(i,s)]):""}function N(e,t,r){let n=e.getValue();if(!n)return{};let i=n.comments||[];r&&(i=i.filter((e=>!r.has(e))));let s=n===t.cursorNode;if(0===i.length){let e=s?l:"";return{leading:e,trailing:e}}let a=[],o=[];return e.each((()=>{let n=e.getValue();if(r&&r.has(n))return;let{leading:i,trailing:s}=n;i?a.push(k(e,t)):s&&o.push(I(e,t))}),"comments"),s&&(a.unshift(l),o.push(l)),{leading:a,trailing:o}}function _(e,t,r,n){let{leading:i,trailing:s}=N(e,r,n);return i||s?[i,t,s]:t}function O(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}t.exports={attach:S,printComments:_,printCommentsSeparately:N,printDanglingComments:F,getSortedChildNodes:b,ensureAllCommentsPrinted:O}}}),Rt=m({"src/common/ast-path.js"(e,t){x();var r=A();function n(e,t){let r=i(e.stack,t);return-1===r?null:e.stack[r]}function i(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var s=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return r(this.stack)}getNode(){return n(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}getParentNode(){return n(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}call(e){let{stack:t}=this,{length:n}=t,i=r(t);for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];for(let e of a)i=i[e],t.push(e,i);let u=e(this);return t.length=n,u}callParent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=i(this.stack,t+1),n=this.stack.splice(r+1),s=e(this);return this.stack.push(...n),s}each(e){let{stack:t}=this,{length:n}=t,i=r(t);for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];for(let e of a)i=i[e],t.push(e,i);for(let r=0;r<i.length;++r)t.push(r,i[r]),e(this,r,i),t.length-=2;t.length=n}map(e){let t=[];for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return this.each(((r,n,i)=>{t[n]=e(r,n,i)}),...n),t}try(e){let{stack:t}=this,r=[...t];try{return e()}finally{t.length=0,t.push(...r)}}match(){let e=this.stack.length-1,t=null,r=this.stack[e--];for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(let n of i){if(void 0===r)return!1;let i=null;if("number"==typeof t&&(i=t,t=this.stack[e--],r=this.stack[e--]),n&&!n(r,t,i))return!1;t=this.stack[e--],r=this.stack[e--]}return!0}findAncestor(e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(;n;){let i=null;if("number"==typeof r&&(i=r,r=this.stack[t--],n=this.stack[t--]),null!==r&&e(n,r,i))return n;r=this.stack[t--],n=this.stack[t--]}}};t.exports=s}}),$t=m({"src/main/multiparser.js"(e,t){x();var{utils:{stripTrailingHardline:r}}=V(),{normalize:n}=Bt(),i=Mt();function s(e,t,r,n){if(r.printer.embed&&"auto"===r.embeddedLanguageFormatting)return r.printer.embed(e,t,((e,t,i)=>a(e,t,r,n,i)),r)}function a(e,t,s,a){let{stripTrailingHardline:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=n(Object.assign(Object.assign(Object.assign({},s),t),{},{parentParser:s.parser,originalText:e}),{passThrough:!0}),l=Ot().parse(e,u),{ast:c}=l;e=l.text;let p=c.comments;delete c.comments,i.attach(p,c,e,u),u[Symbol.for("comments")]=p||[],u[Symbol.for("tokens")]=c.tokens||[];let d=a(c,u);return i.ensureAllCommentsPrinted(p),o?"string"==typeof d?d.replace(/(?:\r?\n)*$/,""):r(d):d}t.exports={printSubtree:s}}}),Ut=m({"src/main/ast-to-doc.js"(e,t){x();var r=Rt(),{builders:{hardline:n,addAlignmentToDoc:i},utils:{propagateBreaks:s}}=V(),{printComments:a}=Mt(),o=$t();function u(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{printer:o}=t;o.preprocess&&(e=o.preprocess(e,t));let u=new Map,l=new r(e),p=d();return a>0&&(p=i([n,p],a,t.tabWidth)),s(p),p;function d(e,t){return void 0===e||e===l?h(t):Array.isArray(e)?l.call((()=>h(t)),...e):l.call((()=>h(t)),e)}function h(e){let r=l.getValue(),n=r&&"object"==typeof r&&void 0===e;if(n&&u.has(r))return u.get(r);let i=c(l,t,d,e);return n&&u.set(r,i),i}}function l(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s}=t,a=i(e),o=s(e),u=new Set;for(let e of n)i(e)>=a&&s(e)<=o&&(e.printed=!0,u.add(e));return{doc:r.slice(a,o),printedComments:u}}function c(e,t,r,n){let i,s,c=e.getValue(),{printer:p}=t;if(p.hasPrettierIgnore&&p.hasPrettierIgnore(e))({doc:i,printedComments:s}=l(c,t));else{if(c)try{i=o.printSubtree(e,r,t,u)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}i||(i=p.print(e,t,r,n))}return(!p.willPrintOwnComments||!p.willPrintOwnComments(e,t))&&(i=a(e,i,t,s)),i}t.exports=u}}),Vt=m({"src/main/range-util.js"(e,t){x();var r=Lt(),n=Mt(),i=e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t};function s(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find((e=>c.has(e.type)&&n.has(e)))}function a(e){let t=e.length-1;for(;;){let r=e[t];if(!r||"Program"!==r.type&&"File"!==r.type)break;t--}return e.slice(0,t+1)}function o(e,t,r){let{locStart:n,locEnd:i}=r,s=e.node,o=t.node;if(s===o)return{startNode:s,endNode:o};let u=n(e.node);for(let e of a(t.parentNodes)){if(!(n(e)>=u))break;o=e}let l=i(t.node);for(let t of a(e.parentNodes)){if(!(i(t)<=l))break;if(s=t,s===o)break}return{startNode:s,endNode:o}}function u(e,t,r,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5?arguments[5]:void 0,{locStart:o,locEnd:l}=r,c=o(e),p=l(e);if(!(t>p||t<c||"rangeEnd"===a&&t===c||"rangeStart"===a&&t===p)){for(let o of n.getSortedChildNodes(e,r)){let n=u(o,t,r,i,[e,...s],a);if(n)return n}if(!i||i(e,s[0]))return{node:e,parentNodes:s}}}function l(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var c=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),p=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function d(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return l(t.type,r&&r.type);case"json":case"json5":case"json-stringify":return c.has(t.type);case"graphql":return p.has(t.kind);case"vue":return"root"!==t.tag}return!1}function h(e,t,n){let{rangeStart:a,rangeEnd:l,locStart:c,locEnd:p}=t;r.ok(l>a);let h=e.slice(a,l).search(/\S/),f=-1===h;if(!f)for(a+=h;l>a&&!/\S/.test(e[l-1]);--l);let m,y,g=u(n,a,t,((e,r)=>d(t,e,r)),[],"rangeStart"),b=f?g:u(n,l,t,(e=>d(t,e)),[],"rangeEnd");if(!g||!b)return{rangeStart:0,rangeEnd:0};if(i(t)){let e=s(g,b);m=e,y=e}else({startNode:m,endNode:y}=o(g,b,t));return{rangeStart:Math.min(c(m),c(y)),rangeEnd:Math.max(p(m),p(y))}}t.exports={calculateRange:h,findNodeAtOffset:u}}}),qt=m({"src/main/core.js"(e,t){x();var{diffArrays:r}=D(),{printer:{printDocToString:n},debug:{printDocToDebug:i}}=V(),{getAlignmentSize:s}=pe(),{guessEndOfLine:a,convertEndOfLineToChars:o,countEndOfLineChars:u,normalizeEndOfLine:l}=C(),c=Bt().normalize,p=jt(),d=Mt(),h=Ot(),f=Ut(),m=Vt(),y="\ufeff",g=Symbol("cursor");function b(e,t,r){let n=t.comments;return n&&(delete t.comments,d.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function v(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:a}=h.parse(e,t);if(t.cursorOffset>=0){let e=m.findNodeAtOffset(s,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}let u=b(a,s,t),l=f(s,t,i),c=n(l,t);if(d.ensureAllCommentsPrinted(u),i>0){let e=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(e)),c.formatted=e+o(t.endOfLine)}if(t.cursorOffset>=0){let e,n,i,s,o;if(t.cursorNode&&c.cursorNodeText?(e=t.locStart(t.cursorNode),n=a.slice(e,t.locEnd(t.cursorNode)),i=t.cursorOffset-e,s=c.cursorNodeStart,o=c.cursorNodeText):(e=0,n=a,i=t.cursorOffset,s=0,o=c.formatted),n===o)return{formatted:c.formatted,cursorOffset:s+i,comments:u};let l=[...n];l.splice(i,0,g);let p=[...o],d=r(l,p),h=s;for(let e of d)if(e.removed){if(e.value.includes(g))break}else h+=e.count;return{formatted:c.formatted,cursorOffset:h,comments:u}}return{formatted:c.formatted,cursorOffset:-1,comments:u}}function E(e,t){let{ast:r,text:n}=h.parse(e,t),{rangeStart:i,rangeEnd:a}=m.calculateRange(n,t,r),l=n.slice(i,a),c=Math.min(i,n.lastIndexOf("\n",i)+1),p=n.slice(c,i).match(/^\s*/)[0],d=s(p,t.tabWidth),f=v(l,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:"lf"}),d),y=f.formatted.trimEnd(),{cursorOffset:g}=t;g>a?g+=y.length-l.length:f.cursorOffset>=0&&(g=f.cursorOffset+i);let b=n.slice(0,i)+y+n.slice(a);if("lf"!==t.endOfLine){let e=o(t.endOfLine);g>=0&&"\r\n"===e&&(g+=u(b.slice(0,g),"\n")),b=b.replace(/\n/g,e)}return{formatted:b,cursorOffset:g,comments:f.comments}}function S(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function T(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=S(e,r,-1),n=S(e,n,0),i=S(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:i})}function A(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=T(e,t),o=e.charAt(0)===y;if(o&&(e=e.slice(1),r--,n--,i--),"auto"===s&&(s=a(e)),e.includes("\r")){let t=t=>u(e.slice(0,Math.max(t,0)),"\r\n");r-=t(r),n-=t(n),i-=t(i),e=l(e)}return{hasBOM:o,text:e,options:T(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}))}}function P(e,t){let r=h.resolveParser(t);return!r.hasPragma||r.hasPragma(e)}function w(e,t){let r,{hasBOM:n,text:i,options:s}=A(e,c(t));return s.rangeStart>=s.rangeEnd&&""!==i||s.requirePragma&&!P(i,s)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(s.rangeStart>0||s.rangeEnd<i.length?r=E(i,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!P(i,s)&&(i=s.printer.insertPragma(i)),r=v(i,s)),n&&(r.formatted=y+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}t.exports={formatWithCursor:w,parse(e,t,r){let{text:n,options:i}=A(e,c(t)),s=h.parse(n,i);return r&&(s.ast=p(s.ast,i)),s},formatAST(e,t){t=c(t);let r=f(e,t);return n(r,t)},formatDoc:(e,t)=>w(i(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=c(t);let{ast:r,text:n}=h.parse(e,t);return b(n,r,t),f(r,t)},printDocToString:(e,t)=>n(e,c(t))}}}),Wt=m({"src/common/util-shared.js"(e,t){x();var{getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:i,getIndentSize:s,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:b,isPreviousLineEmpty:v,getNextNonSpaceNonCommentCharacterIndex:E,makeString:S,addLeadingComment:D,addDanglingComment:T,addTrailingComment:C}=pe();t.exports={getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:i,getIndentSize:s,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:b,isPreviousLineEmpty:v,getNextNonSpaceNonCommentCharacterIndex:E,makeString:S,addLeadingComment:D,addDanglingComment:T,addTrailingComment:C}}}),zt=m({"src/utils/create-language.js"(e,t){x(),t.exports=function(e,t){let{languageId:r}=e,n=s(e,i);return Object.assign(Object.assign({linguistLanguageId:r},n),t(e))}}}),Kt=m({"node_modules/esutils/lib/ast.js"(e,t){x(),function(){function e(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function r(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function n(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(e){return n(e)||null!=e&&"FunctionDeclaration"===e.type}function s(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function a(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=s(t)}while(t);return!1}t.exports={isExpression:e,isStatement:n,isIterationStatement:r,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:s}}()}}),Ht=m({"node_modules/esutils/lib/code.js"(e,t){x(),function(){var e,r,n,i,s,a;function o(e){return 48<=e&&e<=57}function u(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}function c(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0}function p(e){return 10===e||13===e||8232===e||8233===e}function d(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(s=new Array(128),a=0;a<128;++a)s[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;function h(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(d(e))}function f(e){return e<128?s[e]:r.NonAsciiIdentifierPart.test(d(e))}function m(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(d(t))}function y(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(d(t))}t.exports={isDecimalDigit:o,isHexDigit:u,isOctalDigit:l,isWhiteSpace:c,isLineTerminator:p,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:m,isIdentifierPartES6:y}}()}}),Jt=m({"node_modules/esutils/lib/keyword.js"(e,t){x(),function(){var e=Ht();function r(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function n(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&r(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function s(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function o(e){return"eval"===e||"arguments"===e}function u(t){var r,n,i;if(0===t.length||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(r=1,n=t.length;r<n;++r)if(i=t.charCodeAt(r),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return 1024*(e-55296)+(t-56320)+65536}function c(t){var r,n,i,s,a;if(0===t.length)return!1;for(a=e.isIdentifierStartES6,r=0,n=t.length;r<n;++r){if(55296<=(i=t.charCodeAt(r))&&i<=56319){if(++r>=n||!(56320<=(s=t.charCodeAt(r))&&s<=57343))return!1;i=l(i,s)}if(!a(i))return!1;a=e.isIdentifierPartES6}return!0}function p(e,t){return u(e)&&!s(e,t)}function d(e,t){return c(e)&&!a(e,t)}t.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:s,isReservedWordES6:a,isRestrictedWord:o,isIdentifierNameES5:u,isIdentifierNameES6:c,isIdentifierES5:p,isIdentifierES6:d}}()}}),Xt=m({"node_modules/esutils/lib/utils.js"(e){x(),e.ast=Kt(),e.code=Ht(),e.keyword=Jt()}}),Gt=m({"src/language-js/utils/is-block-comment.js"(e,t){x();var r=new Set(["Block","CommentBlock","MultiLine"]),n=e=>r.has(null==e?void 0:e.type);t.exports=n}}),Yt=m({"src/language-js/utils/is-node-matches.js"(e,t){function r(e,t){let r=t.split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(0===t)return"Identifier"===e.type&&e.name===n;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}function n(e,t){return t.some((t=>r(e,t)))}x(),t.exports=n}}),Qt=m({"src/language-js/utils/index.js"(e,t){x();var r=Xt().keyword.isIdentifierNameES5,{getLast:n,hasNewline:i,skipWhitespace:s,isNonEmptyArray:a,isNextLineEmptyAfterIndex:o,getStringWidth:u}=pe(),{locStart:l,locEnd:c,hasSameLocStart:p}=It(),d=Gt(),h=Yt(),f="(?:(?=.)\\s)",m=new RegExp(`^${f}*:`),y=new RegExp(`^${f}*::`);function g(e){var t,r;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&d(null===(r=e.trailingComments)||void 0===r?void 0:r[0])&&m.test(e.trailingComments[0].value)}function b(e){let t=null==e?void 0:e[0];return d(t)&&y.test(t.value)}function v(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>v(e,t)));let r=t(e);return"boolean"==typeof r?r:Object.values(e).some((e=>v(e,t)))}function E(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||G(e)||Y(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||qe(e)||"TSNonNullExpression"===e.type}function S(e){var t,r,n,i,s,a;return e.expressions?e.expressions[0]:null!==(t=null!==(r=null!==(n=null!==(i=null!==(s=null!==(a=e.left)&&void 0!==a?a:e.test)&&void 0!==s?s:e.callee)&&void 0!==i?i:e.object)&&void 0!==n?n:e.tag)&&void 0!==r?r:e.argument)&&void 0!==t?t:e.expression}function D(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function T(e){return e=new Set(e),t=>e.has(null==t?void 0:t.type)}var C=T(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),A=T(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function P(e){let t=e.getParentNode();return"declaration"===e.getName()&&A(t)?t:null}var w=T(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function k(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function I(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&k(e.argument)}function F(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var N=T(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),_=T(["FunctionExpression","ArrowFunctionExpression"]);function O(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}function B(e){return G(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var j=T(["JSXElement","JSXFragment"]);function L(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;let r=t.getNode();if(!r.expression||!j(r.expression))return!1;let n=t.getParentNode();return"Program"===n.type&&1===n.body.length}function M(e){return"get"===e.kind||"set"===e.kind}function R(e){return M(e)||p(e,e.value)}function $(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||R(e))}function U(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||p(e,e.typeAnnotation))}var V=T(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function q(e){return Y(e)||"BindExpression"===e.type&&Boolean(e.object)}var W=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function z(e){return!(!e||("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!W.has(e.type))}function K(e){let t=/^(?:before|after)(?:Each|All)$/;return"Identifier"===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}var H=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function J(e){return h(e,H)}function X(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(B(e)&&t&&X(t))return _(e.arguments[0]);if(K(e))return B(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("TemplateLiteral"===e.arguments[0].type||F(e.arguments[0]))&&J(e.callee))return!(e.arguments[2]&&!k(e.arguments[2]))&&((2===e.arguments.length?_(e.arguments[1]):O(e.arguments[1])&&Ae(e.arguments[1]).length<=1)||B(e.arguments[1]));return!1}var G=T(["CallExpression","OptionalCallExpression"]),Y=T(["MemberExpression","OptionalMemberExpression"]);function Q(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");let r=e[t];return 0!==r.length&&r.every((e=>{if(je(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(Y(e)){let t=e;for(;Y(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||(t=t.object,je(t)))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))}function Z(e,t){return"+"===e||"-"===e?e+t:t}function ee(e,t){let r=l(t),n=s(e,c(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)}function te(e,t){return j(t)?Ne(t):je(t,Oe.Leading,(t=>i(e,c(t))))}function re(e,t){return"json"!==t.parser&&F(e.key)&&de(e.key).slice(1,-1)===e.key.value&&(r(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||ne(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))}function ne(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function ie(e,t){let r=/^[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&&r.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&&r.test(t.tag.object.object.name))}function se(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function ae(e,t){return("TemplateLiteral"===e.type&&se(e)||"TaggedTemplateExpression"===e.type&&se(e.quasi))&&!i(t,l(e),{backwards:!0})}function oe(e){if(!je(e))return!1;let t=n(Le(e,Oe.Dangling));return t&&!d(t)}function ue(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(_(r)){if(t+=1,t>1)return!0}else if(G(r))for(let e of r.arguments)if(_(e))return!0;return!1}function le(e){let t=e.getValue(),r=e.getParentNode();return G(t)&&G(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0}function ce(e,t){if(t>=2)return!1;let r=e=>ce(e,t+1),n="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;if(n&&u(n)>5)return!1;if("Literal"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"PrivateName"===e.type||"PrivateIdentifier"===e.type||"ArgumentPlaceholder"===e.type||"Import"===e.type)return!0;if("TemplateLiteral"===e.type)return e.quasis.every((e=>!e.value.raw.includes("\n")))&&e.expressions.every(r);if("ObjectExpression"===e.type)return e.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value))));if("ArrayExpression"===e.type)return e.elements.every((e=>null===e||r(e)));if(Re(e))return("ImportExpression"===e.type||ce(e.callee,t))&&ke(e).every(r);if(Y(e))return ce(e.object,t)&&ce(e.property,t);let i={"!":!0,"-":!0,"+":!0,"~":!0};if("UnaryExpression"===e.type&&i[e.operator])return ce(e.argument,t);let s={"++":!0,"--":!0};return"UpdateExpression"===e.type&&s[e.operator]?ce(e.argument,t):"TSNonNullExpression"===e.type&&ce(e.expression,t)}function de(e){var t,r;return null!==(t=null===(r=e.extra)||void 0===r?void 0:r.raw)&&void 0!==t?t:e.raw}function he(e){return e}function fe(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function ye(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ye(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ye(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&ye(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&ye(e.callee,t);case"ConditionalExpression":return ye(e.test,t);case"UpdateExpression":return!e.prefix&&ye(e.argument,t);case"BindExpression":return e.object&&ye(e.object,t);case"SequenceExpression":return ye(e.expressions[0],t);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return ye(e.expression,t);default:return t(e)}}var ge={"==":!0,"!=":!0,"===":!0,"!==":!0},be={"*":!0,"/":!0,"%":!0},ve={">>":!0,">>>":!0,"<<":!0};function xe(e,t){return!(Se(t)!==Se(e)||"**"===e||ge[e]&&ge[t]||"%"===t&&be[e]||"%"===e&&be[t]||t!==e&&be[t]&&be[e]||ve[e]&&ve[t])}var Ee=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap(((e,t)=>e.map((e=>[e,t])))));function Se(e){return Ee.get(e)}function De(e){return Boolean(ve[e])||"|"===e||"^"===e||"&"===e}function Te(e){var t;if(e.rest)return!0;let r=Ae(e);return"RestElement"===(null===(t=n(r))||void 0===t?void 0:t.type)}var Ce=new WeakMap;function Ae(e){if(Ce.has(e))return Ce.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Ce.set(e,t),t}function Pe(e,t){let r=e.getValue(),n=0,i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")}var we=new WeakMap;function ke(e){if(we.has(e))return we.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),we.set(e,t),t}function Ie(e,t){let r=e.getValue();"ImportExpression"===r.type?(e.call((e=>t(e,0)),"source"),r.attributes&&e.call((e=>t(e,1)),"attributes")):e.each(t,"arguments")}function Fe(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Ne(e){return e&&(e.prettierIgnore||je(e,Oe.PrettierIgnore))}function _e(e){return Ne(e.getValue())}var Oe={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Be=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,i)=>!(e&Oe.Leading&&!r.leading||e&Oe.Trailing&&!r.trailing||e&Oe.Dangling&&(r.leading||r.trailing)||e&Oe.Block&&!d(r)||e&Oe.Line&&!C(r)||e&Oe.First&&0!==n||e&Oe.Last&&n!==i.length-1||e&Oe.PrettierIgnore&&!Fe(r)||t&&!t(r))};function je(e,t,r){if(!a(null==e?void 0:e.comments))return!1;let n=Be(t,r);return!n||e.comments.some(n)}function Le(e,t,r){if(!Array.isArray(null==e?void 0:e.comments))return[];let n=Be(t,r);return n?e.comments.filter(n):e.comments}var Me=(e,t)=>{let{originalText:r}=t;return o(r,c(e))};function Re(e){return G(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function $e(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)}function Ue(e){return Boolean(e.__isUsingHackPipeline)}var Ve=Symbol("ifWithoutBlockAndSameLineComment");function qe(e){return"TSAsExpression"===e.type||"TSSatisfiesExpression"===e.type}t.exports={getFunctionParameters:Ae,iterateFunctionParametersPath:Pe,getCallArguments:ke,iterateCallArgumentsPath:Ie,hasRestParameter:Te,getLeftSide:S,getLeftSidePathName:D,getParentExportDeclaration:P,getTypeScriptMappedTypeModifier:Z,hasFlowAnnotationComment:b,hasFlowShorthandAnnotationComment:g,hasLeadingOwnLineComment:te,hasNakedLeftSide:E,hasNode:v,hasIgnoreComment:_e,hasNodeIgnoreComment:Ne,identity:he,isBinaryish:V,isCallLikeExpression:Re,isEnabledHackPipeline:Ue,isLineComment:C,isPrettierIgnoreComment:Fe,isCallExpression:G,isMemberExpression:Y,isExportDeclaration:A,isFlowAnnotationComment:ee,isFunctionCompositionArgs:ue,isFunctionNotation:R,isFunctionOrArrowExpression:_,isGetterOrSetter:M,isJestEachTemplateLiteral:ie,isJsxNode:j,isLiteral:w,isLongCurriedCallExpression:le,isSimpleCallArgument:ce,isMemberish:q,isNumericLiteral:k,isSignedNumericLiteral:I,isObjectProperty:$e,isObjectType:N,isObjectTypePropertyAFunction:$,isSimpleType:z,isSimpleNumber:ne,isSimpleTemplateLiteral:Q,isStringLiteral:F,isStringPropSafeToUnquote:re,isTemplateOnItsOwnLine:ae,isTestCall:X,isTheOnlyJsxElementInMarkdown:L,isTSXFile:fe,isTypeAnnotationAFunction:U,isNextLineEmpty:Me,needsHardlineAfterDanglingComment:oe,rawText:de,shouldPrintComma:me,isBitwiseOperator:De,shouldFlatten:xe,startsWithNoLookaheadToken:ye,getPrecedence:Se,hasComment:je,getComments:Le,CommentCheckFlags:Oe,markerForIfWithoutBlockAndSameLineComment:Ve,isTSTypeExpression:qe}}}),Zt=m({"src/language-js/print/template-literal.js"(e,t){x();var r=A(),{getStringWidth:n,getIndentSize:i}=pe(),{builders:{join:s,hardline:a,softline:o,group:u,indent:l,align:c,lineSuffixBoundary:p,addAlignmentToDoc:d},printer:{printDocToString:h},utils:{mapDoc:f}}=V(),{isBinaryish:m,isJestEachTemplateLiteral:y,isSimpleTemplateLiteral:g,hasComment:b,isMemberExpression:v,isTSTypeExpression:E}=Qt();function S(e,t,r){let n=e.getValue();if("TemplateLiteral"===n.type&&y(n,e.getParentNode())){let n=D(e,r,t);if(n)return n}let s="expressions";"TSTemplateLiteralType"===n.type&&(s="types");let a=[],f=e.map(t,s),x=g(n);return x&&(f=f.map((e=>h(e,Object.assign(Object.assign({},r),{},{printWidth:Number.POSITIVE_INFINITY})).formatted))),a.push(p,"`"),e.each((e=>{let h=e.getName();if(a.push(t()),h<f.length){let{tabWidth:t}=r,y=e.getValue(),g=i(y.value.raw,t),S=f[h];if(!x){let e=n[s][h];(b(e)||v(e)||"ConditionalExpression"===e.type||"SequenceExpression"===e.type||E(e)||m(e))&&(S=[l([o,S]),o])}let D=0===g&&y.value.raw.endsWith("\n")?c(Number.NEGATIVE_INFINITY,S):d(S,g,t);a.push(u(["${",D,p,"}"]))}}),"quasis"),a.push("`"),a}function D(e,t,i){let o=e.getNode(),u=o.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some((e=>e.length>0))){t.__inJestEach=!0;let c=e.map(i,"expressions");t.__inJestEach=!1;let d=[],f=c.map((e=>"${"+h(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}")),m=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<o.quasis.length;e++){let t=r(m),n=f[e-1];t.cells.push(n),n.includes("\n")&&(t.hasLineBreak=!0),o.quasis[e].value.raw.includes("\n")&&m.push({hasLineBreak:!1,cells:[]})}let y=Math.max(u.length,...m.map((e=>e.cells.length))),g=Array.from({length:y}).fill(0),b=[{cells:u},...m.filter((e=>e.cells.length>0))];for(let{cells:e}of b.filter((e=>!e.hasLineBreak)))for(let[t,r]of e.entries())g[t]=Math.max(g[t],n(r));return d.push(p,"`",l([a,s(a,b.map((e=>s(" | ",e.cells.map(((t,r)=>e.hasLineBreak?t:t+" ".repeat(g[r]-n(t))))))))]),a,"`"),d}}function T(e,t){let r=e.getValue(),n=t();return b(r)&&(n=u([l([o,n]),o])),["${",n,p,"}"]}function C(e,t){return e.map((e=>T(e,t)),"expressions")}function P(e,t){return f(e,(e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):w(e):e))}function w(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:S,printTemplateExpressions:C,escapeTemplateCharacters:P,uncookTemplateElementValue:w}}}),er=m({"src/language-js/embed/markdown.js"(e,t){x();var{builders:{indent:r,softline:n,literalline:i,dedentToRoot:s}}=V(),{escapeTemplateCharacters:a}=Zt();function o(e,t,o){let l=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),c=u(l),p=""!==c;p&&(l=l.replace(new RegExp(`^${c}`,"gm"),""));let d=a(o(l,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",p?r([n,d]):[i,s(d)],n,"`"]}function u(e){let t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}t.exports=o}}),tr=m({"src/language-js/embed/css.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{indent:n,hardline:i,softline:s},utils:{mapDoc:a,replaceEndOfLine:o,cleanDoc:u}}=V(),{printTemplateExpressions:l}=Zt();function c(e,t,r){let n=e.getValue(),i=n.quasis.map((e=>e.value.raw)),s=0;return p(r(i.reduce(((e,t,r)=>0===r?t:e+"@prettier-placeholder-"+s+++"-id"+t),""),{parser:"scss"},{stripTrailingHardline:!0}),n,l(e,t))}function p(e,t,r){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";let a=d(e,r);if(!a)throw new Error("Couldn't insert all the expressions");return["`",n([i,a]),s,"`"]}function d(e,t){if(!r(t))return e;let n=0,i=a(u(e),(e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map(((e,r)=>r%2==0?o(e):(n++,t[e]))):e));return t.length===n?i:null}t.exports=c}}),rr=m({"src/language-js/embed/graphql.js"(e,t){x();var{builders:{indent:r,join:n,hardline:i}}=V(),{escapeTemplateCharacters:s,printTemplateExpressions:a}=Zt();function o(e,t,o){let l=e.getValue(),c=l.quasis.length;if(1===c&&""===l.quasis[0].value.raw.trim())return"``";let p=a(e,t),d=[];for(let e=0;e<c;e++){let t=0===e,r=e===c-1,n=l.quasis[e].value.cooked,i=n.split("\n"),a=i.length,h=p[e],f=a>2&&""===i[0].trim()&&""===i[1].trim(),m=a>2&&""===i[a-1].trim()&&""===i[a-2].trim(),y=i.every((e=>/^\s*(?:#[^\n\r]*)?$/.test(e)));if(!r&&/#[^\n\r]*$/.test(i[a-1]))return null;let g=null;g=y?u(i):o(n,{parser:"graphql"},{stripTrailingHardline:!0}),g?(g=s(g,!1),!t&&f&&d.push(""),d.push(g),!r&&m&&d.push("")):!t&&!r&&f&&d.push(""),h&&d.push(h)}return["`",r([i,n(i,d)]),i,"`"]}function u(e){let t=[],r=!1,s=e.map((e=>e.trim()));for(let[e,n]of s.entries())""!==n&&(""===s[e-1]&&r?t.push([i,n]):t.push(n),r=!0);return 0===t.length?null:n(i,t)}t.exports=o}}),nr=m({"src/language-js/embed/html.js"(e,t){x();var{builders:{indent:r,line:n,hardline:i,group:s},utils:{mapDoc:a}}=V(),{printTemplateExpressions:o,uncookTemplateElementValue:u}=Zt(),l=0;function c(e,t,c,p,d){let{parser:h}=d,f=e.getValue(),m=l;l=l+1>>>0;let y=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${m}_IN_JS`,g=f.quasis.map(((e,t,r)=>t===r.length-1?e.value.cooked:e.value.cooked+y(t))).join(""),b=o(e,t);if(0===b.length&&0===g.trim().length)return"``";let v=new RegExp(y("(\\d+)"),"g"),x=0,E=c(g,{parser:h,__onHtmlRoot(e){x=e.children.length}},{stripTrailingHardline:!0}),S=a(E,(e=>{if("string"!=typeof e)return e;let t=[],r=e.split(v);for(let e=0;e<r.length;e++){let n=r[e];if(e%2==0){n&&(n=u(n),p.__embeddedInHtml&&(n=n.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(n));continue}let i=Number(n);t.push(b[i])}return t})),D=/^\s/.test(g)?" ":"",T=/\s$/.test(g)?" ":"",C="ignore"===p.htmlWhitespaceSensitivity?i:D&&T?n:null;return s(C?["`",r([C,s(S)]),C,"`"]:["`",D,x>1?r(s(S)):s(S),T,"`"])}t.exports=c}}),ir=m({"src/language-js/embed.js"(e,t){x();var{hasComment:r,CommentCheckFlags:n,isObjectProperty:i}=Qt(),s=er(),a=tr(),o=rr(),u=nr();function l(e){return d(e)||y(e)||g(e)||h(e)?"css":E(e)?"graphql":D(e)?"html":f(e)?"angular":p(e)?"markdown":void 0}function c(e,t,r,n){let i=e.getValue();if("TemplateLiteral"!==i.type||T(i))return;let c=l(e);if(c){if("markdown"===c)return s(e,t,r);if("css"===c)return a(e,t,r);if("graphql"===c)return o(e,t,r);if("html"===c||"angular"===c)return u(e,t,r,n,{parser:c})}}function p(e){let t=e.getValue(),r=e.getParentNode();return r&&"TaggedTemplateExpression"===r.type&&1===t.quasis.length&&"Identifier"===r.tag.type&&("md"===r.tag.name||"markdown"===r.tag.name)}function d(e){let t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&"JSXExpressionContainer"===r.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some((e=>"jsx"===e.name.name))||r&&"TaggedTemplateExpression"===r.type&&"Identifier"===r.tag.type&&"css"===r.tag.name||r&&"TaggedTemplateExpression"===r.type&&"MemberExpression"===r.tag.type&&"css"===r.tag.object.name&&("global"===r.tag.property.name||"resolve"===r.tag.property.name)}function h(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>i(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...m)}function f(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>i(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...m)}var m=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function y(e){let t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;let r="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(r.type){case"MemberExpression":return b(r.object)||v(r);case"CallExpression":return b(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(b(r.callee.object.object)||v(r.callee.object))||"CallExpression"===r.callee.object.type&&b(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}function g(e){let t=e.getParentNode(),r=e.getParentNode(1);return r&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===r.type&&"JSXIdentifier"===r.name.type&&"css"===r.name.name}function b(e){return"Identifier"===e.type&&"styled"===e.name}function v(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function E(e){let t=e.getValue(),r=e.getParentNode();return S(t,"GraphQL")||r&&("TaggedTemplateExpression"===r.type&&("MemberExpression"===r.tag.type&&"graphql"===r.tag.object.name&&"experimental"===r.tag.property.name||"Identifier"===r.tag.type&&("gql"===r.tag.name||"graphql"===r.tag.name))||"CallExpression"===r.type&&"Identifier"===r.callee.type&&"graphql"===r.callee.name)}function S(e,t){return r(e,n.Block|n.Leading,(e=>{let{value:r}=e;return r===` ${t} `}))}function D(e){return S(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}function T(e){let{quasis:t}=e;return t.some((e=>{let{value:{cooked:t}}=e;return null===t}))}t.exports=c}}),sr=m({"src/language-js/clean.js"(e,t){x();var r=Gt(),n=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),i=e=>{for(let t of e.quasis)delete t.value};function s(e,t,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)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name)))for(let{type:e,expression:r}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===r.type&&i(r);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&i(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let s=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===s.type&&"Component"===s.callee.name&&1===s.arguments.length){let r=e.expression.arguments[0].properties;for(let[e,n]of t.expression.arguments[0].properties.entries())switch(r[e].key.name){case"styles":"ArrayExpression"===n.value.type&&i(n.value.elements[0]);break;case"template":"TemplateLiteral"===n.value.type&&i(n.value)}}var a;return"TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&i(t.quasi),"TemplateLiteral"===e.type&&((null===(a=e.leadingComments)||void 0===a?void 0:a.some((e=>r(e)&&["GraphQL","HTML"].some((t=>e.value===` ${t} `)))))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&i(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}s.ignoredProperties=n,t.exports=s}}),ar={};function or(){if(typeof Er>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])Er="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");Er="LE"}}return Er}function ur(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function lr(){return[]}function cr(){return 0}function pr(){return Number.MAX_VALUE}function dr(){return Number.MAX_VALUE}function hr(){return[]}function fr(){return"Browser"}function mr(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function yr(){}function gr(){}function br(){return"javascript"}function vr(){return"browser"}function xr(){return"/tmp"}y(ar,{EOL:()=>Dr,arch:()=>br,cpus:()=>hr,default:()=>Tr,endianness:()=>or,freemem:()=>pr,getNetworkInterfaces:()=>gr,hostname:()=>ur,loadavg:()=>lr,networkInterfaces:()=>yr,platform:()=>vr,release:()=>mr,tmpDir:()=>xr,tmpdir:()=>Sr,totalmem:()=>dr,type:()=>fr,uptime:()=>cr});var Er,Sr,Dr,Tr,Cr=f({"node-modules-polyfills:os"(){x(),Tr={EOL:Dr="\n",tmpdir:Sr=xr,tmpDir:xr,networkInterfaces:yr,getNetworkInterfaces:gr,release:mr,type:fr,cpus:hr,totalmem:dr,freemem:pr,uptime:cr,loadavg:lr,hostname:ur,endianness:or}}}),Ar=m({"node-modules-polyfills-commonjs:os"(e,t){x();var r=(Cr(),v(ar));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),Pr=m({"node_modules/detect-newline/index.js"(e,t){x();var r=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"}}),wr=m({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=Ar();return t=function(){return e},e}function r(){let e=n(Pr());return r=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=h,e.parse=m,e.parseWithComments=y,e.print=g,e.strip=f;var i=/\*\/$/,s=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,d=[];function h(e){let t=e.match(a);return t?t[0].trimLeft():""}function f(e){let t=e.match(a);return t&&t[0]?e.substring(t[0].length):e}function m(e){return y(e).pragmas}function y(e){let n=(0,r().default)(e)||t().EOL;e=e.replace(s,"").replace(i,"").replace(p,"$1");let a="";for(;a!==e;)a=e,e=e.replace(l,`${n}$1 $2${n}`);e=e.replace(u,"").trimRight();let h,f=Object.create(null),m=e.replace(c,"").replace(u,"").trimRight();for(;h=c.exec(e);){let e=h[2].replace(o,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=d.concat(f[h[1]],e):f[h[1]]=e}return{comments:m,pragmas:f}}function g(e){let{comments:n="",pragmas:i={}}=e,s=(0,r().default)(n)||t().EOL,a="/**",o=" *",u=" */",l=Object.keys(i),c=l.map((e=>b(e,i[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>`${o} ${e}${s}`)).join("");if(!n){if(0===l.length)return"";if(1===l.length&&!Array.isArray(i[l[0]])){let e=i[l[0]];return`${a} ${b(l[0],e)[0]}${u}`}}let p=n.split(s).map((e=>`${o} ${e}`)).join(s)+s;return a+s+(n?p:"")+(n&&l.length?o+s:"")+c+u}function b(e,t){return d.concat(t).map((t=>`@${e} ${t}`.trim()))}}}),kr=m({"src/language-js/utils/get-shebang.js"(e,t){function r(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}x(),t.exports=r}}),Ir=m({"src/language-js/pragma.js"(e,t){x();var{parseWithComments:r,strip:n,extract:i,print:s}=wr(),{normalizeEndOfLine:a}=C(),o=kr();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let n=i(e),{pragmas:s,comments:a}=r(n);return{shebang:t,text:e,pragmas:s,comments:a}}function l(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")}function c(e){let{shebang:t,text:r,pragmas:i,comments:o}=u(e),l=n(r),c=s({pragmas:Object.assign({format:""},i),comments:o.trimStart()});return(t?`${t}\n`:"")+a(c)+(l.startsWith("\n")?"\n":"\n\n")+l}t.exports={hasPragma:l,insertPragma:c}}}),Fr=m({"src/language-js/utils/is-type-cast-comment.js"(e,t){x();var r=Gt();function n(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}t.exports=n}}),Nr=m({"src/language-js/comments.js"(e,t){x();var{getLast:r,hasNewline:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:i,getNextNonSpaceNonCommentCharacter:s,hasNewlineInRange:a,addLeadingComment:o,addTrailingComment:u,addDanglingComment:l,getNextNonSpaceNonCommentCharacterIndex:c,isNonEmptyArray:p}=pe(),{getFunctionParameters:d,isPrettierIgnoreComment:h,isJsxNode:f,hasFlowShorthandAnnotationComment:m,hasFlowAnnotationComment:y,hasIgnoreComment:g,isCallLikeExpression:b,getCallArguments:v,isCallExpression:E,isMemberExpression:S,isObjectProperty:D,isLineComment:T,getComments:C,CommentCheckFlags:A,markerForIfWithoutBlockAndSameLineComment:P}=Qt(),{locStart:w,locEnd:k}=It(),I=Gt(),F=Fr();function N(e){return[he,Q,U,M,R,$,z,se,re,ie,ae,oe,H,Z,ee].some((t=>t(e)))}function _(e){return[L,Q,V,ae,M,R,$,z,Z,te,ne,ie,ce,ee,me].some((t=>t(e)))}function O(e){return[he,M,R,q,Y,H,ie,G,X,fe,ee,de].some((t=>t(e)))}function B(e,t){let r=(e.body||e.properties).find((e=>{let{type:t}=e;return"EmptyStatement"!==t}));r?o(r,t):l(e,t)}function j(e,t){"BlockStatement"===e.type?B(e,t):o(e,t)}function L(e){let{comment:t,followingNode:r}=e;return!(!r||!F(t)||(o(r,t),0))}function M(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;if("IfStatement"!==(null==n?void 0:n.type)||!i)return!1;if(")"===s(a,t,k))return u(r,t),!0;if(r===n.consequent&&i===n.alternate){if("BlockStatement"===r.type)u(r,t);else{let e="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,i=t.loc.start.line===r.loc.start.line;e&&i?l(r,t,P):l(n,t)}return!0}return"BlockStatement"===i.type?(B(i,t),!0):"IfStatement"===i.type?(j(i.consequent,t),!0):n.consequent===i&&(o(i,t),!0)}function R(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;return!("WhileStatement"!==(null==n?void 0:n.type)||!i||(")"===s(a,t,k)?(u(r,t),0):"BlockStatement"===i.type?(B(i,t),0):n.body!==i||(o(i,t),0)))}function $(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!("TryStatement"!==(null==n?void 0:n.type)&&"CatchClause"!==(null==n?void 0:n.type)||!i||("CatchClause"===n.type&&r?(u(r,t),0):"BlockStatement"===i.type?(B(i,t),0):"TryStatement"===i.type?(j(i.finalizer,t),0):"CatchClause"!==i.type||(j(i.body,t),0)))}function U(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!S(r)||"Identifier"!==(null==n?void 0:n.type)||(o(r,t),0))}function V(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:s}=e,u=r&&!a(s,k(r),w(t));return!(r&&u||"ConditionalExpression"!==(null==n?void 0:n.type)&&"TSConditionalType"!==(null==n?void 0:n.type)||!i||(o(i,t),0))}function q(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!(!D(n)||!n.shorthand||n.key!==r||"AssignmentPattern"!==n.value.type||(u(n.value.left,t),0))}var W=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function z(e){let{comment:t,precedingNode:n,enclosingNode:i,followingNode:s}=e;if(W.has(null==i?void 0:i.type)){if(p(i.decorators)&&(!s||"Decorator"!==s.type))return u(r(i.decorators),t),!0;if(i.body&&s===i.body)return B(i.body,t),!0;if(s){if(i.superClass&&s===i.superClass&&n&&(n===i.id||n===i.typeParameters))return u(n,t),!0;for(let e of["implements","extends","mixins"])if(i[e]&&s===i[e][0])return!n||n!==i.id&&n!==i.typeParameters&&n!==i.superClass?l(i,t,e):u(n,t),!0}}return!1}var K=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function H(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return!!(n&&r&&"("===s(i,t,k)&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===r.type&&n.key===r&&":"!==s(i,r,k)||"Decorator"===(null==r?void 0:r.type)&&K.has(null==n?void 0:n.type))&&(u(r,t),!0)}var J=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function X(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return!("("!==s(i,t,k)||!r||!J.has(null==n?void 0:n.type)||(u(r,t),0))}function G(e){let{comment:t,enclosingNode:r,text:n}=e;if("ArrowFunctionExpression"!==(null==r?void 0:r.type))return!1;let i=c(n,t,k);return!1!==i&&"=>"===n.slice(i,i+2)&&(l(r,t),!0)}function Y(e){let{comment:t,enclosingNode:r,text:n}=e;return!(")"!==s(n,t,k)||(r&&(ye(r)&&0===d(r).length||b(r)&&0===v(r).length)?(l(r,t),0):"MethodDefinition"!==(null==r?void 0:r.type)&&"TSAbstractMethodDefinition"!==(null==r?void 0:r.type)||0!==d(r.value).length||(l(r.value,t),0)))}function Q(e){let{comment:t,precedingNode:n,enclosingNode:a,followingNode:o,text:l}=e;if("FunctionTypeParam"===(null==n?void 0:n.type)&&"FunctionTypeAnnotation"===(null==a?void 0:a.type)&&"FunctionTypeParam"!==(null==o?void 0:o.type)||("Identifier"===(null==n?void 0:n.type)||"AssignmentPattern"===(null==n?void 0:n.type))&&a&&ye(a)&&")"===s(l,t,k))return u(n,t),!0;if("FunctionDeclaration"===(null==a?void 0:a.type)&&"BlockStatement"===(null==o?void 0:o.type)){let e=(()=>{let e=d(a);if(e.length>0)return i(l,k(r(e)));let t=i(l,k(a.id));return!1!==t&&i(l,t+1)})();if(w(t)>e)return B(o,t),!0}return!1}function Z(e){let{comment:t,enclosingNode:r}=e;return"LabeledStatement"===(null==r?void 0:r.type)&&(o(r,t),!0)}function ee(e){let{comment:t,enclosingNode:r}=e;return!("ContinueStatement"!==(null==r?void 0:r.type)&&"BreakStatement"!==(null==r?void 0:r.type)||r.label||(u(r,t),0))}function te(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!(E(n)&&r&&n.callee===r&&n.arguments.length>0)&&(o(n.arguments[0],t),!0)}function re(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return"UnionTypeAnnotation"===(null==n?void 0:n.type)||"TSUnionType"===(null==n?void 0:n.type)?(h(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!r&&(u(r,t),!0)):(("UnionTypeAnnotation"===(null==i?void 0:i.type)||"TSUnionType"===(null==i?void 0:i.type))&&h(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function ne(e){let{comment:t,enclosingNode:r}=e;return!!D(r)&&(o(r,t),!0)}function ie(e){let{comment:t,enclosingNode:r,followingNode:n,ast:i,isLastComment:s}=e;return i&&i.body&&0===i.body.length?(s?l(i,t):o(i,t),!0):"Program"!==(null==r?void 0:r.type)||0!==(null==r?void 0:r.body.length)||p(r.directives)?"Program"===(null==n?void 0:n.type)&&0===(null==n?void 0:n.body.length)&&"ModuleExpression"===(null==r?void 0:r.type)&&(l(n,t),!0):(s?l(r,t):o(r,t),!0)}function se(e){let{comment:t,enclosingNode:r}=e;return("ForInStatement"===(null==r?void 0:r.type)||"ForOfStatement"===(null==r?void 0:r.type))&&(o(r,t),!0)}function ae(e){let{comment:t,precedingNode:r,enclosingNode:i,text:s}=e;if("ImportSpecifier"===(null==i?void 0:i.type)||"ExportSpecifier"===(null==i?void 0:i.type))return o(i,t),!0;let a="ImportSpecifier"===(null==r?void 0:r.type)&&"ImportDeclaration"===(null==i?void 0:i.type),l="ExportSpecifier"===(null==r?void 0:r.type)&&"ExportNamedDeclaration"===(null==i?void 0:i.type);return!(!a&&!l||!n(s,k(t))||(u(r,t),0))}function oe(e){let{comment:t,enclosingNode:r}=e;return"AssignmentPattern"===(null==r?void 0:r.type)&&(o(r,t),!0)}var ue=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),le=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ce(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!ue.has(null==r?void 0:r.type)||!n||!le.has(n.type)&&!I(t)||(o(n,t),0))}function de(e){let{comment:t,enclosingNode:r,followingNode:n,text:i}=e;return!(n||"TSMethodSignature"!==(null==r?void 0:r.type)&&"TSDeclareFunction"!==(null==r?void 0:r.type)&&"TSAbstractMethodDefinition"!==(null==r?void 0:r.type)||";"!==s(i,t,k)||(u(r,t),0))}function he(e){let{comment:t,enclosingNode:r,followingNode:n}=e;if(h(t)&&"TSMappedType"===(null==r?void 0:r.type)&&"TSTypeParameter"===(null==n?void 0:n.type)&&n.constraint)return r.prettierIgnore=!0,t.unignore=!0,!0}function fe(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!("TSMappedType"!==(null==n?void 0:n.type)||("TSTypeParameter"===(null==i?void 0:i.type)&&i.name?(o(i.name,t),0):"TSTypeParameter"!==(null==r?void 0:r.type)||!r.constraint||(u(r.constraint,t),0)))}function me(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!r||"SwitchCase"!==r.type||r.test||!n||n!==r.consequent[0]||("BlockStatement"===n.type&&T(t)?B(n,t):l(r,t),0))}function ye(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function ge(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===d(e.value).length&&!e.value.returnType&&!p(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function be(e){let t=e.getValue(),r=e.getParentNode(),n=e=>y(C(e,A.Leading))||y(C(e,A.Trailing));return(t&&(f(t)||m(t)||E(r)&&n(t))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!g(e)||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)}t.exports={handleOwnLineComment:N,handleEndOfLineComment:_,handleRemainingComment:O,getCommentChildNodes:ge,willPrintOwnComments:be}}}),_r=m({"src/language-js/needs-parens.js"(e,t){x();var r=A(),n=se(),{getFunctionParameters:i,getLeftSidePathName:s,hasFlowShorthandAnnotationComment:a,hasNakedLeftSide:o,hasNode:u,isBitwiseOperator:l,startsWithNoLookaheadToken:c,shouldFlatten:p,getPrecedence:d,isCallExpression:h,isMemberExpression:f,isObjectProperty:m,isTSTypeExpression:y}=Qt();function g(e,t){let r=e.getParentNode();if(!r)return!1;let s=e.getName(),o=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&S(o)&&D(e))return!0;if(b(o))return!1;if("flow"!==t.parser&&a(e.getValue()))return!0;if("Identifier"===o.type){if(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name)||"left"===s&&("async"===o.name&&!r.await||"let"===o.name)&&"ForOfStatement"===r.type)return!0;if("let"===o.name){var u;let t=null===(u=e.findAncestor((e=>"ForOfStatement"===e.type)))||void 0===u?void 0:u.left;if(t&&c(t,(e=>e===o)))return!0}if("object"===s&&"let"===o.name&&"MemberExpression"===r.type&&r.computed&&!r.optional){let t=e.findAncestor((e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type)),r=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(r&&c(r,(e=>e===o)))return!0}return!1}if("ObjectExpression"===o.type||"FunctionExpression"===o.type||"ClassExpression"===o.type||"DoExpression"===o.type){var g;let t=null===(g=e.findAncestor((e=>"ExpressionStatement"===e.type)))||void 0===g?void 0:g.expression;if(t&&c(t,(e=>e===o)))return!0}switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===s&&("ArrowFunctionExpression"===o.type||"AssignmentExpression"===o.type||"AwaitExpression"===o.type||"BinaryExpression"===o.type||"ConditionalExpression"===o.type||"LogicalExpression"===o.type||"NewExpression"===o.type||"ObjectExpression"===o.type||"SequenceExpression"===o.type||"TaggedTemplateExpression"===o.type||"UnaryExpression"===o.type||"UpdateExpression"===o.type||"YieldExpression"===o.type||"TSNonNullExpression"===o.type))return!0;break;case"ExportDefaultDeclaration":return T(e,t)||"SequenceExpression"===o.type;case"Decorator":if("expression"===s){if(f(o)&&o.computed)return!0;let e=!1,r=!1,n=o;for(;n;)switch(n.type){case"MemberExpression":r=!0,n=n.object;break;case"CallExpression":if(r||e)return"typescript"!==t.parser;e=!0,n=n.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ArrowFunctionExpression":if("body"===s&&"SequenceExpression"!==o.type&&c(o,(e=>"ObjectExpression"===e.type)))return!0}switch(o.type){case"UpdateExpression":if("UnaryExpression"===r.type)return o.prefix&&("++"===o.operator&&"+"===r.operator||"--"===o.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return o.operator===r.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"BinaryExpression":return"left"===s&&"**"===r.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===r.type||"in"===o.operator&&v(e))return!0;if("|>"===o.operator&&o.extra&&o.extra.parenthesized){let t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(r.type){case"TSSatisfiesExpression":case"TSAsExpression":return!y(o);case"ConditionalExpression":return y(o);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===s;case"ClassExpression":case"ClassDeclaration":return"superClass"===s;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"AssignmentExpression":case"AssignmentPattern":return"left"===s&&("TSTypeAssertion"===o.type||y(o));case"LogicalExpression":if("LogicalExpression"===o.type)return r.operator!==o.operator;case"BinaryExpression":{let{operator:e,type:t}=o;if(!e&&"TSTypeAssertion"!==t)return!0;let n=d(e),i=r.operator,a=d(i);return a>n||"right"===s&&a===n||a===n&&!p(i,e)||(a<n&&"%"===e?"+"===i||"-"===i:!!l(i))}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==s;case"ArrowFunctionExpression":return"body"!==s;default:return!0}case"YieldExpression":if("UnaryExpression"===r.type||"AwaitExpression"===r.type||y(r)||"TSNonNullExpression"===r.type)return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"ConditionalExpression":return"test"===s;case"BinaryExpression":return!(!o.argument&&"|>"===r.operator);default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if("extendsType"===s&&"TSConditionalType"===r.type){if("TSConditionalType"===o.type)return!0;let{typeAnnotation:e}=o.returnType||o.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===s&&"TSConditionalType"===r.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===r.type||"TSIntersectionType"===r.type)&&r.types.length>1&&(!o.types||o.types.length>1))return!0;case"TSInferType":if("TSInferType"===o.type&&"TSRestType"===r.type)return!1;case"TSTypeOperator":return"TSArrayType"===r.type||"TSOptionalType"===r.type||"TSRestType"===r.type||"objectType"===s&&"TSIndexedAccessType"===r.type||"TSTypeOperator"===r.type||"TSTypeAnnotation"===r.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===s&&"TSIndexedAccessType"===r.type||"elementType"===s&&"TSArrayType"===r.type;case"TypeofTypeAnnotation":return"objectType"===s&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type)||"elementType"===s&&"ArrayTypeAnnotation"===r.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===r.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"NullableTypeAnnotation"===r.type||"IntersectionTypeAnnotation"===r.type||"UnionTypeAnnotation"===r.type||"objectType"===s&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"objectType"===s&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type);case"FunctionTypeAnnotation":{let t="NullableTypeAnnotation"===r.type?e.getParentNode(1):r;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===s&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===r.type&&null===r.name&&i(o).some((e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type))}case"OptionalIndexedAccessType":return"objectType"===s&&"IndexedAccessType"===r.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===r.type&&!r.directive){let t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===s&&"MemberExpression"===r.type&&"number"==typeof o.value;case"AssignmentExpression":{let t=e.getParentNode(1);return"body"===s&&"ArrowFunctionExpression"===r.type||("key"!==s||"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type||!r.computed)&&("init"!==s&&"update"!==s||"ForStatement"!==r.type)&&("ExpressionStatement"===r.type?"ObjectPattern"===o.left.type:!("key"===s&&"TSPropertySignature"===r.type||"AssignmentExpression"===r.type||"SequenceExpression"===r.type&&t&&"ForStatement"===t.type&&(t.init===r||t.update===r)||"value"===s&&"Property"===r.type&&t&&"ObjectPattern"===t.type&&t.properties.includes(r)||"NGChainedExpression"===r.type))}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"ConditionalExpression":return"test"===s;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"BinaryExpression":return"|>"!==r.operator||o.extra&&o.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===s;default:return!1}case"ClassExpression":return!!n(o.decorators)||"NewExpression"===r.type&&"callee"===s;case"OptionalMemberExpression":case"OptionalCallExpression":{let t=e.getParentNode(1);if("object"===s&&"MemberExpression"===r.type||"callee"===s&&("CallExpression"===r.type||"NewExpression"===r.type)||"TSNonNullExpression"===r.type&&"MemberExpression"===t.type&&t.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===s&&("BindExpression"===r.type||"NewExpression"===r.type)){let e=o;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===s&&("BindExpression"===r.type||"NewExpression"===r.type)||"object"===s&&f(r);case"NGPipeExpression":return!("NGRoot"===r.type||"NGMicrosyntaxExpression"===r.type||"ObjectProperty"===r.type&&(!o.extra||!o.extra.parenthesized)||"ArrayExpression"===r.type||h(r)&&r.arguments[s]===o||"right"===s&&"NGPipeExpression"===r.type||"property"===s&&"MemberExpression"===r.type||"AssignmentExpression"===r.type);case"JSXFragment":case"JSXElement":return"callee"===s||"left"===s&&"BinaryExpression"===r.type&&"<"===r.operator||"ArrayExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"AssignmentExpression"!==r.type&&"AssignmentPattern"!==r.type&&"BinaryExpression"!==r.type&&"NewExpression"!==r.type&&"ConditionalExpression"!==r.type&&"ExpressionStatement"!==r.type&&"JsExpressionRoot"!==r.type&&"JSXAttribute"!==r.type&&"JSXElement"!==r.type&&"JSXExpressionContainer"!==r.type&&"JSXFragment"!==r.type&&"LogicalExpression"!==r.type&&!h(r)&&!m(r)&&"ReturnStatement"!==r.type&&"ThrowStatement"!==r.type&&"TypeCastExpression"!==r.type&&"VariableDeclarator"!==r.type&&"YieldExpression"!==r.type;case"TypeAnnotation":return"returnType"===s&&"ArrowFunctionExpression"===r.type&&E(o)}return!1}function b(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}function v(e){let t=0,r=e.getValue();for(;r;){let n=e.getParentNode(t++);if(n&&"ForStatement"===n.type&&n.init===r)return!0;r=n}return!1}function E(e){return u(e,(e=>"ObjectTypeAnnotation"===e.type&&u(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}function S(e){return"ObjectExpression"===e.type}function D(e){let t=e.getValue(),n=e.getParentNode(),i=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof i&&n.arguments[i]===t&&n.arguments.length-1===i)return e.callParent(D);break;case"ObjectProperty":if("value"===i){let t=e.getParentNode(1);return r(t.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===i)return e.callParent(D);break;case"ConditionalExpression":if("alternate"===i)return e.callParent(D);break;case"UnaryExpression":if(n.prefix)return e.callParent(D)}return!1}function T(e,t){let r=e.getValue(),n=e.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===n.type||!g(e,t):!(!o(r)||"ExportDefaultDeclaration"!==n.type&&g(e,t))&&e.call((e=>T(e,t)),...s(e,r))}t.exports=g}}),Or=m({"src/language-js/print-preprocess.js"(e,t){function r(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}x(),t.exports=r}}),Br=m({"src/language-js/print/html-binding.js"(e,t){x();var{builders:{join:r,line:n,group:i,softline:s,indent:a}}=V();function o(e,t,o){let u=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(u,t),"File"===u.type){if(t.__isVueForBindingLeft)return e.call((e=>{let t=r([",",n],e.map(o,"params")),{params:u}=e.getValue();return 1===u.length?t:["(",a([s,i(t)]),s,")"]}),"program","body",0);if(t.__isVueBindings)return e.call((e=>r([",",n],e.map(o,"params"))),"program","body",0)}}function u(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return u(e.object)}return!1;case"Identifier":return!0;default:return!1}}t.exports={isVueEventBindingExpression:u,printHtmlBinding:o}}}),jr=m({"src/language-js/print/binaryish.js"(e,t){x();var{printComments:r}=Mt(),{getLast:n}=pe(),{builders:{join:i,line:s,softline:a,group:o,indent:u,align:l,indentIfBreak:c},utils:{cleanDoc:p,getDocParts:d,isConcat:h}}=V(),{hasLeadingOwnLineComment:f,isBinaryish:m,isJsxNode:y,shouldFlatten:g,hasComment:b,CommentCheckFlags:v,isCallExpression:E,isMemberExpression:S,isObjectProperty:D,isEnabledHackPipeline:T}=Qt(),C=0;function A(e,t,r){let i=e.getValue(),s=e.getParentNode(),l=e.getParentNode(1),p=i!==s.body&&("IfStatement"===s.type||"WhileStatement"===s.type||"SwitchStatement"===s.type||"DoWhileStatement"===s.type),d=T(t)&&"|>"===i.operator,h=P(e,r,t,!1,p);if(p)return h;if(d)return o(h);if(E(s)&&s.callee===i||"UnaryExpression"===s.type||S(s)&&!s.computed)return o([u([a,...h]),a]);let f="ReturnStatement"===s.type||"ThrowStatement"===s.type||"JSXExpressionContainer"===s.type&&"JSXAttribute"===l.type||"|"!==i.operator&&"JsExpressionRoot"===s.type||"NGPipeExpression"!==i.type&&("NGRoot"===s.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===s.type&&"NGMicrosyntax"===l.type&&1===l.body.length)||i===s.body&&"ArrowFunctionExpression"===s.type||i!==s.body&&"ForStatement"===s.type||"ConditionalExpression"===s.type&&"ReturnStatement"!==l.type&&"ThrowStatement"!==l.type&&!E(l)||"TemplateLiteral"===s.type,b="AssignmentExpression"===s.type||"VariableDeclarator"===s.type||"ClassProperty"===s.type||"PropertyDefinition"===s.type||"TSAbstractPropertyDefinition"===s.type||"ClassPrivateProperty"===s.type||D(s),v=m(i.left)&&g(i.operator,i.left.operator);if(f||w(i)&&!v||!w(i)&&b)return o(h);if(0===h.length)return"";let x=y(i.right),A=h.findIndex((e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type)),k=h.slice(0,-1===A?1:A+1),I=h.slice(k.length,x?-1:void 0),F=Symbol("logicalChain-"+ ++C),N=o([...k,u(I)],{id:F});if(!x)return N;let _=n(h);return o([N,c(_,{groupId:F})])}function P(e,t,n,a,c){let y=e.getValue();if(!m(y))return[o(t())];let x=[];g(y.operator,y.left.operator)?x=e.call((e=>P(e,t,n,!0,c)),"left"):x.push(o(t("left")));let E,S=w(y),D=("|>"===y.operator||"NGPipeExpression"===y.type||"|"===y.operator&&"__vue_expression"===n.parser)&&!f(n.originalText,y.right),C="NGPipeExpression"===y.type?"|":y.operator,A="NGPipeExpression"===y.type&&y.arguments.length>0?o(u([s,": ",i([s,": "],e.map(t,"arguments").map((e=>l(2,o(e)))))])):"";if(S)E=[C," ",t("right"),A];else{let r=T(n)&&"|>"===C?e.call((e=>P(e,t,n,!0,c)),"right"):t("right");E=[D?s:"",C,D?" ":s,r,A]}let k=e.getParentNode(),I=b(y.left,v.Trailing|v.Line),F=I||!(c&&"LogicalExpression"===y.type)&&k.type!==y.type&&y.left.type!==y.type&&y.right.type!==y.type;if(x.push(D?"":" ",F?o(E,{shouldBreak:I}):E),a&&b(y)){let t=p(r(e,x,n));return h(t)||"fill"===t.type?d(t):[t]}return x}function w(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||y(e.right))}t.exports={printBinaryishExpression:A,shouldInlineLogicalExpression:w}}}),Lr=m({"src/language-js/print/angular.js"(e,t){x();var{builders:{join:r,line:n,group:i}}=V(),{hasNode:s,hasComment:a,getComments:o}=Qt(),{printBinaryishExpression:u}=jr();function l(e,t,s){let l=e.getValue();if(l.type.startsWith("NG"))switch(l.type){case"NGRoot":return[s("node"),a(l.node)?" //"+o(l.node)[0].value.trimEnd():""];case"NGPipeExpression":return u(e,t,s);case"NGChainedExpression":return i(r([";",n],e.map((e=>p(e)?s():["(",s(),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[l.prefix,": ",l.value.trim()];case"NGMicrosyntax":return e.map(((e,t)=>[0===t?"":c(e.getValue(),t,l)?" ":[";",n],s()]),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(l.name)?l.name:JSON.stringify(l.name);case"NGMicrosyntaxExpression":return[s("expression"),null===l.alias?"":[" as ",s("alias")]];case"NGMicrosyntaxKeyedExpression":{let t=e.getName(),r=e.getParentNode(),n=c(l,t,r)||(1===t&&("then"===l.key.name||"else"===l.key.name)||2===t&&"else"===l.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return[s("key"),n?" ":": ",s("expression")]}case"NGMicrosyntaxLet":return["let ",s("key"),null===l.value?"":[" = ",s("value")]];case"NGMicrosyntaxAs":return[s("key")," as ",s("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(l.type)}.`)}}function c(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value}function p(e){return s(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}t.exports={printAngular:l}}}),Mr=m({"src/language-js/print/jsx.js"(e,t){x();var{printComments:r,printDanglingComments:n,printCommentsSeparately:i}=Mt(),{builders:{line:s,hardline:a,softline:o,group:u,indent:l,conditionalGroup:c,fill:p,ifBreak:d,lineSuffixBoundary:h,join:f},utils:{willBreak:m}}=V(),{getLast:y,getPreferredQuote:g}=pe(),{isJsxNode:b,rawText:v,isCallExpression:E,isStringLiteral:S,isBinaryish:D,hasComment:T,CommentCheckFlags:C,hasNodeIgnoreComment:A}=Qt(),P=_r(),{willPrintOwnComments:w}=Nr(),k=e=>""===e||e===s||e===a||e===o;function I(e,t,r){let n=e.getValue();if("JSXElement"===n.type&&Y(n))return[r("openingElement"),r("closingElement")];let i="JSXElement"===n.type?r("openingElement"):r("openingFragment"),s="JSXElement"===n.type?r("closingElement"):r("closingFragment");if(1===n.children.length&&"JSXExpressionContainer"===n.children[0].type&&("TemplateLiteral"===n.children[0].expression.type||"TaggedTemplateExpression"===n.children[0].expression.type))return[i,...e.map(r,"children"),s];n.children=n.children.map((e=>Z(e)?{type:"JSXText",value:" ",raw:" "}:e));let h=n.children.some(b),f=n.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,g="JSXElement"===n.type&&n.openingElement.attributes.length>1,v=m(i)||h||g||f,x="mdx"===e.getParentNode().rootMarker,E=t.singleQuote?"{' '}":'{" "}',S=x?" ":d([E,o]," "),D=F(e,t,r,S,n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name),T=n.children.some((e=>Q(e)));for(let e=D.length-2;e>=0;e--){let t=""===D[e]&&""===D[e+1],r=D[e]===a&&""===D[e+1]&&D[e+2]===a,n=(D[e]===o||D[e]===a)&&""===D[e+1]&&D[e+2]===S,i=D[e]===S&&""===D[e+1]&&(D[e+2]===o||D[e+2]===a),s=D[e]===S&&""===D[e+1]&&D[e+2]===S,u=D[e]===o&&""===D[e+1]&&D[e+2]===a||D[e]===a&&""===D[e+1]&&D[e+2]===o;r&&T||t||n||s||u?D.splice(e,2):i&&D.splice(e+1,2)}for(;D.length>0&&k(y(D));)D.pop();for(;D.length>1&&k(D[0])&&k(D[1]);)D.shift(),D.shift();let C=[];for(let[e,t]of D.entries()){if(t===S){if(1===e&&""===D[e-1]){if(2===D.length){C.push(E);continue}C.push([E,a]);continue}if(e===D.length-1){C.push(E);continue}if(""===D[e-1]&&D[e-2]===a){C.push(E);continue}}C.push(t),m(t)&&(v=!0)}let A=T?p(C):u(C,{shouldBreak:!0});if(x)return A;let P=u([i,l([a,A]),a,s]);return v?P:c([u([i,...D,s]),P])}function F(e,t,r,n,i){let o=[];return e.each(((e,t,u)=>{let l=e.getValue();if("JSXText"===l.type){let e=v(l);if(Q(l)){let r,a=e.split(J);if(""===a[0]){if(o.push(""),a.shift(),/\n/.test(a[0])){let e=u[t+1];o.push(_(i,a[1],l,e))}else o.push(n);a.shift()}if(""===y(a)&&(a.pop(),r=a.pop()),0===a.length)return;for(let[e,t]of a.entries())e%2==1?o.push(s):o.push(t);if(void 0!==r)if(/\n/.test(r)){let e=u[t+1];o.push(_(i,y(o),l,e))}else o.push(n);else{let e=u[t+1];o.push(N(i,y(o),l,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",a):o.push("",n)}else{let e=r();o.push(e);let n=u[t+1];if(n&&Q(n)){let e=G(v(n)).split(J)[0];o.push(N(i,e,l,n))}else o.push(a)}}),"children"),o}function N(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?1===t.length?o:a:o}function _(e,t,r,n){return e?a:1===t.length?"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?a:o:a}function O(e,t,r){let n=e.getParentNode();if(!n||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;let i=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),E,(e=>"JSXExpressionContainer"===e.type)),s=P(e,r);return u([s?"":d("("),l([o,t]),o,s?"":d(")")],{shouldBreak:i})}function B(e,t,r){let n=e.getValue(),s=[];if(s.push(r("name")),n.value){let a;if(S(n.value)){let r=v(n.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:s,quote:o,regex:u}=g(r,t.jsxSingleQuote?"'":'"');r=r.replace(u,s);let{leading:l,trailing:c}=e.call((()=>i(e,t)),"value");a=[l,o,r,o,c]}else a=r("value");s.push("=",a)}return s}function j(e,t,r){let n=e.getValue(),i=(e,t)=>"JSXEmptyExpression"===e.type||!T(e)&&("ArrayExpression"===e.type||"ObjectExpression"===e.type||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(i(e.argument,e)||"JSXElement"===e.argument.type)||E(e)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||b(t)&&("ConditionalExpression"===e.type||D(e)));return i(n.expression,e.getParentNode(0))?u(["{",r("expression"),h,"}"]):u(["{",l([o,r("expression")]),o,h,"}"])}function L(e,t,r){let n=e.getValue(),i=n.name&&T(n.name)||n.typeParameters&&T(n.typeParameters);if(n.selfClosing&&0===n.attributes.length&&!i)return["<",r("name"),r("typeParameters")," />"];if(n.attributes&&1===n.attributes.length&&n.attributes[0].value&&S(n.attributes[0].value)&&!n.attributes[0].value.value.includes("\n")&&!i&&!T(n.attributes[0]))return u(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let o=n.attributes&&n.attributes.some((e=>e.value&&S(e.value)&&e.value.value.includes("\n"))),c=t.singleAttributePerLine&&n.attributes.length>1?a:s;return u(["<",r("name"),r("typeParameters"),l(e.map((()=>[c,r()]),"attributes")),...M(n,t,i)],{shouldBreak:o})}function M(e,t,r){return e.selfClosing?[s,"/>"]:R(e,t,r)?[">"]:[o,">"]}function R(e,t,r){let n=e.attributes.length>0&&T(y(e.attributes),C.Trailing);return 0===e.attributes.length&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function $(e,t,r){let n=e.getValue(),i=[];i.push("</");let s=r("name");return T(n.name,C.Leading|C.Line)?i.push(l([a,s]),a):T(n.name,C.Leading|C.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function U(e,t){let r=e.getValue(),i=T(r),s=T(r,C.Line),o="JSXOpeningFragment"===r.type;return[o?"<":"</",l([s?a:i&&!o?" ":"",n(e,t,!0)]),s?a:"",">"]}function q(e,t,n){return O(e,r(e,I(e,t,n),t),t)}function W(e,t){let r=e.getValue(),i=T(r,C.Line);return[n(e,t,!i),i?a:""]}function z(e,t,n){let i=e.getValue();return["{",e.call((e=>{let i=["...",n()],s=e.getValue();return T(s)&&w(e)?[l([o,r(e,i,t)]),o]:i}),"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]}function K(e,t,r){let n=e.getValue();if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return B(e,t,r);case"JSXIdentifier":return String(n.name);case"JSXNamespacedName":return f(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return f(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return z(e,t,r);case"JSXExpressionContainer":return j(e,t,r);case"JSXFragment":case"JSXElement":return q(e,t,r);case"JSXOpeningElement":return L(e,t,r);case"JSXClosingElement":return $(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return U(e,t);case"JSXEmptyExpression":return W(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(n.type)}.`)}}var H=" \n\r\t",J=new RegExp("(["+H+"]+)"),X=new RegExp("[^"+H+"]"),G=e=>e.replace(new RegExp("(?:^"+J.source+"|"+J.source+"$)"),"");function Y(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!Q(t)}function Q(e){return"JSXText"===e.type&&(X.test(v(e))||!/\n/.test(v(e)))}function Z(e){return"JSXExpressionContainer"===e.type&&S(e.expression)&&" "===e.expression.value&&!T(e.expression)}function ee(e){let t=e.getValue(),r=e.getParentNode();if(!(r&&t&&b(t)&&b(r)))return!1;let n=null;for(let e=r.children.indexOf(t);e>0;e--){let t=r.children[e-1];if("JSXText"!==t.type||Q(t)){n=t;break}}return n&&"JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type&&A(n.expression)}t.exports={hasJsxIgnoreComment:ee,printJsx:K}}}),Rr=m({"src/language-js/print/misc.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{indent:n,join:i,line:s}}=V(),{isFlowAnnotationComment:a}=Qt();function o(e){let t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function u(e){return e.getValue().definite||e.match(void 0,((e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite))?"!":""}function l(e,t,r){let n=e.getValue();return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function c(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let i=e.getParentNode(),s="DeclareFunction"===i.type&&i.id===n;return a(t.originalText,n.typeAnnotation)?[" /*: ",r("typeAnnotation")," */"]:[s?"":": ",r("typeAnnotation")]}function p(e,t,r){return["::",r("callee")]}function d(e,t,n){let s=e.getValue();return r(s.modifiers)?[i(" ",e.map(n,"modifiers"))," "]:""}function h(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?[" ",t]:n([s,t])}function f(e,t,r){return["...",r("argument"),c(e,t,r)]}function m(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}t.exports={printOptionalToken:o,printDefiniteToken:u,printFunctionTypeParameters:l,printBindExpressionCallee:p,printTypeScriptModifiers:d,printTypeAnnotation:c,printRestSpread:f,adjustClause:h,printDirective:m}}}),$r=m({"src/language-js/print/array.js"(e,t){x();var{printDanglingComments:r}=Mt(),{builders:{line:n,softline:i,hardline:s,group:a,indent:o,ifBreak:u,fill:l}}=V(),{getLast:c,hasNewline:p}=pe(),{shouldPrintComma:d,hasComment:h,CommentCheckFlags:f,isNextLineEmpty:m,isNumericLiteral:y,isSignedNumericLiteral:g}=Qt(),{locStart:b}=It(),{printOptionalToken:v,printTypeAnnotation:E}=Rr();function S(e,t,n){let s=e.getValue(),l=[],p="TupleExpression"===s.type?"#[":"[",m="]";if(0===s.elements.length)h(s,f.Dangling)?l.push(a([p,r(e,t),i,m])):l.push(p,m);else{let h=c(s.elements),f=!(h&&"RestElement"===h.type),y=null===h,g=Symbol("array"),b=!t.__inJestEach&&s.elements.length>1&&s.elements.every(((e,t,r)=>{let n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;let i=r[t+1];if(i&&n!==i.type)return!1;let s="ArrayExpression"===n?"elements":"properties";return e[s]&&e[s].length>1})),v=D(s,t),x=f?y?",":d(t)?v?u(",","",{groupId:g}):u(","):"":"";l.push(a([p,o([i,v?C(e,t,n,x):[T(e,t,"elements",n),x],r(e,t,!0)]),i,m],{shouldBreak:b,id:g}))}return l.push(v(e),E(e,t,n)),l}function D(e,t){return e.elements.length>1&&e.elements.every((e=>e&&(y(e)||g(e)&&!h(e.argument))&&!h(e,f.Trailing|f.Line,(e=>!p(t.originalText,b(e),{backwards:!0})))))}function T(e,t,r,s){let o=[],u=[];return e.each((e=>{o.push(u,a(s())),u=[",",n],e.getValue()&&m(e.getValue(),t)&&u.push(i)}),r),o}function C(e,t,r,i){let a=[];return e.each(((e,o,u)=>{let l=o===u.length-1;a.push([r(),l?i:","]),l||a.push(m(e.getValue(),t)?[s,s]:h(u[o+1],f.Leading|f.Line)?s:n)}),"elements"),l(a)}t.exports={printArray:S,printArrayItems:T,isConciselyPrintedArray:D}}}),Ur=m({"src/language-js/print/call-arguments.js"(e,t){x();var{printDanglingComments:r}=Mt(),{getLast:n,getPenultimate:i}=pe(),{getFunctionParameters:s,hasComment:a,CommentCheckFlags:o,isFunctionCompositionArgs:u,isJsxNode:l,isLongCurriedCallExpression:c,shouldPrintComma:p,getCallArguments:d,iterateCallArgumentsPath:h,isNextLineEmpty:f,isCallExpression:m,isStringLiteral:y,isObjectProperty:g,isTSTypeExpression:b}=Qt(),{builders:{line:v,hardline:E,softline:S,group:D,indent:T,conditionalGroup:C,ifBreak:A,breakParent:P},utils:{willBreak:w}}=V(),{ArgExpansionBailout:k}=Fe(),{isConciselyPrintedArray:I}=$r();function F(e,t,i){let s=e.getValue(),a="ImportExpression"===s.type,o=d(s);if(0===o.length)return["(",r(e,t,!0),")"];if(B(o))return["(",i(["arguments",0]),", ",i(["arguments",1]),")"];let l=!1,m=!1,y=o.length-1,g=[];h(e,((e,r)=>{let n=e.getNode(),s=[i()];r===y||(f(n,t)?(0===r&&(m=!0),l=!0,s.push(",",E,E)):s.push(",",v)),g.push(s)}));let b=a||s.callee&&"Import"===s.callee.type||!p(t,"all")?"":",";function x(){return D(["(",T([v,...g]),b,v,")"],{shouldBreak:!0})}if(l||"Decorator"!==e.getParentNode().type&&u(o))return x();let I=O(o),F=_(o,t);if(I||F){if(I?g.slice(1).some(w):g.slice(0,-1).some(w))return x();let t=[];try{e.try((()=>{h(e,((e,r)=>{I&&0===r&&(t=[[i([],{expandFirstArg:!0}),g.length>1?",":"",m?E:v,m?E:""],...g.slice(1)]),F&&r===y&&(t=[...g.slice(0,-1),i([],{expandLastArg:!0})])}))}))}catch(e){if(e instanceof k)return x();throw e}return[g.some(w)?P:"",C([["(",...t,")"],I?["(",D(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...g.slice(0,-1),D(n(t),{shouldBreak:!0}),")"],x()])]}let N=["(",T([S,...g]),A(b),S,")"];return c(e)?N:D(N,{shouldBreak:g.some(w)||l})}function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||a(e))||"ArrayExpression"===e.type&&(e.elements.length>0||a(e))||"TSTypeAssertion"===e.type&&N(e.expression)||b(e)&&N(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||j(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&N(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(m(e.body)||"ConditionalExpression"===e.body.type)||l(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function _(e,t){let r=n(e),s=i(e);return!a(r,o.Leading)&&!a(r,o.Trailing)&&N(r)&&(!s||s.type!==r.type)&&(2!==e.length||"ArrowFunctionExpression"!==s.type||"ArrayExpression"!==r.type)&&!(e.length>1&&"ArrayExpression"===r.type&&I(r,t))}function O(e){if(2!==e.length)return!1;let[t,r]=e;return!("ModuleExpression"!==t.type||!L(r))||!a(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&!N(r)}function B(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===s(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((e=>a(e)))}function j(e){return"BlockStatement"===e.type&&(e.body.some((e=>"EmptyStatement"!==e.type))||a(e,o.Dangling))}function L(e){return"ObjectExpression"===e.type&&1===e.properties.length&&g(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&y(e.properties[0].value)&&"module"===e.properties[0].value.value}t.exports=F}}),Vr=m({"src/language-js/print/member.js"(e,t){x();var{builders:{softline:r,group:n,indent:i,label:s}}=V(),{isNumericLiteral:a,isMemberExpression:o,isCallExpression:u}=Qt(),{printOptionalToken:l}=Rr();function c(e,t,a){let l,c=e.getValue(),d=e.getParentNode(),h=0;do{l=e.getParentNode(h),h++}while(l&&(o(l)||"TSNonNullExpression"===l.type));let f=a("object"),m=p(e,t,a),y=l&&("NewExpression"===l.type||"BindExpression"===l.type||"AssignmentExpression"===l.type&&"Identifier"!==l.left.type)||c.computed||"Identifier"===c.object.type&&"Identifier"===c.property.type&&!o(d)||("AssignmentExpression"===d.type||"VariableDeclarator"===d.type)&&(u(c.object)&&c.object.arguments.length>0||"TSNonNullExpression"===c.object.type&&u(c.object.expression)&&c.object.expression.arguments.length>0||"member-chain"===f.label);return s("member-chain"===f.label?"member-chain":"member",[f,y?m:n(i([r,m]))])}function p(e,t,s){let o=s("property"),u=e.getValue(),c=l(e);return u.computed?!u.property||a(u.property)?[c,"[",o,"]"]:n([c,"[",i([r,o]),r,"]"]):[c,".",o]}t.exports={printMemberExpression:c,printMemberLookup:p}}}),qr=m({"src/language-js/print/member-chain.js"(e,t){x();var{printComments:r}=Mt(),{getLast:n,isNextLineEmptyAfterIndex:i,getNextNonSpaceNonCommentCharacterIndex:s}=pe(),a=_r(),{isCallExpression:o,isMemberExpression:u,isFunctionOrArrowExpression:l,isLongCurriedCallExpression:c,isMemberish:p,isNumericLiteral:d,isSimpleCallArgument:h,hasComment:f,CommentCheckFlags:m,isNextLineEmpty:y}=Qt(),{locEnd:g}=It(),{builders:{join:b,hardline:v,group:E,indent:S,conditionalGroup:D,breakParent:T,label:C},utils:{willBreak:A}}=V(),P=Ur(),{printMemberLookup:w}=Vr(),{printOptionalToken:k,printFunctionTypeParameters:I,printBindExpressionCallee:F}=Rr();function N(e,t,x){let N=e.getParentNode(),_=!N||"ExpressionStatement"===N.type,O=[];function B(e){let{originalText:r}=t,n=s(r,e,g);return")"===r.charAt(n)?!1!==n&&i(r,n+1):y(e,t)}function j(e){let n=e.getValue();o(n)&&(p(n.callee)||o(n.callee))?(O.unshift({node:n,printed:[r(e,[k(e),I(e,t,x),P(e,t,x)],t),B(n)?v:""]}),e.call((e=>j(e)),"callee")):p(n)?(O.unshift({node:n,needsParens:a(e,t),printed:r(e,u(n)?w(e,t,x):F(e,t,x),t)}),e.call((e=>j(e)),"object")):"TSNonNullExpression"===n.type?(O.unshift({node:n,printed:r(e,"!",t)}),e.call((e=>j(e)),"expression")):O.unshift({node:n,printed:x()})}let L=e.getValue();O.unshift({node:L,printed:[k(e),I(e,t,x),P(e,t,x)]}),L.callee&&e.call((e=>j(e)),"callee");let M=[],R=[O[0]],$=1;for(;$<O.length&&("TSNonNullExpression"===O[$].node.type||o(O[$].node)||u(O[$].node)&&O[$].node.computed&&d(O[$].node.property));++$)R.push(O[$]);if(!o(O[0].node))for(;$+1<O.length&&p(O[$].node)&&p(O[$+1].node);++$)R.push(O[$]);M.push(R),R=[];let U=!1;for(;$<O.length;++$){if(U&&p(O[$].node)){if(O[$].node.computed&&d(O[$].node.property)){R.push(O[$]);continue}M.push(R),R=[],U=!1}(o(O[$].node)||"ImportExpression"===O[$].node.type)&&(U=!0),R.push(O[$]),f(O[$].node,m.Trailing)&&(M.push(R),R=[],U=!1)}function V(e){return/^[A-Z]|^[$_]+$/.test(e)}function q(e){return e.length<=t.tabWidth}function W(e){let t=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){let r=e[0][0].node;return"ThisExpression"===r.type||"Identifier"===r.type&&(V(r.name)||_&&q(r.name)||t)}let r=n(e[0]).node;return u(r)&&"Identifier"===r.property.type&&(V(r.property.name)||t)}R.length>0&&M.push(R);let z=M.length>=2&&!f(M[1][0].node)&&W(M);function K(e){let t=e.map((e=>e.printed));return e.length>0&&n(e).needsParens?["(",...t,")"]:t}function H(e){return 0===e.length?"":S(E([v,b(v,e.map(K))]))}let J=M.map(K),X=J,G=z?3:2,Y=M.flat(),Q=Y.slice(1,-1).some((e=>f(e.node,m.Leading)))||Y.slice(0,-1).some((e=>f(e.node,m.Trailing)))||M[G]&&f(M[G][0].node,m.Leading);if(M.length<=G&&!Q)return c(e)?X:E(X);let Z,ee=n(M[z?1:0]).node,te=!o(ee)&&B(ee),re=[K(M[0]),z?M.slice(1,2).map(K):"",te?v:"",H(M.slice(z?2:1))],ne=O.map((e=>{let{node:t}=e;return t})).filter(o);function ie(){let e=n(n(M)).node,t=n(J);return o(e)&&A(t)&&ne.slice(0,-1).some((e=>e.arguments.some(l)))}return Z=Q||ne.length>2&&ne.some((e=>!e.arguments.every((e=>h(e,0)))))||J.slice(0,-1).some(A)||ie()?E(re):[A(X)||te?T:"",D([X,re])],C("member-chain",Z)}t.exports=N}}),Wr=m({"src/language-js/print/call-expression.js"(e,t){x();var{builders:{join:r,group:n}}=V(),i=_r(),{getCallArguments:s,hasFlowAnnotationComment:a,isCallExpression:o,isMemberish:u,isStringLiteral:l,isTemplateOnItsOwnLine:c,isTestCall:p,iterateCallArgumentsPath:d}=Qt(),h=qr(),f=Ur(),{printOptionalToken:m,printFunctionTypeParameters:y}=Rr();function g(e,t,l){let g=e.getValue(),v=e.getParentNode(),x="NewExpression"===g.type,E="ImportExpression"===g.type,S=m(e),D=s(g);if(D.length>0&&(!E&&!x&&b(g,v)||1===D.length&&c(D[0],t.originalText)||!x&&p(g,v))){let n=[];return d(e,(()=>{n.push(l())})),[x?"new ":"",l("callee"),S,y(e,t,l),"(",r(", ",n),")"]}let T=("babel"===t.parser||"babel-flow"===t.parser)&&g.callee&&"Identifier"===g.callee.type&&a(g.callee.trailingComments);if(T&&(g.callee.trailingComments[0].printed=!0),!E&&!x&&u(g.callee)&&!e.call((e=>i(e,t)),"callee"))return h(e,t,l);let C=[x?"new ":"",E?"import":l("callee"),S,T?`/*:: ${g.callee.trailingComments[0].value.slice(2).trim()} */`:"",y(e,t,l),f(e,t,l)];return E||o(g.callee)?n(C):C}function b(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){let r=s(e);return"ExpressionStatement"===t.type&&(1===r.length||2===r.length&&"ArrayExpression"===r[0].type||3===r.length&&l(r[0])&&"ArrayExpression"===r[1].type)}return!1}t.exports={printCallExpression:g}}}),zr=m({"src/language-js/print/assignment.js"(e,t){x();var{isNonEmptyArray:r,getStringWidth:n}=pe(),{builders:{line:i,group:s,indent:a,indentIfBreak:o,lineSuffixBoundary:u},utils:{cleanDoc:l,willBreak:c,canBreak:p}}=V(),{hasLeadingOwnLineComment:d,isBinaryish:h,isStringLiteral:f,isLiteral:m,isNumericLiteral:y,isCallExpression:g,isMemberExpression:b,getCallArguments:v,rawText:E,hasComment:S,isSignedNumericLiteral:D,isObjectProperty:T}=Qt(),{shouldInlineLogicalExpression:C}=jr(),{printCallExpression:A}=Wr();function P(e,t,r,n,l,c){let p=I(e,t,r,n,c),d=r(c,{assignmentLayout:p});switch(p){case"break-after-operator":return s([s(n),l,s(a([i,d]))]);case"never-break-after-operator":return s([s(n),l," ",d]);case"fluid":{let e=Symbol("assignment");return s([s(n),l,s(a(i),{id:e}),u,o(d,{groupId:e})])}case"break-lhs":return s([n,l," ",s(d)]);case"chain":return[s(n),l,i,d];case"chain-tail":return[s(n),l,a([i,d])];case"chain-tail-arrow-chain":return[s(n),l,d];case"only-left":return n}}function w(e,t,r){let n=e.getValue();return P(e,t,r,r("left"),[" ",n.operator],"right")}function k(e,t,r){return P(e,t,r,r("id")," =","init")}function I(e,t,r,n,i){let s=e.getValue(),a=s[i];if(!a)return"only-left";let o=!_(a);if(e.match(_,O,(e=>!o||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type)))return o?"ArrowFunctionExpression"===a.type&&"ArrowFunctionExpression"===a.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&_(a.right)||d(t.originalText,a))return"break-after-operator";if("CallExpression"===a.type&&"require"===a.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(N(s)||B(s)||M(s)||R(s)&&p(n))return"break-lhs";let u=K(s,n,t);return e.call((()=>F(e,t,r,u)),i)?"break-after-operator":u||"TemplateLiteral"===a.type||"TaggedTemplateExpression"===a.type||"BooleanLiteral"===a.type||y(a)||"ClassExpression"===a.type?"never-break-after-operator":"fluid"}function F(e,t,n,i){let s=e.getValue();if(h(s)&&!C(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:e}=s;return h(e)&&!C(e)}case"ClassExpression":return r(s.decorators)}if(i)return!1;let a=s,o=[];for(;;)if("UnaryExpression"===a.type)a=a.argument,o.push("argument");else{if("TSNonNullExpression"!==a.type)break;a=a.expression,o.push("expression")}return!(!f(a)&&!e.call((()=>q(e,t,n)),...o))}function N(e){if(O(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((e=>T(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)))}return!1}function _(e){return"AssignmentExpression"===e.type}function O(e){return _(e)||"VariableDeclarator"===e.type}function B(e){let t=j(e);if(r(t)){let r="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((e=>e[r]||e.default)))return!0}return!1}function j(e){return L(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function L(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}function M(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=$(t.typeAnnotation);return r(n)&&n.length>1&&n.some((e=>r($(e))||"TSConditionalType"===e.type))}function R(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function $(e){return U(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function U(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}function q(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),s=()=>q(e,t,r,!0);if("TSNonNullExpression"===i.type)return e.call(s,"expression");if(g(i)){if("member-chain"===A(e,t,r).label)return!1;let n=v(i);return!(!(0===n.length||1===n.length&&z(n[0],t))||H(i,r))&&e.call(s,"callee")}return b(i)?e.call(s,"object"):n&&("Identifier"===i.type||"ThisExpression"===i.type)}var W=.25;function z(e,t){let{printWidth:r}=t;if(S(e))return!1;let n=r*W;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||D(e)&&!S(e.argument))return!0;let i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=n:f(e)?E(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):m(e)}function K(e,t,r){if(!T(e))return!1;let i=3;return"string"==typeof(t=l(t))&&n(t)<r.tabWidth+i}function H(e,t){let n=J(e);if(r(n)){if(n.length>1)return!0;if(1===n.length){let e=n[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}let r=e.typeParameters?"typeParameters":"typeArguments";if(c(t(r)))return!0}return!1}function J(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}t.exports={printVariableDeclarator:k,printAssignmentExpression:w,printAssignment:P,isArrowFunctionVariableDeclarator:R}}}),Kr=m({"src/language-js/print/function-parameters.js"(e,t){x();var{getNextNonSpaceNonCommentCharacter:r}=pe(),{printDanglingComments:n}=Mt(),{builders:{line:i,hardline:s,softline:a,group:o,indent:u,ifBreak:l},utils:{removeLines:c,willBreak:p}}=V(),{getFunctionParameters:d,iterateFunctionParametersPath:h,isSimpleType:f,isTestCall:m,isTypeAnnotationAFunction:y,isObjectType:g,isObjectTypePropertyAFunction:b,hasRestParameter:v,shouldPrintComma:E,hasComment:S,isNextLineEmpty:D}=Qt(),{locEnd:T}=It(),{ArgExpansionBailout:C}=Fe(),{printFunctionTypeParameters:A}=Rr();function P(e,t,g,x,S){let P=e.getValue(),k=d(P),I=S?A(e,g,t):"";if(0===k.length)return[I,"(",n(e,g,!0,(e=>")"===r(g.originalText,e,T))),")"];let F=e.getParentNode(),N=m(F),_=w(P),O=[];if(h(e,((e,r)=>{let n=r===k.length-1;n&&P.rest&&O.push("..."),O.push(t()),!n&&(O.push(","),N||_?O.push(" "):D(k[r],g)?O.push(s,s):O.push(i))})),x){if(p(I)||p(O))throw new C;return o([c(I),"(",c(O),")"])}let B=k.every((e=>!e.decorators));return _&&B||N?[I,"(",...O,")"]:(b(F)||y(F)||"TypeAlias"===F.type||"UnionTypeAnnotation"===F.type||"TSUnionType"===F.type||"IntersectionTypeAnnotation"===F.type||"FunctionTypeAnnotation"===F.type&&F.returnType===P)&&1===k.length&&null===k[0].name&&P.this!==k[0]&&k[0].typeAnnotation&&null===P.typeParameters&&f(k[0].typeAnnotation)&&!P.rest?"always"===g.arrowParens?["(",...O,")"]:O:[I,"(",u([a,...O]),l(!v(P)&&E(g,"all")?",":""),a,")"]}function w(e){if(!e)return!1;let t=d(e);if(1!==t.length)return!1;let[r]=t;return!S(r)&&("ObjectPattern"===r.type||"ArrayPattern"===r.type||"Identifier"===r.type&&r.typeAnnotation&&("TypeAnnotation"===r.typeAnnotation.type||"TSTypeAnnotation"===r.typeAnnotation.type)&&g(r.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===r.type&&g(r.typeAnnotation)||"AssignmentPattern"===r.type&&("ObjectPattern"===r.left.type||"ArrayPattern"===r.left.type)&&("Identifier"===r.right.type||"ObjectExpression"===r.right.type&&0===r.right.properties.length||"ArrayExpression"===r.right.type&&0===r.right.elements.length))}function k(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function I(e,t){let r=k(e);if(!r)return!1;let n=e.typeParameters&&e.typeParameters.params;if(n){if(n.length>1)return!1;if(1===n.length){let e=n[0];if(e.constraint||e.default)return!1}}return 1===d(e).length&&(g(r)||p(t))}t.exports={printFunctionParameters:P,shouldHugFunctionParameters:w,shouldGroupFunctionParameters:I}}}),Hr=m({"src/language-js/print/type-annotation.js"(e,t){x();var{printComments:r,printDanglingComments:n}=Mt(),{isNonEmptyArray:i}=pe(),{builders:{group:s,join:a,line:o,softline:u,indent:l,align:c,ifBreak:p}}=V(),d=_r(),{locStart:h}=It(),{isSimpleType:f,isObjectType:m,hasLeadingOwnLineComment:y,isObjectTypePropertyAFunction:g,shouldPrintComma:b}=Qt(),{printAssignment:v}=zr(),{printFunctionParameters:E,shouldGroupFunctionParameters:S}=Kr(),{printArrayItems:D}=$r();function T(e){if(f(e)||m(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){let t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,r=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&r)return!0}return!1}function C(e,t,r){let n=t.semi?";":"",i=e.getValue(),s=[];return s.push("opaque type ",r("id"),r("typeParameters")),i.supertype&&s.push(": ",r("supertype")),i.impltype&&s.push(" = ",r("impltype")),s.push(n),s}function A(e,t,r){let n=t.semi?";":"",i=e.getValue(),s=[];i.declare&&s.push("declare "),s.push("type ",r("id"),r("typeParameters"));let a="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[v(e,t,r,s," =",a),n]}function P(e,t,r){let n=e.getValue(),i=e.map(r,"types"),a=[],u=!1;for(let e=0;e<i.length;++e)0===e?a.push(i[e]):m(n.types[e-1])&&m(n.types[e])?a.push([" & ",u?l(i[e]):i[e]]):m(n.types[e-1])||m(n.types[e])?(e>1&&(u=!0),a.push(" & ",e>1?l(i[e]):i[e])):a.push(l([" &",o,i[e]]));return s(a)}function w(e,t,n){let i=e.getValue(),h=e.getParentNode(),f=!("TypeParameterInstantiation"===h.type||"TSTypeParameterInstantiation"===h.type||"GenericTypeAnnotation"===h.type||"TSTypeReference"===h.type||"TSTypeAssertion"===h.type||"TupleTypeAnnotation"===h.type||"TSTupleType"===h.type||"FunctionTypeParam"===h.type&&!h.name&&e.getParentNode(1).this!==h||("TypeAlias"===h.type||"VariableDeclarator"===h.type||"TSTypeAliasDeclaration"===h.type)&&y(t.originalText,i)),m=T(i),g=e.map((e=>{let i=n();return m||(i=c(2,i)),r(e,i,t)}),"types");if(m)return a(" | ",g);let b=f&&!y(t.originalText,i),v=[p([b?o:"","| "]),a([o,"| "],g)];return d(e,t)?s([l(v),u]):"TupleTypeAnnotation"===h.type&&h.types.length>1||"TSTupleType"===h.type&&h.elementTypes.length>1?s([l([p(["(",u]),v]),u,p(")")]):s(f?l(v):v)}function k(e,t,r){let n=e.getValue(),i=[],a=e.getParentNode(0),o=e.getParentNode(1),u=e.getParentNode(2),l="TSFunctionType"===n.type||!(("ObjectTypeProperty"===a.type||"ObjectTypeInternalSlot"===a.type)&&!a.variance&&!a.optional&&h(a)===h(n)||"ObjectTypeCallProperty"===a.type||u&&"DeclareFunction"===u.type),c=l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type),p=c&&l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type)&&"ArrowFunctionExpression"===o.type;g(a)&&(l=!0,c=!0),p&&i.push("(");let d=E(e,r,t,!1,!0),f=n.returnType||n.predicate||n.typeAnnotation?[l?" => ":": ",r("returnType"),r("predicate"),r("typeAnnotation")]:"",m=S(n,f);return i.push(m?s(d):d),f&&i.push(f),p&&i.push(")"),s(i)}function I(e,t,r){let a=e.getValue(),o="TSTupleType"===a.type?"elementTypes":"types",c=a[o],d=i(c),h=d?u:"";return s(["[",l([h,D(e,t,o,r)]),p(d&&b(t,"all")?",":""),n(e,t,!0),h,"]"])}function F(e,t,r){let n=e.getValue(),i="OptionalIndexedAccessType"===n.type&&n.optional?"?.[":"[";return[r("objectType"),i,r("indexType"),"]"]}function N(e,t,r){let n=e.getValue();return[n.postfix?"":r,t("typeAnnotation"),n.postfix?r:""]}t.exports={printOpaqueType:C,printTypeAlias:A,printIntersectionType:P,printUnionType:w,printFunctionType:k,printTupleType:I,printIndexedAccessType:F,shouldHugType:T,printJSDocType:N}}}),Jr=m({"src/language-js/print/type-parameters.js"(e,t){x();var{printDanglingComments:r}=Mt(),{builders:{join:n,line:i,hardline:s,softline:a,group:o,indent:u,ifBreak:l}}=V(),{isTestCall:c,hasComment:p,CommentCheckFlags:d,isTSXFile:h,shouldPrintComma:f,getFunctionParameters:m,isObjectType:y,getTypeScriptMappedTypeModifier:g}=Qt(),{createGroupIdMapper:b}=pe(),{shouldHugType:v}=Hr(),{isArrowFunctionVariableDeclarator:E}=zr(),S=b("typeParameters");function D(e,t,r,s){let p=e.getValue();if(!p[s])return"";if(!Array.isArray(p[s]))return r(s);let d=e.getNode(2),g=d&&c(d),b=e.match((e=>!(1===e[s].length&&y(e[s][0]))),void 0,((e,t)=>"typeAnnotation"===t),(e=>"Identifier"===e.type),E);if(0===p[s].length||!b&&(g||1===p[s].length&&("NullableTypeAnnotation"===p[s][0].type||v(p[s][0]))))return["<",n(", ",e.map(r,s)),T(e,t),">"];let x="TSTypeParameterInstantiation"===p.type?"":1===m(p).length&&h(t)&&!p[s][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":f(t,"all")?l(","):"";return o(["<",u([a,n([",",i],e.map(r,s))]),x,a,">"],{id:S(p)})}function T(e,t){let n=e.getValue();if(!p(n,d.Dangling))return"";let i=!p(n,d.Line),a=r(e,t,i);return i?a:[a,s]}function C(e,t,r){let n=e.getValue(),i=["TSTypeParameter"===n.type&&n.const?"const ":""],s=e.getParentNode();return"TSMappedType"===s.type?(s.readonly&&i.push(g(s.readonly,"readonly")," "),i.push("[",r("name")),n.constraint&&i.push(" in ",r("constraint")),s.nameType&&i.push(" as ",e.callParent((()=>r("nameType")))),i.push("]"),i):(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(r("name")),n.bound&&i.push(": ",r("bound")),n.constraint&&i.push(" extends ",r("constraint")),n.default&&i.push(" = ",r("default")),i)}t.exports={printTypeParameter:C,printTypeParameters:D,getTypeParametersGroupId:S}}}),Xr=m({"src/language-js/print/property.js"(e,t){x();var{printComments:r}=Mt(),{printString:n,printNumber:i}=pe(),{isNumericLiteral:s,isSimpleNumber:a,isStringLiteral:o,isStringPropSafeToUnquote:u,rawText:l}=Qt(),{printAssignment:c}=zr(),p=new WeakMap;function d(e,t,c){let d=e.getNode();if(d.computed)return["[",c("key"),"]"];let h=e.getParentNode(),{key:f}=d;if("consistent"===t.quoteProps&&!p.has(h)){let e=(h.properties||h.body||h.members).some((e=>!e.computed&&e.key&&o(e.key)&&!u(e,t)));p.set(h,e)}if(("Identifier"===f.type||s(f)&&a(i(l(f)))&&String(f.value)===i(l(f))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&p.get(h))){let i=n(JSON.stringify("Identifier"===f.type?f.name:f.value.toString()),t);return e.call((e=>r(e,i,t)),"key")}return u(d,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!p.get(h))?e.call((e=>r(e,/^\d/.test(f.value)?i(f.value):f.value,t)),"key"):c("key")}function h(e,t,r){return e.getValue().shorthand?r("value"):c(e,t,r,d(e,t,r),":","value")}t.exports={printProperty:h,printPropertyKey:d}}}),Gr=m({"src/language-js/print/function.js"(e,t){x();var r=Lt(),{printDanglingComments:n,printCommentsSeparately:i}=Mt(),s=A(),{getNextNonSpaceNonCommentCharacterIndex:a}=pe(),{builders:{line:o,softline:u,group:l,indent:c,ifBreak:p,hardline:d,join:h,indentIfBreak:f},utils:{removeLines:m,willBreak:y}}=V(),{ArgExpansionBailout:g}=Fe(),{getFunctionParameters:b,hasLeadingOwnLineComment:v,isFlowAnnotationComment:E,isJsxNode:S,isTemplateOnItsOwnLine:D,shouldPrintComma:T,startsWithNoLookaheadToken:C,isBinaryish:P,isLineComment:w,hasComment:k,getComments:I,CommentCheckFlags:F,isCallLikeExpression:N,isCallExpression:_,getCallArguments:O,hasNakedLeftSide:B,getLeftSide:j}=Qt(),{locEnd:L}=It(),{printFunctionParameters:M,shouldGroupFunctionParameters:R}=Kr(),{printPropertyKey:$}=Xr(),{printFunctionTypeParameters:U}=Rr();function q(e,t,r,n){let i=e.getValue(),s=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&n&&n.expandLastArg){let t=e.getParentNode();_(t)&&O(t).length>1&&(s=!0)}let a=[];"TSDeclareFunction"===i.type&&i.declare&&a.push("declare "),i.async&&a.push("async "),i.generator?a.push("function* "):a.push("function "),i.id&&a.push(t("id"));let o=M(e,t,r,s),u=Y(e,t,r),c=R(i,u);return a.push(U(e,r,t),l([c?l(o):o,u]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&a.push(";"),a}function W(e,t,n){let i=e.getNode(),{kind:s}=i,a=i.value||i,o=[];return s&&"init"!==s&&"method"!==s&&"constructor"!==s?(r.ok("get"===s||"set"===s),o.push(s," ")):a.async&&o.push("async "),a.generator&&o.push("*"),o.push($(e,t,n),i.optional||i.key.optional?"?":""),i===a?o.push(z(e,t,n)):"FunctionExpression"===a.type?o.push(e.call((e=>z(e,t,n)),"value")):o.push(n("value")),o}function z(e,t,r){let n=e.getNode(),i=M(e,r,t),s=Y(e,r,t),a=R(n,s),o=[U(e,t,r),l([a?l(i):i,s])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function K(e,t,r,i){let s=[];if(e.getValue().async&&s.push("async "),G(e,t))s.push(r(["params",0]));else{let n=i&&(i.expandLastArg||i.expandFirstArg),a=Y(e,r,t);if(n){if(y(a))throw new g;a=l(m(a))}s.push(l([M(e,r,t,n,!0),a]))}let o=n(e,t,!0,(e=>{let r=a(t.originalText,e,L);return!1!==r&&"=>"===t.originalText.slice(r,r+2)}));return o&&s.push(" ",o),s}function H(e,t,r,n,i,s){let a=e.getName(),d=e.getParentNode(),m=N(d)&&"callee"===a,y=Boolean(t&&t.assignmentLayout),g="BlockStatement"!==s.body.type&&"ObjectExpression"!==s.body.type&&"SequenceExpression"!==s.body.type,b=m&&g||t&&"chain-tail-arrow-chain"===t.assignmentLayout,v=Symbol("arrow-chain");return"SequenceExpression"===s.body.type&&(i=l(["(",c([u,i]),u,")"])),l([l(c([m||y?u:"",l(h([" =>",o],r),{shouldBreak:n})]),{id:v,shouldBreak:b})," =>",f(g?c([o,i]):[" ",i],{groupId:v}),m?p(u,"",{groupId:v}):""])}function J(e,t,r,n){let s=e.getValue(),a=[],d=[],h=!1;if(function o(){let u=K(e,t,r,n);if(0===a.length)a.push(u);else{let{leading:r,trailing:n}=i(e,t);a.push([r,u]),d.unshift(n)}h=h||s.returnType&&b(s).length>0||s.typeParameters||b(s).some((e=>"Identifier"!==e.type)),"ArrowFunctionExpression"!==s.body.type||n&&n.expandLastArg?d.unshift(r("body",n)):(s=s.body,e.call(o,"body"))}(),a.length>1)return H(e,n,a,h,d,s);let f=a;if(f.push(" =>"),!v(t.originalText,s.body)&&("ArrayExpression"===s.body.type||"ObjectExpression"===s.body.type||"BlockStatement"===s.body.type||S(s.body)||D(s.body,t.originalText)||"ArrowFunctionExpression"===s.body.type||"DoExpression"===s.body.type))return l([...f," ",d]);if("SequenceExpression"===s.body.type)return l([...f,l([" (",c([u,d]),u,")"])]);let m=(n&&n.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!k(s),y=n&&n.expandLastArg&&T(t,"all"),g="ConditionalExpression"===s.body.type&&!C(s.body,(e=>"ObjectExpression"===e.type));return l([...f,l([c([o,g?p("","("):"",d,g?p("",")"):""]),m?[p(y?",":""),u]:""])])}function X(e){let t=b(e);return!(1!==t.length||e.typeParameters||k(e,F.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||k(t[0])||t[0].optional||e.predicate||e.returnType)}function G(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&X(e.getValue())}function Y(e,t,r){let n=e.getValue(),i=t("returnType");if(n.returnType&&E(r.originalText,n.returnType))return[" /*: ",i," */"];let s=[i];return n.returnType&&n.returnType.typeAnnotation&&s.unshift(": "),n.predicate&&s.push(n.returnType?" ":": ",t("predicate")),s}function Q(e,t,r){let i=e.getValue(),a=t.semi?";":"",o=[];i.argument&&(te(t,i.argument)?o.push([" (",c([d,r("argument")]),d,")"]):P(i.argument)||"SequenceExpression"===i.argument.type?o.push(l([p(" ("," "),c([u,r("argument")]),u,p(")")])):o.push(" ",r("argument")));let h=I(i),f=s(h),m=f&&w(f);return m&&o.push(a),k(i,F.Dangling)&&o.push(" ",n(e,t,!0)),m||o.push(a),o}function Z(e,t,r){return["return",Q(e,t,r)]}function ee(e,t,r){return["throw",Q(e,t,r)]}function te(e,t){if(v(e.originalText,t))return!0;if(B(t)){let r,n=t;for(;r=j(n);)if(n=r,v(e.originalText,n))return!0}return!1}t.exports={printFunction:q,printArrowFunction:J,printMethod:W,printReturnStatement:Z,printThrowStatement:ee,printMethodInternal:z,shouldPrintParamsWithoutParens:G}}}),Yr=m({"src/language-js/print/decorators.js"(e,t){x();var{isNonEmptyArray:r,hasNewline:n}=pe(),{builders:{line:i,hardline:s,join:a,breakParent:o,group:u}}=V(),{locStart:l,locEnd:c}=It(),{getParentExportDeclaration:p}=Qt();function d(e,t,r){let n=e.getValue();return u([a(i,e.map(r,"decorators")),m(n,t)?s:i])}function h(e,t,r){return[a(s,e.map(r,"declaration","decorators")),s]}function f(e,t,n){let u=e.getValue(),{decorators:l}=u;if(!r(l)||y(e.getParentNode()))return;let c="ClassExpression"===u.type||"ClassDeclaration"===u.type||m(u,t);return[p(e)?s:c?o:"",a(i,e.map(n,"decorators")),i]}function m(e,t){return e.decorators.some((e=>n(t.originalText,c(e))))}function y(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let t=e.declaration&&e.declaration.decorators;return r(t)&&l(e)===l(t[0])}t.exports={printDecorators:f,printClassMemberDecorators:d,printDecoratorsBeforeExport:h,hasDecoratorsBeforeExport:y}}}),Qr=m({"src/language-js/print/class.js"(e,t){x();var{isNonEmptyArray:r,createGroupIdMapper:n}=pe(),{printComments:i,printDanglingComments:s}=Mt(),{builders:{join:a,line:o,hardline:u,softline:l,group:c,indent:p,ifBreak:d}}=V(),{hasComment:h,CommentCheckFlags:f}=Qt(),{getTypeParametersGroupId:m}=Jr(),{printMethod:y}=Gr(),{printOptionalToken:g,printTypeAnnotation:b,printDefiniteToken:v}=Rr(),{printPropertyKey:E}=Xr(),{printAssignment:S}=zr(),{printClassMemberDecorators:D}=Yr();function T(e,t,n){let s=e.getValue(),a=[];s.declare&&a.push("declare "),s.abstract&&a.push("abstract "),a.push("class");let u=s.id&&h(s.id,f.Trailing)||s.typeParameters&&h(s.typeParameters,f.Trailing)||s.superClass&&h(s.superClass)||r(s.extends)||r(s.mixins)||r(s.implements),l=[],d=[];if(s.id&&l.push(" ",n("id")),l.push(n("typeParameters")),s.superClass){let r=[I(e,t,n),n("superTypeParameters")],s=e.call((e=>["extends ",i(e,r,t)]),"superClass");u?d.push(o,c(s)):d.push(" ",s)}else d.push(k(e,t,n,"extends"));if(d.push(k(e,t,n,"mixins"),k(e,t,n,"implements")),u){let e;e=w(s)?[...l,p(d)]:p([...l,d]),a.push(c(e,{id:C(s)}))}else a.push(...l,...d);return a.push(" ",n("body")),a}var C=n("heritageGroup");function A(e){return d(u,"",{groupId:C(e)})}function P(e){return["superClass","extends","mixins","implements"].filter((t=>Boolean(e[t]))).length>1}function w(e){return e.typeParameters&&!h(e.typeParameters,f.Trailing|f.Line)&&!P(e)}function k(e,t,n,i){let l=e.getValue();if(!r(l[i]))return"";let h=s(e,t,!0,(e=>{let{marker:t}=e;return t===i}));return[w(l)?d(" ",o,{groupId:m(l.typeParameters)}):o,h,h&&u,i,c(p([o,a([",",o],e.map(n,i))]))]}function I(e,t,r){let n=r("superClass");return"AssignmentExpression"===e.getParentNode().type?c(d(["(",p([l,n]),l,")"],n)):n}function F(e,t,n){let i=e.getValue(),s=[];return r(i.decorators)&&s.push(D(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.readonly&&s.push("readonly "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),s.push(y(e,t,n)),s}function N(e,t,n){let i=e.getValue(),s=[],a=t.semi?";":"";return r(i.decorators)&&s.push(D(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractPropertyDefinition"===i.type||"TSAbstractAccessorProperty"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),i.readonly&&s.push("readonly "),i.variance&&s.push(n("variance")),("ClassAccessorProperty"===i.type||"AccessorProperty"===i.type||"TSAbstractAccessorProperty"===i.type)&&s.push("accessor "),s.push(E(e,t,n),g(e),v(e),b(e,t,n)),[S(e,t,n,s," =","value"),a]}t.exports={printClass:T,printClassMethod:F,printClassProperty:N,printHardlineAfterHeritage:A}}}),Zr=m({"src/language-js/print/interface.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{join:n,line:i,group:s,indent:a,ifBreak:o}}=V(),{hasComment:u,identity:l,CommentCheckFlags:c}=Qt(),{getTypeParametersGroupId:p}=Jr(),{printTypeScriptModifiers:d}=Rr();function h(e,t,h){let f=e.getValue(),m=[];f.declare&&m.push("declare "),"TSInterfaceDeclaration"===f.type&&m.push(f.abstract?"abstract ":"",d(e,t,h)),m.push("interface");let y=[],g=[];"InterfaceTypeAnnotation"!==f.type&&y.push(" ",h("id"),h("typeParameters"));let b=f.typeParameters&&!u(f.typeParameters,c.Trailing|c.Line);return r(f.extends)&&g.push(b?o(" ",i,{groupId:p(f.typeParameters)}):i,"extends ",(1===f.extends.length?l:a)(n([",",i],e.map(h,"extends")))),f.id&&u(f.id,c.Trailing)||r(f.extends)?b?m.push(s([...y,a(g)])):m.push(s(a([...y,...g]))):m.push(...y,...g),m.push(" ",h("body")),s(m)}t.exports={printInterface:h}}}),en=m({"src/language-js/print/module.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{softline:n,group:i,indent:s,join:a,line:o,ifBreak:u,hardline:l}}=V(),{printDanglingComments:c}=Mt(),{hasComment:p,CommentCheckFlags:d,shouldPrintComma:h,needsHardlineAfterDanglingComment:f,isStringLiteral:m,rawText:y}=Qt(),{locStart:g,hasSameLoc:b}=It(),{hasDecoratorsBeforeExport:v,printDecoratorsBeforeExport:E}=Yr();function S(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{importKind:a}=n;return s.push("import"),a&&"value"!==a&&s.push(" ",a),s.push(P(e,t,r),A(e,t,r),k(e,t,r),i),s}function D(e,t,r){let n=e.getValue(),i=[];v(n)&&i.push(E(e,t,r));let{type:s,exportKind:a,declaration:o}=n;return i.push("export"),(n.default||"ExportDefaultDeclaration"===s)&&i.push(" default"),p(n,d.Dangling)&&(i.push(" ",c(e,t,!0)),f(n)&&i.push(l)),o?i.push(" ",r("declaration")):i.push("type"===a?" type":"",P(e,t,r),A(e,t,r),k(e,t,r)),C(n,t)&&i.push(";"),i}function T(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{exportKind:a,exported:o}=n;return s.push("export"),"type"===a&&s.push(" type"),s.push(" *"),o&&s.push(" as ",r("exported")),s.push(A(e,t,r),k(e,t,r),i),s}function C(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,i=e.default||"ExportDefaultDeclaration"===r;if(!n)return!0;let{type:s}=n;return!(!i||"ClassDeclaration"===s||"FunctionDeclaration"===s||"TSInterfaceDeclaration"===s||"DeclareClass"===s||"DeclareFunction"===s||"TSDeclareFunction"===s||"EnumDeclaration"===s)}function A(e,t,r){let n=e.getValue();if(!n.source)return"";let i=[];return w(n,t)||i.push(" from"),i.push(" ",r("source")),i}function P(e,t,l){let c=e.getValue();if(w(c,t))return"";let d=[" "];if(r(c.specifiers)){let r=[],f=[];e.each((()=>{let t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)r.push(l());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error(`Unknown specifier type ${JSON.stringify(t)}`);f.push(l())}}),"specifiers"),d.push(a(", ",r)),f.length>0&&(r.length>0&&d.push(", "),f.length>1||r.length>0||c.specifiers.some((e=>p(e)))?d.push(i(["{",s([t.bracketSpacing?o:n,a([",",o],f)]),u(h(t)?",":""),t.bracketSpacing?o:n,"}"])):d.push(["{",t.bracketSpacing?" ":"",...f,t.bracketSpacing?" ":"","}"]))}else d.push("{}");return d}function w(e,t){let{type:n,importKind:i,source:s,specifiers:a}=e;return"ImportDeclaration"===n&&!r(a)&&"type"!==i&&!/{\s*}/.test(t.originalText.slice(g(e),g(s)))}function k(e,t,n){let i=e.getNode();return r(i.assertions)?[" assert {",t.bracketSpacing?" ":"",a(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}function I(e,t,r){let n=e.getNode(),{type:i}=n,s=[],a="ImportSpecifier"===i?n.importKind:n.exportKind;a&&"value"!==a&&s.push(a," ");let o=i.startsWith("Import"),u=o?"imported":"local",l=o?"local":"exported",c=n[u],p=n[l],d="",h="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?d="*":c&&(d=r(u)),p&&!F(n)&&(h=r(l)),s.push(d,d&&h?" as ":"",h),s}function F(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:r}=e;return!(t.type!==r.type||!b(t,r))&&(m(t)?t.value===r.value&&y(t)===y(r):"Identifier"===t.type&&t.name===r.name)}t.exports={printImportDeclaration:S,printExportDeclaration:D,printExportAllDeclaration:T,printModuleSpecifier:I}}}),tn=m({"src/language-js/print/object.js"(e,t){x();var{printDanglingComments:r}=Mt(),{builders:{line:n,softline:i,group:s,indent:a,ifBreak:o,hardline:u}}=V(),{getLast:l,hasNewlineInRange:c,hasNewline:p,isNonEmptyArray:d}=pe(),{shouldPrintComma:h,hasComment:f,getComments:m,CommentCheckFlags:y,isNextLineEmpty:g}=Qt(),{locStart:b,locEnd:v}=It(),{printOptionalToken:E,printTypeAnnotation:S}=Rr(),{shouldHugFunctionParameters:D}=Kr(),{shouldHugType:T}=Hr(),{printHardlineAfterHeritage:C}=Qr();function A(e,t,x){let A,P=t.semi?";":"",w=e.getValue();A="TSTypeLiteral"===w.type?"members":"TSInterfaceBody"===w.type?"body":"properties";let k="ObjectTypeAnnotation"===w.type,I=[A];k&&I.push("indexers","callProperties","internalSlots");let F=I.map((e=>w[e][0])).sort(((e,t)=>b(e)-b(t)))[0],N=e.getParentNode(0),_=k&&N&&("InterfaceDeclaration"===N.type||"DeclareInterface"===N.type||"DeclareClass"===N.type)&&"body"===e.getName(),O="TSInterfaceBody"===w.type||_||"ObjectPattern"===w.type&&"FunctionDeclaration"!==N.type&&"FunctionExpression"!==N.type&&"ArrowFunctionExpression"!==N.type&&"ObjectMethod"!==N.type&&"ClassMethod"!==N.type&&"ClassPrivateMethod"!==N.type&&"AssignmentPattern"!==N.type&&"CatchClause"!==N.type&&w.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==w.type&&F&&c(t.originalText,b(w),b(F)),B=_?";":"TSInterfaceBody"===w.type||"TSTypeLiteral"===w.type?o(P,";"):",",j="RecordExpression"===w.type?"#{":w.exact?"{|":"{",L=w.exact?"|}":"}",M=[];for(let t of I)e.each((e=>{let t=e.getValue();M.push({node:t,printed:x(),loc:b(t)})}),t);I.length>1&&M.sort(((e,t)=>e.loc-t.loc));let R=[],$=M.map((e=>{let r=[...R,s(e.printed)];return R=[B,n],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&f(e.node,y.PrettierIgnore)&&R.shift(),g(e.node,t)&&R.push(u),r}));if(w.inexact){let i;if(f(w,y.Dangling)){let s=f(w,y.Line);i=[r(e,t,!0),s||p(t.originalText,v(l(m(w))))?u:n,"..."]}else i=["..."];$.push([...R,...i])}let U,V=l(w[A]),q=!(w.inexact||V&&"RestElement"===V.type||V&&("TSPropertySignature"===V.type||"TSCallSignatureDeclaration"===V.type||"TSMethodSignature"===V.type||"TSConstructSignatureDeclaration"===V.type)&&f(V,y.PrettierIgnore));if(0===$.length){if(!f(w,y.Dangling))return[j,L,S(e,t,x)];U=s([j,r(e,t),i,L,E(e),S(e,t,x)])}else U=[_&&d(w.properties)?C(N):"",j,a([t.bracketSpacing?n:i,...$]),o(q&&(","!==B||h(t))?B:""),t.bracketSpacing?n:i,L,E(e),S(e,t,x)];return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,r)=>D(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r))||e.match(T,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,r)=>D(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r))||!O&&e.match((e=>"ObjectPattern"===e.type),(e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type))?U:s(U,{shouldBreak:O})}t.exports={printObject:A}}}),rn=m({"src/language-js/print/flow.js"(e,t){x();var r=Lt(),{printDanglingComments:n}=Mt(),{printString:i,printNumber:s}=pe(),{builders:{hardline:a,softline:o,group:u,indent:l}}=V(),{getParentExportDeclaration:c,isFunctionNotation:p,isGetterOrSetter:d,rawText:h,shouldPrintComma:f}=Qt(),{locStart:m,locEnd:y}=It(),{replaceTextEndOfLine:g}=R(),{printClass:b}=Qr(),{printOpaqueType:v,printTypeAlias:E,printIntersectionType:S,printUnionType:D,printFunctionType:T,printTupleType:C,printIndexedAccessType:A}=Hr(),{printInterface:P}=Zr(),{printTypeParameter:w,printTypeParameters:k}=Jr(),{printExportDeclaration:I,printExportAllDeclaration:F}=en(),{printArrayItems:N}=$r(),{printObject:_}=tn(),{printPropertyKey:O}=Xr(),{printOptionalToken:B,printTypeAnnotation:j,printRestSpread:L}=Rr();function M(e,t,c){let x=e.getValue(),M=t.semi?";":"",R=[];switch(x.type){case"DeclareClass":return $(e,b(e,t,c));case"DeclareFunction":return $(e,["function ",c("id"),x.predicate?" ":"",c("predicate"),M]);case"DeclareModule":return $(e,["module ",c("id")," ",c("body")]);case"DeclareModuleExports":return $(e,["module.exports",": ",c("typeAnnotation"),M]);case"DeclareVariable":return $(e,["var ",c("id"),M]);case"DeclareOpaqueType":return $(e,v(e,t,c));case"DeclareInterface":return $(e,P(e,t,c));case"DeclareTypeAlias":return $(e,E(e,t,c));case"DeclareExportDeclaration":return $(e,I(e,t,c));case"DeclareExportAllDeclaration":return $(e,F(e,t,c));case"OpaqueType":return v(e,t,c);case"TypeAlias":return E(e,t,c);case"IntersectionTypeAnnotation":return S(e,t,c);case"UnionTypeAnnotation":return D(e,t,c);case"FunctionTypeAnnotation":return T(e,t,c);case"TupleTypeAnnotation":return C(e,t,c);case"GenericTypeAnnotation":return[c("id"),k(e,t,c,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return A(e,t,c);case"TypeAnnotation":return c("typeAnnotation");case"TypeParameter":return w(e,t,c);case"TypeofTypeAnnotation":return["typeof ",c("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[c("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(x.value);case"EnumDeclaration":return["enum ",c("id")," ",c("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===x.type||x.explicitType){let e=null;switch(x.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}R.push("of ",e," ")}if(0!==x.members.length||x.hasUnknownMembers){let r=x.members.length>0?[a,N(e,t,"members",c),x.hasUnknownMembers||f(t)?",":""]:[];R.push(u(["{",l([...r,...x.hasUnknownMembers?[a,"..."]:[]]),n(e,t,!0),a,"}"]))}else R.push(u(["{",n(e,t),o,"}"]));return R;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[c("id")," = ","object"==typeof x.init?c("init"):String(x.init)];case"EnumDefaultedMember":return c("id");case"FunctionTypeParam":{let t=x.name?c("name"):e.getParentNode().this===x?"this":"";return[t,B(e),t?": ":"",c("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return P(e,t,c);case"ClassImplements":case"InterfaceExtends":return[c("id"),c("typeParameters")];case"NullableTypeAnnotation":return["?",c("typeAnnotation")];case"Variance":{let{kind:e}=x;return r.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return x.static&&R.push("static "),R.push(c("value")),R;case"ObjectTypeIndexer":return[x.static?"static ":"",x.variance?c("variance"):"","[",c("id"),x.id?": ":"",c("key"),"]: ",c("value")];case"ObjectTypeProperty":{let r="";return x.proto?r="proto ":x.static&&(r="static "),[r,d(x)?x.kind+" ":"",x.variance?c("variance"):"",O(e,t,c),B(e),p(x)?"":": ",c("value")]}case"ObjectTypeAnnotation":return _(e,t,c);case"ObjectTypeInternalSlot":return[x.static?"static ":"","[[",c("id"),"]]",B(e),x.method?"":": ",c("value")];case"ObjectTypeSpreadProperty":return L(e,t,c);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[c("qualification"),".",c("id")];case"StringLiteralTypeAnnotation":return g(i(h(x),t));case"NumberLiteralTypeAnnotation":r.strictEqual(typeof x.value,"number");case"BigIntLiteralTypeAnnotation":return x.extra?s(x.extra.raw):s(x.raw);case"TypeCastExpression":return["(",c("expression"),j(e,t,c),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let r=k(e,t,c,"params");if("flow"===t.parser){let e=m(x),n=y(x),i=t.originalText.lastIndexOf("/*",e),s=t.originalText.indexOf("*/",n);if(-1!==i&&-1!==s){let e=t.originalText.slice(i+2,s).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",r," */"]}}return r}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",c("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(x.type))}}function $(e,t){let n=c(e);return n?(r.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:M}}}),nn=m({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function r(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}x(),t.exports=r}}),sn=m({"src/language-js/print/ternary.js"(e,t){x();var{hasNewlineInRange:r}=pe(),{isJsxNode:n,getComments:i,isCallExpression:s,isMemberExpression:a,isTSTypeExpression:o}=Qt(),{locStart:u,locEnd:l}=It(),c=Gt(),{builders:{line:p,softline:d,group:h,indent:f,align:m,ifBreak:y,dedent:g,breakParent:b}}=V();function v(e){let t=[e];for(let e=0;e<t.length;e++){let r=t[e];for(let e of["test","consequent","alternate"]){let i=r[e];if(n(i))return!0;"ConditionalExpression"===i.type&&t.push(i)}}return!1}function E(e,t,r){let n=e.getValue(),i="ConditionalExpression"===n.type,s=i?"alternate":"falseType",a=e.getParentNode(),o=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return a.type===n.type&&a[s]===n?m(2,o):o}var S=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function D(e){let t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let r,n=t;for(let t=0;!r;t++){let i=e.getParentNode(t);s(i)&&i.callee===n||a(i)&&i.object===n||"TSNonNullExpression"===i.type&&i.expression===n?n=i:"NewExpression"===i.type&&i.callee===n||o(i)&&i.expression===n?(r=e.getParentNode(t+1),n=i):r=i}return n!==t&&r[S.get(r.type)]===n}function T(e,t,s){let o,x,S=e.getValue(),T="ConditionalExpression"===S.type,C=T?"consequent":"trueType",A=T?"alternate":"falseType",P=T?["test"]:["checkType","extendsType"],w=S[C],k=S[A],I=[],F=!1,N=e.getParentNode(),_=N.type===S.type&&P.some((e=>N[e]===S)),O=N.type===S.type&&!_,B=0;do{x=o||S,o=e.getParentNode(B),B++}while(o&&o.type===S.type&&P.every((e=>o[e]!==x)));let j=o||N,L=x;if(T&&(n(S[P[0]])||n(w)||n(k)||v(L))){F=!0,O=!0;let e=e=>[y("("),f([d,e]),d,y(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;I.push(" ? ",t(w)?s(C):e(s(C))," : ",k.type===S.type||t(k)?s(A):e(s(A)))}else{let e=[p,"? ",w.type===S.type?y("","("):"",m(2,s(C)),w.type===S.type?y("",")"):"",p,": ",k.type===S.type?s(A):m(2,s(A))];I.push(N.type!==S.type||N[A]===S||_?e:t.useTabs?g(f(e)):m(Math.max(0,t.tabWidth-2),e))}let M=[...P.map((e=>i(S[e]))),i(w),i(k)].flat().some((e=>c(e)&&r(t.originalText,u(e),l(e)))),R=e=>N===j?h(e,{shouldBreak:M}):M?[e,b]:e,$=!F&&(a(N)||"NGPipeExpression"===N.type&&N.left===S)&&!N.computed,U=D(e),V=R([E(e,t,s),O?I:f(I),T&&$&&!U?d:""]);return _||U?h([f([d,V]),d]):V}t.exports={printTernary:T}}}),an=m({"src/language-js/print/statement.js"(e,t){x();var{builders:{hardline:r}}=V(),n=_r(),{getLeftSidePathName:i,hasNakedLeftSide:s,isJsxNode:a,isTheOnlyJsxElementInMarkdown:o,hasComment:u,CommentCheckFlags:l,isNextLineEmpty:c}=Qt(),{shouldPrintParamsWithoutParens:p}=Gr();function d(e,t,n,i){let s=e.getValue(),a=[],p="ClassBody"===s.type,d=h(s[i]);return e.each(((e,i,s)=>{let h=e.getValue();if("EmptyStatement"===h.type)return;let m=n();t.semi||p||o(t,e)||!f(e,t)?a.push(m):u(h,l.Leading)?a.push(n([],{needsSemi:!0})):a.push(";",m),!t.semi&&p&&b(h)&&v(h,s[i+1])&&a.push(";"),h!==d&&(a.push(r),c(h,t)&&a.push(r))}),i),a}function h(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if("EmptyStatement"!==r.type)return r}}function f(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>m(e,t)),"expression")}function m(e,t){let r=e.getValue();switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!p(e,t))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=r;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(a(r))return!0}return!!n(e,t)||!!s(r)&&e.call((e=>m(e,t)),...i(e,r))}function y(e,t,r){return d(e,t,r,"body")}function g(e,t,r){return d(e,t,r,"consequent")}var b=e=>{let{type:t}=e;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t||"AccessorProperty"===t||"TSAbstractPropertyDefinition"===t||"TSAbstractAccessorProperty"===t};function v(e,t){let{type:r,name:n}=e.key;if(!(e.computed||"Identifier"!==r||"static"!==n&&"get"!==n&&"set"!==n&&"accessor"!==n||e.value||e.typeAnnotation))return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(b(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}t.exports={printBody:y,printSwitchCaseConsequent:g}}}),on=m({"src/language-js/print/block.js"(e,t){x();var{printDanglingComments:r}=Mt(),{isNonEmptyArray:n}=pe(),{builders:{hardline:i,indent:s}}=V(),{hasComment:a,CommentCheckFlags:o,isNextLineEmpty:u}=Qt(),{printHardlineAfterHeritage:l}=Qr(),{printBody:c}=an();function p(e,t,r){let a=e.getValue(),o=[];if("StaticBlock"===a.type&&o.push("static "),"ClassBody"===a.type&&n(a.body)){let t=e.getParentNode();o.push(l(t))}o.push("{");let u=d(e,t,r);if(u)o.push(s([i,u]),i);else{let t=e.getParentNode(),r=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&&!r.finalizer||"TSModuleDeclaration"===t.type||"TSDeclareFunction"===t.type||"StaticBlock"===a.type||"ClassBody"===a.type||o.push(i)}return o.push("}"),o}function d(e,t,s){let l=e.getValue(),p=n(l.directives),d=l.body.some((e=>"EmptyStatement"!==e.type)),h=a(l,o.Dangling);if(!p&&!d&&!h)return"";let f=[];if(p&&e.each(((e,r,n)=>{f.push(s()),(r<n.length-1||d||h)&&(f.push(i),u(e.getValue(),t)&&f.push(i))}),"directives"),d&&f.push(c(e,t,s)),h&&f.push(r(e,t,!0)),"Program"===l.type){let t=e.getParentNode();(!t||"ModuleExpression"!==t.type)&&f.push(i)}return f}t.exports={printBlock:p,printBlockBody:d}}}),un=m({"src/language-js/print/typescript.js"(e,t){x();var{printDanglingComments:r}=Mt(),{hasNewlineInRange:n}=pe(),{builders:{join:i,line:s,hardline:a,softline:o,group:u,indent:l,conditionalGroup:c,ifBreak:p}}=V(),{isStringLiteral:d,getTypeScriptMappedTypeModifier:h,shouldPrintComma:f,isCallExpression:m,isMemberExpression:y}=Qt(),g=nn(),{locStart:b,locEnd:v}=It(),{printOptionalToken:E,printTypeScriptModifiers:S}=Rr(),{printTernary:D}=sn(),{printFunctionParameters:T,shouldGroupFunctionParameters:C}=Kr(),{printTemplateLiteral:A}=Zt(),{printArrayItems:P}=$r(),{printObject:w}=tn(),{printClassProperty:k,printClassMethod:I}=Qr(),{printTypeParameter:F,printTypeParameters:N}=Jr(),{printPropertyKey:_}=Xr(),{printFunction:O,printMethodInternal:B}=Gr(),{printInterface:j}=Zr(),{printBlock:L}=on(),{printTypeAlias:M,printIntersectionType:R,printUnionType:$,printFunctionType:U,printTupleType:q,printIndexedAccessType:W,printJSDocType:z}=Hr();function K(e,t,x){let V=e.getValue();if(!V.type.startsWith("TS"))return;if(g(V))return V.type.slice(2,-7).toLowerCase();let K=t.semi?";":"",H=[];switch(V.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!("ArrayExpression"===V.expression.type||"ObjectExpression"===V.expression.type),t=u(["<",l([o,x("typeAnnotation")]),o,">"]),r=[p("("),l([o,x("expression")]),o,p(")")];return e?c([[t,x("expression")],[t,u(r,{shouldBreak:!0})],[t,x("expression")]]):u([t,x("expression")])}case"TSDeclareFunction":return O(e,x,t);case"TSExportAssignment":return["export = ",x("expression"),K];case"TSModuleBlock":return L(e,t,x);case"TSInterfaceBody":case"TSTypeLiteral":return w(e,t,x);case"TSTypeAliasDeclaration":return M(e,t,x);case"TSQualifiedName":return i(".",[x("left"),x("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return I(e,t,x);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return k(e,t,x);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return H.push(x("expression")),V.typeParameters&&H.push(x("typeParameters")),H;case"TSTemplateLiteralType":return A(e,x,t);case"TSNamedTupleMember":return[x("label"),V.optional?"?":"",": ",x("elementType")];case"TSRestType":return["...",x("typeAnnotation")];case"TSOptionalType":return[x("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return j(e,t,x);case"TSClassImplements":case"TSInstantiationExpression":return[x("expression"),x("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return N(e,t,x,"params");case"TSTypeParameter":return F(e,t,x);case"TSSatisfiesExpression":case"TSAsExpression":{let t="TSAsExpression"===V.type?"as":"satisfies";H.push(x("expression"),` ${t} `,x("typeAnnotation"));let r=e.getParentNode();return m(r)&&r.callee===V||y(r)&&r.object===V?u([l([o,...H]),o]):H}case"TSArrayType":return[x("elementType"),"[]"];case"TSPropertySignature":return V.readonly&&H.push("readonly "),H.push(_(e,t,x),E(e)),V.typeAnnotation&&H.push(": ",x("typeAnnotation")),V.initializer&&H.push(" = ",x("initializer")),H;case"TSParameterProperty":return V.accessibility&&H.push(V.accessibility+" "),V.export&&H.push("export "),V.static&&H.push("static "),V.override&&H.push("override "),V.readonly&&H.push("readonly "),H.push(x("parameter")),H;case"TSTypeQuery":return["typeof ",x("exprName"),x("typeParameters")];case"TSIndexSignature":{let r=e.getParentNode(),n=V.parameters.length>1?p(f(t)?",":""):"",s=u([l([o,i([", ",o],e.map(x,"parameters"))]),n,o]);return[V.export?"export ":"",V.accessibility?[V.accessibility," "]:"",V.static?"static ":"",V.readonly?"readonly ":"",V.declare?"declare ":"","[",V.parameters?s:"",V.typeAnnotation?"]: ":"]",V.typeAnnotation?x("typeAnnotation"):"","ClassBody"===r.type?K:""]}case"TSTypePredicate":return[V.asserts?"asserts ":"",x("parameterName"),V.typeAnnotation?[" is ",x("typeAnnotation")]:""];case"TSNonNullExpression":return[x("expression"),"!"];case"TSImportType":return[V.isTypeOf?"typeof ":"","import(",x(V.parameter?"parameter":"argument"),")",V.qualifier?[".",x("qualifier")]:"",N(e,t,x,"typeParameters")];case"TSLiteralType":return x("literal");case"TSIndexedAccessType":return W(e,t,x);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===V.type&&V.abstract&&H.push("abstract "),"TSCallSignatureDeclaration"!==V.type&&H.push("new "),H.push(u(T(e,x,t,!1,!0))),V.returnType||V.typeAnnotation){let e="TSConstructorType"===V.type;H.push(e?" => ":": ",x("returnType"),x("typeAnnotation"))}return H;case"TSTypeOperator":return[V.operator," ",x("typeAnnotation")];case"TSMappedType":{let i=n(t.originalText,b(V),v(V));return u(["{",l([t.bracketSpacing?s:o,x("typeParameter"),V.optional?h(V.optional,"?"):"",V.typeAnnotation?": ":"",x("typeAnnotation"),p(K)]),r(e,t,!0),t.bracketSpacing?s:o,"}"],{shouldBreak:i})}case"TSMethodSignature":{let r=V.kind&&"method"!==V.kind?`${V.kind} `:"";H.push(V.accessibility?[V.accessibility," "]:"",r,V.export?"export ":"",V.static?"static ":"",V.readonly?"readonly ":"",V.abstract?"abstract ":"",V.declare?"declare ":"",V.computed?"[":"",x("key"),V.computed?"]":"",E(e));let n=T(e,x,t,!1,!0),i=V.returnType?"returnType":"typeAnnotation",s=V[i],a=s?x(i):"",o=C(V,a);return H.push(o?u(n):n),s&&H.push(": ",u(a)),u(H)}case"TSNamespaceExportDeclaration":return H.push("export as namespace ",x("id")),t.semi&&H.push(";"),u(H);case"TSEnumDeclaration":return V.declare&&H.push("declare "),V.modifiers&&H.push(S(e,t,x)),V.const&&H.push("const "),H.push("enum ",x("id")," "),0===V.members.length?H.push(u(["{",r(e,t),o,"}"])):H.push(u(["{",l([a,P(e,t,"members",x),f(t,"es5")?",":""]),r(e,t,!0),a,"}"])),H;case"TSEnumMember":return V.computed?H.push("[",x("id"),"]"):H.push(x("id")),V.initializer&&H.push(" = ",x("initializer")),H;case"TSImportEqualsDeclaration":return V.isExport&&H.push("export "),H.push("import "),V.importKind&&"value"!==V.importKind&&H.push(V.importKind," "),H.push(x("id")," = ",x("moduleReference")),t.semi&&H.push(";"),u(H);case"TSExternalModuleReference":return["require(",x("expression"),")"];case"TSModuleDeclaration":{let r=e.getParentNode(),n=d(V.id),i="TSModuleDeclaration"===r.type,s=V.body&&"TSModuleDeclaration"===V.body.type;if(i)H.push(".");else{V.declare&&H.push("declare "),H.push(S(e,t,x));let r=t.originalText.slice(b(V),b(V.id));"Identifier"===V.id.type&&"global"===V.id.name&&!/namespace|module/.test(r)||H.push(n||/(?:^|\s)module(?:\s|$)/.test(r)?"module ":"namespace ")}return H.push(x("id")),s?H.push(x("body")):V.body?H.push(" ",u(x("body"))):H.push(K),H}case"TSConditionalType":return D(e,t,x);case"TSInferType":return["infer"," ",x("typeParameter")];case"TSIntersectionType":return R(e,t,x);case"TSUnionType":return $(e,t,x);case"TSFunctionType":return U(e,t,x);case"TSTupleType":return q(e,t,x);case"TSTypeReference":return[x("typeName"),N(e,t,x,"typeParameters")];case"TSTypeAnnotation":return x("typeAnnotation");case"TSEmptyBodyFunctionExpression":return B(e,t,x);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return z(e,x,"?");case"TSJSDocNonNullableType":return z(e,x,"!");default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(V.type)}.`)}}t.exports={printTypescript:K}}}),ln=m({"src/language-js/print/comment.js"(e,t){x();var{hasNewline:r}=pe(),{builders:{join:n,hardline:i},utils:{replaceTextEndOfLine:s}}=V(),{isLineComment:a}=Qt(),{locStart:o,locEnd:u}=It(),l=Gt();function c(e,t){let n=e.getValue();if(a(n))return t.originalText.slice(o(n),u(n)).trimEnd();if(l(n)){if(p(n)){let e=d(n);return n.trailing&&!r(t.originalText,o(n),{backwards:!0})?[i,e]:e}let e=u(n),a="*-/"===t.originalText.slice(e-3,e);return["/*",s(n.value),a?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(n))}function p(e){let t=`*${e.value}*`.split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}function d(e){let t=e.value.split("\n");return["/*",n(i,t.map(((e,r)=>0===r?e.trimEnd():" "+(r<t.length-1?e.trim():e.trimStart())))),"*/"]}t.exports={printComment:c}}}),cn=m({"src/language-js/print/literal.js"(e,t){x();var{printString:r,printNumber:n}=pe(),{replaceTextEndOfLine:i}=R(),{printDirective:s}=Rr();function a(e,t){let a=e.getNode();switch(a.type){case"RegExpLiteral":return l(a);case"BigIntLiteral":return u(a.bigint||a.extra.raw);case"NumericLiteral":return n(a.extra.raw);case"StringLiteral":return i(r(a.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(a.value);case"DecimalLiteral":return n(a.value)+"m";case"Literal":{if(a.regex)return l(a.regex);if(a.bigint)return u(a.raw);if(a.decimal)return n(a.decimal)+"m";let{value:c}=a;return"number"==typeof c?n(a.raw):"string"==typeof c?o(e)?s(a.raw,t):i(r(a.raw,t)):String(c)}}}function o(e){if("expression"!==e.getName())return;let t=e.getParentNode();return"ExpressionStatement"===t.type&&t.directive}function u(e){return e.toLowerCase()}function l(e){let{pattern:t,flags:r}=e;return r=[...r].sort().join(""),`/${t}/${r}`}t.exports={printLiteral:a}}}),pn=m({"src/language-js/printer-estree.js"(e,t){x();var{printDanglingComments:r}=Mt(),{hasNewline:n}=pe(),{builders:{join:i,line:s,hardline:a,softline:o,group:u,indent:l},utils:{replaceTextEndOfLine:c}}=V(),p=ir(),d=sr(),{insertPragma:h}=Ir(),f=Nr(),m=_r(),y=Or(),{hasFlowShorthandAnnotationComment:g,hasComment:b,CommentCheckFlags:v,isTheOnlyJsxElementInMarkdown:E,isLineComment:S,isNextLineEmpty:D,needsHardlineAfterDanglingComment:T,hasIgnoreComment:C,isCallExpression:A,isMemberExpression:P,markerForIfWithoutBlockAndSameLineComment:w}=Qt(),{locStart:k,locEnd:I}=It(),F=Gt(),{printHtmlBinding:N,isVueEventBindingExpression:_}=Br(),{printAngular:O}=Lr(),{printJsx:B,hasJsxIgnoreComment:j}=Mr(),{printFlow:L}=rn(),{printTypescript:M}=un(),{printOptionalToken:R,printBindExpressionCallee:$,printTypeAnnotation:U,adjustClause:q,printRestSpread:W,printDefiniteToken:z,printDirective:K}=Rr(),{printImportDeclaration:H,printExportDeclaration:J,printExportAllDeclaration:X,printModuleSpecifier:G}=en(),{printTernary:Y}=sn(),{printTemplateLiteral:Q}=Zt(),{printArray:Z}=$r(),{printObject:ee}=tn(),{printClass:te,printClassMethod:re,printClassProperty:ne}=Qr(),{printProperty:ie}=Xr(),{printFunction:se,printArrowFunction:ae,printMethod:oe,printReturnStatement:ue,printThrowStatement:le}=Gr(),{printCallExpression:ce}=Wr(),{printVariableDeclarator:de,printAssignmentExpression:he}=zr(),{printBinaryishExpression:fe}=jr(),{printSwitchCaseConsequent:me}=an(),{printMemberExpression:ye}=Vr(),{printBlock:ge,printBlockBody:be}=on(),{printComment:ve}=ln(),{printLiteral:xe}=cn(),{printDecorators:Ee}=Yr();function Se(e,t,r,n){let i=De(e,t,r,n);if(!i)return"";let a=e.getValue(),{type:o}=a;if("ClassMethod"===o||"ClassPrivateMethod"===o||"ClassProperty"===o||"ClassAccessorProperty"===o||"AccessorProperty"===o||"TSAbstractAccessorProperty"===o||"PropertyDefinition"===o||"TSAbstractPropertyDefinition"===o||"ClassPrivateProperty"===o||"MethodDefinition"===o||"TSAbstractMethodDefinition"===o||"TSDeclareMethod"===o)return i;let c=[i],p=Ee(e,t,r),d="ClassExpression"===a.type&&p;if(p&&(c=[...p,i],!d))return u(c);if(!m(e,t))return n&&n.needsSemi&&c.unshift(";"),1===c.length&&c[0]===i?i:c;if(d&&(c=[l([s,...c])]),c.unshift("("),n&&n.needsSemi&&c.unshift(";"),g(a)){let[e]=a.trailingComments;c.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return d&&c.push(s),c.push(")"),c}function De(e,t,p,d){let h=e.getValue(),f=t.semi?";":"";if(!h)return"";if("string"==typeof h)return h;for(let r of[xe,N,O,B,L,M]){let n=r(e,t,p);if(typeof n<"u")return n}let m=[];switch(h.type){case"JsExpressionRoot":return p("node");case"JsonRoot":return[p("node"),a];case"File":return h.program&&h.program.interpreter&&m.push(p(["program","interpreter"])),m.push(p("program")),m;case"Program":return be(e,t,p);case"EmptyStatement":return"";case"ExpressionStatement":{if("__vue_event_binding"===t.parser||"__vue_ts_event_binding"===t.parser){let t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===h)return[p("expression"),_(h.expression)?";":""]}let n=r(e,t,!0,(e=>{let{marker:t}=e;return t===w}));return[p("expression"),E(t,e)?"":f,n?[" ",n]:""]}case"ParenthesizedExpression":return b(h.expression)||"ObjectExpression"!==h.expression.type&&"ArrayExpression"!==h.expression.type?u(["(",l([o,p("expression")]),o,")"]):["(",p("expression"),")"];case"AssignmentExpression":return he(e,t,p);case"VariableDeclarator":return de(e,t,p);case"BinaryExpression":case"LogicalExpression":return fe(e,t,p);case"AssignmentPattern":return[p("left")," = ",p("right")];case"OptionalMemberExpression":case"MemberExpression":return ye(e,t,p);case"MetaProperty":return[p("meta"),".",p("property")];case"BindExpression":return h.object&&m.push(p("object")),m.push(u(l([o,$(e,t,p)]))),m;case"Identifier":return[h.name,R(e),z(e),U(e,t,p)];case"V8IntrinsicIdentifier":return["%",h.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return W(e,t,p);case"FunctionDeclaration":case"FunctionExpression":return se(e,p,t,d);case"ArrowFunctionExpression":return ae(e,t,p,d);case"YieldExpression":return m.push("yield"),h.delegate&&m.push("*"),h.argument&&m.push(" ",p("argument")),m;case"AwaitExpression":if(m.push("await"),h.argument){m.push(" ",p("argument"));let t=e.getParentNode();if(A(t)&&t.callee===h||P(t)&&t.object===h){m=[l([o,...m]),o];let t=e.findAncestor((e=>"AwaitExpression"===e.type||"BlockStatement"===e.type));if(!t||"AwaitExpression"!==t.type)return u(m)}}return m;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return J(e,t,p);case"ExportAllDeclaration":return X(e,t,p);case"ImportDeclaration":return H(e,t,p);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return G(e,t,p);case"ImportAttribute":return[p("key"),": ",p("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ge(e,t,p);case"ThrowStatement":return le(e,t,p);case"ReturnStatement":return ue(e,t,p);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ce(e,t,p);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ee(e,t,p);case"ObjectProperty":case"Property":return h.method||"get"===h.kind||"set"===h.kind?oe(e,t,p):ie(e,t,p);case"ObjectMethod":return oe(e,t,p);case"Decorator":return["@",p("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Z(e,t,p);case"SequenceExpression":{let t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each(((e,r)=>{0===r?t.push(p()):t.push(",",l([s,p()]))}),"expressions"),u(t)}return u(i([",",s],e.map(p,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[p("value"),f];case"DirectiveLiteral":return K(h.extra.raw,t);case"UnaryExpression":return m.push(h.operator),/[a-z]$/.test(h.operator)&&m.push(" "),b(h.argument)?m.push(u(["(",l([o,p("argument")]),o,")"])):m.push(p("argument")),m;case"UpdateExpression":return m.push(p("argument"),h.operator),h.prefix&&m.reverse(),m;case"ConditionalExpression":return Y(e,t,p);case"VariableDeclaration":{let t,r=e.map(p,"declarations"),n=e.getParentNode(),i="ForStatement"===n.type||"ForInStatement"===n.type||"ForOfStatement"===n.type,o=h.declarations.some((e=>e.init));return 1!==r.length||b(h.declarations[0])?r.length>0&&(t=l(r[0])):t=r[0],m=[h.declare?"declare ":"",h.kind,t?[" ",t]:"",l(r.slice(1).map((e=>[",",o&&!i?a:s,e])))],i&&n.body!==h||m.push(f),u(m)}case"WithStatement":return u(["with (",p("object"),")",q(h.body,p("body"))]);case"IfStatement":{let n=q(h.consequent,p("consequent")),i=u(["if (",u([l([o,p("test")]),o]),")",n]);if(m.push(i),h.alternate){let n=b(h.consequent,v.Trailing|v.Line)||T(h),i="BlockStatement"===h.consequent.type&&!n;m.push(i?" ":a),b(h,v.Dangling)&&m.push(r(e,t,!0),n?a:" "),m.push("else",u(q(h.alternate,p("alternate"),"IfStatement"===h.alternate.type)))}return m}case"ForStatement":{let n=q(h.body,p("body")),i=r(e,t,!0),a=i?[i,o]:"";return h.init||h.test||h.update?[a,u(["for (",u([l([o,p("init"),";",s,p("test"),";",s,p("update")]),o]),")",n])]:[a,u(["for (;;)",n])]}case"WhileStatement":return u(["while (",u([l([o,p("test")]),o]),")",q(h.body,p("body"))]);case"ForInStatement":return u(["for (",p("left")," in ",p("right"),")",q(h.body,p("body"))]);case"ForOfStatement":return u(["for",h.await?" await":""," (",p("left")," of ",p("right"),")",q(h.body,p("body"))]);case"DoWhileStatement":{let e=q(h.body,p("body"));return m=[u(["do",e])],"BlockStatement"===h.body.type?m.push(" "):m.push(a),m.push("while (",u([l([o,p("test")]),o]),")",f),m}case"DoExpression":return[h.async?"async ":"","do ",p("body")];case"BreakStatement":return m.push("break"),h.label&&m.push(" ",p("label")),m.push(f),m;case"ContinueStatement":return m.push("continue"),h.label&&m.push(" ",p("label")),m.push(f),m;case"LabeledStatement":return"EmptyStatement"===h.body.type?[p("label"),":;"]:[p("label"),": ",p("body")];case"TryStatement":return["try ",p("block"),h.handler?[" ",p("handler")]:"",h.finalizer?[" finally ",p("finalizer")]:""];case"CatchClause":if(h.param){let e=b(h.param,(e=>!F(e)||e.leading&&n(t.originalText,I(e))||e.trailing&&n(t.originalText,k(e),{backwards:!0}))),r=p("param");return["catch ",e?["(",l([o,r]),o,") "]:["(",r,") "],p("body")]}return["catch ",p("body")];case"SwitchStatement":return[u(["switch (",l([o,p("discriminant")]),o,")"])," {",h.cases.length>0?l([a,i(a,e.map(((e,r,n)=>{let i=e.getValue();return[p(),r!==n.length-1&&D(i,t)?a:""]}),"cases"))]):"",a,"}"];case"SwitchCase":{h.test?m.push("case ",p("test"),":"):m.push("default:"),b(h,v.Dangling)&&m.push(" ",r(e,t,!0));let n=h.consequent.filter((e=>"EmptyStatement"!==e.type));if(n.length>0){let r=me(e,t,p);m.push(1===n.length&&"BlockStatement"===n[0].type?[" ",r]:l([a,r]))}return m}case"DebuggerStatement":return["debugger",f];case"ClassDeclaration":case"ClassExpression":return te(e,t,p);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return re(e,t,p);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return ne(e,t,p);case"TemplateElement":return c(h.value.raw);case"TemplateLiteral":return Q(e,p,t);case"TaggedTemplateExpression":return[p("tag"),p("typeParameters"),p("quasi")];case"PrivateIdentifier":return["#",p("name")];case"PrivateName":return["#",p("id")];case"InterpreterDirective":return m.push("#!",h.value,a),D(h,t)&&m.push(a),m;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{m.push("module {");let e=p("body");return e&&m.push(l([a,e]),a),m.push("}"),m}default:throw new Error("unknown type: "+JSON.stringify(h.type))}}function Te(e){return e.type&&!F(e)&&!S(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type}t.exports={preprocess:y,print:Se,embed:p,insertPragma:h,massageAstNode:d,hasPrettierIgnore:e=>C(e)||j(e),willPrintOwnComments:f.willPrintOwnComments,canAttachComment:Te,printComment:ve,isBlockComment:F,handleComments:{avoidAstMutation:!0,ownLine:f.handleOwnLineComment,endOfLine:f.handleEndOfLineComment,remaining:f.handleRemainingComment},getCommentChildNodes:f.getCommentChildNodes}}}),dn=m({"src/language-js/printer-estree-json.js"(e,t){x();var{builders:{hardline:r,indent:n,join:i}}=V(),s=Or();function a(e,t,s){let a=e.getValue();switch(a.type){case"JsonRoot":return[s("node"),r];case"ArrayExpression":{if(0===a.elements.length)return"[]";let t=e.map((()=>null===e.getValue()?"null":s()),"elements");return["[",n([r,i([",",r],t)]),r,"]"]}case"ObjectExpression":return 0===a.properties.length?"{}":["{",n([r,i([",",r],e.map(s,"properties"))]),r,"}"];case"ObjectProperty":return[s("key"),": ",s("value")];case"UnaryExpression":return["+"===a.operator?"":a.operator,s("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return a.value?"true":"false";case"StringLiteral":return JSON.stringify(a.value);case"NumericLiteral":return o(e)?JSON.stringify(String(a.value)):JSON.stringify(a.value);case"Identifier":return o(e)?JSON.stringify(a.name):a.name;case"TemplateLiteral":return s(["quasis",0]);case"TemplateElement":return JSON.stringify(a.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(a.type))}}function o(e){return"key"===e.getName()&&"ObjectProperty"===e.getParentNode().type}var u=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function l(e,t){let{type:r}=e;if("ObjectProperty"!==r){if("UnaryExpression"===r&&"+"===e.operator)return t.argument;if("ArrayExpression"!==r)return"TemplateLiteral"===r?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(let[r,n]of e.elements.entries())null===n&&t.elements.splice(r,0,{type:"NullLiteral"})}else{let{key:r}=e;"Identifier"===r.type?t.key={type:"StringLiteral",value:r.name}:"NumericLiteral"===r.type&&(t.key={type:"StringLiteral",value:String(r.value)})}}l.ignoredProperties=u,t.exports={preprocess:s,print:a,massageAstNode:l}}}),hn=m({"src/common/common-options.js"(e,t){x();var r="Common";t.exports={bracketSpacing:{since:"0.0.0",category:r,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:r,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:r,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:r,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:r,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),fn=m({"src/language-js/options.js"(e,t){x();var r=hn(),n="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:n,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:r.bracketSameLine,bracketSpacing:r.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:n,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:n,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:r.singleQuote,jsxSingleQuote:{since:"1.15.0",category:n,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:n,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:n,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:r.singleAttributePerLine}}}),mn=m({"src/language-js/parse/parsers.js"(){x()}}),yn=m({"node_modules/linguist-languages/data/JavaScript.json"(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),gn=m({"node_modules/linguist-languages/data/TypeScript.json"(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),bn=m({"node_modules/linguist-languages/data/TSX.json"(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),vn=m({"node_modules/linguist-languages/data/JSON.json"(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),xn=m({"node_modules/linguist-languages/data/JSON with Comments.json"(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),En=m({"node_modules/linguist-languages/data/JSON5.json"(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Sn=m({"src/language-js/index.js"(e,t){x();var r=zt(),n=pn(),i=dn(),s=fn(),a=mn(),o=[r(yn(),(e=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter((e=>".jsx"!==e)),".wxs"]}))),r(yn(),(()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),r(yn(),(()=>({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}))),r(gn(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),r(bn(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),r(vn(),(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]}))),r(vn(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((e=>".jsonl"!==e))}))),r(xn(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc",".swcrc"]}))),r(En(),(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))],u={estree:n,"estree-json":i};t.exports={languages:o,options:s,printers:u,parsers:a}}}),Dn=m({"src/language-css/clean.js"(e,t){x();var{isFrontMatterNode:r}=pe(),n=A(),i=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function s(e,t,i){if(r(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===i.type&&i.nodes.length>0&&((i.nodes[0]===e||r(i.nodes[0])&&i.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===i.type&&n(i.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&t.value&&(t.value=a(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,((e,t,r)=>{let n=Number(t);return Number.isNaN(n)?e:n+r.toLowerCase()}))),"selector-tag"===e.type){let r=e.value.toLowerCase();["from","to"].includes(r)&&(t.value=r)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let r=e.groups.findIndex((e=>"value-number"===e.type&&"..."===e.unit));-1!==r&&(t.groups[r].unit="",t.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some((e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]")))?{type:"value-atword",value:e.groups.map((e=>e.value)).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}function a(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}s.ignoredProperties=i,t.exports=s}}),Tn=m({"src/utils/front-matter/print.js"(e,t){x();var{builders:{hardline:r,markAsRoot:n}}=V();function i(e,t){if("yaml"===e.lang){let i=e.value.trim(),s=i?t(i,{parser:"yaml"},{stripTrailingHardline:!0}):"";return n([e.startDelimiter,r,s,s?r:"",e.endDelimiter])}}t.exports=i}}),Cn=m({"src/language-css/embed.js"(e,t){x();var{builders:{hardline:r}}=V(),n=Tn();function i(e,t,i){let s=e.getValue();if("front-matter"===s.type){let e=n(s,i);return e?[e,r]:""}}t.exports=i}}),An=m({"src/utils/front-matter/parse.js"(e,t){x();var r=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function n(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:i,value:s="",endDelimiter:a}=t.groups,o=i.trim()||"yaml";if("+++"===n&&(o="toml"),"yaml"!==o&&n!==a)return{content:e};let[u]=t;return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:n,endDelimiter:a,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+e.slice(u.length)}}t.exports=n}}),Pn=m({"src/language-css/pragma.js"(e,t){x();var r=Ir(),n=An();function i(e){return r.hasPragma(n(e).content)}function s(e){let{frontMatter:t,content:i}=n(e);return(t?t.raw+"\n\n":"")+r.insertPragma(i)}t.exports={hasPragma:i,insertPragma:s}}}),wn=m({"src/language-css/utils/index.js"(e,t){x();var r=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 n(e,t){let r,n=Array.isArray(t)?t:[t],i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function i(e,t){let r=n(e,t);return-1===r?null:e.getParentNode(r)}function s(e){var t;let r=i(e,"css-decl");return null==r||null===(t=r.prop)||void 0===t?void 0:t.toLowerCase()}var a=new Set(["initial","inherit","unset","revert"]);function o(e){return a.has(e.toLowerCase())}function u(e,t){let r=i(e,"css-atrule");return(null==r?void 0:r.name)&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function l(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function c(e,t){var r;let n=i(e,"value-func");return(null==n||null===(r=n.value)||void 0===r?void 0:r.toLowerCase())===t}function p(e){var t;let r=i(e,"css-rule"),n=null==r||null===(t=r.raws)||void 0===t?void 0:t.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function d(e,t){let r=Array.isArray(t)?t:[t],n=i(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())}function h(e){let t=e.getValue(),r=i(e,"css-atrule");return"import"===(null==r?void 0:r.name)&&"url"===t.groups[0].value&&2===t.groups.length}function f(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}function m(e,t){var r;let n=null===(r=e.getParentNode())||void 0===r?void 0:r.nodes;return n&&n.indexOf(t)===n.length-1}function y(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))}function g(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function b(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function v(e){return"value-word"===e.type&&"in"===e.value}function E(e){return"value-operator"===e.type&&"*"===e.value}function S(e){return"value-operator"===e.type&&"/"===e.value}function D(e){return"value-operator"===e.type&&"+"===e.value}function T(e){return"value-operator"===e.type&&"-"===e.value}function C(e){return"value-operator"===e.type&&"%"===e.value}function A(e){return E(e)||S(e)||D(e)||T(e)||C(e)}function P(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function w(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function k(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function I(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function F(e){return e.name.startsWith("prettier-placeholder")}function N(e){return e.prop.startsWith("@prettier-placeholder")}function _(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function O(e){var t,r;return"value-root"===(null===(t=e.value)||void 0===t?void 0:t.type)&&"value-value"===(null===(r=e.value.group)||void 0===r?void 0:r.type)&&"composes"===e.prop.toLowerCase()}function B(e){var t,r,n;return"value-paren_group"===(null===(t=e.value)||void 0===t||null===(r=t.group)||void 0===r||null===(n=r.group)||void 0===n?void 0:n.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function j(e){var t;return""===(null===(t=e.raws)||void 0===t?void 0:t.before)}function L(e){var t,r;return"value-comma_group"===e.type&&"value-colon"===(null===(t=e.groups)||void 0===t||null===(r=t[1])||void 0===r?void 0:r.type)}function M(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&L(e.groups[0])}function R(e){var t;let r=e.getValue();if(0===r.groups.length)return!1;let n=e.getParentNode(1);if(!(M(r)||n&&M(n)))return!1;let s=i(e,"css-decl");return!!(null!=s&&null!==(t=s.prop)&&void 0!==t&&t.startsWith("$")||M(n)||"value-func"===n.type)}function $(e){return"value-comment"===e.type&&e.inline}function U(e){return"value-word"===e.type&&"#"===e.value}function V(e){return"value-word"===e.type&&"{"===e.value}function q(e){return"value-word"===e.type&&"}"===e.value}function W(e){return["value-word","value-atword"].includes(e.type)}function z(e){return"value-colon"===(null==e?void 0:e.type)}function K(e,t){if(!L(t))return!1;let{groups:r}=t,n=r.indexOf(e);return-1!==n&&z(r[n+1])}function H(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function J(e){return"value-func"===e.type&&r.has(e.value.toLowerCase())}function X(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function G(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function Y(e,t){var r,n;if("("!==(null===(r=e.open)||void 0===r?void 0:r.value)||")"!==(null===(n=e.close)||void 0===n?void 0:n.value)||e.groups.some((e=>"value-comma_group"!==e.type)))return!1;if("value-comma_group"===t.type){let r=t.groups.indexOf(e)-1,n=t.groups[r];if("value-word"===(null==n?void 0:n.type)&&"with"===n.value)return!0}return!1}function Q(e){var t,r;return"value-paren_group"===e.type&&"("===(null===(t=e.open)||void 0===t?void 0:t.value)&&")"===(null===(r=e.close)||void 0===r?void 0:r.value)}t.exports={getAncestorCounter:n,getAncestorNode:i,getPropOfDeclNode:s,maybeToLowerCase:l,insideValueFunctionNode:c,insideICSSRuleNode:p,insideAtRuleNode:d,insideURLFunctionInImportAtRuleNode:h,isKeyframeAtRuleKeywords:u,isWideKeywords:o,isLastNode:m,isSCSSControlDirectiveNode:k,isDetachedRulesetDeclarationNode:y,isRelationalOperatorNode:w,isEqualityOperatorNode:P,isMultiplicationNode:E,isDivisionNode:S,isAdditionNode:D,isSubtractionNode:T,isModuloNode:C,isMathOperatorNode:A,isEachKeywordNode:v,isForKeywordNode:g,isURLFunctionNode:f,isIfElseKeywordNode:b,hasComposesNode:O,hasParensAroundNode:B,hasEmptyRawBefore:j,isDetachedRulesetCallNode:I,isTemplatePlaceholderNode:F,isTemplatePropNode:N,isPostcssSimpleVarNode:_,isKeyValuePairNode:L,isKeyValuePairInParenGroupNode:M,isKeyInValuePairNode:K,isSCSSMapItemNode:R,isInlineValueCommentNode:$,isHashNode:U,isLeftCurlyBraceNode:V,isRightCurlyBraceNode:q,isWordNode:W,isColonNode:z,isMediaAndSupportsKeywords:H,isColorAdjusterFuncNode:J,lastLineHasInlineComment:X,isAtWordPlaceholderNode:G,isConfigurationNode:Y,isParenGroupNode:Q}}}),kn=m({"src/utils/line-column-to-index.js"(e,t){x(),t.exports=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf("\n",r)+1;return r+e.column}}}),In=m({"src/language-css/loc.js"(e,t){x();var{skipEverythingButNewLine:r}=ae(),n=A(),i=kn();function s(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?i(e.source.start,t)-1:null}function a(e,t){if("css-comment"===e.type&&e.inline)return r(t,e.source.startOffset);let s=e.nodes&&n(e.nodes);return s&&e.source&&!e.source.end&&(e=s),e.source&&e.source.end?i(e.source.end,t):null}function o(e,t){e.source&&(e.source.startOffset=s(e,t),e.source.endOffset=a(e,t));for(let r in e){let n=e[r];"source"===r||!n||"object"!=typeof n||("value-root"===n.type||"value-unknown"===n.type?u(n,l(e),n.text||n.value):o(n,t))}}function u(e,t,r){e.source&&(e.source.startOffset=s(e,r)+t,e.source.endOffset=a(e,r)+t);for(let n in e){let i=e[n];"source"===n||!i||"object"!=typeof i||u(i,t,r)}}function l(e){let t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}function c(e){let t,r="initial",n="initial",i=!1,s=[];for(let a=0;a<e.length;a++){let o=e[a];switch(r){case"initial":if("'"===o){r="single-quotes";continue}if('"'===o){r="double-quotes";continue}if(("u"===o||"U"===o)&&"url("===e.slice(a,a+4).toLowerCase()){r="url",a+=3;continue}if("*"===o&&"/"===e[a-1]){r="comment-block";continue}if("/"===o&&"/"===e[a-1]){r="comment-inline",t=a-1;continue}continue;case"single-quotes":if("'"===o&&"\\"!==e[a-1]&&(r=n,n="initial"),"\n"===o||"\r"===o)return e;continue;case"double-quotes":if('"'===o&&"\\"!==e[a-1]&&(r=n,n="initial"),"\n"===o||"\r"===o)return e;continue;case"url":if(")"===o&&(r="initial"),"\n"===o||"\r"===o)return e;if("'"===o){r="single-quotes",n="url";continue}if('"'===o){r="double-quotes",n="url";continue}continue;case"comment-block":"/"===o&&"*"===e[a-1]&&(r="initial");continue;case"comment-inline":('"'===o||"'"===o||"*"===o)&&(i=!0),("\n"===o||"\r"===o)&&(i&&s.push([t,a]),r="initial",i=!1);continue}}for(let[t,r]of s)e=e.slice(0,t)+e.slice(t,r).replace(/["'*]/g," ")+e.slice(r);return e}function p(e){return e.source.startOffset}function d(e){return e.source.endOffset}t.exports={locStart:p,locEnd:d,calculateLoc:o,replaceQuotesInInlineComments:c}}}),Fn=m({"src/language-css/utils/is-less-parser.js"(e,t){function r(e){return"css"===e.parser||"less"===e.parser}x(),t.exports=r}}),Nn=m({"src/language-css/utils/is-scss.js"(e,t){function r(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)}x(),t.exports=r}}),_n=m({"src/language-css/utils/css-units.evaluate.js"(e,t){t.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),On=m({"src/language-css/utils/print-unit.js"(e,t){x();var r=_n();function n(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:e}t.exports=n}}),Bn=m({"src/language-css/printer-postcss.js"(e,t){x();var r=A(),{printNumber:n,printString:i,hasNewline:s,isFrontMatterNode:a,isNextLineEmpty:o,isNonEmptyArray:u}=pe(),{builders:{join:l,line:c,hardline:p,softline:d,group:h,fill:f,indent:m,dedent:y,ifBreak:g,breakParent:b},utils:{removeLines:v,getDocParts:E}}=V(),S=Dn(),D=Cn(),{insertPragma:T}=Pn(),{getAncestorNode:C,getPropOfDeclNode:P,maybeToLowerCase:w,insideValueFunctionNode:k,insideICSSRuleNode:I,insideAtRuleNode:F,insideURLFunctionInImportAtRuleNode:N,isKeyframeAtRuleKeywords:_,isWideKeywords:O,isLastNode:B,isSCSSControlDirectiveNode:j,isDetachedRulesetDeclarationNode:L,isRelationalOperatorNode:M,isEqualityOperatorNode:R,isMultiplicationNode:$,isDivisionNode:U,isAdditionNode:q,isSubtractionNode:W,isMathOperatorNode:z,isEachKeywordNode:K,isForKeywordNode:H,isURLFunctionNode:J,isIfElseKeywordNode:X,hasComposesNode:G,hasParensAroundNode:Y,hasEmptyRawBefore:Q,isKeyValuePairNode:Z,isKeyInValuePairNode:ee,isDetachedRulesetCallNode:te,isTemplatePlaceholderNode:re,isTemplatePropNode:ne,isPostcssSimpleVarNode:ie,isSCSSMapItemNode:se,isInlineValueCommentNode:ae,isHashNode:oe,isLeftCurlyBraceNode:ue,isRightCurlyBraceNode:le,isWordNode:ce,isColonNode:de,isMediaAndSupportsKeywords:he,isColorAdjusterFuncNode:fe,lastLineHasInlineComment:me,isAtWordPlaceholderNode:ye,isConfigurationNode:ge,isParenGroupNode:be}=wn(),{locStart:ve,locEnd:xe}=In(),Ee=Fn(),Se=Nn(),De=On();function Te(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function Ce(e,t,n){let s=e.getValue();if(!s)return"";if("string"==typeof s)return s;switch(s.type){case"front-matter":return[s.raw,p];case"css-root":{let r=Ae(e,t,n),i=s.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r,i?` ${i}`:"",E(r).length>0?p:""]}case"css-comment":{let e=s.inline||s.raws.inline,r=t.originalText.slice(ve(s),xe(s));return e?r.trimEnd():r}case"css-rule":return[n("selector"),s.important?" !important":"",s.nodes?[s.selector&&"selector-unknown"===s.selector.type&&me(s.selector.value)?c:" ","{",s.nodes.length>0?m([p,Ae(e,t,n)]):"",p,"}",L(s)?";":""]:";"];case"css-decl":{let r=e.getParentNode(),{between:i}=s.raws,a=i.trim(),o=":"===a,u=G(s)?v(n("value")):n("value");return!o&&me(a)&&(u=m([p,y(u)])),[s.raws.before.replace(/[\s;]/g,""),"css-atrule"===r.type&&r.variable||I(e)?s.prop:w(s.prop),a.startsWith("//")?" ":"",a,s.extend?"":" ",Ee(t)&&s.extend&&s.selector?["extend(",n("selector"),")"]:"",u,s.raws.important?s.raws.important.replace(/\s*!\s*important/i," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/i," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/i," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",m([d,Ae(e,t,n)]),d,"}"]:ne(s)&&!r.raws.semicolon&&";"!==t.originalText[xe(s)-1]?"":t.__isHTMLStyleAttribute&&B(e,s)?g(";"):";"]}case"css-atrule":{let r=e.getParentNode(),i=re(s)&&!r.raws.semicolon&&";"!==t.originalText[xe(s)-1];if(Ee(t)){if(s.mixin)return[n("selector"),s.important?" !important":"",i?"":";"];if(s.function)return[s.name,n("params"),i?"":";"];if(s.variable)return["@",s.name,": ",s.value?n("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",m([s.nodes.length>0?d:"",Ae(e,t,n)]),d,"}"]:"",i?"":";"]}return["@",te(s)||s.name.endsWith(":")?s.name:w(s.name),s.params?[te(s)?"":re(s)?""===s.raws.afterName?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(s.raws.afterName)?[p,p]:/^\s*\n/.test(s.raws.afterName)?p:" ":" ",n("params")]:"",s.selector?m([" ",n("selector")]):"",s.value?h([" ",n("value"),j(s)?Y(s)?" ":c:""]):"else"===s.name?" ":"",s.nodes?[j(s)?"":s.selector&&!s.selector.nodes&&"string"==typeof s.selector.value&&me(s.selector.value)||!s.selector&&"string"==typeof s.params&&me(s.params)?c:" ","{",m([s.nodes.length>0?d:"",Ae(e,t,n)]),d,"}"]:i?"":";"]}case"media-query-list":{let t=[];return e.each((e=>{let r=e.getValue();"media-query"===r.type&&""===r.value||t.push(n())}),"nodes"),h(m(l(c,t)))}case"media-query":return[l(" ",e.map(n,"nodes")),B(e,s)?"":","];case"media-type":case"media-value":return Oe(Ne(s.value,t));case"media-feature-expression":return s.nodes?["(",...e.map(n,"nodes"),")"]:s.value;case"media-feature":return w(Ne(s.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[s.value," "];case"media-keyword":case"selector-string":return Ne(s.value,t);case"media-url":return Ne(s.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return s.value;case"selector-root":return h([F(e,"custom-selector")?[C(e,"css-atrule").customSelector,c]:"",l([",",F(e,["extend","custom-selector","nest"])?c:p],e.map(n,"nodes"))]);case"selector-selector":return h(m(e.map(n,"nodes")));case"selector-tag":{let t=e.getParentNode(),r=t&&t.nodes.indexOf(s),n=r&&t.nodes[r-1];return[s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"","selector-nesting"===n.type?s.value:Oe(_(e,s.value)?s.value.toLowerCase():s.value)]}case"selector-id":return["#",s.value];case"selector-class":return[".",Oe(Ne(s.value,t))];case"selector-attribute":var a;return["[",s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),null!==(a=s.operator)&&void 0!==a?a:"",s.value?_e(Ne(s.value.trim(),t),t):"",s.insensitive?" i":"","]"];case"selector-combinator":if("+"===s.value||">"===s.value||"~"===s.value||">>>"===s.value){let t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===s?"":c,s.value,B(e,s)?"":" "]}return[s.value.trim().startsWith("(")?c:"",Oe(Ne(s.value.trim(),t))||c];case"selector-universal":return[s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[w(s.value),u(s.nodes)?h(["(",m([d,l([",",c],e.map(n,"nodes"))]),d,")"]):""];case"selector-unknown":{let r=C(e,"css-rule");if(r&&r.isSCSSNesterProperty)return Oe(Ne(w(s.value),t));let n=e.getParentNode();if(n.raws&&n.raws.selector){let e=ve(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let i=e.getParentNode(1);if("value-paren_group"===n.type&&i&&"value-func"===i.type&&"selector"===i.value){let e=xe(n.open)+1,r=ve(n.close),i=t.originalText.slice(e,r).trim();return me(i)?[b,i]:i}return s.value}case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(ve(s),xe(s));case"value-comma_group":{let r=e.getParentNode(),i=e.getParentNode(1),a=P(e),o=a&&"value-value"===r.type&&("grid"===a||a.startsWith("grid-template")),u=C(e,"css-atrule"),l=u&&j(u),g=s.groups.some((e=>ae(e))),v=e.map(n,"groups"),E=[],S=k(e,"url"),D=!1,T=!1;for(let n=0;n<s.groups.length;++n){var x;E.push(v[n]);let a=s.groups[n-1],h=s.groups[n],f=s.groups[n+1],m=s.groups[n+2];if(S){(f&&q(f)||q(h))&&E.push(" ");continue}if(F(e,"forward")&&"value-word"===h.type&&h.value&&void 0!==a&&"value-word"===a.type&&"as"===a.value&&"value-operator"===f.type&&"*"===f.value||!f||"value-word"===h.type&&h.value.endsWith("-")&&ye(f))continue;if("value-string"===h.type&&h.quoted){let e=h.value.lastIndexOf("#{"),t=h.value.lastIndexOf("}");-1!==e&&-1!==t?D=e>t:-1!==e?D=!0:-1!==t&&(D=!1)}if(D||de(h)||de(f)||"value-atword"===h.type&&(""===h.value||h.value.endsWith("["))||"value-word"===f.type&&f.value.startsWith("]")||"~"===h.value||h.value&&h.value.includes("\\")&&f&&"value-comment"!==f.type||a&&a.value&&a.value.indexOf("\\")===a.value.length-1&&"value-operator"===h.type&&"/"===h.value||"\\"===h.value||ie(h,f)||oe(h)||ue(h)||le(f)||ue(f)&&Q(f)||le(h)&&Q(f)||"--"===h.value&&oe(f))continue;let g=z(h),b=z(f);if((g&&oe(f)||b&&le(h))&&Q(f)||!a&&U(h)||k(e,"calc")&&(q(h)||q(f)||W(h)||W(f))&&Q(f))continue;let C=(q(h)||W(h))&&0===n&&("value-number"===f.type||f.isHex)&&i&&fe(i)&&!Q(f),A=m&&"value-func"===m.type||m&&ce(m)||"value-func"===h.type||ce(h),P="value-func"===f.type||ce(f)||a&&"value-func"===a.type||a&&ce(a);if(($(f)||$(h)||k(e,"calc")||C||!(U(f)&&!A||U(h)&&!P||q(f)&&!A||q(h)&&!P||W(f)||W(h))||!(Q(f)||g&&(!a||a&&z(a))))&&("scss"!==t.parser&&"less"!==t.parser||!g||"-"!==h.value||!be(f)||xe(h)!==ve(f.open)||"("!==f.open.value)){if(ae(h)){if("value-paren_group"===r.type){E.push(y(p));continue}E.push(p);continue}if(l&&(R(f)||M(f)||X(f)||K(h)||H(h))){E.push(" ");continue}if(u&&"namespace"===u.name.toLowerCase()){E.push(" ");continue}if(o){h.source&&f.source&&h.source.start.line!==f.source.start.line?(E.push(p),T=!0):E.push(" ");continue}if(b){E.push(" ");continue}if(!(f&&"..."===f.value||ye(h)&&ye(f)&&xe(h)===ve(f))){if(ye(h)&&be(f)&&xe(h)===ve(f.open)){E.push(d);continue}if("with"===h.value&&be(f)){E.push(" ");continue}null!==(x=h.value)&&void 0!==x&&x.endsWith("#")&&"{"===f.value&&be(f.group)||E.push(c)}}}return g&&E.push(b),T&&E.unshift(p),l?h(m(E)):N(e)?h(f(E)):h(m(f(E)))}case"value-paren_group":{let i=e.getParentNode();if(i&&J(i)&&(1===s.groups.length||s.groups.length>0&&"value-comma_group"===s.groups[0].type&&s.groups[0].groups.length>0&&"value-word"===s.groups[0].groups[0].type&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?n("open"):"",l(",",e.map(n,"groups")),s.close?n("close"):""];if(!s.open){let t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push([",",c]),r.push(t[e]);return h(m(f(r)))}let a=se(e),b=r(s.groups),v=b&&"value-comment"===b.type,x=ee(s,i),S=ge(s,i),D=S||a&&!x,T=S||x,C=h([s.open?n("open"):"",m([d,l([c],e.map(((e,i)=>{let a=e.getValue(),l=i===s.groups.length-1,c=[n(),l?"":","];if(Z(a)&&"value-comma_group"===a.type&&a.groups&&"value-paren_group"!==a.groups[0].type&&a.groups[2]&&"value-paren_group"===a.groups[2].type){let e=E(c[0].contents.contents);e[1]=h(e[1]),c=[h(y(c))]}if(!l&&"value-comma_group"===a.type&&u(a.groups)){let e=r(a.groups);!e.source&&e.close&&(e=e.close),e.source&&o(t.originalText,e,xe)&&c.push(p)}return c}),"groups"))]),g(!v&&Se(t.parser,t.originalText)&&a&&Te(t)?",":""),d,s.close?n("close"):""],{shouldBreak:D});return T?y(C):C}case"value-func":return[s.value,F(e,"supports")&&he(s)?" ":"",n("group")];case"value-number":return[Be(s.value),De(s.unit)];case"value-word":return s.isColor&&s.isHex||O(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let t=e.getParentNode(),n=t&&t.groups.indexOf(s),i=n&&t.groups[n-1];return[s.value,i&&"string"==typeof i.value&&"\\"===r(i.value)||k(e,"url")?"":c]}case"value-string":return i(s.raws.quote+s.value+s.raws.quote,t);case"value-atword":return["@",s.value];default:throw new Error(`Unknown postcss type ${JSON.stringify(s.type)}`)}}function Ae(e,t,r){let n=[];return e.each(((e,i,u)=>{let l=u[i-1];if(l&&"css-comment"===l.type&&"prettier-ignore"===l.text.trim()){let r=e.getValue();n.push(t.originalText.slice(ve(r),xe(r)))}else n.push(r());i!==u.length-1&&("css-comment"===u[i+1].type&&!s(t.originalText,ve(u[i+1]),{backwards:!0})&&!a(u[i])||"css-atrule"===u[i+1].type&&"else"===u[i+1].name&&"css-comment"!==u[i].type?n.push(" "):(n.push(t.__isHTMLStyleAttribute?c:p),o(t.originalText,e.getValue(),xe)&&!a(u[i])&&n.push(p)))}),"nodes"),n}var Pe=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,we=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,ke=/[A-Za-z]+/g,Ie=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Fe=new RegExp(Pe.source+`|(${Ie.source})?(${we.source})(${ke.source})?`,"g");function Ne(e,t){return e.replace(Pe,(e=>i(e,t)))}function _e(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function Oe(e){return e.replace(Fe,((e,t,r,n,i)=>!r&&n?Be(n)+w(i||""):e))}function Be(e){return n(e).replace(/\.0(?=$|e)/,"")}t.exports={print:Ce,embed:D,insertPragma:T,massageAstNode:S}}}),jn=m({"src/language-css/options.js"(e,t){x();var r=hn();t.exports={singleQuote:r.singleQuote}}}),Ln=m({"src/language-css/parsers.js"(){x()}}),Mn=m({"node_modules/linguist-languages/data/CSS.json"(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),Rn=m({"node_modules/linguist-languages/data/PostCSS.json"(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),$n=m({"node_modules/linguist-languages/data/Less.json"(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),Un=m({"node_modules/linguist-languages/data/SCSS.json"(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),Vn=m({"src/language-css/index.js"(e,t){x();var r=zt(),n=Bn(),i=jn(),s=Ln(),a=[r(Mn(),(e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]}))),r(Rn(),(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),r($n(),(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),r(Un(),(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],o={postcss:n};t.exports={languages:a,options:i,printers:o,parsers:s}}}),qn=m({"src/language-handlebars/loc.js"(e,t){function r(e){return e.loc.start.offset}function n(e){return e.loc.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),Wn=m({"src/language-handlebars/clean.js"(e,t){function r(e,t){if("TextNode"===e.type){let r=e.chars.trim();if(!r)return null;t.chars=r.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}x(),r.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=r}}),zn=m({"src/language-handlebars/html-void-elements.evaluate.js"(e,t){t.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),Kn=m({"src/language-handlebars/utils.js"(e,t){x();var r=A(),n=zn();function i(e){let t=e.getValue(),n=e.getParentNode(0);return!!(d(e,["ElementNode"])&&r(n.children)===t||d(e,["Block"])&&r(n.body)===t)}function s(e){return e.toUpperCase()===e}function a(e){return p(e,["ElementNode"])&&"string"==typeof e.tag&&!e.tag.startsWith(":")&&(s(e.tag[0])||e.tag.includes("."))}var o=new Set(n);function u(e){return o.has(e.toLowerCase())&&!s(e[0])}function l(e){return!0===e.selfClosing||u(e.tag)||a(e)&&e.children.every((e=>c(e)))}function c(e){return p(e,["TextNode"])&&!/\S/.test(e.chars)}function p(e,t){return e&&t.includes(e.type)}function d(e,t){return p(e.getParentNode(0),t)}function h(e,t){return p(y(e),t)}function f(e,t){return p(g(e),t)}function m(e,t){var r,n,i,s;let a=e.getValue(),o=null!==(r=e.getParentNode(0))&&void 0!==r?r:{},u=null!==(n=null!==(i=null!==(s=o.children)&&void 0!==s?s:o.body)&&void 0!==i?i:o.parts)&&void 0!==n?n:[],l=u.indexOf(a);return-1!==l&&u[l+t]}function y(e){return m(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function g(e){return m(e,1)}function b(e){return p(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}function v(e){let t=e.getValue(),r=y(e,2);return b(t)||b(r)}t.exports={getNextNode:g,getPreviousNode:y,hasPrettierIgnore:v,isLastNodeOfSiblings:i,isNextNodeOfSomeType:f,isNodeOfSomeType:p,isParentOfSomeType:d,isPreviousNodeOfSomeType:h,isVoid:l,isWhitespaceNode:c}}}),Hn=m({"src/language-handlebars/printer-glimmer.js"(e,t){x();var{builders:{dedent:r,fill:n,group:i,hardline:s,ifBreak:a,indent:o,join:u,line:l,softline:c},utils:{getDocParts:p,replaceTextEndOfLine:d}}=V(),{getPreferredQuote:h,isNonEmptyArray:f}=pe(),{locStart:m,locEnd:y}=qn(),g=Wn(),{getNextNode:b,getPreviousNode:v,hasPrettierIgnore:E,isLastNodeOfSiblings:S,isNextNodeOfSomeType:D,isNodeOfSomeType:T,isParentOfSomeType:C,isPreviousNodeOfSomeType:A,isVoid:P,isWhitespaceNode:w}=Kn(),k=2;function I(e,t,a){let p=e.getValue();if(!p)return"";if(E(e))return t.originalText.slice(m(p),y(p));let f=t.singleQuote?"'":'"';switch(p.type){case"Block":case"Program":case"Template":return i(e.map(a,"body"));case"ElementNode":{let r=i(N(e,a)),n="ignore"===t.htmlWhitespaceSensitivity&&D(e,["ElementNode"])?c:"";if(P(p))return[r,n];let u=["</",p.tag,">"];return 0===p.children.length?[r,o(u),n]:"ignore"===t.htmlWhitespaceSensitivity?[r,o(_(e,t,a)),s,o(u),n]:[r,o(i(_(e,t,a))),o(u),n]}case"BlockStatement":{let r=e.getParentNode(1);return r&&r.inverse&&1===r.inverse.body.length&&r.inverse.body[0]===p&&r.inverse.body[0].path.parts[0]===r.path.parts[0]?[K(e,a,r.inverse.body[0].path.parts[0]),Y(e,a,t),Q(e,a,t)]:[W(e,a),i([Y(e,a,t),Q(e,a,t),H(e,a,t)])]}case"ElementModifierStatement":return i(["{{",le(e,a),"}}"]);case"MustacheStatement":return i([B(p),le(e,a),j(p)]);case"SubExpression":return i(["(",ue(e,a),c,")"]);case"AttrNode":{let e="TextNode"===p.value.type;if(e&&""===p.value.chars&&m(p.value)===y(p.value))return p.name;let t=e?h(p.value.chars,f).quote:"ConcatStatement"===p.value.type?h(p.value.parts.filter((e=>"TextNode"===e.type)).map((e=>e.chars)).join(""),f).quote:"",r=a("value");return[p.name,"=",t,"class"===p.name&&t?i(o(r)):r,t]}case"ConcatStatement":return e.map(a,"parts");case"Hash":return u(l,e.map(a,"pairs"));case"HashPair":return[p.key,"=",a("value")];case"TextNode":{let i=p.chars.replace(/{{/g,"\\{{"),s=te(e);if(s){if("class"===s){let t=i.trim().split(/\s+/).join(" "),r=!1,n=!1;return C(e,["ConcatStatement"])&&(A(e,["MustacheStatement"])&&/^\s/.test(i)&&(r=!0),D(e,["MustacheStatement"])&&/\s$/.test(i)&&""!==t&&(n=!0)),[r?l:"",t,n?l:""]}return d(i)}let a=/^[\t\n\f\r ]*$/.test(i),o=!v(e),u=!b(e);if("ignore"!==t.htmlWhitespaceSensitivity){let t=/^[\t\n\f\r ]*/,s=/[\t\n\f\r ]*$/,c=u&&C(e,["Template"]),p=o&&C(e,["Template"]);if(a){if(p||c)return"";let t=[l],n=re(i);return n&&(t=se(n)),S(e)&&(t=t.map((e=>r(e)))),t}let[d]=i.match(t),[h]=i.match(s),f=[];if(d){f=[l];let e=re(d);e&&(f=se(e)),i=i.replace(t,"")}let m=[];if(h){if(!c){m=[l];let t=re(h);t&&(m=se(t)),S(e)&&(m=m.map((e=>r(e))))}i=i.replace(s,"")}return[...f,n(Z(i)),...m]}let c=re(i),h=ne(i),f=ie(i);if((o||u)&&a&&C(e,["Block","ElementNode","Template"]))return"";a&&c?(h=Math.min(c,k),f=0):(D(e,["BlockStatement","ElementNode"])&&(f=Math.max(f,1)),A(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1)));let m="",y="";return 0===f&&D(e,["MustacheStatement"])&&(y=" "),0===h&&A(e,["MustacheStatement"])&&(m=" "),o&&(h=0,m=""),u&&(f=0,y=""),i=i.replace(/^[\t\n\f\r ]+/g,m).replace(/[\t\n\f\r ]+$/,y),[...se(h),n(Z(i)),...se(f)]}case"MustacheCommentStatement":{let e=m(p),r=y(p),n="~"===t.originalText.charAt(e+2),i="~"===t.originalText.charAt(r-3),s=p.value.includes("}}")?"--":"";return["{{",n?"~":"","!",s,p.value,s,i?"~":"","}}"]}case"PathExpression":return p.original;case"BooleanLiteral":case"NumberLiteral":return String(p.value);case"CommentStatement":return["\x3c!--",p.value,"--\x3e"];case"StringLiteral":if(oe(e)){let e=t.singleQuote?'"':"'";return ae(p.value,e)}return ae(p.value,f);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(p.type))}}function F(e,t){return m(e)-m(t)}function N(e,t){let r=e.getValue(),n=["attributes","modifiers","comments"].filter((e=>f(r[e]))),i=n.flatMap((e=>r[e])).sort(F);for(let r of n)e.each((e=>{let r=i.indexOf(e.getValue());i.splice(r,1,[l,t()])}),r);return f(r.blockParams)&&i.push(l,he(r)),["<",r.tag,o(i),O(r)]}function _(e,t,r){let n=e.getValue().children.every((e=>w(e)));return"ignore"===t.htmlWhitespaceSensitivity&&n?"":e.map(((e,n)=>{let i=r();return 0===n&&"ignore"===t.htmlWhitespaceSensitivity?[c,i]:i}),"children")}function O(e){return P(e)?a([c,"/>"],[" />",c]):a([c,">"],">")}function B(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function j(e){let t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function L(e){return[B(e),e.openStrip.open?"~":"","#"]}function M(e){let t=j(e);return[e.openStrip.close?"~":"",t]}function R(e){return[B(e),e.closeStrip.open?"~":"","/"]}function $(e){let t=j(e);return[e.closeStrip.close?"~":"",t]}function U(e){return[B(e),e.inverseStrip.open?"~":""]}function q(e){let t=j(e);return[e.inverseStrip.close?"~":"",t]}function W(e,t){let r=e.getValue(),n=[],s=de(e,t);return s&&n.push(i(s)),f(r.program.blockParams)&&n.push(he(r.program)),i([L(r),ce(e,t),n.length>0?o([l,u(l,n)]):"",c,M(r)])}function z(e,t){return["ignore"===t.htmlWhitespaceSensitivity?s:"",U(e),"else",q(e)]}function K(e,t,r){let n=e.getValue(),s=e.getParentNode(1);return i([U(s),["else"," ",r],o([l,i(de(e,t)),...f(n.program.blockParams)?[l,he(n.program)]:[]]),c,q(s)])}function H(e,t,r){let n=e.getValue();return"ignore"===r.htmlWhitespaceSensitivity?[J(n)?c:s,R(n),t("path"),$(n)]:[R(n),t("path"),$(n)]}function J(e){return T(e,["BlockStatement"])&&e.program.body.every((e=>w(e)))}function X(e){return G(e)&&1===e.inverse.body.length&&T(e.inverse.body[0],["BlockStatement"])&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function G(e){return T(e,["BlockStatement"])&&e.inverse}function Y(e,t,r){if(J(e.getValue()))return"";let n=t("program");return"ignore"===r.htmlWhitespaceSensitivity?o([s,n]):o(n)}function Q(e,t,r){let n=e.getValue(),i=t("inverse"),a="ignore"===r.htmlWhitespaceSensitivity?[s,i]:i;return X(n)?a:G(n)?[z(n,r),o(a)]:""}function Z(e){return p(u(l,ee(e)))}function ee(e){return e.split(/[\t\n\f\r ]+/)}function te(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r&&"AttrNode"===r.type)return r.name.toLowerCase()}}function re(e){return(e="string"==typeof e?e:"").split("\n").length-1}function ne(e){return re(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}function ie(e){return re(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,k)}).fill(s)}function ae(e,t){let{quote:r,regex:n}=h(e,t);return[r,e.replace(n,`\\${r}`),r]}function oe(e){let t=0,r=e.getParentNode(t);for(;r&&T(r,["SubExpression"]);)t++,r=e.getParentNode(t);return!!(r&&T(e.getParentNode(t+1),["ConcatStatement"])&&T(e.getParentNode(t+2),["AttrNode"]))}function ue(e,t){let r=ce(e,t),n=de(e,t);return n?o([r,l,i(n)]):r}function le(e,t){let r=ce(e,t),n=de(e,t);return n?[o([r,l,n]),c]:r}function ce(e,t){return t("path")}function de(e,t){let r=e.getValue(),n=[];if(r.params.length>0){let r=e.map(t,"params");n.push(...r)}if(r.hash&&r.hash.pairs.length>0){let e=t("hash");n.push(e)}return 0===n.length?"":u(l,n)}function he(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:I,massageAstNode:g}}}),Jn=m({"src/language-handlebars/parsers.js"(){x()}}),Xn=m({"node_modules/linguist-languages/data/Handlebars.json"(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),Gn=m({"src/language-handlebars/index.js"(e,t){x();var r=zt(),n=Hn(),i=Jn(),s=[r(Xn(),(()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],a={glimmer:n};t.exports={languages:s,printers:a,parsers:i}}}),Yn=m({"src/language-graphql/pragma.js"(e,t){function r(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function n(e){return"# @format\n\n"+e}x(),t.exports={hasPragma:r,insertPragma:n}}}),Qn=m({"src/language-graphql/loc.js"(e,t){function r(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start}function n(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}x(),t.exports={locStart:r,locEnd:n}}}),Zn=m({"src/language-graphql/printer-graphql.js"(e,t){x();var{builders:{join:r,hardline:n,line:i,softline:s,group:a,indent:o,ifBreak:u}}=V(),{isNextLineEmpty:l,isNonEmptyArray:c}=pe(),{insertPragma:p}=Yn(),{locStart:d,locEnd:h}=Qn();function f(e,t,p){let f=e.getValue();if(!f)return"";if("string"==typeof f)return f;switch(f.kind){case"Document":{let r=[];return e.each(((e,i,s)=>{r.push(p()),i!==s.length-1&&(r.push(n),l(t.originalText,e.getValue(),h)&&r.push(n))}),"definitions"),[...r,n]}case"OperationDefinition":{let n="{"!==t.originalText[d(f)],i=Boolean(f.name);return[n?f.operation:"",n&&i?[" ",p("name")]:"",n&&!i&&c(f.variableDefinitions)?" ":"",c(f.variableDefinitions)?a(["(",o([s,r([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):"",m(e,p,f),f.selectionSet&&(n||i)?" ":"",p("selectionSet")]}case"FragmentDefinition":return["fragment ",p("name"),c(f.variableDefinitions)?a(["(",o([s,r([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):""," on ",p("typeCondition"),m(e,p,f)," ",p("selectionSet")];case"SelectionSet":return["{",o([n,r(n,y(e,t,p,"selections"))]),n,"}"];case"Field":return a([f.alias?[p("alias"),": "]:"",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):"",m(e,p,f),f.selectionSet?" ":"",p("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return f.value;case"StringValue":if(f.block){let e=f.value.replace(/"""/g,"\\$&").split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every((e=>""===e))&&(e.length=0),r(n,['"""',...e,'"""'])}return['"',f.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return f.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",p("name")];case"ListValue":return a(["[",o([s,r([u("",", "),s],e.map(p,"values"))]),s,"]"]);case"ObjectValue":return a(["{",t.bracketSpacing&&f.fields.length>0?" ":"",o([s,r([u("",", "),s],e.map(p,"fields"))]),s,u("",t.bracketSpacing&&f.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[p("name"),": ",p("value")];case"Directive":return["@",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):""];case"NamedType":return p("name");case"VariableDefinition":return[p("variable"),": ",p("type"),f.defaultValue?[" = ",p("defaultValue")]:"",m(e,p,f)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[p("description"),f.description?n:"","ObjectTypeExtension"===f.kind?"extend ":"","type ",p("name"),f.interfaces.length>0?[" implements ",...v(e,t,p)]:"",m(e,p,f),f.fields.length>0?[" {",o([n,r(n,y(e,t,p,"fields"))]),n,"}"]:""];case"FieldDefinition":return[p("description"),f.description?n:"",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):"",": ",p("type"),m(e,p,f)];case"DirectiveDefinition":return[p("description"),f.description?n:"","directive ","@",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):"",f.repeatable?" repeatable":""," on ",r(" | ",e.map(p,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[p("description"),f.description?n:"","EnumTypeExtension"===f.kind?"extend ":"","enum ",p("name"),m(e,p,f),f.values.length>0?[" {",o([n,r(n,y(e,t,p,"values"))]),n,"}"]:""];case"EnumValueDefinition":return[p("description"),f.description?n:"",p("name"),m(e,p,f)];case"InputValueDefinition":return[p("description"),f.description?f.description.block?n:i:"",p("name"),": ",p("type"),f.defaultValue?[" = ",p("defaultValue")]:"",m(e,p,f)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[p("description"),f.description?n:"","InputObjectTypeExtension"===f.kind?"extend ":"","input ",p("name"),m(e,p,f),f.fields.length>0?[" {",o([n,r(n,y(e,t,p,"fields"))]),n,"}"]:""];case"SchemaExtension":return["extend schema",m(e,p,f),...f.operationTypes.length>0?[" {",o([n,r(n,y(e,t,p,"operationTypes"))]),n,"}"]:[]];case"SchemaDefinition":return[p("description"),f.description?n:"","schema",m(e,p,f)," {",f.operationTypes.length>0?o([n,r(n,y(e,t,p,"operationTypes"))]):"",n,"}"];case"OperationTypeDefinition":return[p("operation"),": ",p("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[p("description"),f.description?n:"","InterfaceTypeExtension"===f.kind?"extend ":"","interface ",p("name"),f.interfaces.length>0?[" implements ",...v(e,t,p)]:"",m(e,p,f),f.fields.length>0?[" {",o([n,r(n,y(e,t,p,"fields"))]),n,"}"]:""];case"FragmentSpread":return["...",p("name"),m(e,p,f)];case"InlineFragment":return["...",f.typeCondition?[" on ",p("typeCondition")]:"",m(e,p,f)," ",p("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return a([p("description"),f.description?n:"",a(["UnionTypeExtension"===f.kind?"extend ":"","union ",p("name"),m(e,p,f),f.types.length>0?[" =",u(""," "),o([u([i," "]),r([i,"| "],e.map(p,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[p("description"),f.description?n:"","ScalarTypeExtension"===f.kind?"extend ":"","scalar ",p("name"),m(e,p,f)];case"NonNullType":return[p("type"),"!"];case"ListType":return["[",p("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(f.kind))}}function m(e,t,n){if(0===n.directives.length)return"";let u=r(i,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?a([i,u]):[" ",a(o([s,u]))]}function y(e,t,r,i){return e.map(((e,i,s)=>{let a=r();return i<s.length-1&&l(t.originalText,e.getValue(),h)?[a,n]:a}),i)}function g(e){return e.kind&&"Comment"!==e.kind}function b(e){let t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function v(e,t,r){let n=e.getNode(),s=[],{interfaces:a}=n,o=e.map((e=>r(e)),"interfaces");for(let e=0;e<a.length;e++){let r=a[e];s.push(o[e]);let n=a[e+1];if(n){let e=t.originalText.slice(r.loc.end,n.loc.start),a=e.includes("#"),o=e.replace(/#.*/g,"").trim();s.push(","===o?",":" &",a?i:" ")}}return s}function E(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=t.value.trim())}function S(e){var t;let r=e.getValue();return null==r||null===(t=r.comments)||void 0===t?void 0:t.some((e=>"prettier-ignore"===e.value.trim()))}E.ignoredProperties=new Set(["loc","comments"]),t.exports={print:f,massageAstNode:E,hasPrettierIgnore:S,insertPragma:p,printComment:b,canAttachComment:g}}}),ei=m({"src/language-graphql/options.js"(e,t){x();var r=hn();t.exports={bracketSpacing:r.bracketSpacing}}}),ti=m({"src/language-graphql/parsers.js"(){x()}}),ri=m({"node_modules/linguist-languages/data/GraphQL.json"(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),ni=m({"src/language-graphql/index.js"(e,t){x();var r=zt(),n=Zn(),i=ei(),s=ti(),a=[r(ri(),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],o={graphql:n};t.exports={languages:a,options:i,printers:o,parsers:s}}}),ii=m({"node_modules/collapse-white-space/index.js"(e,t){function r(e){return String(e).replace(/\s+/g," ")}x(),t.exports=r}}),si=m({"src/language-markdown/loc.js"(e,t){function r(e){return e.position.start.offset}function n(e){return e.position.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),ai=m({"src/language-markdown/constants.evaluate.js"(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),oi=m({"src/language-markdown/utils.js"(e,t){x();var{getLast:r}=pe(),{locStart:n,locEnd:i}=si(),{cjkPattern:s,kPattern:a,punctuationPattern:o}=ai(),u=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],l=[...u,"tableCell","paragraph","heading"],c=new RegExp(a),p=new RegExp(o);function d(e,t){let n="non-cjk",i="cj-letter",a="k-letter",o="cjk-punctuation",u=[],l=("preserve"===t.proseWrap?e:e.replace(new RegExp(`(${s})\n(${s})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[e,t]of l.entries()){if(e%2==1){u.push({type:"whitespace",value:/\n/.test(t)?"\n":" "});continue}if((0===e||e===l.length-1)&&""===t)continue;let h=t.split(new RegExp(`(${s})`));for(let[e,t]of h.entries())if(0!==e&&e!==h.length-1||""!==t){if(e%2==0){""!==t&&d({type:"word",value:t,kind:n,hasLeadingPunctuation:p.test(t[0]),hasTrailingPunctuation:p.test(r(t))});continue}d(p.test(t)?{type:"word",value:t,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:t,kind:c.test(t)?a:i,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return u;function d(e){let t=r(u);function s(r,n){return t.kind===r&&e.kind===n||t.kind===n&&e.kind===r}t&&"word"===t.type&&(t.kind===n&&e.kind===i&&!t.hasTrailingPunctuation||t.kind===i&&e.kind===n&&!e.hasLeadingPunctuation?u.push({type:"whitespace",value:" "}):!s(n,o)&&![t.value,e.value].some((e=>/\u3000/.test(e)))&&u.push({type:"whitespace",value:""})),u.push(e)}}function h(e,t){let[,r,n,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:i}}function f(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(h(e.children[0],t.originalText).numberText),n=Number(h(e.children[1],t.originalText).numberText);if(0===r&&e.children.length>2){let r=Number(h(e.children[2],t.originalText).numberText);return 1===n&&1===r}return 1===n}function m(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith("\n")&&t.endsWith("\n")?r.slice(0,-1):r}function y(e,t){return function e(r,n,i){let s=Object.assign({},t(r,n,i));return s.children&&(s.children=s.children.map(((t,r)=>e(t,r,[s,...i])))),s}(e,null,[])}function g(e){if("link"!==(null==e?void 0:e.type)||1!==e.children.length)return!1;let[t]=e.children;return n(e)===n(t)&&i(e)===i(t)}t.exports={mapAst:y,splitText:d,punctuationPattern:o,getFencedCodeBlockValue:m,getOrderedListItemInfo:h,hasGitDiffFriendlyOrderedList:f,INLINE_NODE_TYPES:u,INLINE_NODE_WRAPPER_TYPES:l,isAutolink:g}}}),ui=m({"src/language-markdown/embed.js"(e,t){x();var{inferParserByLanguage:r,getMaxContinuousCount:n}=pe(),{builders:{hardline:i,markAsRoot:s},utils:{replaceEndOfLine:a}}=V(),o=Tn(),{getFencedCodeBlockValue:u}=oi();function l(e,t,l,c){let p=e.getValue();if("code"===p.type&&null!==p.lang){let e=r(p.lang,c);if(e){let t=c.__inJsTemplate?"~":"`",r=t.repeat(Math.max(3,n(p.value,t)+1)),o={parser:e};"tsx"===p.lang&&(o.filepath="dummy.tsx");let d=l(u(p,c.originalText),o,{stripTrailingHardline:!0});return s([r,p.lang,p.meta?" "+p.meta:"",i,a(d),i,r])}}switch(p.type){case"front-matter":return o(p,l);case"importExport":return[l(p.value,{parser:"babel"},{stripTrailingHardline:!0}),i];case"jsx":return l(`<$>${p.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}t.exports=l}}),li=m({"src/language-markdown/pragma.js"(e,t){x();var r=An(),n=["format","prettier"];function i(e){let t=`@(${n.join("|")})`,r=new RegExp([`\x3c!--\\s*${t}\\s*--\x3e`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*${t}[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e`].join("|"),"m"),i=e.match(r);return 0===(null==i?void 0:i.index)}t.exports={startWithPragma:i,hasPragma:e=>i(r(e).content.trimStart()),insertPragma:e=>{let t=r(e),i=`\x3c!-- @${n[0]} --\x3e`;return t.frontMatter?`${t.frontMatter.raw}\n\n${i}\n\n${t.content}`:`${i}\n\n${t.content}`}}}}),ci=m({"src/language-markdown/print-preprocess.js"(e,t){x();var r=A(),{getOrderedListItemInfo:n,mapAst:i,splitText:s}=oi(),a=/^.$/su;function o(e,t){return e=p(e=u(e=f(e=y(e=m(e=l(e=h(e=c(e,t)),t),t),t),t)))}function u(e){return i(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"})))}function l(e,t){return i(e,(e=>"inlineCode"!==e.type||"preserve"===t.proseWrap?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")})))}function c(e,t){return i(e,(e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&a.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e))}function p(e){return d(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}function d(e,t,n){return i(e,(e=>{if(!e.children)return e;let i=e.children.reduce(((e,i)=>{let s=r(e);return s&&t(s,i)?e.splice(-1,1,n(s,i)):e.push(i),e}),[]);return Object.assign(Object.assign({},e),{},{children:i})}))}function h(e){return d(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}function f(e,t){return i(e,((e,r,n)=>{let[i]=n;if("text"!==e.type)return e;let{value:a}=e;return"paragraph"===i.type&&(0===r&&(a=a.trimStart()),r===i.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:e.position,children:s(a,t)}}))}function m(e,t){return i(e,((e,r,n)=>{if("code"===e.type){let r=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=r,r)for(let e=0;e<n.length;e++){let t=n[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e}))}function y(e,t){return i(e,((e,t,r)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t<r.length;t++){let n=r[t];if("list"===n.type&&!n.isAligned)return e.isAligned=!1,e}e.isAligned=s(e)}return e}));function r(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function s(e){if(!e.ordered)return!0;let[i,s]=e.children;if(n(i,t.originalText).leadingSpaces.length>1)return!0;let a=r(i);return-1!==a&&(1===e.children.length?a%t.tabWidth==0:a===r(s)&&(a%t.tabWidth==0||n(s,t.originalText).leadingSpaces.length>1))}}t.exports=o}}),pi=m({"src/language-markdown/clean.js"(e,t){x();var r=ii(),{isFrontMatterNode:n}=pe(),{startWithPragma:i}=li(),s=new Set(["position","raw"]);function a(e,t,s){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type||"imageReference"===e.type)&&(t.label=r(e.label)),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),s&&"root"===s.type&&s.children.length>0&&(s.children[0]===e||n(s.children[0])&&s.children[1]===e)&&"html"===e.type&&i(e.value)))return null}a.ignoredProperties=s,t.exports=a}}),di=m({"src/language-markdown/printer-markdown.js"(e,t){x();var r=ii(),{getLast:n,getMinNotPresentContinuousCount:i,getMaxContinuousCount:s,getStringWidth:a,isNonEmptyArray:o}=pe(),{builders:{breakParent:u,join:l,line:c,literalline:p,markAsRoot:d,hardline:h,softline:f,ifBreak:m,fill:y,align:g,indent:b,group:v,hardlineWithoutBreakParent:E},utils:{normalizeDoc:S,replaceTextEndOfLine:D},printer:{printDocToString:T}}=V(),C=ui(),{insertPragma:A}=li(),{locStart:P,locEnd:w}=si(),k=ci(),I=pi(),{getFencedCodeBlockValue:F,hasGitDiffFriendlyOrderedList:N,splitText:_,punctuationPattern:O,INLINE_NODE_TYPES:B,INLINE_NODE_WRAPPER_TYPES:j,isAutolink:L}=oi(),M=new Set(["importExport"]),R=["heading","tableCell","link","wikiLink"],$=new Set(["listItem","definition","footnoteDefinition"]);function U(e,t,r){let a=e.getValue();if(se(e))return _(t.originalText.slice(a.position.start.offset,a.position.end.offset),t).map((r=>"word"===r.type?r.value:""===r.value?"":X(e,r.value,t)));switch(a.type){case"front-matter":return t.originalText.slice(a.position.start.offset,a.position.end.offset);case"root":return 0===a.children.length?"":[S(Y(e,t,r)),M.has(ee(a).type)?"":h];case"paragraph":return Q(e,t,r,{postprocessor:y});case"sentence":return Q(e,t,r);case"word":{let t=a.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${O})(_+)`,`(_+)(${O}|$)`].join("|"),"g"),((e,t,r,n,i)=>(r?`${t}${r}`:`${n}${i}`).replace(/_/g,"\\_"))),r=(e,t,r)=>"sentence"===e.type&&0===r,n=(e,t,r)=>L(e.children[r-1]);return t!==a.value&&(e.match(void 0,r,n)||e.match(void 0,r,((e,t,r)=>"emphasis"===e.type&&0===r),n))&&(t=t.replace(/^(\\?[*_])+/,(e=>e.replace(/\\/g,"")))),t}case"whitespace":{let r=e.getParentNode(),n=r.children.indexOf(a),i=r.children[n+1],s=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(i.value)?"never":t.proseWrap;return X(e,a.value,{proseWrap:s})}case"emphasis":{let i;if(L(a.children[0]))i=t.originalText[a.position.start.offset];else{let t=e.getParentNode(),r=t.children.indexOf(a),s=t.children[r-1],o=t.children[r+1];i=s&&"sentence"===s.type&&s.children.length>0&&"word"===n(s.children).type&&!n(s.children).hasTrailingPunctuation||o&&"sentence"===o.type&&o.children.length>0&&"word"===o.children[0].type&&!o.children[0].hasLeadingPunctuation||J(e,"emphasis")?"*":"_"}return[i,Q(e,t,r),i]}case"strong":return["**",Q(e,t,r),"**"];case"delete":return["~~",Q(e,t,r),"~~"];case"inlineCode":{let e=i(a.value,"`"),t="`".repeat(e||1),r=e&&!/^\s/.test(a.value)?" ":"";return[t,r,a.value,r,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?a.value:a.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[a.position.start.offset]){case"<":{let e="mailto:";return["<",a.url.startsWith(e)&&t.originalText.slice(a.position.start.offset+1,a.position.start.offset+1+e.length)!==e?a.url.slice(e.length):a.url,">"]}case"[":return["[",Q(e,t,r),"](",ae(a.url,")"),oe(a.title,t),")"];default:return t.originalText.slice(a.position.start.offset,a.position.end.offset)}case"image":return[""),oe(a.title,t),")"];case"blockquote":return["> ",g("> ",Q(e,t,r))];case"heading":return["#".repeat(a.depth)+" ",Q(e,t,r)];case"code":{if(a.isIndented){let e=" ".repeat(4);return g(e,[e,...D(a.value,h)])}let e=t.__inJsTemplate?"~":"`",r=e.repeat(Math.max(3,s(a.value,e)+1));return[r,a.lang||"",a.meta?" "+a.meta:"",h,...D(F(a,t.originalText),h),h,r]}case"html":{let t=e.getParentNode(),r="root"===t.type&&n(t.children)===a?a.value.trimEnd():a.value,i=/^<!--.*-->$/s.test(r);return D(r,i?h:d(p))}case"list":{let n=z(a,e.getParentNode()),i=N(a,t);return Q(e,t,r,{processor:(e,s)=>{let o=l(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?[o,q(e,t,r,o)]:[o,g(" ".repeat(o.length),q(e,t,r,o))];function l(){let e=a.ordered?(0===s?a.start:i?1:a.start+s)+(n%2==0?". ":") "):n%2==0?"- ":"* ";return a.isAligned||a.hasIndentedCodeblock?W(e,t):e}}})}case"thematicBreak":{let t=H(e,"list");return-1===t?"---":z(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return["[",Q(e,t,r),"]","full"===a.referenceType?ce(a):"collapsed"===a.referenceType?"[]":""];case"imageReference":return"full"===a.referenceType?["![",a.alt||"","]",ce(a)]:["![",a.alt,"]","collapsed"===a.referenceType?"[]":""];case"definition":{let e="always"===t.proseWrap?c:" ";return v([ce(a),":",b([e,ae(a.url),null===a.title?"":[e,oe(a.title,t,!1)]])])}case"footnote":return["[^",Q(e,t,r),"]"];case"footnoteReference":return de(a);case"footnoteDefinition":{let n=e.getParentNode().children[e.getName()+1],i=1===a.children.length&&"paragraph"===a.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&a.children[0].position.start.line===a.children[0].position.end.line);return[de(a),": ",i?Q(e,t,r):v([g(" ".repeat(4),Q(e,t,r,{processor:(e,t)=>0===t?v([f,r()]):r()})),n&&"footnoteDefinition"===n.type?f:""])]}case"table":return G(e,t,r);case"tableCell":return Q(e,t,r);case"break":return/\s/.test(t.originalText[a.position.start.offset])?[" ",d(p)]:["\\",h];case"liquidNode":return D(a.value,h);case"importExport":return[a.value,h];case"esComment":return["{/* ",a.value," */}"];case"jsx":return a.value;case"math":return["$$",h,a.value?[...D(a.value,h),h]:"","$$"];case"inlineMath":return t.originalText.slice(P(a),w(a));default:throw new Error(`Unknown markdown type ${JSON.stringify(a.type)}`)}}function q(e,t,r,n){let i=e.getValue(),s=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[s,Q(e,t,r,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return g(" ".repeat(s.length),r());let a=" ".repeat(ue(t.tabWidth-n.length,0,3));return[a,g(a,r())]}})]}function W(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let r=e.length%t.tabWidth;return 0===r?0:t.tabWidth-r}}function z(e,t){return K(e,t,(t=>t.ordered===e.ordered))}function K(e,t,r){let n=-1;for(let i of t.children)if(i.type===e.type&&r(i)?n++:n=-1,i===e)return n}function H(e,t){let r,n=Array.isArray(t)?t:[t],i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function J(e,t){let r=H(e,t);return-1===r?null:e.getParentNode(r)}function X(e,t,r){if("preserve"===r.proseWrap&&"\n"===t)return h;let n="always"===r.proseWrap&&!J(e,R);return""!==t?n?c:" ":n?f:""}function G(e,t,r){let n=e.getValue(),i=[],s=e.map((e=>e.map(((e,n)=>{let s=T(r(),t).formatted,o=a(s);return i[n]=Math.max(i[n]||3,o),{text:s,width:o}}),"children")),"children"),o=p(!1);if("never"!==t.proseWrap)return[u,o];let c=p(!0);return[u,v(m(c,o))];function p(e){let t=[h(s[0],e),d(e)];return s.length>1&&t.push(l(E,s.slice(1).map((t=>h(t,e))))),l(E,t)}function d(e){return`| ${i.map(((t,r)=>{let i=n.align[r],s="center"===i||"right"===i?":":"-";return`${"center"===i||"left"===i?":":"-"}${e?"-":"-".repeat(t-2)}${s}`})).join(" | ")} |`}function h(e,t){return`| ${e.map(((e,r)=>{let{text:s,width:a}=e;if(t)return s;let o=i[r]-a,u=n.align[r],l=0;"right"===u?l=o:"center"===u&&(l=Math.floor(o/2));let c=o-l;return`${" ".repeat(l)}${s}${" ".repeat(c)}`})).join(" | ")} |`}}function Y(e,t,r){let n=[],i=null,{children:s}=e.getValue();for(let[e,t]of s.entries())switch(te(t)){case"start":null===i&&(i={index:e,offset:t.position.end.offset});break;case"end":null!==i&&(n.push({start:i,end:{index:e,offset:t.position.start.offset}}),i=null)}return Q(e,t,r,{processor:(e,i)=>{if(n.length>0){let e=n[0];if(i===e.start.index)return[Z(s[e.start.index]),t.originalText.slice(e.start.offset,e.end.offset),Z(s[e.end.index])];if(e.start.index<i&&i<e.end.index)return!1;if(i===e.end.index)return n.shift(),!1}return r()}})}function Q(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{postprocessor:s}=i,a=i.processor||(()=>r()),o=e.getValue(),u=[];return e.each(((e,r)=>{let i=e.getValue(),s=a(e,r);if(!1!==s){let e={parts:u,prevNode:n,parentNode:o,options:t};re(i,e)&&(u.push(h),n&&M.has(n.type)||(ne(i,e)||ie(i,e))&&u.push(h),ie(i,e)&&u.push(h)),u.push(s),n=i}}),"children"),s?s(u):u}function Z(e){return"html"===e.type?e.value:"paragraph"===e.type&&Array.isArray(e.children)&&1===e.children.length&&"esComment"===e.children[0].type?["{/* ",e.children[0].value," */}"]:void 0}function ee(e){let t=e;for(;o(t.children);)t=n(t.children);return t}function te(e){let t;if("html"===e.type)t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;"esComment"===e.type?r=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]||"next")}function re(e,t){let r=0===t.parts.length,n=B.includes(e.type),i="html"===e.type&&j.includes(t.parentNode.type);return!r&&!n&&!i}function ne(e,t){var r,n,i;let s=(t.prevNode&&t.prevNode.type)===e.type&&$.has(e.type),a="listItem"===t.parentNode.type&&!t.parentNode.loose,o="listItem"===(null===(r=t.prevNode)||void 0===r?void 0:r.type)&&t.prevNode.loose,u="next"===te(t.prevNode),l="html"===e.type&&"html"===(null===(n=t.prevNode)||void 0===n?void 0:n.type)&&t.prevNode.position.end.line+1===e.position.start.line,c="html"===e.type&&"listItem"===t.parentNode.type&&"paragraph"===(null===(i=t.prevNode)||void 0===i?void 0:i.type)&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(s||a||u||l||c)}function ie(e,t){let r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function se(e){let t=J(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}function ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map((e=>`\\${e}`)).join("|")).test(e)?`<${e}>`:e}function oe(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+oe(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let r=e.split("'").length-1,n=e.split('"').length-1,i=r>n?'"':n>r||t.singleQuote?"'":'"';return`${i}${e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp(`(${i})`,"g"),"\\$1")}${i}`}function ue(e,t,r){return e<t?t:e>r?r:e}function le(e){let t=Number(e.getName());return 0!==t&&"next"===te(e.getParentNode().children[t-1])}function ce(e){return`[${r(e.label)}]`}function de(e){return`[^${e.label}]`}t.exports={preprocess:k,print:U,embed:C,massageAstNode:I,hasPrettierIgnore:le,insertPragma:A}}}),hi=m({"src/language-markdown/options.js"(e,t){x();var r=hn();t.exports={proseWrap:r.proseWrap,singleQuote:r.singleQuote}}}),fi=m({"src/language-markdown/parsers.js"(){x()}}),mi=m({"node_modules/linguist-languages/data/Markdown.json"(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),yi=m({"src/language-markdown/index.js"(e,t){x();var r=zt(),n=di(),i=hi(),s=fi(),a=[r(mi(),(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter((e=>".mdx"!==e))}))),r(mi(),(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))],o={mdast:n};t.exports={languages:a,options:i,printers:o,parsers:s}}}),gi=m({"src/language-html/clean.js"(e,t){x();var{isFrontMatterNode:r}=pe(),n=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function i(e,t){if("text"===e.type||"comment"===e.type||r(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}i.ignoredProperties=n,t.exports=i}}),bi=m({"src/language-html/constants.evaluate.js"(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),vi=m({"src/language-html/utils/is-unknown-namespace.js"(e,t){function r(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}x(),t.exports=r}}),xi=m({"src/language-html/utils/index.js"(e,t){x();var{inferParserByLanguage:r,isFrontMatterNode:n}=pe(),{builders:{line:i,hardline:s,join:a},utils:{getDocParts:o,replaceTextEndOfLine:u}}=V(),{CSS_DISPLAY_TAGS:l,CSS_DISPLAY_DEFAULT:c,CSS_WHITE_SPACE_TAGS:p,CSS_WHITE_SPACE_DEFAULT:d}=bi(),h=vi(),f=new Set(["\t","\n","\f","\r"," "]),m=e=>e.replace(/^[\t\n\f\r ]+/,""),y=e=>e.replace(/[\t\n\f\r ]+$/,""),g=e=>m(y(e)),b=e=>e.replace(/^[\t\f\r ]*\n/g,""),v=e=>b(y(e)),E=e=>e.split(/[\t\n\f\r ]+/),S=e=>e.match(/^[\t\n\f\r ]*/)[0],D=e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},T=e=>/[\t\n\f\r ]/.test(e);function C(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||ne(e)&&e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))||ye(e,t)&&!k(e)&&"interpolation"!==e.type)}function A(e){return!("attribute"===e.type||!e.parent||!e.prev)&&P(e.prev)}function P(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function w(e){return"text"===e.type||"comment"===e.type}function k(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||h(e)&&("script"===e.name||"style"===e.name))}function I(e){return e.children&&!k(e)}function F(e){return k(e)||"interpolation"===e.type||N(e)}function N(e){return oe(e).startsWith("pre")}function _(e,t){let r=i();return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:r;function i(){return!(n(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ne(e.parent)&&(!e.prev&&("root"===e.parent.type||ne(e)&&e.parent||k(e.parent)||fe(e.parent,t)||!Q(e.parent.cssDisplay))||e.prev&&!te(e.prev.cssDisplay))))}}function O(e,t){return!(n(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ne(e.parent)&&(!e.next&&("root"===e.parent.type||ne(e)&&e.parent||k(e.parent)||fe(e.parent,t)||!Z(e.parent.cssDisplay))||e.next&&!ee(e.next.cssDisplay))))}function B(e){return re(e.cssDisplay)&&!k(e)}function j(e){return n(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function L(e){return M(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>H(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&q(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||W(e.lastChild))}function M(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function R(e){return z(e)||e.prev&&$(e.prev)||U(e)}function $(e){return z(e)||"element"===e.type&&"br"===e.fullName||U(e)}function U(e){return q(e)&&W(e)}function q(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function W(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function z(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function K(e){return e.lastChild?K(e.lastChild):e}function H(e){return e.children&&e.children.some((e=>"text"!==e.type))}function J(e){let{type:t,lang:r}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===r?"babel":"application/x-typescript"===t||"ts"===r||"tsx"===r?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))||"speculationrules"===t?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function X(e,t){let{lang:n}=e.attrMap;return n&&"postcss"!==n&&"css"!==n?"scss"===n?"scss":"less"===n?"less":"stylus"===n?r("stylus",t):void 0:"css"}function G(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?X(e,t):t&&ye(e,t)?J(e)||!("src"in e.attrMap)&&r(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?J(e):"babel"}function Y(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Q(e){return!Y(e)&&"inline-block"!==e}function Z(e){return!Y(e)&&"inline-block"!==e}function ee(e){return!Y(e)}function te(e){return!Y(e)}function re(e){return!Y(e)&&"inline-block"!==e}function ne(e){return oe(e).startsWith("pre")}function ie(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let i=e.stack[n];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&r++}return r}function se(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function ae(e,t){if(e.prev&&"comment"===e.prev.type){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let r=!1;if("element"===e.type&&"svg"===e.namespace){if(!se(e,(e=>"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";r=!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||r||h(e))&&l[e.name]||c}}function oe(e){return"element"===e.type&&(!e.namespace||h(e))&&p[e.name]||d}function ue(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;if(!f.has(r[0]))return 0;let e=S(r).length;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}function le(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue(e);return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")}function ce(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function de(e){return e.replace(/'/g,"'").replace(/"/g,'"')}var he=new Set(["template","style","script"]);function fe(e,t){return me(e,t)&&!he.has(e.fullName)}function me(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function ye(e,t){return me(e,t)&&(fe(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function ge(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}function be(e,t){let r=e.parent;if(!me(r,t))return!1;let n=r.fullName,i=e.fullName;return"script"===n&&"setup"===i||"style"===n&&"vars"===i}function ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?u(t):u(le(v(t)),s):o(a(i,E(t)))}function xe(e,t){return me(e,t)&&"script"===e.name}t.exports={htmlTrim:g,htmlTrimPreserveIndentation:v,hasHtmlWhitespace:T,getLeadingAndTrailingHtmlWhitespace:D,canHaveInterpolation:I,countChars:ce,countParents:ie,dedentString:le,forceBreakChildren:M,forceBreakContent:L,forceNextEmptyLine:j,getLastDescendant:K,getNodeCssStyleDisplay:ae,getNodeCssStyleWhiteSpace:oe,hasPrettierIgnore:A,inferScriptParser:G,isVueCustomBlock:fe,isVueNonHtmlBlock:ye,isVueScriptTag:xe,isVueSlotAttribute:ge,isVueSfcBindingsAttribute:be,isVueSfcBlock:me,isDanglingSpaceSensitiveNode:B,isIndentationSensitiveNode:N,isLeadingSpaceSensitiveNode:_,isPreLikeNode:ne,isScriptLikeTag:k,isTextLikeNode:w,isTrailingSpaceSensitiveNode:O,isWhitespaceSensitiveNode:F,isUnknownNamespace:h,preferHardlineAsLeadingSpaces:R,preferHardlineAsTrailingSpaces:$,shouldPreserveContent:C,unescapeQuoteEntities:de,getTextValueParts:ve}}}),Ei=m({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP}function r(t){return e.$0<=t&&t<=e.$9}function n(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z}function i(t){return t>=e.$a&&t<=e.$f||t>=e.$A&&t<=e.$F||r(t)}function s(t){return t===e.$LF||t===e.$CR}function a(t){return e.$0<=t&&t<=e.$7}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=t,e.isDigit=r,e.isAsciiLetter=n,e.isAsciiHexDigit=i,e.isNewLine=s,e.isOctalDigit=a}}),Si=m({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;var r=class{constructor(){this.cache=new Map}get(e,r,n){let i=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,s=this.cache.get(i);return s||(s=new t(e,r,n),this.cache.set(i,s)),s}};e.StaticSymbolCache=r}}),Di=m({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[1].toUpperCase()}))}function n(e,t){return s(e,":",t)}function i(e,t){return s(e,".",t)}function s(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function a(e,t,r){return Array.isArray(e)?t.visitArray(e,r):b(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}function o(e){return null!=e}function u(e){return void 0===e?null:e}e.dashCaseToCamelCase=r,e.splitAtColon=n,e.splitAtPeriod=i,e.visitValue=a,e.isDefined=o,e.noUndefined=u;var l=class{visitArray(e,t){return e.map((e=>a(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((n=>{r[n]=a(e[n],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}};function c(e){throw new Error(`Internal Error: ${e}`)}function p(e,t){let r=Error(e);return r[d]=!0,t&&(r[h]=t),r}e.ValueTransformer=l,e.SyncAsync={assertSync:e=>{if(D(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>D(e)?e.then(t):t(e),all:e=>e.some(D)?Promise.all(e):e},e.error=c,e.syntaxError=p;var d="ngSyntaxError",h="ngParseErrors";function f(e){return e[d]}function m(e){return e[h]||[]}function y(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}e.isSyntaxError=f,e.getParseErrors=m,e.escapeRegExp=y;var g=Object.getPrototypeOf({});function b(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===g}function v(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t}function E(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(E).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;if(!e.toString)return"object";let t=e.toString();if(null==t)return""+t;let r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function S(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function D(e){return!!e&&"function"==typeof e.then}e.utf8Encode=v,e.stringify=E,e.resolveForwardRef=S,e.isPromise=D;var T=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};e.Version=T;var C=typeof window<"u"&&window,A=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,P=typeof globalThis<"u"&&globalThis||C||A;e.global=P}}),Ti=m({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Si(),r=Di(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=i;var s,a,o=0;function u(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let s=r.stringify(n);return s.indexOf("(")>=0?(s="anonymous_"+o++,n.__anonymousType=s):s=i(s),s}function l(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`}function c(e,t){return`View_${u({reference:e})}_${t}`}function p(e){return`RenderType_${u({reference:e})}`}function d(e){return`HostView_${u({reference:e})}`}function h(e){return`${u({reference:e})}NgFactory`}function f(e){return null!=e.value?i(e.value):u(e.identifier)}function m(e){return null!=e.identifier?e.identifier.reference:e.value}e.identifierName=u,e.identifierModuleUrl=l,e.viewClassName=c,e.rendererTypeName=p,e.hostViewClassName=d,e.componentFactoryName=h,(a=s=e.CompileSummaryKind||(e.CompileSummaryKind={}))[a.Pipe=0]="Pipe",a[a.Directive=1]="Directive",a[a.NgModule=2]="NgModule",a[a.Injectable=3]="Injectable",e.tokenName=f,e.tokenReference=m;var y=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=T(t),this.styleUrls=T(r)}};e.CompileStylesheetMetadata=y;var g=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:i,styles:s,styleUrls:a,externalStylesheets:o,animations:u,ngContentSelectors:l,interpolation:c,isInline:p,preserveWhitespaces:d}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=i,this.styles=T(s),this.styleUrls=T(a),this.externalStylesheets=T(o),this.animations=u?A(u):[],this.ngContentSelectors=l||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=p,this.preserveWhitespaces=d}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=g;var b=class{static create(e){let{isHost:t,type:i,isComponent:s,selector:a,exportAs:o,changeDetection:u,inputs:l,outputs:c,host:p,providers:d,viewProviders:h,queries:f,guards:m,viewQueries:y,entryComponents:g,template:v,componentViewType:x,rendererType:E,componentFactory:S}=e,D={},T={},C={};null!=p&&Object.keys(p).forEach((e=>{let t=p[e],r=e.match(n);null===r?C[e]=t:null!=r[1]?T[r[1]]=t:null!=r[2]&&(D[r[2]]=t)}));let A={};null!=l&&l.forEach((e=>{let t=r.splitAtColon(e,[e,e]);A[t[0]]=t[1]}));let P={};return null!=c&&c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);P[t[0]]=t[1]})),new b({isHost:t,type:i,isComponent:!!s,selector:a,exportAs:o,changeDetection:u,inputs:A,outputs:P,hostListeners:D,hostProperties:T,hostAttributes:C,providers:d,viewProviders:h,queries:f,guards:m,viewQueries:y,entryComponents:g,template:v,componentViewType:x,rendererType:E,componentFactory:S})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:i,exportAs:s,changeDetection:a,inputs:o,outputs:u,hostListeners:l,hostProperties:c,hostAttributes:p,providers:d,viewProviders:h,queries:f,guards:m,viewQueries:y,entryComponents:g,template:b,componentViewType:v,rendererType:x,componentFactory:E}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=o,this.outputs=u,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=p,this.providers=T(d),this.viewProviders=T(h),this.queries=T(f),this.guards=m,this.viewQueries=T(y),this.entryComponents=T(g),this.template=b,this.componentViewType=v,this.rendererType=x,this.componentFactory=E}toSummary(){return{summaryKind:s.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=b;var v=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:s.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompilePipeMetadata=v;var E=class{};e.CompileShallowModuleMetadata=E;var S=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:i,declaredPipes:s,exportedPipes:a,entryComponents:o,bootstrapComponents:u,importedModules:l,exportedModules:c,schemas:p,transitiveModule:d,id:h}=e;this.type=t||null,this.declaredDirectives=T(n),this.exportedDirectives=T(i),this.declaredPipes=T(s),this.exportedPipes=T(a),this.providers=T(r),this.entryComponents=T(o),this.bootstrapComponents=T(u),this.importedModules=T(l),this.exportedModules=T(c),this.schemas=T(p),this.id=h||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:s.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};e.CompileNgModuleMetadata=S;var D=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function T(e){return e||[]}e.TransitiveCompileNgModuleMetadata=D;var C=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:i,useFactory:s,deps:a,multi:o}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=i,this.useFactory=s||null,this.dependencies=a||null,this.multi=!!o}};function A(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?A(t):t;return e.concat(r)}),[])}function P(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function w(e,r,n){let i;return i=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${u(e)}/${u(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?i:P(i)}function k(e,t){let r=e.moduleUrl.split(/\/\\/g);return P(`css/${t}${r[r.length-1]}.ngstyle.js`)}function I(e){return P(`${u(e.type)}/module.ngfactory.js`)}function F(e,t){return P(`${u(e)}/${u(t.type)}.ngfactory.js`)}e.ProviderMeta=C,e.flatten=A,e.templateSourceUrl=w,e.sharedStylesheetJitUrl=k,e.ngModuleJitUrl=I,e.templateJitUrl=F}}),Ci=m({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ei(),r=Ti(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,i=r.length,s=this.offset,a=this.line,o=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==t.$LF){a--;let e=r.substr(0,s-1).lastIndexOf(String.fromCharCode(t.$LF));o=e>0?s-e:s}else o--;for(;s<i&&e>0;){let n=r.charCodeAt(s);s++,e--,n==t.$LF?(a++,o=0):o++}return new n(this.file,s,a,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let i=n,s=0,a=0;for(;s<e&&n>0&&(n--,s++,"\n"!=r[n]||++a!=t););for(s=0,a=0;s<e&&i<r.length-1&&(i++,s++,"\n"!=r[i]||++a!=t););return{before:r.substring(n,this.offset),after:r.substring(this.offset,i+1)}}return null}};e.ParseLocation=n;var i=class{constructor(e,t){this.content=e,this.url=t}};e.ParseSourceFile=i;var s,a,o=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=o,e.EMPTY_PARSE_LOCATION=new n(new i("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new o(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(a=s=e.ParseErrorLevel||(e.ParseErrorLevel={}))[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR";var u=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${s[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function l(e,t){let s=r.identifierModuleUrl(t),a=null!=s?`in ${e} ${r.identifierName(t)} in ${s}`:`in ${e} ${r.identifierName(t)}`,u=new i("",a);return new o(new n(u,-1,-1,-1),new n(u,-1,-1,-1))}function c(e,t,r){let s=new i("",`in ${e} ${t} in ${r}`);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1))}e.ParseError=u,e.typeSourceSpan=l,e.r3JitTypeSourceSpan=c}}),Ai=m({"src/language-html/print-preprocess.js"(e,t){x();var{ParseSourceSpan:r}=Ci(),{htmlTrim:n,getLeadingAndTrailingHtmlWhitespace:i,hasHtmlWhitespace:s,canHaveInterpolation:a,getNodeCssStyleDisplay:o,isDanglingSpaceSensitiveNode:u,isIndentationSensitiveNode:l,isLeadingSpaceSensitiveNode:c,isTrailingSpaceSensitiveNode:p,isWhitespaceSensitiveNode:d,isVueScriptTag:h}=xi(),f=[y,g,v,S,D,A,T,C,P,E,w];function m(e,t){for(let r of f)r(e,t);return e}function y(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))}function g(e){let t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if(!t(i))continue;let s=i.prev,a=i.firstChild;e.removeChild(s),n--;let o=new r(s.sourceSpan.start,a.sourceSpan.end),u=new r(o.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=u,i.startSourceSpan=o,i.removeChild(a)}}))}function b(e,t,n){e.walk((e=>{if(e.children)for(let i=0;i<e.children.length;i++){let s=e.children[i];if("text"!==s.type&&!t(s))continue;"text"!==s.type&&(s.type="text",s.value=n(s));let a=s.prev;!a||"text"!==a.type||(a.value+=s.value,a.sourceSpan=new r(a.sourceSpan.start,s.sourceSpan.end),e.removeChild(s),i--)}}))}function v(e){return b(e,(e=>"cdata"===e.type),(e=>`<![CDATA[${e.value}]]>`))}function E(e){let t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!s(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if(!t(i))continue;let s=i.prev,a=i.next;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+a.value,s.sourceSpan=new r(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(i),n--,e.removeChild(a)}}))}function S(e,t){if("html"===t.parser)return;let n=/{{(.+?)}}/s;e.walk((e=>{if(a(e))for(let t of e.children){if("text"!==t.type)continue;let i=t.sourceSpan.start,s=null,a=t.value.split(n);for(let n=0;n<a.length;n++,i=s){let o=a[n];n%2!=0?(s=i.moveBy(o.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new r(i,s),children:0===o.length?[]:[{type:"text",value:o,sourceSpan:new r(i.moveBy(2),s.moveBy(-2))}]})):(s=i.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{type:"text",value:o,sourceSpan:new r(i,s)}))}e.removeChild(t)}}))}function D(e){e.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===n(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=d(e),s=l(e);if(!t)for(let t=0;t<e.children.length;t++){let n=e.children[t];if("text"!==n.type)continue;let{leadingWhitespace:s,text:a,trailingWhitespace:o}=i(n.value),u=n.prev,l=n.next;a?(n.value=a,n.sourceSpan=new r(n.sourceSpan.start.moveBy(s.length),n.sourceSpan.end.moveBy(-o.length)),s&&(u&&(u.hasTrailingSpaces=!0),n.hasLeadingSpaces=!0),o&&(n.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(n),t--,(s||o)&&(u&&(u.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=s}))}function T(e){e.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))}function C(e,t){e.walk((e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))}function A(e,t){e.walk((e=>{e.cssDisplay=o(e,t)}))}function P(e,t){e.walk((e=>{let{children:r}=e;if(r){if(0===r.length)return void(e.isDanglingSpaceSensitive=u(e));for(let e of r)e.isLeadingSpaceSensitive=c(e,t),e.isTrailingSpaceSensitive=p(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}}))}function w(e,t){if("vue"===t.parser){let r=e.children.find((e=>h(e,t)));if(!r)return;let{lang:n}=r.attrMap;("ts"===n||"typescript"===n)&&(t.__should_parse_vue_template_with_ts=!0)}}t.exports=m}}),Pi=m({"src/language-html/pragma.js"(e,t){function r(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function n(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}x(),t.exports={hasPragma:r,insertPragma:n}}}),wi=m({"src/language-html/loc.js"(e,t){function r(e){return e.sourceSpan.start.offset}function n(e){return e.sourceSpan.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),ki=m({"src/language-html/print/tag.js"(e,t){x();var r=Lt(),{isNonEmptyArray:n}=pe(),{builders:{indent:i,join:s,line:a,softline:o,hardline:u},utils:{replaceTextEndOfLine:l}}=V(),{locStart:c,locEnd:p}=wi(),{isTextLikeNode:d,getLastDescendant:h,isPreLikeNode:f,hasPrettierIgnore:m,shouldPreserveContent:y,isVueSfcBlock:g}=xi();function b(e,t){return[e.isSelfClosing?"":v(e,t),E(e,t)]}function v(e,t){return e.lastChild&&k(e.lastChild)?"":[S(e,t),T(e,t)]}function E(e,t){return(e.next?P(e.next):w(e.parent))?"":[C(e,t),D(e,t)]}function S(e,t){return w(e)?C(e.lastChild,t):""}function D(e,t){return k(e)?T(e.parent,t):I(e)?M(e.next):""}function T(e,t){if(r(!e.isSelfClosing),A(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function C(e,t){if(A(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 A(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(m(e)||y(e.parent,t))}function P(e){return e.prev&&"docType"!==e.prev.type&&!d(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function w(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!d(h(e.lastChild))&&!f(e)}function k(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&d(h(e))}function I(e){return e.next&&!d(e.next)&&d(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function F(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!t&&(!t[1]||t[1].split(/\s+/))}function N(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function _(e,t,r){let d=e.getValue();if(!n(d.attrs))return d.isSelfClosing?" ":"";let h=d.prev&&"comment"===d.prev.type&&F(d.prev.value),f="boolean"==typeof h?()=>h:Array.isArray(h)?e=>h.includes(e.rawName):()=>!1,m=e.map((e=>{let n=e.getValue();return f(n)?l(t.originalText.slice(c(n),p(n))):r()}),"attrs"),y="element"===d.type&&"script"===d.fullName&&1===d.attrs.length&&"src"===d.attrs[0].fullName&&0===d.children.length,b=t.singleAttributePerLine&&d.attrs.length>1&&!g(d,t)?u:a,v=[i([y?" ":a,s(b,m)])];return d.firstChild&&N(d.firstChild)||d.isSelfClosing&&w(d.parent)||y?v.push(d.isSelfClosing?" ":""):v.push(t.bracketSameLine?d.isSelfClosing?" ":"":d.isSelfClosing?a:o),v}function O(e){return e.firstChild&&N(e.firstChild)?"":R(e)}function B(e,t,r){let n=e.getValue();return[j(n,t),_(e,t,r),n.isSelfClosing?"":O(n)]}function j(e,t){return e.prev&&I(e.prev)?"":[L(e,t),M(e)]}function L(e,t){return N(e)?R(e.parent):P(e)?C(e.prev,t):""}function M(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return`\x3c!--[if ${e.condition}]>\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function R(e){switch(r(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}t.exports={printClosingTag:b,printClosingTagStart:v,printClosingTagStartMarker:T,printClosingTagEndMarker:C,printClosingTagSuffix:D,printClosingTagEnd:E,needsToBorrowLastChildClosingTagEndMarker:w,needsToBorrowParentClosingTagStartMarker:k,needsToBorrowPrevClosingTagEndMarker:P,printOpeningTag:B,printOpeningTagStart:j,printOpeningTagPrefix:L,printOpeningTagStartMarker:M,printOpeningTagEndMarker:R,needsToBorrowNextOpeningTagStartMarker:I,needsToBorrowParentOpeningTagEndMarker:N}}}),Ii=m({"node_modules/parse-srcset/src/parse-srcset.js"(e,t){var r,n;x(),r=e,n=function(){return function(e,t){var r=t&&t.logger||console;function n(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var r,n=t.exec(e.substring(g));if(n)return r=n[0],g+=r.length,r}for(var s,a,o,u,l,c=e.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,b=[];;){if(i(d),g>=c)return b;s=i(h),a=[],","===s.slice(-1)?(s=s.replace(f,""),x()):v()}function v(){for(i(p),o="",u="in descriptor";;){if(l=e.charAt(g),"in descriptor"===u)if(n(l))o&&(a.push(o),o="",u="after descriptor");else{if(","===l)return g+=1,o&&a.push(o),void x();if("("===l)o+=l,u="in parens";else{if(""===l)return o&&a.push(o),void x();o+=l}}else if("in parens"===u)if(")"===l)o+=l,u="in descriptor";else{if(""===l)return a.push(o),void x();o+=l}else if("after descriptor"===u&&!n(l)){if(""===l)return void x();u="in descriptor",g-=1}g+=1}}function x(){var t,n,i,o,u,l,c,p,d,h=!1,f={};for(o=0;o<a.length;o++)l=(u=a[o])[u.length-1],c=u.substring(0,u.length-1),p=parseInt(c,10),d=parseFloat(c),m.test(c)&&"w"===l?((t||n)&&(h=!0),0===p?h=!0:t=p):y.test(c)&&"x"===l?((t||n||i)&&(h=!0),d<0?h=!0:n=d):m.test(c)&&"h"===l?((i||n)&&(h=!0),0===p?h=!0:i=p):h=!0;h?r&&r.error&&r.error("Invalid srcset descriptor found in '"+e+"' at '"+u+"'."):(f.url=s,t&&(f.w=t),n&&(f.d=n),i&&(f.h=i),b.push(f))}}},"object"==typeof t&&t.exports?t.exports=n():r.parseSrcset=n()}}),Fi=m({"src/language-html/syntax-attribute.js"(e,t){x();var r=Ii(),{builders:{ifBreak:n,join:i,line:s}}=V();function a(e){let t=r(e,{logger:{error(e){throw new Error(e)}}}),a=t.some((e=>{let{w:t}=e;return t})),o=t.some((e=>{let{h:t}=e;return t}));if(a+o+t.some((e=>{let{d:t}=e;return t}))>1)throw new Error("Mixed descriptor in srcset is not supported");let u=a?"w":o?"h":"d",l=a?"w":o?"h":"x",c=e=>Math.max(...e),p=t.map((e=>e.url)),d=c(p.map((e=>e.length))),h=t.map((e=>e[u])).map((e=>e?e.toString():"")),f=h.map((e=>{let t=e.indexOf(".");return-1===t?e.length:t})),m=c(f);return i([",",s],p.map(((e,t)=>{let r=[e],i=h[t];if(i){let s=d-e.length+1,a=m-f[t],o=" ".repeat(s+a);r.push(n(o," "),i+l)}return r})))}function o(e){return e.trim().split(/\s+/).join(" ")}t.exports={printImgSrcset:a,printClassNames:o}}}),Ni=m({"src/language-html/syntax-vue.js"(e,t){x();var{builders:{group:r}}=V();function n(e,t){let{left:n,operator:s,right:a}=i(e);return[r(t(`function _(${n}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",s," ",t(a,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function i(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,i=e.match(t);if(!i)return;let s={};if(s.for=i[3].trim(),!s.for)return;let a=i[1].trim().replace(n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let u=[s.alias,s.iterator1,s.iterator2];return u.some(((e,t)=>!e&&(0===t||u.slice(t+1).some(Boolean))))?void 0:{left:u.filter(Boolean).join(","),operator:i[2],right:s.for}}function s(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}function a(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=e.trim();return t.test(n)||r.test(n)}t.exports={isVueEventBindingExpression:a,printVueFor:n,printVueBindings:s}}}),_i=m({"src/language-html/get-node-content.js"(e,t){x();var{needsToBorrowParentClosingTagStartMarker:r,printClosingTagStartMarker:n,needsToBorrowLastChildClosingTagEndMarker:i,printClosingTagEndMarker:s,needsToBorrowParentOpeningTagEndMarker:a,printOpeningTagEndMarker:o}=ki();function u(e,t){let u=e.startSourceSpan.end.offset;e.firstChild&&a(e.firstChild)&&(u-=o(e).length);let l=e.endSourceSpan.start.offset;return e.lastChild&&r(e.lastChild)?l+=n(e,t).length:i(e)&&(l-=s(e.lastChild,t).length),t.originalText.slice(u,l)}t.exports=u}}),Oi=m({"src/language-html/embed.js"(e,t){x();var{builders:{breakParent:r,group:n,hardline:i,indent:s,line:a,fill:o,softline:u},utils:{mapDoc:l,replaceTextEndOfLine:c}}=V(),p=Tn(),{printClosingTag:d,printClosingTagSuffix:h,needsToBorrowPrevClosingTagEndMarker:f,printOpeningTagPrefix:m,printOpeningTag:y}=ki(),{printImgSrcset:g,printClassNames:b}=Fi(),{printVueFor:v,printVueBindings:E,isVueEventBindingExpression:S}=Ni(),{isScriptLikeTag:D,isVueNonHtmlBlock:T,inferScriptParser:C,htmlTrimPreserveIndentation:A,dedentString:P,unescapeQuoteEntities:w,isVueSlotAttribute:k,isVueSfcBindingsAttribute:I,getTextValueParts:F}=xi(),N=_i();function _(e,t,r){let i=t=>new RegExp(t.join("|")).test(e.fullName),l=()=>w(e.value),p=!1,d=(e,t)=>{let r="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;r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||"__vue_expression"===t.parser&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))&&(p=!0)},h=e=>n(e),f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n([s([u,e]),t?u:""])},m=e=>p?h(e):f(e),y=(e,r)=>t(e,Object.assign({__onHtmlBindingRoot:d,__embeddedInHtml:!0},r));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return f(g(l()));if("class"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return b(e)}if("style"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return f(y(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===r.parser){if("v-for"===e.fullName)return v(l(),y);if(k(e)||I(e,r))return E(l(),y);let t=["^:","^v-bind:"],n=["^v-"];if(i(["^@","^v-on:"])){let e=l(),t=S(e)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return m(y(e,{parser:t}))}if(i(t))return m(y(l(),{parser:"__vue_expression"}));if(i(n))return m(y(l(),{parser:"__js_expression"}))}if("angular"===r.parser){let t=(e,t)=>y(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"})),r=["^\\*"],u=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],p=["^i18n(-.+)?$"];if(i(["^\\(.+\\)$","^on-"]))return m(t(l(),{parser:"__ng_action"}));if(i(u))return m(t(l(),{parser:"__ng_binding"}));if(i(p)){let t=l().trim();return f(o(F(e,t)),!t.includes("@@"))}if(i(r))return m(t(l(),{parser:"__ng_directive"}));let d=/{{(.+?)}}/s,h=l();if(d.test(h)){let e=[];for(let[r,i]of h.split(d).entries())if(r%2==0)e.push(c(i));else try{e.push(n(["{{",s([a,t(i,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),a,"}}"]))}catch{e.push("{{",c(i),"}}")}return n(e)}}return null}function O(e,t,o,u){let c=e.getValue();switch(c.type){case"element":if(D(c)||"interpolation"===c.type)return;if(!c.isSelfClosing&&T(c,u)){let r=C(c,u);if(!r)return;let s=N(c,u),a=/^\s*$/.test(s),l="";return a||(l=o(A(s),{parser:r,__embeddedInHtml:!0},{stripTrailingHardline:!0}),a=""===l),[m(c,u),n(y(e,u,t)),a?"":i,l,a?"":i,d(c,u),h(c,u)]}break;case"text":if(D(c.parent)){let e=C(c.parent,u);if(e){let t="markdown"===e?P(c.value.replace(/^[^\S\n]*\n/,"")):c.value,n={parser:e,__embeddedInHtml:!0};if("html"===u.parser&&"babel"===e){let e="script",{attrMap:t}=c.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),n.__babelSourceType=e}return[r,m(c,u),o(t,n,{stripTrailingHardline:!0}),h(c,u)]}}else if("interpolation"===c.parent.type){let e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===u.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===u.parser?e.parser=u.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":e.parser="__js_expression",[s([a,o(c.value,e,{stripTrailingHardline:!0})]),c.parent.next&&f(c.parent.next)?" ":a]}break;case"attribute":{if(!c.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];if("lwc"===u.parser&&/^{.*}$/s.test(u.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];let e=_(c,((e,t)=>o(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})),u);if(e)return[c.rawName,'="',n(l(e,(e=>"string"==typeof e?e.replace(/"/g,"""):e))),'"'];break}case"front-matter":return p(c,o)}}t.exports=O}}),Bi=m({"src/language-html/print/children.js"(e,t){x();var{builders:{breakParent:r,group:n,ifBreak:i,line:s,softline:a,hardline:o},utils:{replaceTextEndOfLine:u}}=V(),{locStart:l,locEnd:c}=wi(),{forceBreakChildren:p,forceNextEmptyLine:d,isTextLikeNode:h,hasPrettierIgnore:f,preferHardlineAsLeadingSpaces:m}=xi(),{printOpeningTagPrefix:y,needsToBorrowNextOpeningTagStartMarker:g,printOpeningTagStartMarker:b,needsToBorrowPrevClosingTagEndMarker:v,printClosingTagEndMarker:E,printClosingTagSuffix:S,needsToBorrowParentClosingTagStartMarker:D}=ki();function T(e,t,r){let n=e.getValue();return f(n)?[y(n,t),...u(t.originalText.slice(l(n)+(n.prev&&g(n.prev)?b(n).length:0),c(n)-(n.next&&v(n.next)?E(n,t).length:0))),S(n,t)]:r()}function C(e,t){return h(e)&&h(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?m(t)?o:s:"":m(t)?o:a:g(e)&&(f(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&v(t)?"":!t.isLeadingSpaceSensitive||m(t)||v(t)&&e.lastChild&&D(e.lastChild)&&e.lastChild.lastChild&&D(e.lastChild.lastChild)?o:t.hasLeadingSpaces?s:a}function A(e,t,s){let u=e.getValue();if(p(u))return[r,...e.map((e=>{let r=e.getValue(),n=r.prev?C(r.prev,r):"";return[n?[n,d(r.prev)?o:""]:"",T(e,t,s)]}),"children")];let l=u.children.map((()=>Symbol("")));return e.map(((e,r)=>{let u=e.getValue();if(h(u)){if(u.prev&&h(u.prev)){let r=C(u.prev,u);if(r)return d(u.prev)?[o,o,T(e,t,s)]:[r,T(e,t,s)]}return T(e,t,s)}let c=[],p=[],f=[],m=[],y=u.prev?C(u.prev,u):"",g=u.next?C(u,u.next):"";return y&&(d(u.prev)?c.push(o,o):y===o?c.push(o):h(u.prev)?p.push(y):p.push(i("",a,{groupId:l[r-1]}))),g&&(d(u)?h(u.next)&&m.push(o,o):g===o?h(u.next)&&m.push(o):f.push(g)),[...c,n([...p,n([T(e,t,s),...f],{id:l[r]})]),...m]}),"children")}t.exports={printChildren:A}}}),ji=m({"src/language-html/print/element.js"(e,t){x();var{builders:{breakParent:r,dedentToRoot:n,group:i,ifBreak:s,indentIfBreak:a,indent:o,line:u,softline:l},utils:{replaceTextEndOfLine:c}}=V(),p=_i(),{shouldPreserveContent:d,isScriptLikeTag:h,isVueCustomBlock:f,countParents:m,forceBreakContent:y}=xi(),{printOpeningTagPrefix:g,printOpeningTag:b,printClosingTagSuffix:v,printClosingTag:E,needsToBorrowPrevClosingTagEndMarker:S,needsToBorrowLastChildClosingTagEndMarker:D}=ki(),{printChildren:T}=Bi();function C(e,t,x){let C=e.getValue();if(d(C,t))return[g(C,t),i(b(e,t,x)),...c(p(C,t)),...E(C,t),v(C,t)];let A=1===C.children.length&&"interpolation"===C.firstChild.type&&C.firstChild.isLeadingSpaceSensitive&&!C.firstChild.hasLeadingSpaces&&C.lastChild.isTrailingSpaceSensitive&&!C.lastChild.hasTrailingSpaces,P=Symbol("element-attr-group-id"),w=r=>i([i(b(e,t,x),{id:P}),r,E(C,t)]),k=e=>A?a(e,{groupId:P}):!h(C)&&!f(C,t)||"root"!==C.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?o(e):e,I=()=>A?s(l,"",{groupId:P}):C.firstChild.hasLeadingSpaces&&C.firstChild.isLeadingSpaceSensitive?u:"text"===C.firstChild.type&&C.isWhitespaceSensitive&&C.isIndentationSensitive?n(l):l,F=()=>(C.next?S(C.next):D(C.parent))?C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?" ":"":A?s(l,"",{groupId:P}):C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?u:("comment"===C.lastChild.type||"text"===C.lastChild.type&&C.isWhitespaceSensitive&&C.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*m(e,(e=>e.parent&&"root"!==e.parent.type))}}$`).test(C.lastChild.value)?"":l;return 0===C.children.length?w(C.hasDanglingSpaces&&C.isDanglingSpaceSensitive?u:""):w([y(C)?r:"",k([I(),T(e,t,x)]),F()])}t.exports={printElement:C}}}),Li=m({"src/language-html/printer-html.js"(e,t){x();var{builders:{fill:r,group:n,hardline:i,literalline:s},utils:{cleanDoc:a,getDocParts:o,isConcat:u,replaceTextEndOfLine:l}}=V(),c=gi(),{countChars:p,unescapeQuoteEntities:d,getTextValueParts:h}=xi(),f=Ai(),{insertPragma:m}=Pi(),{locStart:y,locEnd:g}=wi(),b=Oi(),{printClosingTagSuffix:v,printClosingTagEnd:E,printOpeningTagPrefix:S,printOpeningTagStart:D}=ki(),{printElement:T}=ji(),{printChildren:C}=Bi();function A(e,t,c){let f=e.getValue();switch(f.type){case"front-matter":return l(f.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(f),[n(C(e,t,c)),i];case"element":case"ieConditionalComment":return T(e,t,c);case"ieConditionalStartComment":case"ieConditionalEndComment":return[D(f),E(f)];case"interpolation":return[D(f,t),...e.map(c,"children"),E(f,t)];case"text":{if("interpolation"===f.parent.type){let e=/\n[^\S\n]*$/,t=e.test(f.value),r=t?f.value.replace(e,""):f.value;return[...l(r),t?i:""]}let e=a([S(f,t),...h(f),v(f,t)]);return u(e)||"fill"===e.type?r(o(e)):e}case"docType":return[n([D(f,t)," ",f.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),E(f,t)];case"comment":return[S(f,t),...l(t.originalText.slice(y(f),g(f)),s),v(f,t)];case"attribute":{if(null===f.value)return f.rawName;let e=d(f.value),t=p(e,"'")<p(e,'"')?"'":'"';return[f.rawName,"=",t,...l('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'")),t]}default:throw new Error(`Unexpected node type ${f.type}`)}}t.exports={preprocess:f,print:A,insertPragma:m,massageAstNode:c,embed:b}}}),Mi=m({"src/language-html/options.js"(e,t){x();var r=hn(),n="HTML";t.exports={bracketSameLine:r.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:n,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:r.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:n,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),Ri=m({"src/language-html/parsers.js"(){x()}}),$i=m({"node_modules/linguist-languages/data/HTML.json"(e,t){t.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),Ui=m({"node_modules/linguist-languages/data/Vue.json"(e,t){t.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),Vi=m({"src/language-html/index.js"(e,t){x();var r=zt(),n=Li(),i=Mi(),s=Ri(),a=[r($i(),(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),r($i(),(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]}))),r($i(),(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),r(Ui(),(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))],o={html:n};t.exports={languages:a,printers:o,options:i,parsers:s}}}),qi=m({"src/language-yaml/pragma.js"(e,t){function r(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function n(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)}function i(e){return`# @format\n\n${e}`}x(),t.exports={isPragma:r,hasPragma:n,insertPragma:i}}}),Wi=m({"src/language-yaml/loc.js"(e,t){function r(e){return e.position.start.offset}function n(e){return e.position.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),zi=m({"src/language-yaml/embed.js"(e,t){function r(e,t,r,n){if("root"===e.getValue().type&&n.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(n.filepath))return r(n.originalText,Object.assign(Object.assign({},n),{},{parser:"json"}))}x(),t.exports=r}}),Ki=m({"src/language-yaml/utils.js"(e,t){x();var{getLast:r,isNonEmptyArray:n}=pe();function i(e,t){let r=0,n=e.stack.length-1;for(let i=0;i<n;i++){let n=e.stack[i];s(n)&&t(n)&&r++}return r}function s(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function a(e,t,r){return t("children"in e?Object.assign(Object.assign({},e),{},{children:e.children.map((r=>a(r,t,e)))}):e,r)}function o(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})}function u(e,t){let r=0,n=t.length;for(let i=e.position.end.offset-1;i<n;i++){let e=t[i];if("\n"===e&&r++,1===r&&/\S/.test(e))return!1;if(2===r)return!0}return!1}function l(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let r=1;r<t;r++){let t=e.stack[r],n=e.stack[r-1];if(Array.isArray(n)&&"number"==typeof t&&t!==n.length-1)return!1}return!0}function c(e){return n(e.children)?c(r(e.children)):e}function p(e){return"prettier-ignore"===e.value.trim()}function d(e){let t=e.getValue();if("documentBody"===t.type){let t=e.getParentNode();return v(t.head)&&p(r(t.head.endComments))}return m(t)&&p(r(t.leadingComments))}function h(e){return!n(e.children)&&!f(e)}function f(e){return m(e)||y(e)||g(e)||b(e)||v(e)}function m(e){return n(null==e?void 0:e.leadingComments)}function y(e){return n(null==e?void 0:e.middleComments)}function g(e){return null==e?void 0:e.indicatorComment}function b(e){return null==e?void 0:e.trailingComment}function v(e){return n(null==e?void 0:e.endComments)}function E(e){let t,r=[];for(let n of e.split(/( +)/))" "!==n?" "===t?r.push(n):r.push((r.pop()||"")+n):void 0===t&&r.unshift(""),t=n;return" "===t&&r.push((r.pop()||"")+" "),""===r[0]&&(r.shift(),r.unshift(" "+(r.shift()||""))),r}function S(e,t,n){let i=t.split("\n").map(((e,t,r)=>0===t&&t===r.length-1?e:0!==t&&t!==r.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?i.map((e=>0===e.length?[]:[e])):i.map((e=>0===e.length?[]:E(e))).reduce(((t,n,s)=>0!==s&&i[s-1].length>0&&n.length>0&&("quoteDouble"!==e||!r(r(t)).endsWith("\\"))?[...t.slice(0,-1),[...r(t),...n]]:[...t,n]),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))}function D(e,t){let n,{parentIndent:i,isLastDescendant:s,options:a}=t,o=e.position.start.line===e.position.end.line?"":a.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1];if(null===e.indent){let e=o.match(/^(?<leadingSpace> *)[^\n\r ]/m);n=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else n=e.indent-1+i;let u=o.split("\n").map((e=>e.slice(n)));return"preserve"===a.proseWrap||"blockLiteral"===e.type?l(u.map((e=>0===e.length?[]:[e]))):l(u.map((e=>0===e.length?[]:E(e))).reduce(((e,t,n)=>0!==n&&u[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(r(e))?[...e.slice(0,-1),[...r(e),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/.test(r(e))?[...e.slice(0,-1),r(e)+" "+t]:[...e,t]),[]))).map((e=>"never"===a.proseWrap?[e.join(" ")]:e)));function l(t){if("keep"===e.chomping)return 0===r(t).length?t.slice(0,-1):t;let n=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)n++;return 0===n?t:n>=2&&!s?t.slice(0,-(n-1)):t.slice(0,-n)}}function T(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}t.exports={getLast:r,getAncestorCount:i,isNode:s,isEmptyNode:h,isInlineNode:T,mapNode:a,defineShortcut:o,isNextLineEmpty:u,isLastDescendantNode:l,getBlockValueLineContents:D,getFlowScalarLineContents:S,getLastDescendantNode:c,hasPrettierIgnore:d,hasLeadingComments:m,hasMiddleComments:y,hasIndicatorComment:g,hasTrailingComment:b,hasEndComments:v}}}),Hi=m({"src/language-yaml/print-preprocess.js"(e,t){x();var{defineShortcut:r,mapNode:n}=Ki();function i(e){return n(e,s)}function s(e){switch(e.type){case"document":r(e,"head",(()=>e.children[0])),r(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":r(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":r(e,"key",(()=>e.children[0])),r(e,"value",(()=>e.children[1]))}return e}t.exports=i}}),Ji=m({"src/language-yaml/print/misc.js"(e,t){x();var{builders:{softline:r,align:n}}=V(),{hasEndComments:i,isNextLineEmpty:s,isNode:a}=Ki(),o=new WeakMap;function u(e,t){let n,i=e.getValue(),a=e.stack[0];return o.has(a)?n=o.get(a):(n=new Set,o.set(a,n)),n.has(i.position.end.line)||(n.add(i.position.end.line),!s(i,t)||l(e.getParentNode()))?"":r}function l(e){return i(e)&&!a(e,["documentHead","documentBody","flowMapping","flowSequence"])}function c(e,t){return n(" ".repeat(e),t)}t.exports={alignWithSpaces:c,shouldPrintEndComments:l,printNextEmptyLine:u}}}),Xi=m({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){x();var{builders:{ifBreak:r,line:n,softline:i,hardline:s,join:a}}=V(),{isEmptyNode:o,getLast:u,hasEndComments:l}=Ki(),{printNextEmptyLine:c,alignWithSpaces:p}=Ji();function d(e,t,c){let d=e.getValue(),f="flowMapping"===d.type,m=f?"{":"[",y=f?"}":"]",g=i;f&&d.children.length>0&&c.bracketSpacing&&(g=n);let b=u(d.children),v=b&&"flowMappingItem"===b.type&&o(b.key)&&o(b.value);return[m,p(c.tabWidth,[g,h(e,t,c),"none"===c.trailingComma?"":r(","),l(d)?[s,a(s,e.map(t,"endComments"))]:""]),v?"":g,y]}function h(e,t,r){let i=e.getValue();return e.map(((e,s)=>[t(),s===i.children.length-1?"":[",",n,i.children[s].position.start.line!==i.children[s+1].position.start.line?c(e,r.originalText):""]]),"children")}t.exports={printFlowMapping:d,printFlowSequence:d}}}),Gi=m({"src/language-yaml/print/mapping-item.js"(e,t){x();var{builders:{conditionalGroup:r,group:n,hardline:i,ifBreak:s,join:a,line:o}}=V(),{hasLeadingComments:u,hasMiddleComments:l,hasTrailingComment:c,hasEndComments:p,isNode:d,isEmptyNode:h,isInlineNode:f}=Ki(),{alignWithSpaces:m}=Ji();function y(e,t,y,x,E){let{key:S,value:D}=e,T=h(S),C=h(D);if(T&&C)return": ";let A=x("key"),P=b(e)?" ":"";if(C)return"flowMappingItem"===e.type&&"flowMapping"===t.type?A:"mappingItem"!==e.type||!g(S.content,E)||c(S.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",m(2,A)]:[A,P,":"];let w=x("value");if(T)return[": ",m(2,w)];if(u(D)||!f(S.content))return["? ",m(2,A),i,a("",y.map(x,"value","leadingComments").map((e=>[e,i]))),": ",m(2,w)];if(v(S.content)&&!u(S.content)&&!l(S.content)&&!c(S.content)&&!p(S)&&!u(D.content)&&!l(D.content)&&!p(D)&&g(D.content,E))return[A,P,": ",w];let k=Symbol("mappingKey"),I=n([s("? "),n(m(2,A),{id:k})]),F=[i,": ",m(2,w)],N=[P,":"];u(D.content)||p(D)&&D.content&&!d(D.content,["mapping","sequence"])||"mapping"===t.type&&c(S.content)&&f(D.content)||d(D.content,["mapping","sequence"])&&null===D.content.tag&&null===D.content.anchor?N.push(i):D.content&&N.push(o),N.push(w);let _=m(E.tabWidth,N);return!g(S.content,E)||u(S.content)||l(S.content)||p(S)?r([[I,s(F,_,{groupId:k})]]):r([[A,_]])}function g(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function b(e){return e.key.content&&"alias"===e.key.content.type}function v(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}t.exports=y}}),Yi=m({"src/language-yaml/print/block.js"(e,t){x();var{builders:{dedent:r,dedentToRoot:n,fill:i,hardline:s,join:a,line:o,literalline:u,markAsRoot:l},utils:{getDocParts:c}}=V(),{getAncestorCount:p,getBlockValueLineContents:d,hasIndicatorComment:h,isLastDescendantNode:f,isNode:m}=Ki(),{alignWithSpaces:y}=Ji();function g(e,t,g){let b=e.getValue(),v=p(e,(e=>m(e,["sequence","mapping"]))),x=f(e),E=["blockFolded"===b.type?">":"|"];null!==b.indent&&E.push(b.indent.toString()),"clip"!==b.chomping&&E.push("keep"===b.chomping?"+":"-"),h(b)&&E.push(" ",t("indicatorComment"));let S=d(b,{parentIndent:v,isLastDescendant:x,options:g}),D=[];for(let[e,t]of S.entries())0===e&&D.push(s),D.push(i(c(a(o,t)))),e!==S.length-1?D.push(0===t.length?s:l(u)):"keep"===b.chomping&&x&&D.push(n(0===t.length?s:u));return null===b.indent?E.push(r(y(g.tabWidth,D))):E.push(n(y(b.indent-1+v,D))),E}t.exports=g}}),Qi=m({"src/language-yaml/printer-yaml.js"(e,t){x();var{builders:{breakParent:r,fill:n,group:i,hardline:s,join:a,line:o,lineSuffix:u,literalline:l},utils:{getDocParts:c,replaceTextEndOfLine:p}}=V(),{isPreviousLineEmpty:d}=pe(),{insertPragma:h,isPragma:f}=qi(),{locStart:m}=Wi(),y=zi(),{getFlowScalarLineContents:g,getLastDescendantNode:b,hasLeadingComments:v,hasMiddleComments:E,hasTrailingComment:S,hasEndComments:D,hasPrettierIgnore:T,isLastDescendantNode:C,isNode:A,isInlineNode:P}=Ki(),w=Hi(),{alignWithSpaces:k,printNextEmptyLine:I,shouldPrintEndComments:F}=Ji(),{printFlowMapping:N,printFlowSequence:_}=Xi(),O=Gi(),B=Yi();function j(e,t,n){let o=e.getValue(),c=[];"mappingValue"!==o.type&&v(o)&&c.push([a(s,e.map(n,"leadingComments")),s]);let{tag:h,anchor:f}=o;h&&c.push(n("tag")),h&&f&&c.push(" "),f&&c.push(n("anchor"));let y="";A(o,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!C(e)&&(y=I(e,t.originalText)),(h||f)&&(A(o,["sequence","mapping"])&&!E(o)?c.push(s):c.push(" ")),E(o)&&c.push([1===o.middleComments.length?"":s,a(s,e.map(n,"middleComments")),s]);let g=e.getParentNode();return T(e)?c.push(p(t.originalText.slice(o.position.start.offset,o.position.end.offset).trimEnd(),l)):c.push(i(L(o,g,e,t,n))),S(o)&&!A(o,["document","documentHead"])&&c.push(u(["mappingValue"!==o.type||o.content?" ":"","mappingKey"===g.type&&"mapping"===e.getParentNode(2).type&&P(o)?"":r,n("trailingComment")])),F(o)&&c.push(k("sequenceItem"===o.type?2:0,[s,a(s,e.map((e=>[d(t.originalText,e.getValue(),m)?s:"",n()]),"endComments"))])),c.push(y),c}function L(e,t,r,n,i){switch(e.type){case"root":{let{children:t}=e,n=[];r.each(((e,r)=>{let a=t[r],o=t[r+1];0!==r&&n.push(s),n.push(i()),R(a,o)?(n.push(s,"..."),S(a)&&n.push(" ",i("trailingComment"))):o&&!S(o.head)&&n.push(s,"---")}),"children");let a=b(e);return(!A(a,["blockLiteral","blockFolded"])||"keep"!==a.chomping)&&n.push(s),n}case"document":{let o=[];return"head"===$(e,t.children[r.getName()+1],t,n)&&((e.head.children.length>0||e.head.endComments.length>0)&&o.push(i("head")),S(e.head)?o.push(["---"," ",i(["head","trailingComment"])]):o.push("---")),M(e)&&o.push(i("body")),a(s,o)}case"documentHead":return a(s,[...r.map(i,"children"),...r.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:n}=e,o="";if(t.length>0&&n.length>0){let t=b(e);A(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(o=[s,s]):o=s}return[a(s,r.map(i,"children")),o,a(s,r.map(i,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return U(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let t="'",r='"',i=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&i.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(i)){let s="quoteDouble"===e.type?r:t;return[s,U(e.type,i,n),s]}if(i.includes(r))return[t,U(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,r).replace(/'/g,t.repeat(2)):i,n),t];if(i.includes(t))return[r,U(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,n),r];let s=n.singleQuote?t:r;return[s,U(e.type,i,n),s]}case"blockFolded":case"blockLiteral":return B(r,i,n);case"mapping":case"sequence":return a(s,r.map(i,"children"));case"sequenceItem":return["- ",k(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return O(e,t,r,i,n);case"flowMapping":return N(r,i,n);case"flowSequence":return _(r,i,n);case"flowSequenceItem":return i("content");default:throw new Error(`Unexpected node type ${e.type}`)}}function M(e){return e.body.children.length>0||D(e.body)}function R(e,t){return S(e)||t&&(t.head.children.length>0||D(t.head))}function $(e,t,r,n){return r.children[0]===e&&/---(?:\s|$)/.test(n.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||D(e.head)||S(e.head)?"head":!R(e,t)&&!!t&&"root"}function U(e,t,r){let i=g(e,t,r);return a(s,i.map((e=>n(c(a(o,e))))))}function q(e,t){if(A(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}}t.exports={preprocess:w,embed:y,print:j,massageAstNode:q,insertPragma:h}}}),Zi=m({"src/language-yaml/options.js"(e,t){x();var r=hn();t.exports={bracketSpacing:r.bracketSpacing,singleQuote:r.singleQuote,proseWrap:r.proseWrap}}}),es=m({"src/language-yaml/parsers.js"(){x()}}),ts=m({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),rs=m({"src/language-yaml/index.js"(e,t){x();var r=zt(),n=Qi(),i=Zi(),s=es(),a=[r(ts(),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter((e=>"yarn.lock"!==e)),".prettierrc",".stylelintrc",".lintstagedrc"]})))];t.exports={languages:a,printers:{yaml:n},options:i,parsers:s}}}),ns=m({"src/languages.js"(e,t){x(),t.exports=[Sn(),Vn(),Gn(),ni(),yi(),Vi(),rs()]}});x();var{version:is}=E(),ss=qt(),{getSupportInfo:as}=ie(),os=Wt(),us=ns(),ls=V();function cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];let s=n[t]||{},a=s.plugins||[];return n[t]=Object.assign(Object.assign({},s),{},{plugins:[...us,...Array.isArray(a)?a:Object.values(a)]}),e(...n)}}var ps=cs(ss.formatWithCursor);t.exports={formatWithCursor:ps,format:(e,t)=>ps(e,t).formatted,check(e,t){let{formatted:r}=ps(e,t);return r===e},doc:ls,getSupportInfo:cs(as,0),version:is,util:os,__debug:{parse:cs(ss.parse),formatAST:cs(ss.formatAST),formatDoc:cs(ss.formatDoc),printToDoc:cs(ss.printToDoc),printDocToString:cs(ss.printDocToString)}}})),K9());var J9=H9.exports,X9={exports:{}};X9.exports=function(){var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof y&&y)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),n=e(((e,t)=>{var n=r();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),i=e(((e,t)=>{var n=r();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),s=e(((e,t)=>{var r=i(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),a=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),o=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),u=e(((e,t)=>{var r=i(),n=Function.prototype,s=n.call,a=r&&n.bind.bind(s,s);t.exports=r?a:function(e){return function(){return s.apply(e,arguments)}}})),l=e(((e,t)=>{var r=u(),n=r({}.toString),i=r("".slice);t.exports=function(e){return i(n(e),8,-1)}})),c=e(((e,t)=>{var n=u(),i=r(),s=l(),a=Object,o=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?o(e,""):a(e)}:a})),p=e(((e,t)=>{t.exports=function(e){return null==e}})),d=e(((e,t)=>{var r=p(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),h=e(((e,t)=>{var r=c(),n=d();t.exports=function(e){return r(n(e))}})),f=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),m=e(((e,t)=>{var r=f(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),g=e(((e,t)=>{var r=m(),n=f(),i=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}})),b=e(((e,r)=>{var n=t(),i=m(),s=function(e){return i(e)?e:void 0};r.exports=function(e,t){return arguments.length<2?s(n[e]):n[e]&&n[e][t]}})),v=e(((e,t)=>{var r=u();t.exports=r({}.isPrototypeOf)})),x=e(((e,t)=>{var r=b();t.exports=r("navigator","userAgent")||""})),E=e(((e,r)=>{var n,i,s=t(),a=x(),o=s.process,u=s.Deno,l=o&&o.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),r.exports=i})),S=e(((e,t)=>{var n=E(),i=r();t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),D=e(((e,t)=>{var r=S();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),T=e(((e,t)=>{var r=b(),n=m(),i=v(),s=D(),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}})),C=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),A=e(((e,t)=>{var r=m(),n=C(),i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not a function")}})),P=e(((e,t)=>{var r=A(),n=p();t.exports=function(e,t){var i=e[t];return n(i)?void 0:r(i)}})),w=e(((e,t)=>{var r=s(),n=m(),i=g(),a=TypeError;t.exports=function(e,t){var s,o;if("string"===t&&n(s=e.toString)&&!i(o=r(s,e))||n(s=e.valueOf)&&!i(o=r(s,e))||"string"!==t&&n(s=e.toString)&&!i(o=r(s,e)))return o;throw a("Can't convert object to primitive value")}})),k=e(((e,t)=>{t.exports=!1})),I=e(((e,r)=>{var n=t(),i=Object.defineProperty;r.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),F=e(((e,r)=>{var n=t(),i=I(),s="__core-js_shared__",a=n[s]||i(s,{});r.exports=a})),N=e(((e,t)=>{var r=k(),n=F();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),_=e(((e,t)=>{var r=d(),n=Object;t.exports=function(e){return n(r(e))}})),O=e(((e,t)=>{var r=u(),n=_(),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(n(e),t)}})),B=e(((e,t)=>{var r=u(),n=0,i=Math.random(),s=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+i,36)}})),j=e(((e,r)=>{var n=t(),i=N(),s=O(),a=B(),o=S(),u=D(),l=i("wks"),c=n.Symbol,p=c&&c.for,d=u?c:c&&c.withoutSetter||a;r.exports=function(e){if(!s(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&s(c,e)?l[e]=c[e]:l[e]=u&&p?p(t):d(t)}return l[e]}})),L=e(((e,t)=>{var r=s(),n=g(),i=T(),a=P(),o=w(),u=j(),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!n(e)||i(e))return e;var s,u=a(e,c);if(u){if(void 0===t&&(t="default"),s=r(u,e,t),!n(s)||i(s))return s;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}})),M=e(((e,t)=>{var r=L(),n=T();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),R=e(((e,r)=>{var n=t(),i=g(),s=n.document,a=i(s)&&i(s.createElement);r.exports=function(e){return a?s.createElement(e):{}}})),$=e(((e,t)=>{var i=n(),s=r(),a=R();t.exports=!i&&!s((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))})),U=e((e=>{var t=n(),r=s(),i=a(),u=o(),l=h(),c=M(),p=O(),d=$(),f=Object.getOwnPropertyDescriptor;e.f=t?f:function(e,t){if(e=l(e),t=c(t),d)try{return f(e,t)}catch{}if(p(e,t))return u(!r(i.f,e,t),e[t])}})),V=e(((e,t)=>{var i=n(),s=r();t.exports=i&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),q=e(((e,t)=>{var r=g(),n=String,i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not an object")}})),W=e((e=>{var t=n(),r=$(),i=V(),s=q(),a=M(),o=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",p="configurable",d="writable";e.f=t?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:c in r?r[c]:n[c],writable:!1})}return u(e,t,r)}:u:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return u(e,t,n)}catch{}if("get"in n||"set"in n)throw o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),z=e(((e,t)=>{var r=n(),i=W(),s=o();t.exports=r?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}})),K=e(((e,t)=>{var r=n(),i=O(),s=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=i(s,"name"),u=o&&"something"===function(){}.name,l=o&&(!r||r&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:l}})),H=e(((e,t)=>{var r=u(),n=m(),i=F(),s=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),t.exports=i.inspectSource})),J=e(((e,r)=>{var n=t(),i=m(),s=n.WeakMap;r.exports=i(s)&&/native code/.test(String(s))})),X=e(((e,t)=>{var r=N(),n=B(),i=r("keys");t.exports=function(e){return i[e]||(i[e]=n(e))}})),G=e(((e,t)=>{t.exports={}})),Y=e(((e,r)=>{var n,i,s,a,o,u=J(),l=t(),c=g(),p=z(),d=O(),h=F(),f=X(),m=G(),y="Object already initialized",b=l.TypeError,v=l.WeakMap,x=function(e){return s(e)?i(e):n(e,{})},E=function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw b("Incompatible receiver, "+e+" required");return r}};u||h.state?((a=h.state||(h.state=new v)).get=a.get,a.has=a.has,a.set=a.set,n=function(e,t){if(a.has(e))throw b(y);return t.facade=e,a.set(e,t),t},i=function(e){return a.get(e)||{}},s=function(e){return a.has(e)}):(m[o=f("state")]=!0,n=function(e,t){if(d(e,o))throw b(y);return t.facade=e,p(e,o,t),t},i=function(e){return d(e,o)?e[o]:{}},s=function(e){return d(e,o)}),r.exports={set:n,get:i,has:s,enforce:x,getterFor:E}})),Q=e(((e,t)=>{var i=r(),s=m(),a=O(),o=n(),u=K().CONFIGURABLE,l=H(),c=Y(),p=c.enforce,d=c.get,h=Object.defineProperty,f=o&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(o?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=p(e);return a(n,"source")||(n.source=y.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return s(this)&&d(this).source||l(this)}),"toString")})),Z=e(((e,t)=>{var r=m(),n=W(),i=Q(),s=I();t.exports=function(e,t,a,o){o||(o={});var u=o.enumerable,l=void 0!==o.name?o.name:t;if(r(a)&&i(a,l,o),o.global)u?e[t]=a:s(t,a);else{try{o.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}})),ee=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),te=e(((e,t)=>{var r=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),re=e(((e,t)=>{var r=te(),n=Math.max,i=Math.min;t.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}})),ne=e(((e,t)=>{var r=te(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),ie=e(((e,t)=>{var r=ne();t.exports=function(e){return r(e.length)}})),se=e(((e,t)=>{var r=h(),n=re(),i=ie(),s=function(e){return function(t,s,a){var o,u=r(t),l=i(u),c=n(a,l);if(e&&s!=s){for(;l>c;)if((o=u[c++])!=o)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===s)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}})),ae=e(((e,t)=>{var r=u(),n=O(),i=h(),s=se().indexOf,a=G(),o=r([].push);t.exports=function(e,t){var r,u=i(e),l=0,c=[];for(r in u)!n(a,r)&&n(u,r)&&o(c,r);for(;t.length>l;)n(u,r=t[l++])&&(~s(c,r)||o(c,r));return c}})),oe=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ue=e((e=>{var t=ae(),r=oe().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),le=e((e=>{e.f=Object.getOwnPropertySymbols})),ce=e(((e,t)=>{var r=b(),n=u(),i=ue(),s=le(),a=q(),o=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?o(t,r(e)):t}})),pe=e(((e,t)=>{var r=O(),n=ce(),i=U(),s=W();t.exports=function(e,t,a){for(var o=n(t),u=s.f,l=i.f,c=0;c<o.length;c++){var p=o[c];!r(e,p)&&(!a||!r(a,p))&&u(e,p,l(t,p))}}})),de=e(((e,t)=>{var n=r(),i=m(),s=/#|\.prototype\./,a=function(e,t){var r=u[o(e)];return r==c||r!=l&&(i(t)?n(t):!!t)},o=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a})),he=e(((e,r)=>{var n=t(),i=U().f,s=z(),a=Z(),o=I(),u=pe(),l=de();r.exports=function(e,t){var r,c,p,d,h,f=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[f]||o(f,{}):(n[f]||{}).prototype)for(c in t){if(d=t[c],p=e.dontCallGetSet?(h=i(r,c))&&h.value:r[c],!l(m?c:f+(y?".":"#")+c,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),a(r,c,d,e)}}})),fe=e((()=>{var e=he(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),me=e((()=>{fe()})),ye=e(((e,t)=>{var r=Q(),n=W();t.exports=function(e,t,i){return i.get&&r(i.get,t,{getter:!0}),i.set&&r(i.set,t,{setter:!0}),n.f(e,t,i)}})),ge=e(((e,t)=>{var r=q();t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}})),be=e((()=>{var e=t(),i=n(),s=ye(),a=ge(),o=r(),u=e.RegExp,l=u.prototype;i&&o((function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==n||r!==n}))&&s(l,"flags",{configurable:!0,get:a})})),ve=e(((e,t)=>{var r=l();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),xe=e(((e,t)=>{var r=TypeError,n=9007199254740991;t.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}})),Ee=e(((e,t)=>{var r=l(),n=u();t.exports=function(e){if("Function"===r(e))return n(e)}})),Se=e(((e,t)=>{var r=Ee(),n=A(),s=i(),a=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}})),De=e(((e,t)=>{var r=ve(),n=ie(),i=xe(),s=Se(),a=function(e,t,o,u,l,c,p,d){for(var h,f,m=l,y=0,g=!!p&&s(p,d);y<u;)y in o&&(h=g?g(o[y],y,t):o[y],c>0&&r(h)?(f=n(h),m=a(e,t,h,f,m,c-1)-1):(i(m+1),e[m]=h),m++),y++;return m};t.exports=a})),Te=e(((e,t)=>{var r={};r[j()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Ce=e(((e,t)=>{var r=Te(),n=m(),i=l(),s=j()("toStringTag"),a=Object,o="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch{}};t.exports=r?i:function(e){var t,r,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=a(e),s))?r:o?i(t):"Object"==(l=i(t))&&n(t.callee)?"Arguments":l}})),Ae=e(((e,t)=>{var n=u(),i=r(),s=m(),a=Ce(),o=b(),l=H(),c=function(){},p=[],d=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),y=!h.exec(c),g=function(e){if(!s(e))return!1;try{return d(c,p,e),!0}catch{return!1}},v=function(e){if(!s(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!f(h,l(e))}catch{return!0}};v.sham=!0,t.exports=!d||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g})),Pe=e(((e,t)=>{var r=ve(),n=Ae(),i=g(),s=j()("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(n(t)&&(t===a||r(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}})),we=e(((e,t)=>{var r=Pe();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),ke=e((()=>{var e=he(),t=De(),r=A(),n=_(),i=ie(),s=we();e({target:"Array",proto:!0},{flatMap:function(e){var a,o=n(this),u=i(o);return r(e),(a=s(o,0)).length=t(a,o,o,u,0,1,e,arguments.length>1?arguments[1]:void 0),a}})})),Ie=e(((e,t)=>{me(),be(),ke();var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},o=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of i(t))!s.call(e,u)&&u!==a&&r(e,u,{get:()=>t[u],enumerable:!(o=n(t,u))||o.enumerable});return e},c=e=>l(r({},"__esModule",{value:!0}),e),p=a({"<define:process>"(){}}),d=o({"src/utils/try-combinations.js"(e,t){function r(){let e;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let[t,n]of r.entries())try{return{result:n()}}catch(r){0===t&&(e=r)}return{error:e}}p(),t.exports=r}}),h=o({"src/language-js/utils/get-shebang.js"(e,t){function r(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}p(),t.exports=r}}),f=o({"src/utils/text/skip-inline-comment.js"(e,t){function r(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}p(),t.exports=r}}),m=o({"src/utils/text/skip-newline.js"(e,t){function r(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let i=e.charAt(t);if(n){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}p(),t.exports=r}}),y=o({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}p();var n=r(/\s/),i=r(" \t"),s=r(",; \t"),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:a}}}),g=o({"src/utils/text/skip-trailing-comment.js"(e,t){p();var{skipEverythingButNewLine:r}=y();function n(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}t.exports=n}}),b=o({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){p();var r=f(),n=m(),i=g(),{skipSpaces:s}=y();function a(e,t){let a=null,o=t;for(;o!==a;)a=o,o=s(e,o),o=r(e,o),o=i(e,o),o=n(e,o);return o}t.exports=a}}),v={};function x(){if(typeof O>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])O="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");O="LE"}}return O}function E(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function S(){return[]}function D(){return 0}function T(){return Number.MAX_VALUE}function C(){return Number.MAX_VALUE}function A(){return[]}function P(){return"Browser"}function w(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function k(){}function I(){}function F(){return"javascript"}function N(){return"browser"}function _(){return"/tmp"}u(v,{EOL:()=>j,arch:()=>F,cpus:()=>A,default:()=>L,endianness:()=>x,freemem:()=>T,getNetworkInterfaces:()=>I,hostname:()=>E,loadavg:()=>S,networkInterfaces:()=>k,platform:()=>N,release:()=>w,tmpDir:()=>_,tmpdir:()=>B,totalmem:()=>C,type:()=>P,uptime:()=>D});var O,B,j,L,M=a({"node-modules-polyfills:os"(){p(),L={EOL:j="\n",tmpdir:B=_,tmpDir:_,networkInterfaces:k,getNetworkInterfaces:I,release:w,type:P,cpus:A,totalmem:C,freemem:T,uptime:D,loadavg:S,hostname:E,endianness:x}}}),R=o({"node-modules-polyfills-commonjs:os"(e,t){p();var r=(M(),c(v));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),$=o({"node_modules/detect-newline/index.js"(e,t){p();var r=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"}}),U=o({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=R();return t=function(){return e},e}function r(){let e=n($());return r=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}p(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=f,e.parse=y,e.parseWithComments=g,e.print=b,e.strip=m;var i=/\*\/$/,s=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,d=/(\r?\n|^) *\* ?/g,h=[];function f(e){let t=e.match(a);return t?t[0].trimLeft():""}function m(e){let t=e.match(a);return t&&t[0]?e.substring(t[0].length):e}function y(e){return g(e).pragmas}function g(e){let n=(0,r().default)(e)||t().EOL;e=e.replace(s,"").replace(i,"").replace(d,"$1");let a="";for(;a!==e;)a=e,e=e.replace(l,`${n}$1 $2${n}`);e=e.replace(u,"").trimRight();let p,f=Object.create(null),m=e.replace(c,"").replace(u,"").trimRight();for(;p=c.exec(e);){let e=p[2].replace(o,"");"string"==typeof f[p[1]]||Array.isArray(f[p[1]])?f[p[1]]=h.concat(f[p[1]],e):f[p[1]]=e}return{comments:m,pragmas:f}}function b(e){let{comments:n="",pragmas:i={}}=e,s=(0,r().default)(n)||t().EOL,a="/**",o=" *",u=" */",l=Object.keys(i),c=l.map((e=>v(e,i[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>`${o} ${e}${s}`)).join("");if(!n){if(0===l.length)return"";if(1===l.length&&!Array.isArray(i[l[0]])){let e=i[l[0]];return`${a} ${v(l[0],e)[0]}${u}`}}let p=n.split(s).map((e=>`${o} ${e}`)).join(s)+s;return a+s+(n?p:"")+(n&&l.length?o+s:"")+c+u}function v(e,t){return h.concat(t).map((t=>`@${e} ${t}`.trim()))}}}),V=o({"src/common/end-of-line.js"(e,t){function r(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function n(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function i(e,t){let r;switch(t){case"\n":r=/\n/g;break;case"\r":r=/\r/g;break;case"\r\n":r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function s(e){return e.replace(/\r\n?/g,"\n")}p(),t.exports={guessEndOfLine:r,convertEndOfLineToChars:n,countEndOfLineChars:i,normalizeEndOfLine:s}}}),q=o({"src/language-js/pragma.js"(e,t){p();var{parseWithComments:r,strip:n,extract:i,print:s}=U(),{normalizeEndOfLine:a}=V(),o=h();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let n=i(e),{pragmas:s,comments:a}=r(n);return{shebang:t,text:e,pragmas:s,comments:a}}function l(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")}function c(e){let{shebang:t,text:r,pragmas:i,comments:o}=u(e),l=n(r),c=s({pragmas:Object.assign({format:""},i),comments:o.trimStart()});return(t?`${t}\n`:"")+a(c)+(l.startsWith("\n")?"\n":"\n\n")+l}t.exports={hasPragma:l,insertPragma:c}}}),W=o({"src/utils/is-non-empty-array.js"(e,t){function r(e){return Array.isArray(e)&&e.length>0}p(),t.exports=r}}),z=o({"src/language-js/loc.js"(e,t){p();var r=W();function n(e){var t,i;let s=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}function a(e,t){let r=i(e);return Number.isInteger(r)&&r===i(t)}function o(e,t){return s(e,t)&&a(e,t)}t.exports={locStart:n,locEnd:i,hasSameLocStart:s,hasSameLoc:o}}}),K=o({"src/language-js/parse/utils/create-parser.js"(e,t){p();var{hasPragma:r}=q(),{locStart:n,locEnd:i}=z();function s(e){return e="function"==typeof e?{parse:e}:e,Object.assign({astFormat:"estree",hasPragma:r,locStart:n,locEnd:i},e)}t.exports=s}}),H=o({"src/common/parser-create-error.js"(e,t){function r(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}p(),t.exports=r}}),J=o({"src/language-js/parse/utils/create-babel-parse-error.js"(e,t){p();var r=H();function n(e){let{message:t,loc:n}=e;return r(t.replace(/ \(.*\)/,""),{start:{line:n?n.line:0,column:n?n.column+1:0}})}t.exports=n}}),X=o({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function r(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}p(),t.exports=r}}),G=o({"src/language-js/utils/is-block-comment.js"(e,t){p();var r=new Set(["Block","CommentBlock","MultiLine"]),n=e=>r.has(null==e?void 0:e.type);t.exports=n}}),Y=o({"src/language-js/utils/is-type-cast-comment.js"(e,t){p();var r=G();function n(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}t.exports=n}}),Q=o({"src/utils/get-last.js"(e,t){p();var r=e=>e[e.length-1];t.exports=r}}),Z=o({"src/language-js/parse/postprocess/visit-node.js"(e,t){function r(e,t){if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=r(e[n],t);return e}if(e&&"object"==typeof e&&"string"==typeof e.type){let n=Object.keys(e);for(let i=0;i<n.length;i++)e[n[i]]=r(e[n[i]],t);return t(e)||e}return e}p(),t.exports=r}}),ee=o({"src/language-js/parse/postprocess/throw-syntax-error.js"(e,t){p();var r=H();function n(e,t){let{start:n,end:i}=e.loc;throw r(t,{start:{line:n.line,column:n.column+1},end:{line:i.line,column:i.column+1}})}t.exports=n}}),te=o({"src/language-js/parse/postprocess/index.js"(e,t){p();var{locStart:r,locEnd:n}=z(),i=X(),s=Y(),a=Q(),o=Z(),u=ee();function l(e,t){if("typescript"!==t.parser&&"flow"!==t.parser&&"acorn"!==t.parser&&"espree"!==t.parser&&"meriyah"!==t.parser){let t=new Set;e=o(e,(e=>{e.leadingComments&&e.leadingComments.some(s)&&t.add(r(e))})),e=o(e,(e=>{if("ParenthesizedExpression"===e.type){let{expression:n}=e;if("TypeCastExpression"===n.type)return n.range=e.range,n;let i=r(e);if(!t.has(i))return n.extra=Object.assign(Object.assign({},n.extra),{},{parenthesized:!0}),n}}))}return e=o(e,(e=>{switch(e.type){case"ChainExpression":return c(e.expression);case"LogicalExpression":if(d(e))return h(e);break;case"VariableDeclaration":{let t=a(e.declarations);t&&t.init&&l(e,t);break}case"TSParenthesizedType":return i(e.typeAnnotation)||"TSThisType"===e.typeAnnotation.type||(e.typeAnnotation.range=[r(e),n(e)]),e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){let t=r(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}break;case"ObjectExpression":if("typescript"===t.parser){let t=e.properties.find((e=>"Property"===e.type&&"TSEmptyBodyFunctionExpression"===e.value.type));t&&u(t.value,"Unexpected token.")}break;case"SequenceExpression":{let t=a(e.expressions);e.range=[r(e),Math.min(n(t),n(e))];break}case"TopicReference":t.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:i}=e;if("meriyah"===t.parser&&i&&"Identifier"===i.type){let s=t.originalText.slice(r(i),n(i));(s.startsWith('"')||s.startsWith("'"))&&(e.exported=Object.assign(Object.assign({},e.exported),{},{type:"Literal",value:e.exported.name,raw:s}))}break}case"PropertyDefinition":if("meriyah"===t.parser&&e.static&&!e.computed&&!e.key){let t="static",n=r(e);Object.assign(e,{static:!1,key:{type:"Identifier",name:t,range:[n,n+t.length]}})}}}));function l(e,i){";"!==t.originalText[n(i)]&&(e.range=[r(e),n(i)])}}function c(e){switch(e.type){case"CallExpression":e.type="OptionalCallExpression",e.callee=c(e.callee);break;case"MemberExpression":e.type="OptionalMemberExpression",e.object=c(e.object);break;case"TSNonNullExpression":e.expression=c(e.expression)}return e}function d(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function h(e){return d(e)?h({type:"LogicalExpression",operator:e.operator,left:h({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[r(e.left),n(e.right.left)]}),right:e.right.right,range:[r(e),n(e)]}):e}t.exports=l}}),re=o({"node_modules/@babel/parser/lib/index.js"(e){p(),Object.defineProperty(e,"__esModule",{value:!0});var t={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function r(e){if(e&&null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");let r={};for(let n of Object.keys(t))r[n]=e&&null!=e[n]?e[n]:t[n];return r}var n=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},i={brace:new n("{"),j_oTag:new n("<tag"),j_cTag:new n("</tag"),j_expr:new n("<tag>...</tag>",!0)};i.template=new n("`",!0);var s=!0,a=!0,o=!0,u=!0,l=!0,c=!0,d=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}},h=new Map;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;let r=D(e,t);return h.set(e,r),r}function m(e,t){return D(e,{beforeExpr:s,binop:t})}var y=-1,g=[],b=[],v=[],x=[],E=[],S=[];function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,i,s;return++y,b.push(e),v.push(null!=(r=t.binop)?r:-1),x.push(null!=(n=t.beforeExpr)&&n),E.push(null!=(i=t.startsExpr)&&i),S.push(null!=(s=t.prefix)&&s),g.push(new d(e,t)),y}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,i,s;return++y,h.set(e,y),b.push(e),v.push(null!=(r=t.binop)?r:-1),x.push(null!=(n=t.beforeExpr)&&n),E.push(null!=(i=t.startsExpr)&&i),S.push(null!=(s=t.prefix)&&s),g.push(new d("name",t)),y}var C={bracketL:D("[",{beforeExpr:s,startsExpr:a}),bracketHashL:D("#[",{beforeExpr:s,startsExpr:a}),bracketBarL:D("[|",{beforeExpr:s,startsExpr:a}),bracketR:D("]"),bracketBarR:D("|]"),braceL:D("{",{beforeExpr:s,startsExpr:a}),braceBarL:D("{|",{beforeExpr:s,startsExpr:a}),braceHashL:D("#{",{beforeExpr:s,startsExpr:a}),braceR:D("}"),braceBarR:D("|}"),parenL:D("(",{beforeExpr:s,startsExpr:a}),parenR:D(")"),comma:D(",",{beforeExpr:s}),semi:D(";",{beforeExpr:s}),colon:D(":",{beforeExpr:s}),doubleColon:D("::",{beforeExpr:s}),dot:D("."),question:D("?",{beforeExpr:s}),questionDot:D("?."),arrow:D("=>",{beforeExpr:s}),template:D("template"),ellipsis:D("...",{beforeExpr:s}),backQuote:D("`",{startsExpr:a}),dollarBraceL:D("${",{beforeExpr:s,startsExpr:a}),templateTail:D("...`",{startsExpr:a}),templateNonTail:D("...${",{beforeExpr:s,startsExpr:a}),at:D("@"),hash:D("#",{startsExpr:a}),interpreterDirective:D("#!..."),eq:D("=",{beforeExpr:s,isAssign:u}),assign:D("_=",{beforeExpr:s,isAssign:u}),slashAssign:D("_=",{beforeExpr:s,isAssign:u}),xorAssign:D("_=",{beforeExpr:s,isAssign:u}),moduloAssign:D("_=",{beforeExpr:s,isAssign:u}),incDec:D("++/--",{prefix:l,postfix:c,startsExpr:a}),bang:D("!",{beforeExpr:s,prefix:l,startsExpr:a}),tilde:D("~",{beforeExpr:s,prefix:l,startsExpr:a}),doubleCaret:D("^^",{startsExpr:a}),doubleAt:D("@@",{startsExpr:a}),pipeline:m("|>",0),nullishCoalescing:m("??",1),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),lt:m("</>/<=/>=",7),gt:m("</>/<=/>=",7),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),bitShiftL:m("<</>>/>>>",8),bitShiftR:m("<</>>/>>>",8),plusMin:D("+/-",{beforeExpr:s,binop:9,prefix:l,startsExpr:a}),modulo:D("%",{binop:10,startsExpr:a}),star:D("*",{binop:10}),slash:m("/",10),exponent:D("**",{beforeExpr:s,binop:11,rightAssociative:!0}),_in:f("in",{beforeExpr:s,binop:7}),_instanceof:f("instanceof",{beforeExpr:s,binop:7}),_break:f("break"),_case:f("case",{beforeExpr:s}),_catch:f("catch"),_continue:f("continue"),_debugger:f("debugger"),_default:f("default",{beforeExpr:s}),_else:f("else",{beforeExpr:s}),_finally:f("finally"),_function:f("function",{startsExpr:a}),_if:f("if"),_return:f("return",{beforeExpr:s}),_switch:f("switch"),_throw:f("throw",{beforeExpr:s,prefix:l,startsExpr:a}),_try:f("try"),_var:f("var"),_const:f("const"),_with:f("with"),_new:f("new",{beforeExpr:s,startsExpr:a}),_this:f("this",{startsExpr:a}),_super:f("super",{startsExpr:a}),_class:f("class",{startsExpr:a}),_extends:f("extends",{beforeExpr:s}),_export:f("export"),_import:f("import",{startsExpr:a}),_null:f("null",{startsExpr:a}),_true:f("true",{startsExpr:a}),_false:f("false",{startsExpr:a}),_typeof:f("typeof",{beforeExpr:s,prefix:l,startsExpr:a}),_void:f("void",{beforeExpr:s,prefix:l,startsExpr:a}),_delete:f("delete",{beforeExpr:s,prefix:l,startsExpr:a}),_do:f("do",{isLoop:o,beforeExpr:s}),_for:f("for",{isLoop:o}),_while:f("while",{isLoop:o}),_as:T("as",{startsExpr:a}),_assert:T("assert",{startsExpr:a}),_async:T("async",{startsExpr:a}),_await:T("await",{startsExpr:a}),_from:T("from",{startsExpr:a}),_get:T("get",{startsExpr:a}),_let:T("let",{startsExpr:a}),_meta:T("meta",{startsExpr:a}),_of:T("of",{startsExpr:a}),_sent:T("sent",{startsExpr:a}),_set:T("set",{startsExpr:a}),_static:T("static",{startsExpr:a}),_using:T("using",{startsExpr:a}),_yield:T("yield",{startsExpr:a}),_asserts:T("asserts",{startsExpr:a}),_checks:T("checks",{startsExpr:a}),_exports:T("exports",{startsExpr:a}),_global:T("global",{startsExpr:a}),_implements:T("implements",{startsExpr:a}),_intrinsic:T("intrinsic",{startsExpr:a}),_infer:T("infer",{startsExpr:a}),_is:T("is",{startsExpr:a}),_mixins:T("mixins",{startsExpr:a}),_proto:T("proto",{startsExpr:a}),_require:T("require",{startsExpr:a}),_satisfies:T("satisfies",{startsExpr:a}),_keyof:T("keyof",{startsExpr:a}),_readonly:T("readonly",{startsExpr:a}),_unique:T("unique",{startsExpr:a}),_abstract:T("abstract",{startsExpr:a}),_declare:T("declare",{startsExpr:a}),_enum:T("enum",{startsExpr:a}),_module:T("module",{startsExpr:a}),_namespace:T("namespace",{startsExpr:a}),_interface:T("interface",{startsExpr:a}),_type:T("type",{startsExpr:a}),_opaque:T("opaque",{startsExpr:a}),name:D("name",{startsExpr:a}),string:D("string",{startsExpr:a}),num:D("num",{startsExpr:a}),bigint:D("bigint",{startsExpr:a}),decimal:D("decimal",{startsExpr:a}),regexp:D("regexp",{startsExpr:a}),privateName:D("#name",{startsExpr:a}),eof:D("eof"),jsxName:D("jsxName"),jsxText:D("jsxText",{beforeExpr:!0}),jsxTagStart:D("jsxTagStart",{startsExpr:!0}),jsxTagEnd:D("jsxTagEnd"),placeholder:D("%%",{startsExpr:!0})};function A(e){return e>=93&&e<=130}function P(e){return e<=92}function w(e){return e>=58&&e<=130}function k(e){return e>=58&&e<=134}function I(e){return x[e]}function F(e){return E[e]}function N(e){return e>=29&&e<=33}function _(e){return e>=127&&e<=129}function O(e){return e>=90&&e<=92}function B(e){return e>=58&&e<=92}function j(e){return e>=39&&e<=59}function L(e){return 34===e}function M(e){return S[e]}function R(e){return e>=119&&e<=121}function $(e){return e>=122&&e<=128}function U(e){return b[e]}function V(e){return v[e]}function q(e){return 57===e}function W(e){return e>=24&&e<=25}function z(e){return g[e]}function K(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}g[8].updateContext=e=>{e.pop()},g[5].updateContext=g[7].updateContext=g[23].updateContext=e=>{e.push(i.brace)},g[22].updateContext=e=>{e[e.length-1]===i.template?e.pop():e.push(i.template)},g[140].updateContext=e=>{e.push(i.j_expr,i.j_oTag)};var H=class{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}},J=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function X(e,t){let{line:r,column:n,index:i}=e;return new H(r,n+t,i+t)}var G={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;return{get(){return e.reduce(((e,t)=>e[t]),this)},set(r){e.reduce(((e,n,i)=>i===t?e[n]=r:e[n]),this)}}},Q=(e,t,r)=>Object.keys(r).map((e=>[e,r[e]])).filter((e=>{let[,t]=e;return!!t})).map((e=>{let[t,r]=e;return[t,"function"==typeof r?{value:r,enumerable:!1}:"string"==typeof r.reflect?Object.assign({},r,Y(r.reflect.split("."))):r]})).reduce(((e,t)=>{let[r,n]=t;return Object.defineProperty(e,r,Object.assign({configurable:!0},n))}),Object.assign(new e,t)),Z={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:G.SourceTypeModuleError},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:G.SourceTypeModuleError}},ee={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},te=e=>{let{type:t,prefix:r}=e;return"UpdateExpression"===t?ee.UpdateExpression[String(r)]:ee[t]},re={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:r}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${r}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${te(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${te(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:r}=e;return`Unexpected token${r?` '${r}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:r}=e;return`The only valid meta property for ${t} is ${t}.${r}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},ne={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},ie=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),se={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${te({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},ae=["toMessage"],oe=["message"];function ue(e){let{toMessage:t}=e,r=K(e,ae);return function e(n){let{loc:i,details:s}=n;return Q(SyntaxError,Object.assign({},r,{loc:i}),{clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.loc||{};return e({loc:new H("line"in r?r.line:this.loc.line,"column"in r?r.column:this.loc.column,"index"in r?r.index:this.loc.index),details:Object.assign({},this.details,t.details)})},details:{value:s,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(e){Object.defineProperty(this,"message",{value:e})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in s&&{reflect:"details.missingPlugin",enumerable:!0}})}}function le(e,t){if(Array.isArray(e))return t=>le(t,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:a}=s,o=K(s,oe),u="string"==typeof a?()=>a:a;r[n]=ue(Object.assign({code:G.SyntaxError,reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var ce=Object.assign({},le(Z),le(re),le(ne),le`pipelineOperator`(se)),{defineProperty:pe}=Object,de=(e,t)=>pe(e,t,{enumerable:!1,value:e[t]});function he(e){return e.loc.start&&de(e.loc.start,"index"),e.loc.end&&de(e.loc.end,"index"),e}var fe=e=>class extends e{parse(){let e=he(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(he)),e}parseRegExpLiteral(e){let{pattern:t,flags:r}=e,n=null;try{n=new RegExp(t,r)}catch{}let i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;let r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);let s=e.directives.map((e=>this.directiveToStmt(e)));e.body=s.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,i,s){this.parseMethod(t,r,n,i,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,n,i,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){let e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition"),e}parseClassPrivateProperty(){let e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition",e.computed=!1),e}parseObjectMethod(e,t,r,n,i){let s=super.parseObjectMethod(e,t,r,n,i);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,n){let i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(ce.PatternHasAccessor,{at:e.key}):e.method?this.raise(ce.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){let r=super.finishCallExpression(e,t);var n;return"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],this.hasPlugin("importAssertions")&&(r.attributes=null!=(n=r.arguments[1])?n:null),delete r.arguments,delete r.callee),r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var i;let{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){let i=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if(("OptionalMemberExpression"===i.type||"OptionalCallExpression"===i.type)&&(i.type=i.type.substring(8)),n.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else("MemberExpression"===i.type||"CallExpression"===i.type)&&(i.optional=!1);return i}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,r){return he(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t),he(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),he(e)}},me="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ye="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ge=new RegExp("["+me+"]"),be=new RegExp("["+me+ye+"]");me=ye=null;var ve=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,38,6,186,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,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],xe=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Ee(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Se(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ge.test(String.fromCharCode(e)):Ee(e,ve)))}function De(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&be.test(String.fromCharCode(e)):Ee(e,ve)||Ee(e,xe))))}var Te={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Ce=new Set(Te.keyword),Ae=new Set(Te.strict),Pe=new Set(Te.strictBind);function we(e,t){return t&&"await"===e||"enum"===e}function ke(e,t){return we(e,t)||Ae.has(e)}function Ie(e){return Pe.has(e)}function Fe(e,t){return ke(e,t)||Ie(e)}function Ne(e){return Ce.has(e)}function _e(e,t,r){return 64===e&&64===t&&Se(r)}var Oe=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","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Be(e){return Oe.has(e)}var je=0,Le=1,Me=2,Re=4,$e=8,Ue=16,Ve=32,qe=64,We=128,ze=256,Ke=Le|Me|We|ze,He=1,Je=2,Xe=4,Ge=8,Ye=16,Qe=64,Ze=128,et=256,tt=512,rt=1024,nt=2048,it=4096,st=8192,at=He|Je|Ge|Ze|st,ot=0|He|Ge|st,ut=0|He|Ge|0,lt=0|He|Xe|0,ct=0|He|Ye|0,pt=0|Je|Ze,dt=0|Je,ht=He|Je|Ge|et|st,ft=0|rt,mt=0|Qe,yt=0|He|Qe,gt=ht|tt,bt=0|rt,vt=0|Je|it,xt=nt,Et=4,St=2,Dt=1,Tt=St|Dt,Ct=St|Et,At=Dt|Et,Pt=St,wt=Dt,kt=0,It=class{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e}},Ft=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&Le)>0}get inFunction(){return(this.currentVarScopeFlags()&Me)>0}get allowSuper(){return(this.currentThisScopeFlags()&Ue)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&Ve)>0}get inClass(){return(this.currentThisScopeFlags()&qe)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&qe)>0&&0==(e&Me)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&We)return!0;if(t&(Ke|qe))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&Me)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new It(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(Me|We)||!this.parser.inModule&&e.flags&Le)}declareName(e,t,r){let n=this.currentScope();if(t&Ge||t&Ye)this.checkRedeclarationInScope(n,e,t,r),t&Ye?n.functions.add(e):n.lexical.add(e),t&Ge&&this.maybeExportDefined(n,e);else if(t&Xe)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.var.add(e),this.maybeExportDefined(n,e),!(n.flags&Ke));--i);this.parser.inModule&&n.flags&Le&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&Le&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(ce.VarRedeclaration,{at:n,identifierName:t})}isRedeclaredInScope(e,t,r){return!!(r&He)&&(r&Ge?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):r&Ye?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(e.flags&$e&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t))}checkLocalExport(e){let{name:t}=e,r=this.scopeStack[0];!r.lexical.has(t)&&!r.var.has(t)&&!r.functions.has(t)&&this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&Ke)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&(Ke|qe)&&!(t&Re))return t}}},Nt=class extends It{constructor(){super(...arguments),this.declareFunctions=new Set}},_t=class extends Ft{createScope(e){return new Nt(e)}declareName(e,t,r){let n=this.currentScope();if(t&nt)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){return!!super.isRedeclaredInScope(e,t,r)||!!(r&nt)&&!e.declareFunctions.has(t)&&(e.lexical.has(t)||e.functions.has(t))}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Ot=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}};function Bt(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function jt(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}function Lt(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Mt(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?Lt(e,r.comments):Bt(n,r.comments)}var Rt=class extends Ot{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}processComment(e){let{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1,i=t[n];i.start===e.end&&(i.leadingNode=e,n--);let{start:s}=e;for(;n>=0;n--){let r=t[n],i=r.end;if(!(i>s)){i===s&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Bt(e.leadingNode,t),null!==e.trailingNode&&jt(e.trailingNode,t);else{let{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Mt(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":Mt(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Mt(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Mt(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Mt(r,r.specifiers,e);break;default:Lt(r,t)}else Lt(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(0===r)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){let i=n[s],a=i.end;if(i.start===r)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}},$t=/\r\n?|[\n\u2028\u2029]/,Ut=new RegExp($t.source,"g");function Vt(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var qt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wt=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function zt(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Kt=class{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=137,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[i.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}init(e){let{strictMode:t,sourceType:r,startLine:n,startColumn:i}=e;this.strict=!1!==t&&(!0===t||"module"===r),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new H(n,i,0)}curPosition(){return new H(this.curLine,this.pos-this.lineStart,this.pos)}clone(e){let t=new Kt,r=Object.keys(this);for(let n=0,i=r.length;n<i;n++){let i=r[n],s=this[i];!e&&Array.isArray(s)&&(s=s.slice()),t[i]=s}return t}},Ht=function(e){return e>=48&&e<=57},Jt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Xt={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Gt(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:d}=t;for(;;){if(r>=d){s.unterminated(a,o,u),l+=t.slice(p,r);break}let h=t.charCodeAt(r);if(Yt(e,h,t,r)){l+=t.slice(p,r);break}if(92===h){l+=t.slice(p,r);let a=Qt(t,r,n,i,"template"===e,s);null!==a.ch||c?l+=a.ch:c={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),p=r}else 8232===h||8233===h?(++i,n=++r):10===h||13===h?"template"===e?(l+=t.slice(p,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++i,p=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function Yt(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Qt(e,t,r,n,i,s){let a=!i;t++;let o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:t}=Zt(e,t,r,n,2,!1,a,s)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=tr(e,t,r,n,a,s)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let a=t-1,u=e.slice(a,t+2).match(/^[0-7]+/)[0],l=parseInt(u,8);l>255&&(u=u.slice(0,-1),l=parseInt(u,8)),t+=u.length-1;let c=e.charCodeAt(t);if("0"!==u||56===c||57===c){if(i)return o(null);s.strictNumericEscape(a,r,n)}return o(String.fromCharCode(l))}return o(String.fromCharCode(u))}}function Zt(e,t,r,n,i,s,a,o){let u,l=t;return({n:u,pos:t}=er(e,t,r,n,16,i,s,!1,o,!a)),null===u&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function er(e,t,r,n,i,s,a,o,u,l){let c=t,p=16===i?Jt.hex:Jt.decBinOct,d=16===i?Xt.hex:10===i?Xt.dec:8===i?Xt.oct:Xt.bin,h=!1,f=0;for(let c=0,m=null==s?1/0:s;c<m;++c){let s,c=e.charCodeAt(t);if(95!==c||"bail"===o){if(s=c>=97?c-97+10:c>=65?c-65+10:Ht(c)?c-48:1/0,s>=i){if(s<=9&&l)return{n:null,pos:t};if(s<=9&&u.invalidDigit(t,r,n,i))s=0;else{if(!a)break;s=0,h=!0}}++t,f=f*i+s}else{let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!d(s)||p.has(i)||p.has(s)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===c||null!=s&&t-c!==s||h?{n:null,pos:t}:{n:f,pos:t}}function tr(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=Zt(e,t,r,n,e.indexOf("}",t)-t,!0,i,s)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:a,pos:t}=Zt(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}var rr=["at"],nr=["at"];function ir(e,t,r){return new H(r,e-t,e)}var sr=new Set([103,109,115,105,121,117,100,118]),ar=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new J(e.startLoc,e.endLoc)}},or=class extends Rt{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(ce.InvalidDigit,{at:ir(e,t,r),radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(ce.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(ce.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(ce.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(ce.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(ce.StrictNumericEscape,{at:ir(e,t,r)})},unterminated:(e,t,r)=>{throw this.raise(ce.UnterminatedString,{at:ir(e-1,t,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(ce.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(ce.UnterminatedTemplate,{at:ir(e,t,r)})}}),this.state=new Kt,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new ar(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return qt.lastIndex=e,qt.test(this.input)?qt.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){let r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,r]=e;return this.raise(t,{at:r})})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(137):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(ce.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=n+e.length,Ut.lastIndex=r+2;Ut.test(this.input)&&Ut.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Ut.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(r+2,n),start:r,end:n+e.length,loc:new J(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){let t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Vt(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,s={type:"CommentLine",value:this.input.slice(r+e,i),start:r,end:i,loc:new J(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){let e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(zt(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){let r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==r||this.inModule||!this.options.annexB)break e;{let e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){let r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(ce.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?ce.RecordExpressionHashIncorrectStartSyntaxType:ce.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else Se(t)?(++this.state.pos,this.finishToken(136,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!Vt(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61===n&&!this.state.inType&&(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(Se(e))return void this.readWord(e)}throw this.raise(ce.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e,t,r=this.state.startLoc,n=this.state.start+1,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(ce.UnterminatedRegExp,{at:X(r,1)});let n=this.input.charCodeAt(i);if(Vt(n))throw this.raise(ce.UnterminatedRegExp,{at:X(r,1)});if(e)e=!1;else{if(91===n)t=!0;else if(93===n&&t)t=!1;else if(47===n&&!t)break;e=92===n}}let s=this.input.slice(n,i);++i;let a="",o=()=>X(r,i+2-n);for(;i<this.length;){let e=this.codePointAtPos(i),t=String.fromCharCode(e);if(sr.has(e))118===e?(this.expectPlugin("regexpUnicodeSets",o()),a.includes("u")&&this.raise(ce.IncompatibleRegExpUVFlags,{at:o()})):117===e&&a.includes("v")&&this.raise(ce.IncompatibleRegExpUVFlags,{at:o()}),a.includes(t)&&this.raise(ce.DuplicateRegExpFlags,{at:o()});else{if(!De(e)&&92!==e)break;this.raise(ce.MalformedRegExpFlags,{at:o()})}++i,a+=t}this.state.pos=i,this.finishToken(135,{pattern:s,flags:a})}readInt(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{n:i,pos:s}=er(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){let t=this.state.curPosition(),r=!1;this.state.pos+=2;let n=this.readInt(e);null==n&&this.raise(ce.InvalidDigit,{at:X(t,2),radix:e});let i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,r=!0;else if(109===i)throw this.raise(ce.InvalidDecimal,{at:t});if(Se(this.codePointAtPos(this.state.pos)))throw this.raise(ce.NumberIdentifier,{at:this.state.curPosition()});if(r){let e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,e)}else this.finishToken(132,n)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,i=!1,s=!1,a=!1,o=!1;!e&&null===this.readInt(10)&&this.raise(ce.InvalidNumber,{at:this.state.curPosition()});let u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(ce.StrictOctalLiteral,{at:r}),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(ce.ZeroDigitNumericSeparator,{at:X(r,t)})}o=u&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(46===l&&!o&&(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),(69===l||101===l)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(43===l||45===l)&&++this.state.pos,null===this.readInt(10)&&this.raise(ce.InvalidOrMissingExponent,{at:r}),n=!0,a=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((n||u)&&this.raise(ce.InvalidBigIntLiteral,{at:r}),++this.state.pos,i=!0),109===l&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(ce.InvalidDecimal,{at:r}),++this.state.pos,s=!0),Se(this.codePointAtPos(this.state.pos)))throw this.raise(ce.NumberIdentifier,{at:this.state.curPosition()});let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(133,c);if(s)return void this.finishToken(134,c);let p=o?parseInt(c,8):parseFloat(c);this.finishToken(132,p)}readCodePoint(e){let{code:t,pos:r}=tr(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:i}=Gt(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(131,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:i,lineStart:s}=Gt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new H(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let{at:r}=t,n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,{at:r}):this.state.strictErrors.set(n,[e,r])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(De(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===r?Se:De;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(ce.MissingUnicodeEscape,{at:this.state.curPosition()}),n=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(ce.EscapedCharNotAnIdentifier,{at:e}),t+=String.fromCodePoint(s)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=h.get(t);void 0!==r?this.finishToken(r,U(r)):this.finishToken(130,t)}checkKeywordEscapes(){let{type:e}=this.state;B(e)&&this.state.containsEsc&&this.raise(ce.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:U(e)})}raise(e,t){let{at:r}=t,n=K(t,rr),i=e({loc:r instanceof H?r:r.loc.start,details:n});if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t){let{at:r}=t,n=K(t,nr),i=r instanceof H?r:r.loc.start,s=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.loc.index===s)return a[t]=e({loc:i,details:n});if(r.loc.index<s)break}return this.raise(e,t)}updateContext(e){}unexpected(e,t){throw this.raise(ce.UnexpectedToken,{expected:t?U(t):null,at:null!=e?e:this.state.startLoc})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(ce.MissingPlugin,{at:null!=t?t:this.state.startLoc,missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(ce.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,{at:ir(t,r,n)})}}},ur=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},lr=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ur)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(ce.InvalidPrivateFieldResolution,{at:n,identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current(),a=n.has(e);if(t&Tt){let r=a&&i.get(e);r?(a=(r&Tt)==(t&Tt)||(r&Et)!=(t&Et),a||i.delete(e)):a||i.set(e,t)}a&&this.parser.raise(ce.PrivateNameRedeclaration,{at:r,identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(ce.InvalidPrivateFieldResolution,{at:t,identifierName:e})}},cr=0,pr=1,dr=2,hr=3,fr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cr;this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return this.type===dr||this.type===pr}isCertainlyParameterDeclaration(){return this.type===hr}},mr=class extends fr{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let{at:r}=t,n=r.index;this.declarationErrors.set(n,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},yr=class{constructor(e){this.parser=void 0,this.stack=[new fr],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let{at:r}=t,n={at:r.loc.start},{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,n),a=i[--s]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{at:r}=t,{stack:n}=this,i=n[n.length-1],s={at:r.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(e,s);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,s)}}recordAsyncArrowParametersError(e){let{at:t}=e,{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===dr&&i.recordDeclarationError(ce.AwaitBindingIdentifier,{at:t}),i=r[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[r,n]=t;this.parser.raise(r,{at:n});let i=e.length-2,s=e[i];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(n.index),s=e[--i]}))}};function gr(){return new fr(hr)}function br(){return new mr(pr)}function vr(){return new mr(dr)}function xr(){return new fr}var Er=0,Sr=1,Dr=2,Tr=4,Cr=8,Ar=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&Dr)>0}get hasYield(){return(this.currentFlags()&Sr)>0}get hasReturn(){return(this.currentFlags()&Tr)>0}get hasIn(){return(this.currentFlags()&Cr)>0}};function Pr(e,t){return(e?Dr:0)|(t?Sr:0)}var wr=class extends or{addExtra(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;let i=e.extra=e.extra||{};n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let r=e+t.length;if(this.input.slice(e,r)===t){let e=this.input.charCodeAt(r);return!(De(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,{at:this.state.startLoc});this.unexpected(null,e)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return $t.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Wt.lastIndex=this.state.end,Wt.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(ce.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{let n=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s}=e;if(!t)return!!(r||n||s||i);null!=r&&this.raise(ce.InvalidCoverInitializedName,{at:r}),null!=n&&this.raise(ce.DuplicateProto,{at:n}),null!=i&&this.raise(ce.UnexpectedPrivateField,{at:i}),null!=s&&this.unexpected(s)}isLiteralPropertyName(){return k(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let a=this.prodParam;this.prodParam=new Ar;let o=this.classScope;this.classScope=new lr(this);let u=this.expressionScope;return this.expressionScope=new yr(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=u}}enterInitialScopes(){let e=Er;this.inModule&&(e|=Dr),this.scope.enter(Le),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},kr=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},Ir=class{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new J(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}},Fr=Ir.prototype;function Nr(e){return _r(e)}function _r(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(Fr);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,"Placeholder"===t&&(u.expectedNode=e.expectedNode),u}function Or(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if("Placeholder"===t)return Nr(e);let o=Object.create(Fr);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=a,o.value=e.value,o}Fr.__clone=function(){let e=new Ir(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};var Br=class extends wr{startNode(){return new Ir(this,this.state.start,this.state.startLoc)}startNodeAt(e){return new Ir(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},jr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Lr=le`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:r}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${r}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:r}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${r}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:r}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:r,explicitType:n}=e;return`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${r}\` needs to be a ${n} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:r}=e;return`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:r}=e;return`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:r,suggestion:n}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${n}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:r}=e;return`Number enum members need to be initialized, e.g. \`${r} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitailized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:r}=e;return`\`declare export ${t}\` is not supported. Use \`${r}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Mr(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function Rr(e){return"type"===e.importKind||"typeof"===e.importKind}function $r(e){return w(e)&&97!==e}var Ur={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Vr(e,t){let r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}var qr=/\*?\s*@((?:no)?flow)\b/,Wr=e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return _t}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){131!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=qr.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>t.index+1&&this.raise(Lr.UnexpectedSpaceBetweenModuloChecks,{at:t}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,xt,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(125)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(Lr.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e)):this.isContextual(128)?this.flowParseDeclareTypeAlias(e):this.isContextual(129)?this.flowParseDeclareOpaqueType(e):this.isContextual(127)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,lt,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(je),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(Lr.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(e)):(this.expectContextual(123,Lr.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,i=!1;return r.forEach((e=>{Mr(e)?("CommonJS"===n&&this.raise(Lr.AmbiguousDeclareModuleKind,{at:e}),n="ES"):"DeclareModuleExports"===e.type&&(i&&this.raise(Lr.DuplicateDeclareModuleExports,{at:e}),"ES"===n&&this.raise(Lr.AmbiguousDeclareModuleKind,{at:e}),n="CommonJS",i=!0)})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!t){let e=this.state.value;throw this.raise(Lr.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:e,suggestion:Ur[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(129)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?ct:ot,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(this.eatContextual(115))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(111))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Lr.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,t,r){jr.has(e)&&this.raise(r?Lr.AssignReservedType:Lr.UnexpectedReservedType,{at:t,reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,ot,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,ot,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(Lr.MissingTypeParamDefault,{at:t}),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let r=!1;do{let e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){let r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:r,allowSpread:n,allowProto:i,allowInexact:s}=e,a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let u,l,c=!1;for(r&&this.match(6)?(this.expect(6),u=9,l=!0):(this.expect(5),u=8,l=!1),o.exact=l;!this.match(u);){let e=!1,r=null,a=null,u=this.startNode();if(i&&this.isContextual(116)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=this.state.startLoc,t=!1)}if(t&&this.isContextual(104)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}let p=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(p&&this.unexpected(p.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,e))):o.indexers.push(this.flowParseObjectTypeIndexer(u,e,p));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),p&&this.unexpected(p.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,e));else{let t="init";(this.isContextual(98)||this.isContextual(103))&&k(this.lookahead().type)&&(t=this.state.value,this.next());let i=this.flowParseObjectTypeProperty(u,e,r,p,t,n,null!=s?s:!l);null===i?(c=!0,a=this.state.lastTokStartLoc):o.properties.push(i)}this.flowObjectTypeSemicolon(),a&&!this.match(8)&&!this.match(9)&&this.raise(Lr.UnexpectedExplicitInexactInObject,{at:a})}this.expect(u),n&&(o.inexact=c);let p=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,p}flowParseObjectTypeProperty(e,t,r,n,i,s,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(Lr.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(Lr.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),n&&this.raise(Lr.InexactVariance,{at:n}),null):(s||this.raise(Lr.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=r&&this.unexpected(r),n&&this.raise(Lr.SpreadVariance,{at:n}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===i||"set"===i)&&this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(Lr.ThisParamBannedInConstructor,{at:e.value.this})):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Lr.GetterMayNotHaveThisParam:Lr.SetterMayNotHaveThisParam,{at:e.value.this}),r!==t&&this.raise("get"===e.kind?ce.BadGetterArity:ce.BadSetterArity,{at:e}),"set"===e.kind&&e.value.rest&&this.raise(ce.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){let r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null,i=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(Lr.ThisParamMustBeFirst,{at:i}),t=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(Lr.ThisParamMayNotBeOptional,{at:i})),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){let e,t,r=this.state.startLoc,n=this.startNode(),i=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,t=this.flowParseTupleType(),this.state.noAnonFunctionType=s,t;case 47:return n.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),n.params=e.params,n.rest=e.rest,n.this=e._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),this.finishNode(n,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(A(this.state.type)||this.match(78)){let e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),n.params=e.params,n.rest=e.rest,n.this=e._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(Lr.UnexpectedSubtractionOperand,{at:this.state.startLoc})}return void this.unexpected();case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(B(this.state.type)){let e=U(this.state.type);return this.next(),super.createIdentifier(n,e)}if(A(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(130===this.state.type&&"_"===this.state.value){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){if(w(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return void 0===this.flowPragma&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||A(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(A(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){let{type:e}=this.state;return _(e)||this.shouldParseEnums()&&124===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return _(e)||this.shouldParseEnums()&&124===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);let n=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t),{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[u,l]=this.getArrowLikeExpressions(a);if(o||l.length>0){let e=[...i];if(l.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[u,l]=this.getArrowLikeExpressions(a)}o&&u.length>1&&this.raise(Lr.AmbiguousConditionalArrow,{at:n.startLoc}),o&&1===u.length&&(this.state=n,e.push(u[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let r=[e],n=[];for(;0!==r.length;){let e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):Vr(n,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(Me|Re),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExport(e,t){let r=super.parseExport(e,t);return("ExportNamedDeclaration"===r.type||"ExportAllDeclaration"===r.type)&&(r.exportKind=r.exportKind||"value"),r}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(129)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(127)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(128)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){let{startLoc:n}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(Lr.DeclareClassElement,{at:n}):t.value&&this.raise(Lr.DeclareClassFieldInitializer,{at:t.value}))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(ce.InvalidIdentifier,{at:this.state.curPosition(),identifierName:t}),this.finishToken(130,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):_e(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!t&&"AssignmentExpression"===e.type&&"TypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;let i=e[n];i&&"TypeCastExpression"===i.type&&(null==(r=i.extra)||!r.parenthesized)&&(e.length>1||!t)&&this.raise(Lr.TypeCastInPattern,{at:i.typeAnnotation})}return e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,i,s),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Lr.ThisParamBannedInConstructor,{at:t})}else if("MethodDefinition"===t.type&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Lr.ThisParamBannedInConstructor,{at:t})}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(Lr.GetterMayNotHaveThisParam,{at:r}):this.isThisParam(r)&&this.raise(Lr.SetterMayNotHaveThisParam,{at:r})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,i,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(e,t,r,n,i,s,a);return o&&((u.value||u).typeParameters=o),u}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Lr.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(Lr.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Lr.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(Lr.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Lr.TypeBeforeInitializer,{at:r.typeAnnotation}),r}shouldParseDefaultImport(e){return Rr(e)?$r(this.state.type):super.shouldParseDefaultImport(e)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Lr.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}parseImportSpecifierLocal(e,t,r){t.local=Rr(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(87)?t="typeof":this.isContextual(128)&&(t="type"),t){let r=this.lookahead(),{type:n}=r;"type"===t&&55===n&&this.unexpected(null,r.type),($r(n)||5===n||55===n)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e,t,r,n,i){let s=e.imported,a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===a||w(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=_r(t))}else{if(null!==a&&w(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(ce.ImportBindingIsString,{at:e,importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=_r(e.imported))}let u=Rr(e);return r&&u&&this.raise(Lr.ImportTypeShorthandOnlyInPureImport,{at:e}),(r||u)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),o&&!r&&!u&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){let r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(s=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t)),s),!n.error)return n.node;let{context:r}=this.state,a=r[r.length-1];(a===i.j_oTag||a===i.j_expr)&&r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var a,o;s=s||this.state.clone();let r,i=this.tryParse((n=>{var i;r=this.flowParseTypeParameterDeclaration();let s=this.forwardNoArrowParamsConversionAt(r,(()=>{let n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(i=s.extra)&&i.parenthesized&&n();let a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&n(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),s}),s),u=null;if(i.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(i.node).type){if(!i.error&&!i.aborted)return i.node.async&&this.raise(Lr.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:r}),i.node;u=i.node}if(null!=(a=n)&&a.node)return this.state=n.failState,n.node;if(u)return this.state=i.failState,u;throw null!=(o=n)&&o.thrown?n.error:i.thrown?i.error:this.raise(Lr.UnexpectedTokenAfterTypeParameter,{at:r})}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(Lr.ThisParamMustBeFirst,{at:e.params[t]});super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();let r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let n=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!i.error&&!i.aborted)return i.node;let s=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){let r=this.startNodeAt(t);r.callee=e;let i=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){let r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(Lr.UnterminatedFlowComment,{at:this.state.curPosition()}),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(Lr.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(ce.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(Lr.EnumBooleanMemberNotInitialized,{at:e,memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?Lr.EnumInvalidMemberInitializerSymbolType:Lr.EnumInvalidMemberInitializerPrimaryType:Lr.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},t))}flowEnumErrorNumberMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(Lr.EnumNumberMemberNotInitialized,{at:e,enumName:r,memberName:n})}flowEnumErrorStringMemberInconsistentlyInitailized(e,t){let{enumName:r}=t;this.raise(Lr.EnumStringMemberInconsistentlyInitailized,{at:e,enumName:r})}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 131:{let r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){let{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:r}=e,n=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}let e=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),u=a.name;if(""===u)continue;/^[a-z]/.test(u)&&this.raise(Lr.EnumInvalidMemberName,{at:a,memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:t}),n.has(u)&&this.raise(Lr.EnumDuplicateMemberName,{at:a,memberName:u,enumName:t}),n.add(u);let l={enumName:t,explicitType:r,memberName:u};switch(e.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"boolean"),e.init=o.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"number"),e.init=o.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"string"),e.init=o.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,l);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,l);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:s}}flowEnumStringMembers(e,t,r){let{enumName:n}=r;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(t,{enumName:n});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:n});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(101))return null;if(!A(this.state.type))throw this.raise(Lr.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:t});let{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(Lr.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){let r=t.name,n=t.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let i=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,u=s.defaultedMembers.length;if(!(i||a||o||u))return t();if(!i&&!a)return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!a&&!o&&i>=u){for(let e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!o&&a>=u){for(let e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Lr.EnumInconsistentMemberValues,{at:n,enumName:r}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},zr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Kr=le`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:r}=e;return`Unexpected token \`${t}\`. Did you mean \`${r}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Hr(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Jr(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Jr(e.object)+"."+Jr(e.property);throw new Error("Node had unexpected type: "+e.type)}var Xr=e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Kr.UnterminatedJsxContent,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(139,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Vt(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ce.UnterminatedString,{at:this.state.startLoc});let n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Vt(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(131,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let t=this.input.slice(e,this.state.pos),r=zr[t];if(++this.state.pos,r)return r}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(De(e)||45===e);this.finishToken(138,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(138)?e.name=this.state.value:B(this.state.type)?e.name=U(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(i.brace),this.next(),e=this.jsxParseExpressionContainer(e,i.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(Kr.AttributeIsEmpty,{at:e}),e;case 140:case 131:return this.parseExprAtom();default:throw this.raise(Kr.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(i.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(i.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(i.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(141);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(141),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(141),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){let t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e),s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 140:if(e=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 139:r.push(this.parseExprAtom());break;case 5:{let e=this.startNode();this.setContext(i.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,i.j_expr));break}default:this.unexpected()}Hr(n)&&!Hr(s)&&null!==s?this.raise(Kr.MissingClosingTagFragment,{at:s}):(!Hr(n)&&Hr(s)||!Hr(n)&&!Hr(s)&&Jr(s.name)!==Jr(n.name))&&this.raise(Kr.MissingClosingTagElement,{at:s,openingTagName:Jr(n.name)})}if(Hr(n)?(t.openingFragment=n,t.closingFragment=s):(t.openingElement=n,t.closingElement=s),t.children=r,this.match(47))throw this.raise(Kr.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return Hr(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(139)?this.parseLiteral(this.state.value,"JSXText"):this.match(140)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(140),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t!==i.j_expr){if(t===i.j_oTag||t===i.j_cTag){if(Se(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(141);if((34===e||39===e)&&t===i.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(140);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){let{context:t,type:r}=this.state;if(56===r&&140===e)t.splice(-2,2,i.j_cTag),this.state.canStartJSXElement=!1;else if(140===r)t.push(i.j_oTag);else if(141===r){let r=t[t.length-1];r===i.j_oTag&&56===e||r===i.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===i.j_expr):(this.setContext(i.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=I(r)}},Gr=class extends It{constructor(){super(...arguments),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}},Yr=class extends Ft{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Gr(e)}enter(e){e==ze&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e==ze&&this.importsStack.pop(),e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(t&it)return this.hasImport(e,!0)&&this.parser.raise(ce.VarRedeclaration,{at:r,identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);let n=this.currentScope();if(t&rt)return this.maybeExportDefined(n,e),void n.exportOnlyBindings.add(e);super.declareName(e,t,r),t&Je&&(t&He||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),n.types.add(e)),t&et&&n.enums.add(e),t&tt&&n.constEnums.add(e),t&Ze&&n.classes.add(e)}isRedeclaredInScope(e,t,r){return e.enums.has(t)?!(r&et)||!!(r&tt)!==e.constEnums.has(t):r&Ze&&e.classes.has(t)?!!e.lexical.has(t)&&!!(r&He):!!(r&Je&&e.types.has(t))||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){let r=this.scopeStack[e];if(r.types.has(t)||r.exportOnlyBindings.has(t))return}super.checkLocalExport(e)}}},Qr=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t],Zr=e=>"ParenthesizedExpression"===e.type?Zr(e.expression):e,en=class extends Br{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r,n;let i;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(i=Zr(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(ce.InvalidParenthesizedAssignment,{at:e}):"MemberExpression"!==i.type&&this.raise(ce.InvalidParenthesizedAssignment,{at:e}):this.raise(ce.InvalidParenthesizedAssignment,{at:e})),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,i=n-1;r<n;r++){var s;let n=e.properties[r],a=r===i;this.toAssignableObjectExpressionProp(n,a,t),a&&"RestElement"===n.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(ce.RestTrailingComma,{at:e.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(ce.MissingEqInAssignment,{at:e.left.loc.end}),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?ce.PatternHasAccessor:ce.PatternHasMethod,{at:e.key});else if("SpreadElement"===e.type){e.type="RestElement";let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(ce.RestTrailingComma,{at:e})}else this.toAssignable(e,r)}toAssignableList(e,t,r){let n=e.length-1;for(let i=0;i<=n;i++){let s=e[i];if(s){if("SpreadElement"===s.type){s.type="RestElement";let e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(s,r);"RestElement"===s.type&&(i<n?this.raise(ce.RestTrailingComma,{at:s}):t&&this.raise(ce.RestTrailingComma,{at:t}))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every(((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,r){let n=1&r,i=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),n&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(ce.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let e=this.startNode(),{type:t,startLoc:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(136===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){let r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);let n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return Qr({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}checkLVal(e,t){let{in:r,binding:n=mt,checkClashes:i=!1,strictModeChanged:s=!1,hasParenthesizedAncestor:a=!1}=t;var o;let u=e.type;if(this.isObjectMethod(e))return;if("MemberExpression"===u)return void(n!==mt&&this.raise(ce.InvalidPropertyBindingPattern,{at:e}));if("Identifier"===u){this.checkIdentifier(e,n,s);let{name:t}=e;return void(i&&(i.has(t)?this.raise(ce.ParamDupe,{at:e}):i.add(t)))}let l=this.isValidLVal(u,!(a||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===r.type,n);if(!0===l)return;if(!1===l){let t=n===mt?ce.InvalidLhs:ce.InvalidLhsBinding;return void this.raise(t,{at:e,ancestor:r})}let[c,p]=Array.isArray(l)?l:[l,"ParenthesizedExpression"===u],d="ArrayPattern"===u||"ObjectPattern"===u||"ParenthesizedExpression"===u?{type:u}:r;for(let t of[].concat(e[c]))t&&this.checkLVal(t,{in:d,binding:n,checkClashes:i,strictModeChanged:s,hasParenthesizedAncestor:p})}checkIdentifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(r?Fe(e.name,this.inModule):Ie(e.name))&&(t===mt?this.raise(ce.StrictEvalArguments,{at:e,referenceName:e.name}):this.raise(ce.StrictEvalArgumentsBinding,{at:e,bindingName:e.name})),t&st&&"let"===e.name&&this.raise(ce.LetInLexicalBinding,{at:e}),t&mt||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(ce.InvalidRestAssignmentPattern,{at:e})}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?ce.RestTrailingComma:ce.ElementAfterRest,{at:this.state.startLoc}),!0)}},tn=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t];function rn(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function nn(e){if(!e)throw new Error("Assert fail")}var sn=le`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>"Accessibility modifier already seen.",DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function an(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function on(e){return"private"===e||"public"===e||"protected"===e}function un(e){return"in"===e||"out"===e}var ln=e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:sn.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:sn.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:sn.InvalidModifierOnTypeParameter})}getScopeHandler(){return Yr}tsIsIdentifier(){return A(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!A(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t){let{allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=sn.InvalidModifierOnTypeMember}=e,a=(e,r,n,i)=>{r===n&&t[i]&&this.raise(sn.InvalidModifiersOrder,{at:e,orderedModifiers:[n,i]})},o=(e,r,n,i)=>{(t[n]&&r===i||t[i]&&r===n)&&this.raise(sn.IncompatibleModifiers,{at:e,modifiers:[n,i]})};for(;;){let{startLoc:e}=this.state,u=this.tsParseModifier(r.concat(null!=n?n:[]),i);if(!u)break;on(u)?t.accessibility?this.raise(sn.DuplicateAccessibilityModifier,{at:e,modifier:u}):(a(e,u,u,"override"),a(e,u,u,"static"),a(e,u,u,"readonly"),t.accessibility=u):un(u)?(t[u]&&this.raise(sn.DuplicateModifier,{at:e,modifier:u}),t[u]=!0,a(e,u,"in","out")):(Object.hasOwnProperty.call(t,u)?this.raise(sn.DuplicateModifier,{at:e,modifier:u}):(a(e,u,"static","readonly"),a(e,u,"static","override"),a(e,u,"override","readonly"),a(e,u,"abstract","override"),o(e,u,"declare","override"),o(e,u,"static","abstract")),t[u]=!0),null!=n&&n.includes(u)&&this.raise(s,{at:e,modifier:u})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){let r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return rn(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){let i=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let n=t();if(null==n)return;if(i.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}s=this.state.lastTokStart}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));let s=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),s}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(sn.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){let r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(sn.EmptyTypeParameters,{at:t}),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let r=19===e,n="parameters",i="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t[n]=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t[i]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return super.parseBindingList(11,41,2).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(sn.UnsupportedSignatureParameterKind,{at:e,type:e.type}),e)))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!A(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let r=e;if(this.match(10)||this.match(47)){t&&this.raise(sn.ReadonlyForMethodSignature,{at:e});let n=r;n.kind&&this.match(47)&&this.raise(sn.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let i="parameters",s="typeAnnotation";if("get"===n.kind)n[i].length>0&&(this.raise(ce.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(n[i][0])&&this.raise(sn.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===n.kind){if(1!==n[i].length)this.raise(ce.BadSetterArity,{at:this.state.curPosition()});else{let e=n[i][0];this.isThisParam(e)&&this.raise(sn.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===e.type&&e.optional&&this.raise(sn.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===e.type&&this.raise(sn.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}n[s]&&this.raise(sn.SetAccesorCannotHaveReturnType,{at:n[s]})}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{let e=r;t&&(e.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!(!this.match(0)||(this.next(),!this.tsIsIdentifier()))&&(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{let{type:n}=e;t&&"TSRestType"!==n&&"TSOptionalType"!==n&&!("TSNamedTupleMember"===n&&e.optional)&&this.raise(sn.OptionalTypeBeforeRequired,{at:e}),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n);let i=n;"TSRestType"===n&&(i=(e=e.typeAnnotation).type);let s="TSNamedTupleMember"===i;null!=r||(r=s),r!==s&&this.raise(sn.MixedLabeledAndUnlabeledElements,{at:e})})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,r,n,{startLoc:i}=this.state,s=this.eat(21),a=w(this.state.type)?this.lookaheadCharCode():null;if(58===a)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),n=this.tsParseType();else if(63===a){r=!0;let i=this.state.startLoc,s=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(i),s),this.expect(17),this.expect(14),n=this.tsParseType()):(e=!1,n=a,this.expect(17))}else n=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e){let e;t?(e=this.startNodeAtNode(t),e.optional=r,e.label=t,e.elementType=n,this.eat(17)&&(e.optional=!0,this.raise(sn.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(e=this.startNodeAtNode(n),e.optional=r,this.raise(sn.InvalidTupleMemberLabel,{at:n}),e.label=n,e.elementType=this.tsParseType()),n=this.finishNode(e,"TSNamedTupleMember")}else if(r){let e=this.startNodeAtNode(n);e.typeAnnotation=n,n=this.finishNode(e,"TSOptionalType")}if(s){let e=this.startNodeAt(i);e.typeAnnotation=n,n=this.finishNode(e,"TSRestType")}return n}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,e)}tsParseLiteralTypeNode(){let e=this.startNode();return e.literal=(()=>{switch(this.state.type){case 132:case 133:case 131:case 85:case 86:return super.parseExprAtom();default:this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 132!==t.type&&133!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(A(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":an(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(sn.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return R(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){let n=this.startNode(),i=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(A(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{let t=this.startNode();this.expect(e);let r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(107!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),!(!A(this.state.type)&&!this.match(78)||(e&&this.raise(ce.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){nn(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(sn.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(sn.EmptyHeritageClauseType,{at:t,token:e}),r}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(127),t.declare&&(e.declare=!0),A(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,pt)):(e.id=null,this.raise(sn.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,dt),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&16!==this.lookahead().type){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?gt:ht),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(je),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,bt),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(ze),this.prodParam.enter(Er),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(ze),this.prodParam.enter(Er),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkIdentifier(e.id,it),this.expect(29);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(sn.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){let t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(99)&&(r=74,t="let"),this.tsInAmbientContext((()=>{if(68===r)return e.declare=!0,super.parseFunctionStatement(e,!1,!1);if(80===r)return e.declare=!0,this.parseClass(e,!0,!1);if(124===r)return this.tsParseEnumDeclaration(e,{declare:!0});if(110===r)return this.tsParseAmbientExternalModuleDeclaration(e);if(75===r||74===r)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));if(127===r){let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}return A(r)?this.tsParseDeclaration(e,this.state.value,!0,null):void 0}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{let t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(5)){this.scope.enter(ze),this.prodParam.enter(Er);let r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||A(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(A(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&A(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&A(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch((()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(sn.EmptyTypeArguments,{at:e}),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return $(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let i=n.accessibility,s=n.override,a=n.readonly;!(4&e)&&(i||a||s)&&this.raise(sn.UnexpectedParameterModifier,{at:r});let o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);let u=this.parseMaybeDefault(o.loc.start,o);if(i||a||s){let e=this.startNodeAt(r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(sn.UnsupportedParameterPropertyKind,{at:e}),e.parameter=u,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),u}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(sn.PatternIsOptional,{at:t})}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(sn.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,ft):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(sn.UnexpectedTypeAnnotation,{at:e.typeAnnotation})}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s,a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(s=this.state.curPosition());if(W(this.state.type)){let r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=a,r}if(!r&&this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&F(o)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(t);return u.expression=e,u.typeParameters=a,this.finishNode(u,"TSInstantiationExpression")}));if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(sn.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:r}=e;"TSInstantiationExpression"===r.type&&(null==(t=r.extra)||!t.parenthesized)&&(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(V(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(118)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(ce.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(sn.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",A(this.state.type)||this.match(55)||this.match(5)){let t=this.lookahead();if(this.isContextual(128)&&12!==t.type&&97!==t.type&&29!==t.type&&(e.importKind="type",this.next(),t=this.lookahead()),A(this.state.type)&&29===t.type)return this.tsParseImportEqualsDeclaration(e)}let t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(sn.TypeImportCannotSpecifyDefaultAndNamed,{at:t}),t}parseExport(e,t){if(this.match(83))return this.next(),this.isContextual(128)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){let t=e;return this.expectContextual(126),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}if(e.exportKind="value",this.isContextual(128)){let t=this.lookaheadCharCode();(123===t||42===t)&&(this.next(),e.exportKind="type")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(122)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(!n)return i;for(let{id:e,init:r}of i.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(sn.InitializerNotAllowedInAmbientContext,{at:r}):pn(r,this.hasPlugin("estree"))||this.raise(sn.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:r}));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>on(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:sn.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(sn.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,r,n){let i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(sn.IndexSignatureHasAbstract,{at:t}),t.accessibility&&this.raise(sn.IndexSignatureHasAccessibility,{at:t,modifier:t.accessibility}),t.declare&&this.raise(sn.IndexSignatureHasDeclare,{at:t}),void(t.override&&this.raise(sn.IndexSignatureHasOverride,{at:t}));!this.state.inAbstractClass&&t.abstract&&this.raise(sn.NonAbstractClassHasAbstractMethod,{at:t}),t.override&&(r.hadSuperClass||this.raise(sn.OverrideNotInSubClass,{at:t})),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(sn.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(sn.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);let n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));let t=this.state.startLoc,r=this.eatContextual(123);if(r&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(sn.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=A(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(111))return;super.parseClassId(e,t,r,e.declare?ft:at);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(sn.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:t}=e;this.raise(sn.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(sn.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(sn.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(sn.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(sn.ConstructorHasTypeParameters,{at:a});let{declare:o=!1,kind:u}=t;o&&("get"===u||"set"===u)&&this.raise(sn.DeclareAccessor,{at:t,kind:u}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&!e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,i,s,a)}parseFunctionParams(e,t){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,s,a,o,u,l;let c,p,d;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(c=this.state.clone(),p=this.tryParse((()=>super.parseMaybeAssign(e,t)),c),!p.error)return p.node;let{context:r}=this.state,n=r[r.length-1];(n===i.j_oTag||n===i.j_expr)&&r.pop()}if(!(null!=(r=p)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);(!c||c===this.state)&&(c=this.state.clone());let h,f=this.tryParse((r=>{var n,i;h=this.tsParseTypeParameters(this.tsParseConstModifier);let s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized)&&r(),0!==(null==(i=h)?void 0:i.params.length)&&this.resetStartLocationFromNode(s,h),s.typeParameters=h,s}),c);if(!f.error&&!f.aborted)return h&&this.reportReservedArrowTypeParam(h),f.node;if(!p&&(nn(!this.hasPlugin("jsx")),d=this.tryParse((()=>super.parseMaybeAssign(e,t)),c),!d.error))return d.node;if(null!=(n=p)&&n.node)return this.state=p.failState,p.node;if(f.node)return this.state=f.failState,h&&this.reportReservedArrowTypeParam(h),f.node;if(null!=(s=d)&&s.node)return this.state=d.failState,d.node;throw null!=(a=p)&&a.thrown?p.error:f.thrown?f.error:null!=(o=d)&&o.thrown?d.error:(null==(u=p)?void 0:u.error)||f.error||(null==(l=d)?void 0:l.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&(null==(t=e.extra)||!t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(sn.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(sn.UnexpectedTypeCastInParameter,{at:e}):this.raise(sn.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,t);break;case"AssignmentExpression":!t&&"TSTypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){return tn({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(r!==mt||!t)&&["expression",!0],TSSatisfiesExpression:(r!==mt||!t)&&["expression",!0],TSTypeAssertion:(r!==mt||!t)&&["expression",!0]},e)||super.isValidLVal(e,t,r)}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(sn.TypeAnnotationAfterAssign,{at:r.typeAnnotation}),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,r){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(sn.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,i,s,a){let o=super.parseMethod(e,t,r,n,i,s,a);if(o.abstract&&(this.hasPlugin("estree")?o.value.body:o.body)){let{key:e}=o;this.raise(sn.AbstractMethodHasImplementation,{at:o,methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,i){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?vt:it))}parseTypeOnlyImportExportSpecifier(e,t,r){let n,i=t?"imported":"local",s=t?"local":"exported",a=e[i],o=!1,u=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let r=this.parseIdentifier();w(this.state.type)?(o=!0,a=e,n=t?this.parseIdentifier():this.parseModuleExportName(),u=!1):(n=r,u=!1)}else w(this.state.type)?(u=!1,n=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else w(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(t?sn.TypeModifierIsUsedInTypeImports:sn.TypeModifierIsUsedInTypeExports,{at:l}),e[i]=a,e[s]=n,e[t?"importKind":"exportKind"]=o?"type":"value",u&&this.eatContextual(93)&&(e[s]=t?this.parseIdentifier():this.parseModuleExportName()),e[s]||(e[s]=_r(e[i])),t&&this.checkIdentifier(e[s],o?vt:it)}};function cn(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&fn(e.object)}function pn(e,t){var r;let{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!(dn(e,t)||hn(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||cn(e))}function dn(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function hn(e,t){if("UnaryExpression"===e.type){let{operator:r,argument:n}=e;if("-"===r&&dn(n,t))return!0}return!1}function fn(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&fn(e.object)}var mn=le`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),yn=e=>class extends e{parsePlaceholder(e){if(this.match(142)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!(!super.chStartsBindingIdentifier(e,t)&&142!==this.lookahead().type)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){let n=t?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(142)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);throw this.raise(mn.ClassNameIsRequired,{at:this.state.startLoc})}e.id=s}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(U(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(e)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(mn.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},gn=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),A(this.state.type)){let e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function bn(e,t){let[r,n]="string"==typeof t?[t,{}]:t,i=Object.keys(n),s=0===i.length;return e.some((e=>{if("string"==typeof e)return s&&e===r;{let[t,s]=e;if(t!==r)return!1;for(let e of i)if(s[e]!==n[e])return!1;return!0}}))}function vn(e,t,r){let n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var xn=["minimal","fsharp","hack","smart"],En=["^^","@@","^","%","#"],Sn=["hash","bar"];function Dn(e){if(bn(e,"decorators")){if(bn(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=vn(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=vn(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(bn(e,"flow")&&bn(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(bn(e,"placeholders")&&bn(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(bn(e,"pipelineOperator")){let t=vn(e,"pipelineOperator","proposal");if(!xn.includes(t)){let e=xn.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let r=bn(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(bn(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(bn(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=vn(e,"pipelineOperator","topicToken");if(!En.includes(t)){let e=En.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(bn(e,"moduleAttributes")){if(bn(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==vn(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(bn(e,"recordAndTuple")&&null!=vn(e,"recordAndTuple","syntaxType")&&!Sn.includes(vn(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Sn.map((e=>`'${e}'`)).join(", "));if(bn(e,"asyncDoExpressions")&&!bn(e,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}}var Tn={estree:fe,jsx:Xr,flow:Wr,typescript:ln,v8intrinsic:gn,placeholders:yn},Cn=Object.keys(Tn),An=class extends en{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(ce.RecordNoProto,{at:i});r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(ce.DuplicateProto,{at:i})),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){let r,n=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}e?r=!1:(e=new kr,r=!0);let{type:i}=this.state;(10===i||A(i))&&(this.state.potentialArrowAt=this.state.start);let s=this.parseMaybeConditional(e);if(t&&(s=t.call(this,s,n)),N(this.state.type)){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(s,!0),t.left=s;let r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=s;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(s,{in:this.finishNode(t,"AssignmentExpression")}),t}return r&&this.checkExpressionErrors(e,!0),s}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(r>=V(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(ce.PrivateInExpectedIn,{at:e,identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let n=this.state.type;if(j(n)&&(this.prodParam.hasIn||!this.match(58))){let i=V(n);if(i>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let a=41===n||42===n,o=40===n;if(o&&(i=V(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(ce.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});s.right=this.parseExprOpRightExpr(n,i);let u=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(o&&(41===l||42===l)||a&&40===l)throw this.raise(ce.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,t,r)}}return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(ce.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,q(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return ie.has(r.type)&&!(null!=(e=r.extra)&&e.parenthesized)&&this.raise(ce.PipeUnparenthesizedBody,{at:t,type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(ce.PipeTopicUnused,{at:t}),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(ce.UnexpectedTokenUnaryExponentiation,{at:e.argument})}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();let e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),s=this.startNode();if(M(this.state.type)){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let r=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){let e=s.argument;"Identifier"===e.type?this.raise(ce.StrictDelete,{at:s}):this.hasPropertyAsPrivateName(e)&&this.raise(ce.DeletePrivateField,{at:s})}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let a=this.parseUpdate(s,i,e);if(n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?F(e):F(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(ce.AwaitNotInAsyncContext,{at:r}),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}let n=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;L(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){let{type:i}=this.state;if(!r&&15===i)return this.parseBind(e,t,r,n);if(W(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(18===i){if(r&&(this.raise(ce.OptionalChainingNoNew,{at:this.state.startLoc}),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{let r=this.eat(0);return r||s||this.eat(16)?this.parseMember(e,t,n,r,s):(n.stop=!0,e)}}parseMember(e,t,r,n,i){let s=this.startNodeAt(t);return s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(3)):this.match(136)?("Super"===e.type&&this.raise(ce.SuperPrivateField,{at:t}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,n){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let i=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:u}=r;o&&(this.expressionScope.enter(vr()),s=new kr),u&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,a,s);let l=this.finishCallExpression(a,u);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(ce.OptionalChainingNoTemplate,{at:t}),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(ce.ImportCallArity,{at:e,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(ce.ImportCallSpreadArgument,{at:t});return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,i){let s=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){t&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(ce.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(!1,i,r))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&Lt(e,t.innerComments),t.callee.trailingComments&&Lt(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):(this.match(10)||this.raise(ce.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(ce.UnsupportedBind,{at:e})}case 136:return this.raise(ce.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());Se(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(A(n)){if(this.isContextual(125)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(A(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=X(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){let n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?ce.PrimaryTopicNotAllowed:ce.PipeTopicUnbound,{at:t}),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(ce.PipeTopicUnconfiguredToken,{at:t,token:U(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:U(r)}]);case"smart":return 27===r;default:throw this.raise(ce.PipeTopicRequiresHackPipes,{at:t})}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Pr(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(ce.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(Dr),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(ce.UnexpectedSuper,{at:e}):this.raise(ce.SuperNotAllowed,{at:e}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(ce.UnsupportedSuper,{at:e}),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(X(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(ce.UnsupportedMetaProperty,{at:e.property,target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(ce.ImportMetaOutsideModule,{at:t}),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,r=this.state.startLoc;this.next(),this.expressionScope.enter(br());let n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let s,a,o=this.state.startLoc,u=[],l=new kr,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===l.optionalParametersLoc?null:l.optionalParametersLoc),this.match(11)){a=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(s=this.state.startLoc,u.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else u.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}let p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let d=this.startNodeAt(r);return e&&this.shouldParseArrow(u)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,u,!1),d):(this.expressionScope.exit(),u.length||this.unexpected(this.state.lastTokStartLoc),a&&this.unexpected(a),s&&this.unexpected(s),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(u,!0),u.length>1?(t=this.startNodeAt(o),t.expressions=u,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=u[0],this.wrapParenthesis(r,t))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(ce.UnexpectedNewTarget,{at:r}),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){e.callee=this.parseNoCallExpr(),"Import"===e.callee.type&&this.raise(ce.ImportCallNotNewExpression,{at:e.callee})}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:i}=this.state,s=t+1,a=this.startNodeAt(X(r,1));null===i&&(e||this.raise(ce.InvalidEscapeSequenceTemplate,{at:X(this.state.firstInvalidTemplateEscapePos,1)}));let o=this.match(24),u=o?-1:-2,l=n+u;a.value={raw:this.input.slice(s,l).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,u)},a.tail=o,this.next();let c=this.finishNode(a,"TemplateElement");return this.resetEndLocation(c,X(this.state.lastTokEndLoc,u)),c}parseTemplate(e){let t=this.startNode();t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=Object.create(null),a=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(n),this.checkProto(i,r,s,n)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(ce.InvalidRecordProperty,{at:i}),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(o,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStart),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(ce.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)t.push(this.parseDecorator());let r,n=this.startNode(),i=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(n);let o=this.state.containsEsc,u=this.parsePropertyName(n,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(n)){let e=u.name;"async"===e&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(u),a=this.eat(55),this.parsePropertyName(n)),("get"===e||"set"===e)&&(s=!0,this.resetPreviousNodeTrailingComments(u),n.kind=e,this.match(55)&&(a=!0,this.raise(ce.AccessorIsGenerator,{at:this.state.curPosition(),kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,a,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?ce.BadGetterArity:ce.BadSetterArity,{at:e}),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(ce.BadSetterRestParameter,{at:e})}parseObjectMethod(e,t,r,n,i){if(i){let r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,_r(e.key));else if(this.match(29)){let r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(ce.InvalidCoverInitializedName,{at:r}),e.value=this.parseMaybeDefault(t,_r(e.key))}else e.value=_r(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,i,s,a){let o=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let r,{type:n,value:i}=this.state;if(w(n))r=this.parseIdentifier(!0);else switch(n){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(ce.UnexpectedPrivateField,{at:e}),r=this.parsePrivateName();break}default:this.unexpected()}e.key=r,136!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(Me|Ue|(a?qe:0)|(i?Ve:0)),this.prodParam.enter(Pr(r,e.generator)),this.parseFunctionParams(e,n);let o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(Me|Re);let i=Pr(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=Cr),this.prodParam.enter(i),this.initFunction(e,r);let s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t&&!this.match(5);if(this.expressionScope.enter(xr()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Tr),e.body=this.parseBlock(!0,!1,(i=>{let s=!this.isSimpleParamList(e.params);i&&s&&this.raise(ce.IllegalLanguageModeDirective,{at:"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end});let a=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,yt,a)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,{in:s,binding:lt,checkClashes:i,strictModeChanged:n})}parseExprList(e,t,r,n){let i=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(t,r))}return i}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(ce.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),n=null;else if(this.match(21)){let e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(ce.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t,{startLoc:r,type:n}=this.state;w(n)?t=this.state.value:this.unexpected();let i=P(n);return e?i&&this.replaceToken(130):this.checkReservedWord(t,r,i,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)&&Be(e))if(r&&Ne(e))this.raise(ce.UnexpectedKeyword,{at:t,keyword:e});else if((this.state.strict?n?Fe:ke:we)(e,this.inModule))this.raise(ce.UnexpectedReservedWord,{at:t,reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(ce.YieldBindingIdentifier,{at:t})}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(ce.AwaitBindingIdentifier,{at:t});if(this.scope.inStaticBlock)return void this.raise(ce.AwaitBindingIdentifierInStaticBlock,{at:t});this.expressionScope.recordAsyncArrowParametersError({at:t})}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(ce.ArgumentsInClass,{at:t})}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(ce.AwaitExpressionFormalParameter,{at:t}),this.eat(55)&&this.raise(ce.ObsoleteAwaitStar,{at:t}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||W(e)||101===e&&!this.state.containsEsc||135===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(ce.YieldInParameter,{at:e}),this.next();let t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(ce.PipelineHeadSequenceExpression,{at:t})}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(ce.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(ce.PipelineTopicUnused,{at:e})}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(Cr&~t){this.prodParam.enter(t|Cr);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(Cr&t){this.prodParam.enter(t&~Cr);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Pn={kind:"loop"},wn={kind:"switch"},kn=/[\uD800-\uDFFF]/u,In=/in(?:stanceof)?/y;function Fn(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:i}=n;if("number"==typeof i){if(136===i){let{loc:t,start:i,value:s,end:a}=n,o=i+1,u=X(t.start,1);e.splice(r,1,new ar({type:z(27),value:"#",start:i,end:o,startLoc:t.start,endLoc:u}),new ar({type:z(130),value:s,start:o,end:a,startLoc:u,endLoc:t.end})),r++;continue}if(W(i)){let s,a,o,u,l,{loc:c,start:p,value:d,end:h}=n,f=p+1,m=X(c.start,1);s=96===t.charCodeAt(p)?new ar({type:z(22),value:"`",start:p,end:f,startLoc:c.start,endLoc:m}):new ar({type:z(8),value:"}",start:p,end:f,startLoc:c.start,endLoc:m}),24===i?(o=h-1,u=X(c.end,-1),a=null===d?null:d.slice(1,-1),l=new ar({type:z(22),value:"`",start:o,end:h,startLoc:u,endLoc:c.end})):(o=h-2,u=X(c.end,-2),a=null===d?null:d.slice(1,-2),l=new ar({type:z(23),value:"${",start:o,end:h,startLoc:u,endLoc:c.end})),e.splice(r,1,s,new ar({type:z(20),value:a,start:f,end:o,startLoc:m,endLoc:u}),l),r+=2;continue}n.type=z(i)}}return e}var Nn=class extends An{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=Fn(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:137,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(ce.ModuleExportUndefined,{at:t,localName:e});return t=137===r?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",X(this.state.startLoc,-1)),t}stmtToDirective(e){let t=e;t.type="Directive",t.value=t.expression,delete t.expression;let r=t.value,n=r.value,i=this.input.slice(r.start,r.end),s=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",s),this.addExtra(r,"expressionValue",n),r.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(99)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(Se(e)){if(In.lastIndex=t,In.test(this.input)){let e=this.codePointAtPos(In.lastIndex);if(!De(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasFollowingBindingIdentifier(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let e=this.lookahead();return!(101===e.type&&!e.containsEsc||(this.expectPlugin("explicitResourceManagement"),0))}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?ce.StrictFunction:this.options.annexB?ce.SloppyFunctionAnnexB:ce.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(n,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(ce.UnexpectedUsingDeclaration,{at:this.state.startLoc}):i||this.raise(ce.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(n,"using");case 99:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:i||this.raise(ce.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return!this.options.allowImportExportEverywhere&&!a&&this.raise(ce.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===r?(e=this.parseImport(n),"ImportDeclaration"===e.type&&(!e.importKind||"value"===e.importKind)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,t),("ExportNamedDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportAllDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportDefaultDeclaration"===e.type)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(ce.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}let o=this.state.value,u=this.parseExpression();return A(r)&&"Identifier"===u.type&&this.eat(14)?this.parseLabeledStatement(n,o,u,e):this.parseExpressionStatement(n,u,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(ce.ImportOutsideModule,{at:e})}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ce.DecoratorsBeforeAfterExport,{at:t.decorators[0]}),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(ce.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(ce.UnexpectedLeadingDecorator,{at:this.state.startLoc});return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,r=this.state.startLoc;if(this.match(10)){let r=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(r,t);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(ce.DecoratorArgumentsOutsideParentheses,{at:n})}else{for(t=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(r);e.object=t,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||"loop"===n.kind)||e.label&&t))break}if(r===this.state.labels.length){let r=t?"BreakStatement":"ContinueStatement";this.raise(ce.IllegalBreakContinue,{at:e,type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Pn),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Pn);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(je),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(99),n=this.isContextual(105)&&!this.hasFollowingLineBreak(),i=r&&this.hasFollowingBindingAtom()||n&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||i){let r=this.startNode(),i=this.state.value;this.next(),this.parseVar(r,!0,i);let s=this.finishNode(r,"VariableDeclaration"),a=this.match(58);return a&&n&&this.raise(ce.ForInUsing,{at:s}),(a||this.isContextual(101))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}let s=this.isContextual(95),a=new kr,o=this.parseExpression(!0,a),u=this.isContextual(101);if(u&&(r&&this.raise(ce.ForOfLet,{at:o}),null===t&&s&&"Identifier"===o.type&&this.raise(ce.ForOfAsync,{at:o})),u||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(o,!0);let r=u?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:r}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(a,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(ce.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t,r=e.cases=[];this.expect(5),this.state.labels.push(wn),this.scope.enter(je);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(e&&this.raise(ce.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),e=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(ce.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?$e:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:ut}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(je)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(ce.NoCatchOrFinally,{at:e}),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Pn),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(ce.StrictWith,{at:this.state.startLoc}),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(let e of this.state.labels)e.name===t&&this.raise(ce.LabelRedeclaration,{at:r,labelName:t});let i=O(this.state.type)?"loop":this.match(71)?"switch":null;for(let t=this.state.labels.length-1;t>=0;t--){let r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(je),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){let s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){let s=this.state.strict,a=!1,o=!1;for(;!this.match(n);){let n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){let e=this.stmtToDirective(n);t.push(e),!a&&"use strict"===e.value.value&&(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}i&&i.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||!this.options.annexB||this.state.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(ce.ForInOfLoopInitializer,{at:t,type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(ce.InvalidLhs,{at:t,ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.declarations=[];for(e.kind=r;;){let e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!n&&("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(101))?"const"===r&&!(this.match(58)||this.isContextual(101))&&this.raise(ce.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(ce.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){"using"===t&&!this.inModule&&this.match(96)&&this.raise(ce.AwaitInUsingBinding,{at:this.state.startLoc});let r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?lt:ot}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=2&t,n=!!(1&t),i=n&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(r&&this.raise(ce.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(i));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(Me),this.prodParam.enter(Pr(s,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||A(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(gr()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?lt:ot:ct,e.id.loc.start)}parseClass(e,t,r){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(ce.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){n.push(this.parseDecorator());continue}let e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(ce.DecoratorConstructor,{at:e})}})),this.state.strict=t,this.next(),n.length)throw this.raise(ce.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){let n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let n=this.isContextual(104);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let i=t,s=t,a=t,o=t,u=t,l=i,c=i;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind="method";let t=this.match(136);return this.parseClassElementName(l),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(ce.ConstructorIsGenerator,{at:i.key}),void this.pushClassMethod(e,i,!0,!1,!1,!1))}let p=A(this.state.type)&&!this.state.containsEsc,d=this.match(136),h=this.parseClassElementName(t),f=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(l.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);let n=this.isNonstaticConstructor(i),a=!1;n&&(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(ce.DuplicateConstructor,{at:h}),n&&this.hasPlugin("typescript")&&t.override&&this.raise(ce.OverrideOnConstructor,{at:h}),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,i,!1,!1,n,a)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(p&&"async"===h.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);let t=this.eat(55);c.optional&&this.unexpected(f),l.kind="method";let r=this.match(136);this.parseClassElementName(l),this.parsePostMemberNameModifiers(c),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(i)&&this.raise(ce.ConstructorIsAsync,{at:i.key}),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==h.name&&"set"!==h.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===h.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);let t=this.match(136);this.parseClassElementName(a),this.pushClassAccessorProperty(e,u,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.resetPreviousNodeTrailingComments(h),l.kind=h.name;let t=this.match(136);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(ce.ConstructorIsAccessor,{at:i.key}),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){let{type:t,value:r}=this.state;if((130===t||131===t)&&e.static&&"prototype"===r&&this.raise(ce.StaticPrototype,{at:this.state.startLoc}),136===t){"constructor"===r&&this.raise(ce.ConstructorClassPrivateField,{at:this.state.startLoc});let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(qe|We|Ue);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(Er);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(ce.DecoratorStaticBlock,{at:t})}pushClassProperty(e,t){!t.computed&&("constructor"===t.key.name||"constructor"===t.key.value)&&this.raise(ce.ConstructorClassField,{at:t.key}),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),kt,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){let e=t.key;("constructor"===e.name||"constructor"===e.value)&&this.raise(ce.ConstructorClassField,{at:e})}let n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),kt,n.key.loc.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let s="get"===i.kind?i.static?Ct:Pt:"set"===i.kind?i.static?At:wt:kt;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(qe|Ue),this.expressionScope.enter(xr()),this.prodParam.enter(Er),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:at;if(A(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(ce.MissingClassName,{at:this.state.startLoc});e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.maybeParseExportDefaultSpecifier(e),n=!r||this.eat(12),i=n&&this.eatExportStar(e),s=i&&this.maybeParseExportNamespaceSpecifier(e),a=n&&(!s||this.eat(12)),o=r||i;if(i&&!s){if(r&&this.unexpected(),t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let u,l=this.maybeParseExportNamedSpecifiers(e);if(r&&n&&!i&&!l&&this.unexpected(null,5),s&&a&&this.unexpected(null,97),o||l){if(u=!1,t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});this.parseExportFrom(e,o)}else u=this.maybeParseExportDeclaration(e);if(o||l||u){var c;let r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(c=r.declaration)?void 0:c.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){let r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});return this.checkExport(r,!0,!0),this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenStart();return!$t.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ce.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(ce.UnsupportedDefaultExport,{at:this.state.startLoc});let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(A(e)){if(95===e&&!this.state.containsEsc||99===e)return!1;if((128===e||127===e)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(A(e)&&97!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||A(this.state.type)&&r)return!0;if(this.match(65)&&r){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){if(this.eatContextual(97)){e.source=this.parseImportSource(),this.checkExport(e);let t=this.maybeParseImportAssertions();t&&(e.assertions=t,this.checkJSONModuleImport(e))}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ce.DecoratorBeforeExport,{at:this.state.startLoc}),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;let t=e.declaration;"Identifier"===t.type&&"from"===t.name&&t.end-t.start==4&&(null==(i=t.extra)||!i.parenthesized)&&this.raise(ce.ExportDefaultFromAsIdentifier,{at:t})}}else if(e.specifiers&&e.specifiers.length)for(let t of e.specifiers){let{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(ce.ExportBindingIsString,{at:t,localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){let t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(let t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(ce.DuplicateDefaultExport,{at:e}):this.raise(ce.DuplicateExport,{at:e,exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(128),i=this.match(131),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=Or(e.local):e.exported||(e.exported=_r(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let e=this.parseStringLiteral(this.state.value),t=e.value.match(kn);return t&&this.raise(ce.ModuleExportNameHasLoneSurrogate,{at:e,surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){var t;e.module&&((1!==e.specifiers.length||"ImportDefaultSpecifier"!==e.specifiers[0].type)&&this.raise(ce.ImportReflectionNotBinding,{at:e.specifiers[0].loc.start}),(null==(t=e.assertions)?void 0:t.length)>0&&this.raise(ce.ImportReflectionHasAssertion,{at:e.specifiers[0].loc.start}))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(ce.ImportJSONBindingNotDefault,{at:e.loc.start})}}}parseMaybeImportReflection(e){let t=!1;if(this.isContextual(125)){let e=this.lookahead(),r=e.type;A(r)?(97!==r||102===this.input.charCodeAt(this.nextTokenStartSince(e.end)))&&(t=!0):12!==r&&(t=!0)}t?(this.expectPlugin("importReflection"),this.next(),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1)}parseImport(e){if(e.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(e);let t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(12),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(97)}e.source=this.parseImportSource();let t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{let t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return A(this.state.type)}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot;return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseAssertEntries(){let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(ce.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:n}),t.add(n),this.match(131)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(ce.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(ce.ModuleAttributeDifferentFromType,{at:r.key}),t.has(r.key.name)&&this.raise(ce.ModuleAttributesWithDuplicateKeys,{at:r.key,key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(131))throw this.raise(ce.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(12));return e}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);let e=this.parseAssertEntries();return this.eat(8),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(ce.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(131),i=this.isContextual(128);r.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:r}=e;if(t)throw this.raise(ce.ImportBindingIsString,{at:e,importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=_r(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},_n=class extends Nn{constructor(e,t){super(e=r(e),t),this.options=e,this.initializeScopes(),this.plugins=On(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return Ft}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e}};function On(e){let t=new Map;for(let r of e){let[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}return t}function Bn(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Rn(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let r=Rn(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",Rn(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Rn(t,e).parse()}catch{}throw r}}function jn(e,t){let r=Rn(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function Ln(e){let t={};for(let r of Object.keys(e))t[r]=z(e[r]);return t}var Mn=Ln(C);function Rn(e,t){let r=_n;return null!=e&&e.plugins&&(Dn(e.plugins),r=Un(e.plugins)),new r(e,t)}var $n={};function Un(e){let t=Cn.filter((t=>bn(e,t))),r=t.join("/"),n=$n[r];if(!n){n=_n;for(let e of t)n=Tn[e](n);$n[r]=n}return n}e.parse=Bn,e.parseExpression=jn,e.tokTypes=Mn}}),ne=o({"src/language-js/parse/json.js"(e,t){p();var r=W(),n=H(),i=K(),s=J();function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{allowComments:t=!0}=e;return function(e){let n,{parseExpression:i}=re();try{n=i(e,{tokens:!0,ranges:!0})}catch(e){throw s(e)}if(!t&&r(n.comments))throw o(n.comments[0],"Comment");return u(n),n}}function o(e,t){let[r,i]=[e.loc.start,e.loc.end].map((e=>{let{line:t,column:r}=e;return{line:t,column:r+1}}));return n(`${t} is not allowed in JSON.`,{start:r,end:i})}function u(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)null!==t&&u(t);return;case"ObjectExpression":for(let t of e.properties)u(t);return;case"ObjectProperty":if(e.computed)throw o(e.key,"Computed key");if(e.shorthand)throw o(e.key,"Shorthand property");return"Identifier"!==e.key.type&&u(e.key),void u(e.value);case"UnaryExpression":{let{operator:t,argument:r}=e;if("+"!==t&&"-"!==t)throw o(e,`Operator '${e.operator}'`);if("NumericLiteral"===r.type||"Identifier"===r.type&&("Infinity"===r.name||"NaN"===r.name))return;throw o(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if("Infinity"!==e.name&&"NaN"!==e.name&&"undefined"!==e.name)throw o(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(r(e.expressions))throw o(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)u(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw o(e,`'${e.type}'`)}}var l=a(),c={json:i({parse:l,hasPragma:()=>!0}),json5:i(l),"json-stringify":i({parse:a({allowComments:!1}),astFormat:"estree-json"})};t.exports=c}});p();var ie=d(),se=h(),ae=b(),oe=K(),ue=J(),le=te(),ce=ne(),pe={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},de=["recordAndTuple",{syntaxType:"hash"}],he="v8intrinsic",fe=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],ye=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe;return Object.assign(Object.assign({},t),{},{plugins:[...t.plugins,...e]})},ge=/@(?:no)?flow\b/;function ve(e,t){if(t.filepath&&t.filepath.endsWith(".js.flow"))return!0;let r=se(e);r&&(e=e.slice(r.length));let n=ae(e,0);return!1!==n&&(e=e.slice(0,n)),ge.test(e)}function xe(e,t,r){let n=(0,re()[e])(t,r),i=n.errors.find((e=>!we.has(e.reasonCode)));if(i)throw i;return n}function Ee(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(("babel"===i.parser||"__babel_estree"===i.parser)&&ve(t,i))return i.parser="babel-flow",De(t,n,i);let s=r;"script"===i.__babelSourceType&&(s=s.map((e=>Object.assign(Object.assign({},e),{},{sourceType:"script"})))),/#[[{]/.test(t)&&(s=s.map((e=>ye([de],e))));let a=/%[A-Z]/.test(t);t.includes("|>")?s=(a?[...fe,he]:fe).flatMap((e=>s.map((t=>ye([e],t))))):a&&(s=s.map((e=>ye([he],e))));let{result:o,error:u}=ie(...s.map((r=>()=>xe(e,t,r))));if(!o)throw ue(u);return i.originalText=t,le(o,i)}}var Se=Ee("parse",ye(["jsx","flow"])),De=Ee("parse",ye(["jsx",["flow",{all:!0,enums:!0}]])),Te=Ee("parse",ye(["jsx","typescript"]),ye(["typescript"])),Ce=Ee("parse",ye(["jsx","flow","estree"])),Ae=Ee("parseExpression",ye(["jsx"])),Pe=Ee("parseExpression",ye(["typescript"])),we=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Ie=oe(Se),Fe=oe(Te),Ne=oe(Ae),_e=oe(Pe);t.exports={parsers:Object.assign(Object.assign({babel:Ie,"babel-flow":oe(De),"babel-ts":Fe},ce),{},{__js_expression:Ne,__vue_expression:Ne,__vue_ts_expression:_e,__vue_event_binding:Ie,__vue_ts_event_binding:Fe,__babel_estree:oe(Ce)})}}));return Ie()}();var G9=g(X9.exports);function Y9(e,t={}){const r=function(...e){return RZ(...e)}(e,{isJSX:Boolean(t.filepath?.match(/\.[jt]sx$/)),isTS:!0,printer:"recast",plugins:[["remove-unused-variables",J8]]});return J9.format(r.code,{parser:"babel",plugins:[G9]})}function Q9(e,t={}){return e=e.replaceAll("import.meta","VIKE_META"),e=`var VIKE_META = ${JSON.stringify(t)};(${e})`,(0,eval)(e)}function Z9(e,t,r={}){const n=function(e,t){return b.visit(e,{visitJSXAttribute(e){const r=e.value.comments?.[0];r&&r.value.includes("import.meta.VIKE_")&&(Q9(r.value.replace("# ",""),t)?e.get("comments").prune():e.prune()),this.traverse(e)},visitImportDeclaration(e){if(b.namedTypes.ImportDeclaration.check(e.value)&&e.value.comments&&e.value.comments.some((e=>e.value.includes("import.meta.VIKE_")))){const r=e.value.comments.find((e=>e.value.includes("import.meta.VIKE_"))).value;Q9(r.replace("# ",""),t)?e.value.comments=[]:e.prune()}this.traverse(e)},visitIdentifier(e){if("VIKE_REMOVE"===e.value.name){if(!e.parent)throw new Error("VIKE_REMOVE cannot appear at top level");if(!b.namedTypes.ArrayExpression.check(e.parent?.parent?.value))throw new Error("VIKE_REMOVE can only be an array element for now");return e.parent.prune(),void this.traverse(e)}this.traverse(e)},visitConditionalExpression(e){this.visitIfStatement(e)},visitIfStatement(e){let r=!1;this.traverse(e.get("test"),{visitMemberExpression(e){oo(e.value).code.startsWith("import.meta.VIKE_")&&(r=!0),this.traverse(e)}}),this.traverse(e),r&&(Q9(oo(e.value.test).code,t)?b.namedTypes.BlockStatement.check(e.value.consequent)?e.replace(...e.value.consequent.body):e.replace(e.value.consequent):e.value.alternate?b.namedTypes.BlockStatement.check(e.value.alternate)?e.replace(...e.value.alternate.body):e.replace(e.value.alternate):e.prune())}}),e}(e,t);return Y9(oo(n).code,r)}function e7(e,t){if(!e)throw new Error(t)}async function t7(e){const t=await(e?.());return e7("string"==typeof t,"Unable to load previous JSON module"),JSON.parse(t)}async function r7(e){const t=await(e?.());return e7("string"==typeof t,"Unable to load previous module"),ao(t)}async function n7(e,t){const r=p(t.url),n=d(r);return uo(h(n,e))}function i7(e,t){const r=function(e){return"function-call"===e.exports.default.$type?e.exports.default.$args[0]:e.exports.default}(e),n=t.index??r.plugins?.length??0;return r.plugins||(r.plugins=[]),r.plugins.splice(n,0,t.options?co.functionCall(t.constructor,t.options):co.functionCall(t.constructor)),e.imports.$add({from:t.from,local:t.constructor,imported:t.imported||"default"}),!0}function*s7(e,t){for(const r of t){const t=e.get(r);if(!t)throw new Error(`key '${t}' not found in package.json`);yield[r,t]}}function a7(e,t,r){e.devDependencies??(e.devDependencies={}),e.dependencies??(e.dependencies={});const n=new Map(function*(e){if(e.devDependencies)for(const t in e.devDependencies)yield[t,e.devDependencies[t]];if(e.dependencies)for(const t in e.dependencies)yield[t,e.dependencies[t]]}(t));for(const[t,i]of s7(n,r.devDependencies??[]))e.devDependencies[t]=i;for(const[t,i]of s7(n,r.dependencies??[]))e.dependencies[t]=i;return e}export{a7 as addDependency,i7 as addVitePlugin,f as features,m as flags,oo as generateCode,t7 as loadAsJson,r7 as loadAsMagicast,uo as loadFile,n7 as loadRelativeFileAsMagicast,ao as parseModule,Z9 as transformAndGenerate};
|
|
1894
|
+
`,cliCategory:a},tabWidth:{type:"int",category:u,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:u,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:u,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:n,CATEGORY_EDITOR:i,CATEGORY_FORMAT:s,CATEGORY_OTHER:a,CATEGORY_OUTPUT:o,CATEGORY_GLOBAL:u,CATEGORY_SPECIAL:l,options:c}}}),ie=m({"src/main/support.js"(e,t){x();var n={compare:Q(),lt:Z(),gte:ee()},i=te(),a=E().version,o=ne().options;function u(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:u=!1,showInternal:c=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=a.split("-",1)[0],d=e.flatMap((e=>e.languages||[])).filter(f),h=i(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),o),"name").filter((e=>f(e)&&m(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map(y).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(f).sort(((e,t)=>n.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>f(e)&&m(e))),"parser"===t.name&&l(t,d,e));let r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));return{languages:d,options:h};function f(e){return t||!("since"in e)||e.since&&n.gte(p,e.since)}function m(e){return u||!("deprecated"in e)||e.deprecated&&n.lt(p,e.deprecated)}function y(e){return c?e:s(e,r)}}function l(e,t,r){let n=new Set(e.choices.map((e=>e.value)));for(let i of t)if(i.parsers)for(let t of i.parsers)if(!n.has(t)){n.add(t);let s=r.find((e=>e.parsers&&e.parsers[t])),a=i.name;s&&s.name&&(a+=` (plugin: ${s.name})`),e.choices.push({value:t,description:a})}}t.exports={getSupportInfo:u}}}),se=m({"src/utils/is-non-empty-array.js"(e,t){function r(e){return Array.isArray(e)&&e.length>0}x(),t.exports=r}}),ae=m({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}x();var n=r(/\s/),i=r(" \t"),s=r(",; \t"),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:a}}}),oe=m({"src/utils/text/skip-inline-comment.js"(e,t){function r(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}x(),t.exports=r}}),ue=m({"src/utils/text/skip-trailing-comment.js"(e,t){x();var{skipEverythingButNewLine:r}=ae();function n(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}t.exports=n}}),le=m({"src/utils/text/skip-newline.js"(e,t){function r(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let i=e.charAt(t);if(n){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}x(),t.exports=r}}),ce=m({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){x();var r=oe(),n=le(),i=ue(),{skipSpaces:s}=ae();function a(e,t){let a=null,o=t;for(;o!==a;)a=o,o=s(e,o),o=r(e,o),o=i(e,o),o=n(e,o);return o}t.exports=a}}),pe=m({"src/common/util.js"(e,t){x();var{default:r}=(z(),v(q)),n=A(),{getSupportInfo:i}=ie(),s=se(),a=M(),{skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c}=ae(),p=oe(),d=ue(),h=le(),f=ce(),m=e=>e[e.length-2];function y(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=u(e,r.backwards?t-1:t,r);return n!==h(e,n,r)}function b(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1}function E(e,t,r){let n=r(t)-1;return n=u(e,n,{backwards:!0}),n=h(e,n,{backwards:!0}),n=u(e,n,{backwards:!0}),n!==h(e,n,{backwards:!0})}function S(e,t){let r=null,n=t;for(;n!==r;)r=n,n=l(e,n),n=p(e,n),n=u(e,n);return n=d(e,n),n=h(e,n),!1!==n&&g(e,n)}function D(e,t,r){return S(e,r(t))}function T(e,t,r){return f(e,r(t))}function C(e,t,r){return e.charAt(T(e,t,r))}function P(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(e,r.backwards?t-1:t,r)!==t}function w(e,t){let r=0;for(let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n<e.length;++n)"\t"===e[n]?r=r+t-r%t:r++;return r}function k(e,t){let r=e.lastIndexOf("\n");return-1===r?0:w(e.slice(r+1).match(/^[\t ]*/)[0],t)}function I(e,t){let r={quote:'"',regex:/"/g,escaped:"""},n={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?n:r,s=i===n?r:n,a=i;return(e.includes(i.quote)||e.includes(s.quote))&&(a=(e.match(i.regex)||[]).length>(e.match(s.regex)||[]).length?s:i),a}function F(e,t){let r=e.slice(1,-1);return N(r,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":I(r,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function N(e,t,r){let n='"'===t?"'":'"',i=/\\(.)|(["'])/gs,s=e.replace(i,((e,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+s+t}function _(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function O(e,t){let n=e.match(new RegExp(`(${r(t)})+`,"g"));return null===n?0:n.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)}function B(e,t){let n=e.match(new RegExp(`(${r(t)})+`,"g"));if(null===n)return 0;let i=new Map,s=0;for(let e of n){let r=e.length/t.length;i.set(r,!0),r>s&&(s=r)}for(let e=1;e<s;e++)if(!i.get(e))return e;return s+1}function j(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=K(e)}function L(e,t){t.leading=!0,t.trailing=!1,j(e,t)}function R(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),j(e,t)}function $(e,t){t.leading=!1,t.trailing=!0,j(e,t)}function U(e,t){let{languages:r}=i({plugins:t.plugins}),n=r.find((t=>{let{name:r}=t;return r.toLowerCase()===e}))||r.find((t=>{let{aliases:r}=t;return Array.isArray(r)&&r.includes(e)}))||r.find((t=>{let{extensions:r}=t;return Array.isArray(r)&&r.includes(`.${e}`)}));return n&&n.parsers[0]}function V(e){return e&&"front-matter"===e.type}function W(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}function K(e){let t=e.type||e.kind||"(unknown type)",r=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 r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}t.exports={inferParserByLanguage:U,getStringWidth:a,getMaxContinuousCount:O,getMinNotPresentContinuousCount:B,getPenultimate:m,getLast:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:T,getNextNonSpaceNonCommentCharacter:C,skip:y,skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c,skipInlineComment:p,skipTrailingComment:d,skipNewline:h,isNextLineEmptyAfterIndex:S,isNextLineEmpty:D,isPreviousLineEmpty:E,hasNewline:g,hasNewlineInRange:b,hasSpaces:P,getAlignmentSize:w,getIndentSize:k,getPreferredQuote:I,printString:F,printNumber:_,makeString:N,addLeadingComment:L,addDanglingComment:R,addTrailingComment:$,isFrontMatterNode:V,isNonEmptyArray:s,createGroupIdMapper:W}}}),de={};function he(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function fe(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=he(Se(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function me(e){var t=ye(e),r="/"===we(e,-1);return!(e=he(Se(e.split("/"),(function(e){return!!e})),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function ye(e){return"/"===e.charAt(0)}function ge(){return me(Se(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 be(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=fe(e).substr(1),t=fe(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),a=s,o=0;o<s;o++)if(n[o]!==i[o]){a=o;break}var u=[];for(o=a;o<n.length;o++)u.push("..");return(u=u.concat(i.slice(a))).join("/")}function ve(e){var t=Te(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function xe(e,t){var r=Te(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function Ee(e){return Te(e)[3]}function Se(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}y(de,{basename:()=>xe,default:()=>Pe,delimiter:()=>Ae,dirname:()=>ve,extname:()=>Ee,isAbsolute:()=>ye,join:()=>ge,normalize:()=>me,relative:()=>be,resolve:()=>fe,sep:()=>Ce});var De,Te,Ce,Ae,Pe,we,ke=f({"node-modules-polyfills:path"(){x(),De=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Te=function(e){return De.exec(e).slice(1)},Pe={extname:Ee,basename:xe,dirname:ve,sep:Ce="/",delimiter:Ae=":",relative:be,join:ge,isAbsolute:ye,normalize:me,resolve:fe},we="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}}),Ie=m({"node-modules-polyfills-commonjs:path"(e,t){x();var r=(ke(),v(de));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),Fe=m({"src/common/errors.js"(e,t){x();var r=class extends Error{},n=class extends Error{},i=class extends Error{},s=class extends Error{};t.exports={ConfigError:r,DebugError:n,UndefinedParserError:i,ArgExpansionBailout:s}}}),Ne={};function _e(e,t){function r(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Oe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function Be(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a}function je(e,t){return function(r,n){t(r,n,e)}}function Le(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Me(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function a(e){try{u(n.next(e))}catch(e){s(e)}}function o(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,o)}u((n=n.apply(e,t||[])).next())}))}function Re(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function $e(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function Ue(e,t){for(var r in e)"default"!==r&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ve(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a}function We(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qe(arguments[t]));return e}function ze(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n}function Ke(e){return this instanceof Ke?(this.v=e,this):new Ke(e)}function He(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{u(i[e](t))}catch(e){p(s[0][3],e)}}function u(e){e.value instanceof Ke?Promise.resolve(e.value.v).then(l,c):p(s[0][2],e)}function l(e){o("next",e)}function c(e){o("throw",e)}function p(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function Je(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:Ke(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function Xe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof Ve?Ve(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,s){i(n,s,(t=e[r](t)).done,t.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function Ge(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Ye(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Qe(e){return e&&e.__esModule?e:{default:e}}function Ze(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function et(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}y(Ne,{__assign:()=>rt,__asyncDelegator:()=>Je,__asyncGenerator:()=>He,__asyncValues:()=>Xe,__await:()=>Ke,__awaiter:()=>Me,__classPrivateFieldGet:()=>Ze,__classPrivateFieldSet:()=>et,__createBinding:()=>$e,__decorate:()=>Be,__exportStar:()=>Ue,__extends:()=>_e,__generator:()=>Re,__importDefault:()=>Qe,__importStar:()=>Ye,__makeTemplateObject:()=>Ge,__metadata:()=>Le,__param:()=>je,__read:()=>qe,__rest:()=>Oe,__spread:()=>We,__spreadArrays:()=>ze,__values:()=>Ve});var tt,rt,nt=f({"node_modules/tslib/tslib.es6.js"(){x(),tt=function(e,t){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rt.apply(this,arguments)}}}),it=m({"node_modules/vnopts/lib/descriptors/api.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map((t=>e.apiDescriptor.value(t))).join(", ")}]`;let r=Object.keys(t);return 0===r.length?"{}":`{ ${r.map((r=>`${e.apiDescriptor.key(r)}: ${e.apiDescriptor.value(t[r])}`)).join(", ")} }`},pair:t=>{let{key:r,value:n}=t;return e.apiDescriptor.value({[r]:n})}}}}),st=m({"node_modules/vnopts/lib/descriptors/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(it(),e)}}),at=m({"scripts/build/shims/chalk.cjs"(e,t){x();var r=e=>e;r.grey=r,r.red=r,r.bold=r,r.yellow=r,r.blue=r,r.default=r,t.exports=r}}),ot=m({"node_modules/vnopts/lib/handlers/deprecated/common.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=at();e.commonDeprecatedHandler=(e,r,n)=>{let{descriptor:i}=n,s=[`${t.default.yellow("string"==typeof e?i.key(e):i.pair(e))} is deprecated`];return r&&s.push(`we now treat it as ${t.default.blue("string"==typeof r?i.key(r):i.pair(r))}`),s.join("; ")+"."}}}),ut=m({"node_modules/vnopts/lib/handlers/deprecated/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(ot(),e)}}),lt=m({"node_modules/vnopts/lib/handlers/invalid/common.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=at();e.commonInvalidHandler=(e,r,n)=>[`Invalid ${t.default.red(n.descriptor.key(e))} value.`,`Expected ${t.default.blue(n.schemas[e].expected(n))},`,`but received ${t.default.red(n.descriptor.value(r))}.`].join(" ")}}),ct=m({"node_modules/vnopts/lib/handlers/invalid/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(lt(),e)}}),pt=m({"node_modules/vnopts/node_modules/leven/index.js"(e,t){x();var r=[],n=[];t.exports=function(e,t){if(e===t)return 0;var i=e;e.length>t.length&&(e=t,t=i);var s=e.length,a=t.length;if(0===s)return a;if(0===a)return s;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-a);)s--,a--;if(0===s)return a;for(var o=0;o<s&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(a-=o,0==(s-=o))return a;for(var u,l,c,p,d=0,h=0;d<s;)n[o+d]=e.charCodeAt(o+d),r[d]=++d;for(;h<a;)for(u=t.charCodeAt(o+h),c=h++,l=h,d=0;d<s;d++)p=u===n[o+d]?c:c+1,c=r[d],l=r[d]=c>l?p>l?l+1:p:p>c?c+1:p;return l}}}),dt=m({"node_modules/vnopts/lib/handlers/unknown/leven.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=at(),r=pt();e.levenUnknownHandler=(e,n,i)=>{let{descriptor:s,logger:a,schemas:o}=i,u=[`Ignored unknown option ${t.default.yellow(s.pair({key:e,value:n}))}.`],l=Object.keys(o).sort().find((t=>r(e,t)<3));l&&u.push(`Did you mean ${t.default.blue(s.key(l))}?`),a.warn(u.join(" "))}}}),ht=m({"node_modules/vnopts/lib/handlers/unknown/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),(nt(),v(Ne)).__exportStar(dt(),e)}}),ft=m({"node_modules/vnopts/lib/handlers/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne));t.__exportStar(ut(),e),t.__exportStar(ct(),e),t.__exportStar(ht(),e)}}),mt=m({"node_modules/vnopts/lib/schema.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,r){let s=new e(r),a=Object.create(s);for(let e of t)e in r&&(a[e]=i(r[e],s,n.prototype[e].length));return a}e.createSchema=r;var n=class{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return e}};function i(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return e(...i.slice(0,r-1),t,...i.slice(r-1))}:()=>e}e.Schema=n}}),yt=m({"node_modules/vnopts/lib/schemas/alias.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}};e.AliasSchema=r}}),gt=m({"node_modules/vnopts/lib/schemas/any.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"anything"}validate(){return!0}};e.AnySchema=r}}),bt=m({"node_modules/vnopts/lib/schemas/array.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne)),r=mt(),n=class extends r.Schema{constructor(e){var{valueSchema:r,name:n=r.name}=e,i=t.__rest(e,["valueSchema","name"]);super(Object.assign({},i,{name:n})),this._valueSchema=r}expected(e){return`an array of ${this._valueSchema.expected(e)}`}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map((e=>{let{value:t}=e;return{value:[t]}})))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(i))}return r}redirect(e,t){let r=[],n=[];for(let s of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(i))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function i(e){let{from:t,to:r}=e;return{from:[t],to:r}}e.ArraySchema=n}}),vt=m({"node_modules/vnopts/lib/schemas/boolean.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};e.BooleanSchema=r}}),xt=m({"node_modules/vnopts/lib/utils.js"(e){function t(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r}function r(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r}function n(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}}function i(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function s(e){return e===Math.floor(e)}function a(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function o(e){return void 0===e?{}:e}function u(e,t){return!0===e||(!1===e?{value:t}:e)}function l(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function c(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function p(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>c(e,t))):[c(e,t)]}function d(e,t){let r=p("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.recordFromArray=t,e.mapFromArray=r,e.createAutoChecklist=n,e.partition=i,e.isInt=s,e.comparePrimitive=a,e.normalizeDefaultResult=o,e.normalizeValidateResult=u,e.normalizeDeprecatedResult=l,e.normalizeTransferResult=c,e.normalizeForwardResult=p,e.normalizeRedirectResult=d}}),Et=m({"node_modules/vnopts/lib/schemas/choice.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=xt(),n=class extends t.Schema{constructor(e){super(e),this._choices=r.mapFromArray(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected(e){let{descriptor:t}=e,n=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((e=>!e.deprecated)).map((e=>e.value)).sort(r.comparePrimitive).map(t.value),i=n.slice(0,-2),s=n.slice(-2);return i.concat(s.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}};e.ChoiceSchema=n}}),St=m({"node_modules/vnopts/lib/schemas/number.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}};e.NumberSchema=r}}),Dt=m({"node_modules/vnopts/lib/schemas/integer.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=xt(),r=St(),n=class extends r.NumberSchema{expected(){return"an integer"}validate(e,r){return!0===r.normalizeValidateResult(super.validate(e,r),e)&&t.isInt(e)}};e.IntegerSchema=n}}),Tt=m({"node_modules/vnopts/lib/schemas/string.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=mt(),r=class extends t.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}};e.StringSchema=r}}),Ct=m({"node_modules/vnopts/lib/schemas/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne));t.__exportStar(yt(),e),t.__exportStar(gt(),e),t.__exportStar(bt(),e),t.__exportStar(vt(),e),t.__exportStar(Et(),e),t.__exportStar(Dt(),e),t.__exportStar(St(),e),t.__exportStar(Tt(),e)}}),At=m({"node_modules/vnopts/lib/defaults.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=it(),r=ot(),n=ct(),i=dt();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=i.levenUnknownHandler,e.defaultInvalidHandler=n.commonInvalidHandler,e.defaultDeprecatedHandler=r.commonDeprecatedHandler}}),Pt=m({"node_modules/vnopts/lib/normalize.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=At(),r=xt();e.normalize=(e,t,r)=>new n(t,r).normalize(e);var n=class{constructor(e,n){let{logger:i=console,descriptor:s=t.defaultDescriptor,unknown:a=t.defaultUnknownHandler,invalid:o=t.defaultInvalidHandler,deprecated:u=t.defaultDeprecatedHandler}=n||{};this._utils={descriptor:s,logger:i||{warn:()=>{}},schemas:r.recordFromArray(e,"name"),normalizeDefaultResult:r.normalizeDefaultResult,normalizeDeprecatedResult:r.normalizeDeprecatedResult,normalizeForwardResult:r.normalizeForwardResult,normalizeRedirectResult:r.normalizeRedirectResult,normalizeValidateResult:r.normalizeValidateResult},this._unknownHandler=a,this._invalidHandler=o,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=r.createAutoChecklist()}normalize(e){let t={},n=[e],i=()=>{for(;0!==n.length;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};i();for(let e of Object.keys(this._utils.schemas)){let i=this._utils.schemas[e];if(!(e in t)){let t=r.normalizeDefaultResult(i.default(this._utils));"value"in t&&n.push({[e]:t.value})}}i();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];e in t&&(t[e]=r.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){let n=[],[i,s]=r.partition(Object.keys(e),(e=>e in this._utils.schemas));for(let s of i){let i=this._utils.schemas[s],a=i.preprocess(e[s],this._utils),o=r.normalizeValidateResult(i.validate(a,this._utils),a);if(!0!==o){let{value:e}=o,t=this._invalidHandler(s,e,this._utils);throw"string"==typeof t?new Error(t):t}let u=e=>{let{from:t,to:r}=e;n.push("string"==typeof r?{[r]:t}:{[r.key]:r.value})},l=e=>{let{value:t,redirectTo:n}=e,o=r.normalizeDeprecatedResult(i.deprecated(t,this._utils),a,!0);if(!1!==o)if(!0===o)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,n,this._utils));else for(let{value:e}of o){let t={key:s,value:e};if(!this._hasDeprecationWarned(t)){let r="string"==typeof n?{key:n,value:e}:n;this._utils.logger.warn(this._deprecatedHandler(t,r,this._utils))}}};r.normalizeForwardResult(i.forward(a,this._utils),a).forEach(u);let c=r.normalizeRedirectResult(i.redirect(a,this._utils),a);if(c.redirect.forEach(u),"remain"in c){let e=c.remain;t[s]=s in t?i.overlap(t[s],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of c.redirect)l({value:e,redirectTo:t})}for(let r of s){let i=e[r],s=this._unknownHandler(r,i,this._utils);if(s)for(let e of Object.keys(s)){let r={[e]:s[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}};e.Normalizer=n}}),wt=m({"node_modules/vnopts/lib/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=(nt(),v(Ne));t.__exportStar(st(),e),t.__exportStar(ft(),e),t.__exportStar(Ct(),e),t.__exportStar(Pt(),e),t.__exportStar(mt(),e)}}),kt=m({"src/main/options-normalizer.js"(e,t){x();var r,i=wt(),a=A(),o={key:e=>1===e.length?`-${e}`:`--${e}`,value:e=>i.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return!1===r?`--no-${t}`:!0===r?o.key(t):""===r?`${o.key(t)} without an argument`:`${o.key(t)}=${r}`}},u=e=>{let{colorsModule:t,levenshteinDistance:r}=e;return class extends i.ChoiceSchema{constructor(e){let{name:t,flags:r}=e;super({name:t,choices:r}),this._flags=[...r].sort()}preprocess(e,n){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){let i=this._flags.find((t=>r(t,e)<3));if(i)return n.logger.warn([`Unknown flag ${t.yellow(n.descriptor.value(e))},`,`did you mean ${t.blue(n.descriptor.value(i))}?`].join(" ")),i}return e}expected(){return"a flag"}}};function l(e,t){let{logger:a=!1,isCLI:u=!1,passThrough:l=!1,colorsModule:p=null,levenshteinDistance:d=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=l?Array.isArray(l)?(e,t)=>l.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let a=s(r.schemas,n);return i.levenUnknownHandler(e,t,Object.assign(Object.assign({},r),{},{schemas:a}))},f=u?o:i.apiDescriptor,m=c(t,{isCLI:u,colorsModule:p,levenshteinDistance:d}),y=new i.Normalizer(m,{logger:a,unknown:h,descriptor:f}),g=!1!==a;g&&r&&(y._hasDeprecationWarned=r);let b=y.normalize(e);return g&&(r=y._hasDeprecationWarned),u&&!1===b["plugin-search"]&&(b["plugin-search-dir"]=!1),b}function c(e,t){let{isCLI:r,colorsModule:n,levenshteinDistance:s}=t,a=[];r&&a.push(i.AnySchema.create({name:"_"}));for(let t of e)a.push(p(t,{isCLI:r,optionInfos:e,colorsModule:n,levenshteinDistance:s})),t.alias&&r&&a.push(i.AliasSchema.create({name:t.alias,sourceName:t.name}));return a}function p(e,t){let{isCLI:r,optionInfos:n,colorsModule:s,levenshteinDistance:o}=t,{name:l}=e;if("plugin-search-dir"===l||"pluginSearchDirs"===l)return i.AnySchema.create({name:l,preprocess:e=>(!1===e||(e=Array.isArray(e)?e:[e]),e),validate:e=>!1===e||e.every((e=>"string"==typeof e)),expected:()=>"false or paths to plugin search dir"});let c,p={name:l},d={};switch(e.type){case"int":c=i.IntegerSchema,r&&(p.preprocess=Number);break;case"string":case"path":c=i.StringSchema;break;case"choice":c=i.ChoiceSchema,p.choices=e.choices.map((t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t));break;case"boolean":c=i.BooleanSchema;break;case"flag":c=u({colorsModule:s,levenshteinDistance:o}),p.flags=n.flatMap((e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?p.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):p.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(d.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(d.deprecated=!0),r&&!e.array){let e=p.preprocess||(e=>e);p.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?a(t):t),n)}return e.array?i.ArraySchema.create(Object.assign(Object.assign(Object.assign({},r?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),d),{},{valueSchema:c.create(p)})):c.create(Object.assign(Object.assign({},p),d))}function d(e,t,r){return l(e,t,r)}function h(e,t,r){return l(e,t,Object.assign({isCLI:!0},r))}t.exports={normalizeApiOptions:d,normalizeCliOptions:h}}}),It=m({"src/language-js/loc.js"(e,t){x();var r=se();function n(e){var t,i;let s=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}function a(e,t){let r=i(e);return Number.isInteger(r)&&r===i(t)}function o(e,t){return s(e,t)&&a(e,t)}t.exports={locStart:n,locEnd:i,hasSameLocStart:s,hasSameLoc:o}}}),Ft=m({"src/main/load-parser.js"(e,t){x(),t.exports=()=>{}}}),Nt=m({"scripts/build/shims/babel-highlight.cjs"(e,t){x();var r=at(),n={shouldHighlight:()=>!1,getChalk:()=>r};t.exports=n}}),_t=m({"node_modules/@babel/code-frame/lib/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=a,e.default=u;var t=Nt(),r=!1;function n(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var i=/\r\n|[\n\r\u2028\u2029]/;function s(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),d=Math.min(t.length,l+a);-1===o&&(p=0),-1===l&&(d=t.length);let h=l-o,f={};if(h)for(let e=0;e<=h;e++){let r=e+o;if(u)if(0===e){let e=t[r-1].length;f[r]=[u,e-u+1]}else if(e===h)f[r]=[0,c];else{let n=t[r-e].length;f[r]=[0,n]}else f[r]=!0}else f[o]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:d,markerLines:f}}function a(e,r){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(a.highlightCode||a.forceColor)&&(0,t.shouldHighlight)(a),u=(0,t.getChalk)(a),l=n(u),c=(e,t)=>o?e(t):t,p=e.split(i),{start:d,end:h,markerLines:f}=s(r,p,a),m=r.start&&"number"==typeof r.start.column,y=String(h).length,g=(o?(0,t.default)(e,a):e).split(i,h).slice(d,h).map(((e,t)=>{let r=d+1+t,n=` ${` ${r}`.slice(-y)} |`,i=f[r],s=!f[r+1];if(i){let t="";if(Array.isArray(i)){let r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",c(l.gutter,n.replace(/\d/g," "))," ",r,c(l.marker,"^").repeat(o)].join(""),s&&a.message&&(t+=" "+c(l.message,a.message))}return[c(l.marker,">"),c(l.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${c(l.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\n");return a.message&&!m&&(g=`${" ".repeat(y+1)}${a.message}\n${g}`),o?u.reset(g):g}function u(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";o.emitWarning?o.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return a(e,{start:{column:n=Math.max(n,0),line:t}},i)}}}),Ot=m({"src/main/parser.js"(e,t){x();var{ConfigError:r}=Fe(),n=It();Ft();var{locStart:i,locEnd:s}=n,a=Object.getOwnPropertyNames,o=Object.getOwnPropertyDescriptor;function u(e){let t={};for(let r of e.plugins)if(r.parsers)for(let e of a(r.parsers))Object.defineProperty(t,e,o(r.parsers,e));return t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:i,locEnd:s};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new r(`Couldn't resolve parser "${e.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function c(e,t){let r=u(t),n=Object.defineProperties({},Object.fromEntries(Object.keys(r).map((e=>[e,{enumerable:!0,get:()=>r[e].parse}])))),i=l(t,r);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,n,t)}}catch(t){let{loc:r}=t;if(r){let{codeFrameColumns:n}=_t();throw t.codeFrame=n(e,r,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t}}t.exports={parse:c,resolveParser:l}}}),Bt=m({"src/main/options.js"(e,t){x();var r=Ie(),{UndefinedParserError:n}=Fe(),{getSupportInfo:i}=ie(),s=kt(),{resolveParser:a}=Ot(),o={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e),u=i({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,p=Object.assign(Object.assign({},o),Object.fromEntries(u.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default]))));if(!r.parser)if(r.filepath){if(r.parser=c(r.filepath,r.plugins),!r.parser)throw new n(`No parser could be inferred for file: ${r.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."),r.parser="babel";let d=a(s.normalizeApiOptions(r,[u.find((e=>"parser"===e.name))],{passThrough:!0,logger:!1}));r.astFormat=d.astFormat,r.locEnd=d.locEnd,r.locStart=d.locStart;let h=l(r);r.printer=h.printers[r.astFormat];let f=Object.fromEntries(u.filter((e=>e.pluginDefaults&&void 0!==e.pluginDefaults[h.name])).map((e=>[e.name,e.pluginDefaults[h.name]]))),m=Object.assign(Object.assign({},p),f);for(let[e,t]of Object.entries(m))(null===r[e]||void 0===r[e])&&(r[e]=t);return"json"===r.parser&&(r.trailingComma="none"),s.normalizeApiOptions(r,u,Object.assign({passThrough:Object.keys(o)},t))}function l(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find((e=>e.printers&&e.printers[t]));if(!r)throw new Error(`Couldn't find plugin for AST format "${t}"`);return r}function c(e,t){let n=r.basename(e).toLowerCase(),s=i({plugins:t}).languages.filter((e=>null!==e.since)).find((e=>e.extensions&&e.extensions.some((e=>n.endsWith(e)))||e.filenames&&e.filenames.some((e=>e.toLowerCase()===n))));return s&&s.parsers[0]}t.exports={normalize:u,hiddenDefaults:o,inferParser:c}}}),jt=m({"src/main/massage-ast.js"(e,t){function r(e,t,n){if(Array.isArray(e))return e.map((e=>r(e,t,n))).filter(Boolean);if(!e||"object"!=typeof e)return e;let i,s=t.printer.massageAstNode;i=s&&s.ignoredProperties?s.ignoredProperties:new Set;let a={};for(let[n,s]of Object.entries(e))!i.has(n)&&"function"!=typeof s&&(a[n]=r(s,t,e));if(s){let t=s(e,a,n);if(null===t)return;if(t)return t}return a}x(),t.exports=r}}),Lt=m({"scripts/build/shims/assert.cjs"(e,t){x();var r=()=>{};r.ok=r,r.strictEqual=r,t.exports=r}}),Mt=m({"src/main/comments.js"(e,t){x();var r=Lt(),{builders:{line:n,hardline:i,breakParent:s,indent:a,lineSuffix:o,join:u,cursor:l}}=V(),{hasNewline:c,skipNewline:p,skipSpaces:d,isPreviousLineEmpty:h,addLeadingComment:f,addDanglingComment:m,addTrailingComment:y}=pe(),g=new WeakMap;function b(e,t,r){if(!e)return;let{printer:n,locStart:i,locEnd:s}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let t;for(t=r.length-1;t>=0&&!(i(r[t])<=i(e)&&s(r[t])<=s(e));--t);return void r.splice(t+1,0,e)}}else if(g.has(e))return g.get(e);let a=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t})).map((e=>{let[,t]=e;return t}));if(a){r||(r=[],g.set(e,r));for(let e of a)b(e,t,r);return r}}function v(e,t,r,n){let i,s,{locStart:a,locEnd:o}=r,u=a(t),l=o(t),c=b(e,r),p=0,d=c.length;for(;p<d;){let e=p+d>>1,n=c[e],h=a(n),f=o(n);if(h<=u&&l<=f)return v(n,t,r,n);if(f<=u)i=n,p=e+1;else{if(!(l<=h))throw new Error("Comment location overlaps with node location");s=n,d=e}}if(n&&"TemplateLiteral"===n.type){let{quasis:e}=n,a=w(e,t,r);i&&w(e,i,r)!==a&&(i=null),s&&w(e,s,r)!==a&&(s=null)}return{enclosingNode:n,precedingNode:i,followingNode:s}}var E=()=>!1;function S(e,t,r,n){if(!Array.isArray(e))return;let i=[],{locStart:s,locEnd:a,printer:{handleComments:o={}}}=n,{avoidAstMutation:u,ownLine:l=E,endOfLine:c=E,remaining:p=E}=o,d=e.map(((i,s)=>Object.assign(Object.assign({},v(t,i,n)),{},{comment:i,text:r,options:n,ast:t,isLastComment:e.length-1===s})));for(let[e,t]of d.entries()){let r,{comment:n,precedingNode:o,enclosingNode:h,followingNode:g,text:b,options:v,ast:x,isLastComment:E}=t;if("json"===v.parser||"json5"===v.parser||"__js_expression"===v.parser||"__vue_expression"===v.parser||"__vue_ts_expression"===v.parser){if(s(n)-s(x)<=0){f(x,n);continue}if(a(n)-a(x)>=0){y(x,n);continue}}if(u?r=[t]:(n.enclosingNode=h,n.precedingNode=o,n.followingNode=g,r=[n,b,v,x,E]),T(b,v,d,e))n.placement="ownLine",l(...r)||(g?f(g,n):o?y(o,n):m(h||x,n));else if(C(b,v,d,e))n.placement="endOfLine",c(...r)||(o?y(o,n):g?f(g,n):m(h||x,n));else if(n.placement="remaining",!p(...r))if(o&&g){let e=i.length;e>0&&i[e-1].followingNode!==g&&A(i,b,v),i.push(t)}else o?y(o,n):g?f(g,n):m(h||x,n)}if(A(i,r,n),!u)for(let t of e)delete t.precedingNode,delete t.enclosingNode,delete t.followingNode}var D=e=>!/[\S\n\u2028\u2029]/.test(e);function T(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=a(i);if(s)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:i}=r[t];if(i!==s||!D(e.slice(o(n),u)))break;u=a(n)}return c(e,u,{backwards:!0})}function C(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=o(i);if(s)for(let t=n+1;t<r.length;t++){let{comment:n,followingNode:i}=r[t];if(i!==s||!D(e.slice(u,a(n))))break;u=o(n)}return c(e,u)}function A(e,t,n){let i=e.length;if(0===i)return;let s,{precedingNode:a,followingNode:o,enclosingNode:u}=e[0],l=n.printer.getGapRegex&&n.printer.getGapRegex(u)||/^[\s(]*$/,c=n.locStart(o);for(s=i;s>0;--s){let{comment:i,precedingNode:u,followingNode:p}=e[s-1];r.strictEqual(u,a),r.strictEqual(p,o);let d=t.slice(n.locEnd(i),c);if(!l.test(d))break;c=n.locStart(i)}for(let[t,{comment:r}]of e.entries())t<s?y(a,r):f(o,r);for(let e of[a,o])e.comments&&e.comments.length>1&&e.comments.sort(((e,t)=>n.locStart(e)-n.locStart(t)));e.length=0}function P(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function w(e,t,r){let n=r.locStart(t)-1;for(let t=1;t<e.length;++t)if(n<r.locStart(e[t]))return t-1;return 0}function k(e,t){let r=e.getValue(),s=[P(e,t)],{printer:a,originalText:o,locStart:u,locEnd:l}=t;if(a.isBlockComment&&a.isBlockComment(r)){let e=c(o,l(r))?c(o,u(r),{backwards:!0})?i:n:" ";s.push(e)}else s.push(i);let h=p(o,d(o,l(r)));return!1!==h&&c(o,h)&&s.push(i),s}function I(e,t){let r=e.getValue(),n=P(e,t),{printer:a,originalText:u,locStart:l}=t,p=a.isBlockComment&&a.isBlockComment(r);if(c(u,l(r),{backwards:!0})){let e=h(u,r,l);return o([i,e?i:"",n])}let d=[" ",n];return p||(d=[o(d),s]),d}function F(e,t,r,n){let s=[],o=e.getValue();return o&&o.comments&&(e.each((()=>{let r=e.getValue();!r.leading&&!r.trailing&&(!n||n(r))&&s.push(P(e,t))}),"comments"),0!==s.length)?r?u(i,s):a([i,u(i,s)]):""}function N(e,t,r){let n=e.getValue();if(!n)return{};let i=n.comments||[];r&&(i=i.filter((e=>!r.has(e))));let s=n===t.cursorNode;if(0===i.length){let e=s?l:"";return{leading:e,trailing:e}}let a=[],o=[];return e.each((()=>{let n=e.getValue();if(r&&r.has(n))return;let{leading:i,trailing:s}=n;i?a.push(k(e,t)):s&&o.push(I(e,t))}),"comments"),s&&(a.unshift(l),o.push(l)),{leading:a,trailing:o}}function _(e,t,r,n){let{leading:i,trailing:s}=N(e,r,n);return i||s?[i,t,s]:t}function O(e){if(e)for(let t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}t.exports={attach:S,printComments:_,printCommentsSeparately:N,printDanglingComments:F,getSortedChildNodes:b,ensureAllCommentsPrinted:O}}}),Rt=m({"src/common/ast-path.js"(e,t){x();var r=A();function n(e,t){let r=i(e.stack,t);return-1===r?null:e.stack[r]}function i(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var s=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return r(this.stack)}getNode(){return n(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}getParentNode(){return n(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}call(e){let{stack:t}=this,{length:n}=t,i=r(t);for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];for(let e of a)i=i[e],t.push(e,i);let u=e(this);return t.length=n,u}callParent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=i(this.stack,t+1),n=this.stack.splice(r+1),s=e(this);return this.stack.push(...n),s}each(e){let{stack:t}=this,{length:n}=t,i=r(t);for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];for(let e of a)i=i[e],t.push(e,i);for(let r=0;r<i.length;++r)t.push(r,i[r]),e(this,r,i),t.length-=2;t.length=n}map(e){let t=[];for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return this.each(((r,n,i)=>{t[n]=e(r,n,i)}),...n),t}try(e){let{stack:t}=this,r=[...t];try{return e()}finally{t.length=0,t.push(...r)}}match(){let e=this.stack.length-1,t=null,r=this.stack[e--];for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(let n of i){if(void 0===r)return!1;let i=null;if("number"==typeof t&&(i=t,t=this.stack[e--],r=this.stack[e--]),n&&!n(r,t,i))return!1;t=this.stack[e--],r=this.stack[e--]}return!0}findAncestor(e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(;n;){let i=null;if("number"==typeof r&&(i=r,r=this.stack[t--],n=this.stack[t--]),null!==r&&e(n,r,i))return n;r=this.stack[t--],n=this.stack[t--]}}};t.exports=s}}),$t=m({"src/main/multiparser.js"(e,t){x();var{utils:{stripTrailingHardline:r}}=V(),{normalize:n}=Bt(),i=Mt();function s(e,t,r,n){if(r.printer.embed&&"auto"===r.embeddedLanguageFormatting)return r.printer.embed(e,t,((e,t,i)=>a(e,t,r,n,i)),r)}function a(e,t,s,a){let{stripTrailingHardline:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=n(Object.assign(Object.assign(Object.assign({},s),t),{},{parentParser:s.parser,originalText:e}),{passThrough:!0}),l=Ot().parse(e,u),{ast:c}=l;e=l.text;let p=c.comments;delete c.comments,i.attach(p,c,e,u),u[Symbol.for("comments")]=p||[],u[Symbol.for("tokens")]=c.tokens||[];let d=a(c,u);return i.ensureAllCommentsPrinted(p),o?"string"==typeof d?d.replace(/(?:\r?\n)*$/,""):r(d):d}t.exports={printSubtree:s}}}),Ut=m({"src/main/ast-to-doc.js"(e,t){x();var r=Rt(),{builders:{hardline:n,addAlignmentToDoc:i},utils:{propagateBreaks:s}}=V(),{printComments:a}=Mt(),o=$t();function u(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{printer:o}=t;o.preprocess&&(e=o.preprocess(e,t));let u=new Map,l=new r(e),p=d();return a>0&&(p=i([n,p],a,t.tabWidth)),s(p),p;function d(e,t){return void 0===e||e===l?h(t):Array.isArray(e)?l.call((()=>h(t)),...e):l.call((()=>h(t)),e)}function h(e){let r=l.getValue(),n=r&&"object"==typeof r&&void 0===e;if(n&&u.has(r))return u.get(r);let i=c(l,t,d,e);return n&&u.set(r,i),i}}function l(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s}=t,a=i(e),o=s(e),u=new Set;for(let e of n)i(e)>=a&&s(e)<=o&&(e.printed=!0,u.add(e));return{doc:r.slice(a,o),printedComments:u}}function c(e,t,r,n){let i,s,c=e.getValue(),{printer:p}=t;if(p.hasPrettierIgnore&&p.hasPrettierIgnore(e))({doc:i,printedComments:s}=l(c,t));else{if(c)try{i=o.printSubtree(e,r,t,u)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}i||(i=p.print(e,t,r,n))}return(!p.willPrintOwnComments||!p.willPrintOwnComments(e,t))&&(i=a(e,i,t,s)),i}t.exports=u}}),Vt=m({"src/main/range-util.js"(e,t){x();var r=Lt(),n=Mt(),i=e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t};function s(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find((e=>c.has(e.type)&&n.has(e)))}function a(e){let t=e.length-1;for(;;){let r=e[t];if(!r||"Program"!==r.type&&"File"!==r.type)break;t--}return e.slice(0,t+1)}function o(e,t,r){let{locStart:n,locEnd:i}=r,s=e.node,o=t.node;if(s===o)return{startNode:s,endNode:o};let u=n(e.node);for(let e of a(t.parentNodes)){if(!(n(e)>=u))break;o=e}let l=i(t.node);for(let t of a(e.parentNodes)){if(!(i(t)<=l))break;if(s=t,s===o)break}return{startNode:s,endNode:o}}function u(e,t,r,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5?arguments[5]:void 0,{locStart:o,locEnd:l}=r,c=o(e),p=l(e);if(!(t>p||t<c||"rangeEnd"===a&&t===c||"rangeStart"===a&&t===p)){for(let o of n.getSortedChildNodes(e,r)){let n=u(o,t,r,i,[e,...s],a);if(n)return n}if(!i||i(e,s[0]))return{node:e,parentNodes:s}}}function l(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var c=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),p=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function d(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return l(t.type,r&&r.type);case"json":case"json5":case"json-stringify":return c.has(t.type);case"graphql":return p.has(t.kind);case"vue":return"root"!==t.tag}return!1}function h(e,t,n){let{rangeStart:a,rangeEnd:l,locStart:c,locEnd:p}=t;r.ok(l>a);let h=e.slice(a,l).search(/\S/),f=-1===h;if(!f)for(a+=h;l>a&&!/\S/.test(e[l-1]);--l);let m,y,g=u(n,a,t,((e,r)=>d(t,e,r)),[],"rangeStart"),b=f?g:u(n,l,t,(e=>d(t,e)),[],"rangeEnd");if(!g||!b)return{rangeStart:0,rangeEnd:0};if(i(t)){let e=s(g,b);m=e,y=e}else({startNode:m,endNode:y}=o(g,b,t));return{rangeStart:Math.min(c(m),c(y)),rangeEnd:Math.max(p(m),p(y))}}t.exports={calculateRange:h,findNodeAtOffset:u}}}),qt=m({"src/main/core.js"(e,t){x();var{diffArrays:r}=D(),{printer:{printDocToString:n},debug:{printDocToDebug:i}}=V(),{getAlignmentSize:s}=pe(),{guessEndOfLine:a,convertEndOfLineToChars:o,countEndOfLineChars:u,normalizeEndOfLine:l}=C(),c=Bt().normalize,p=jt(),d=Mt(),h=Ot(),f=Ut(),m=Vt(),y="\ufeff",g=Symbol("cursor");function b(e,t,r){let n=t.comments;return n&&(delete t.comments,d.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function v(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:a}=h.parse(e,t);if(t.cursorOffset>=0){let e=m.findNodeAtOffset(s,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}let u=b(a,s,t),l=f(s,t,i),c=n(l,t);if(d.ensureAllCommentsPrinted(u),i>0){let e=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(e)),c.formatted=e+o(t.endOfLine)}if(t.cursorOffset>=0){let e,n,i,s,o;if(t.cursorNode&&c.cursorNodeText?(e=t.locStart(t.cursorNode),n=a.slice(e,t.locEnd(t.cursorNode)),i=t.cursorOffset-e,s=c.cursorNodeStart,o=c.cursorNodeText):(e=0,n=a,i=t.cursorOffset,s=0,o=c.formatted),n===o)return{formatted:c.formatted,cursorOffset:s+i,comments:u};let l=[...n];l.splice(i,0,g);let p=[...o],d=r(l,p),h=s;for(let e of d)if(e.removed){if(e.value.includes(g))break}else h+=e.count;return{formatted:c.formatted,cursorOffset:h,comments:u}}return{formatted:c.formatted,cursorOffset:-1,comments:u}}function E(e,t){let{ast:r,text:n}=h.parse(e,t),{rangeStart:i,rangeEnd:a}=m.calculateRange(n,t,r),l=n.slice(i,a),c=Math.min(i,n.lastIndexOf("\n",i)+1),p=n.slice(c,i).match(/^\s*/)[0],d=s(p,t.tabWidth),f=v(l,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:"lf"}),d),y=f.formatted.trimEnd(),{cursorOffset:g}=t;g>a?g+=y.length-l.length:f.cursorOffset>=0&&(g=f.cursorOffset+i);let b=n.slice(0,i)+y+n.slice(a);if("lf"!==t.endOfLine){let e=o(t.endOfLine);g>=0&&"\r\n"===e&&(g+=u(b.slice(0,g),"\n")),b=b.replace(/\n/g,e)}return{formatted:b,cursorOffset:g,comments:f.comments}}function S(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function T(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=S(e,r,-1),n=S(e,n,0),i=S(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:i})}function A(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=T(e,t),o=e.charAt(0)===y;if(o&&(e=e.slice(1),r--,n--,i--),"auto"===s&&(s=a(e)),e.includes("\r")){let t=t=>u(e.slice(0,Math.max(t,0)),"\r\n");r-=t(r),n-=t(n),i-=t(i),e=l(e)}return{hasBOM:o,text:e,options:T(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}))}}function P(e,t){let r=h.resolveParser(t);return!r.hasPragma||r.hasPragma(e)}function w(e,t){let r,{hasBOM:n,text:i,options:s}=A(e,c(t));return s.rangeStart>=s.rangeEnd&&""!==i||s.requirePragma&&!P(i,s)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(s.rangeStart>0||s.rangeEnd<i.length?r=E(i,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!P(i,s)&&(i=s.printer.insertPragma(i)),r=v(i,s)),n&&(r.formatted=y+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}t.exports={formatWithCursor:w,parse(e,t,r){let{text:n,options:i}=A(e,c(t)),s=h.parse(n,i);return r&&(s.ast=p(s.ast,i)),s},formatAST(e,t){t=c(t);let r=f(e,t);return n(r,t)},formatDoc:(e,t)=>w(i(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=c(t);let{ast:r,text:n}=h.parse(e,t);return b(n,r,t),f(r,t)},printDocToString:(e,t)=>n(e,c(t))}}}),Wt=m({"src/common/util-shared.js"(e,t){x();var{getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:i,getIndentSize:s,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:b,isPreviousLineEmpty:v,getNextNonSpaceNonCommentCharacterIndex:E,makeString:S,addLeadingComment:D,addDanglingComment:T,addTrailingComment:C}=pe();t.exports={getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:i,getIndentSize:s,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:b,isPreviousLineEmpty:v,getNextNonSpaceNonCommentCharacterIndex:E,makeString:S,addLeadingComment:D,addDanglingComment:T,addTrailingComment:C}}}),zt=m({"src/utils/create-language.js"(e,t){x(),t.exports=function(e,t){let{languageId:r}=e,n=s(e,i);return Object.assign(Object.assign({linguistLanguageId:r},n),t(e))}}}),Kt=m({"node_modules/esutils/lib/ast.js"(e,t){x(),function(){function e(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function r(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function n(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(e){return n(e)||null!=e&&"FunctionDeclaration"===e.type}function s(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function a(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=s(t)}while(t);return!1}t.exports={isExpression:e,isStatement:n,isIterationStatement:r,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:s}}()}}),Ht=m({"node_modules/esutils/lib/code.js"(e,t){x(),function(){var e,r,n,i,s,a;function o(e){return 48<=e&&e<=57}function u(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}function c(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0}function p(e){return 10===e||13===e||8232===e||8233===e}function d(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(s=new Array(128),a=0;a<128;++a)s[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;function h(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(d(e))}function f(e){return e<128?s[e]:r.NonAsciiIdentifierPart.test(d(e))}function m(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(d(t))}function y(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(d(t))}t.exports={isDecimalDigit:o,isHexDigit:u,isOctalDigit:l,isWhiteSpace:c,isLineTerminator:p,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:m,isIdentifierPartES6:y}}()}}),Jt=m({"node_modules/esutils/lib/keyword.js"(e,t){x(),function(){var e=Ht();function r(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function n(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&r(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function s(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function o(e){return"eval"===e||"arguments"===e}function u(t){var r,n,i;if(0===t.length||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(r=1,n=t.length;r<n;++r)if(i=t.charCodeAt(r),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return 1024*(e-55296)+(t-56320)+65536}function c(t){var r,n,i,s,a;if(0===t.length)return!1;for(a=e.isIdentifierStartES6,r=0,n=t.length;r<n;++r){if(55296<=(i=t.charCodeAt(r))&&i<=56319){if(++r>=n||!(56320<=(s=t.charCodeAt(r))&&s<=57343))return!1;i=l(i,s)}if(!a(i))return!1;a=e.isIdentifierPartES6}return!0}function p(e,t){return u(e)&&!s(e,t)}function d(e,t){return c(e)&&!a(e,t)}t.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:s,isReservedWordES6:a,isRestrictedWord:o,isIdentifierNameES5:u,isIdentifierNameES6:c,isIdentifierES5:p,isIdentifierES6:d}}()}}),Xt=m({"node_modules/esutils/lib/utils.js"(e){x(),e.ast=Kt(),e.code=Ht(),e.keyword=Jt()}}),Gt=m({"src/language-js/utils/is-block-comment.js"(e,t){x();var r=new Set(["Block","CommentBlock","MultiLine"]),n=e=>r.has(null==e?void 0:e.type);t.exports=n}}),Yt=m({"src/language-js/utils/is-node-matches.js"(e,t){function r(e,t){let r=t.split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(0===t)return"Identifier"===e.type&&e.name===n;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}function n(e,t){return t.some((t=>r(e,t)))}x(),t.exports=n}}),Qt=m({"src/language-js/utils/index.js"(e,t){x();var r=Xt().keyword.isIdentifierNameES5,{getLast:n,hasNewline:i,skipWhitespace:s,isNonEmptyArray:a,isNextLineEmptyAfterIndex:o,getStringWidth:u}=pe(),{locStart:l,locEnd:c,hasSameLocStart:p}=It(),d=Gt(),h=Yt(),f="(?:(?=.)\\s)",m=new RegExp(`^${f}*:`),y=new RegExp(`^${f}*::`);function g(e){var t,r;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&d(null===(r=e.trailingComments)||void 0===r?void 0:r[0])&&m.test(e.trailingComments[0].value)}function b(e){let t=null==e?void 0:e[0];return d(t)&&y.test(t.value)}function v(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((e=>v(e,t)));let r=t(e);return"boolean"==typeof r?r:Object.values(e).some((e=>v(e,t)))}function E(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||G(e)||Y(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||qe(e)||"TSNonNullExpression"===e.type}function S(e){var t,r,n,i,s,a;return e.expressions?e.expressions[0]:null!==(t=null!==(r=null!==(n=null!==(i=null!==(s=null!==(a=e.left)&&void 0!==a?a:e.test)&&void 0!==s?s:e.callee)&&void 0!==i?i:e.object)&&void 0!==n?n:e.tag)&&void 0!==r?r:e.argument)&&void 0!==t?t:e.expression}function D(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function T(e){return e=new Set(e),t=>e.has(null==t?void 0:t.type)}var C=T(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),A=T(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function P(e){let t=e.getParentNode();return"declaration"===e.getName()&&A(t)?t:null}var w=T(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function k(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function I(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&k(e.argument)}function F(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var N=T(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),_=T(["FunctionExpression","ArrowFunctionExpression"]);function O(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}function B(e){return G(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var j=T(["JSXElement","JSXFragment"]);function L(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;let r=t.getNode();if(!r.expression||!j(r.expression))return!1;let n=t.getParentNode();return"Program"===n.type&&1===n.body.length}function M(e){return"get"===e.kind||"set"===e.kind}function R(e){return M(e)||p(e,e.value)}function $(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||R(e))}function U(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||p(e,e.typeAnnotation))}var V=T(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function q(e){return Y(e)||"BindExpression"===e.type&&Boolean(e.object)}var W=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function z(e){return!(!e||("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!W.has(e.type))}function K(e){let t=/^(?:before|after)(?:Each|All)$/;return"Identifier"===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}var H=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function J(e){return h(e,H)}function X(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(B(e)&&t&&X(t))return _(e.arguments[0]);if(K(e))return B(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("TemplateLiteral"===e.arguments[0].type||F(e.arguments[0]))&&J(e.callee))return!(e.arguments[2]&&!k(e.arguments[2]))&&((2===e.arguments.length?_(e.arguments[1]):O(e.arguments[1])&&Ae(e.arguments[1]).length<=1)||B(e.arguments[1]));return!1}var G=T(["CallExpression","OptionalCallExpression"]),Y=T(["MemberExpression","OptionalMemberExpression"]);function Q(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");let r=e[t];return 0!==r.length&&r.every((e=>{if(je(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(Y(e)){let t=e;for(;Y(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||(t=t.object,je(t)))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))}function Z(e,t){return"+"===e||"-"===e?e+t:t}function ee(e,t){let r=l(t),n=s(e,c(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)}function te(e,t){return j(t)?Ne(t):je(t,Oe.Leading,(t=>i(e,c(t))))}function re(e,t){return"json"!==t.parser&&F(e.key)&&de(e.key).slice(1,-1)===e.key.value&&(r(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||ne(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))}function ne(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function ie(e,t){let r=/^[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&&r.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&&r.test(t.tag.object.object.name))}function se(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function ae(e,t){return("TemplateLiteral"===e.type&&se(e)||"TaggedTemplateExpression"===e.type&&se(e.quasi))&&!i(t,l(e),{backwards:!0})}function oe(e){if(!je(e))return!1;let t=n(Le(e,Oe.Dangling));return t&&!d(t)}function ue(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(_(r)){if(t+=1,t>1)return!0}else if(G(r))for(let e of r.arguments)if(_(e))return!0;return!1}function le(e){let t=e.getValue(),r=e.getParentNode();return G(t)&&G(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0}function ce(e,t){if(t>=2)return!1;let r=e=>ce(e,t+1),n="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;if(n&&u(n)>5)return!1;if("Literal"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"PrivateName"===e.type||"PrivateIdentifier"===e.type||"ArgumentPlaceholder"===e.type||"Import"===e.type)return!0;if("TemplateLiteral"===e.type)return e.quasis.every((e=>!e.value.raw.includes("\n")))&&e.expressions.every(r);if("ObjectExpression"===e.type)return e.properties.every((e=>!e.computed&&(e.shorthand||e.value&&r(e.value))));if("ArrayExpression"===e.type)return e.elements.every((e=>null===e||r(e)));if(Re(e))return("ImportExpression"===e.type||ce(e.callee,t))&&ke(e).every(r);if(Y(e))return ce(e.object,t)&&ce(e.property,t);let i={"!":!0,"-":!0,"+":!0,"~":!0};if("UnaryExpression"===e.type&&i[e.operator])return ce(e.argument,t);let s={"++":!0,"--":!0};return"UpdateExpression"===e.type&&s[e.operator]?ce(e.argument,t):"TSNonNullExpression"===e.type&&ce(e.expression,t)}function de(e){var t,r;return null!==(t=null===(r=e.extra)||void 0===r?void 0:r.raw)&&void 0!==t?t:e.raw}function he(e){return e}function fe(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function ye(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ye(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ye(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&ye(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&ye(e.callee,t);case"ConditionalExpression":return ye(e.test,t);case"UpdateExpression":return!e.prefix&&ye(e.argument,t);case"BindExpression":return e.object&&ye(e.object,t);case"SequenceExpression":return ye(e.expressions[0],t);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return ye(e.expression,t);default:return t(e)}}var ge={"==":!0,"!=":!0,"===":!0,"!==":!0},be={"*":!0,"/":!0,"%":!0},ve={">>":!0,">>>":!0,"<<":!0};function xe(e,t){return!(Se(t)!==Se(e)||"**"===e||ge[e]&&ge[t]||"%"===t&&be[e]||"%"===e&&be[t]||t!==e&&be[t]&&be[e]||ve[e]&&ve[t])}var Ee=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap(((e,t)=>e.map((e=>[e,t])))));function Se(e){return Ee.get(e)}function De(e){return Boolean(ve[e])||"|"===e||"^"===e||"&"===e}function Te(e){var t;if(e.rest)return!0;let r=Ae(e);return"RestElement"===(null===(t=n(r))||void 0===t?void 0:t.type)}var Ce=new WeakMap;function Ae(e){if(Ce.has(e))return Ce.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Ce.set(e,t),t}function Pe(e,t){let r=e.getValue(),n=0,i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")}var we=new WeakMap;function ke(e){if(we.has(e))return we.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),we.set(e,t),t}function Ie(e,t){let r=e.getValue();"ImportExpression"===r.type?(e.call((e=>t(e,0)),"source"),r.attributes&&e.call((e=>t(e,1)),"attributes")):e.each(t,"arguments")}function Fe(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Ne(e){return e&&(e.prettierIgnore||je(e,Oe.PrettierIgnore))}function _e(e){return Ne(e.getValue())}var Oe={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Be=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,i)=>!(e&Oe.Leading&&!r.leading||e&Oe.Trailing&&!r.trailing||e&Oe.Dangling&&(r.leading||r.trailing)||e&Oe.Block&&!d(r)||e&Oe.Line&&!C(r)||e&Oe.First&&0!==n||e&Oe.Last&&n!==i.length-1||e&Oe.PrettierIgnore&&!Fe(r)||t&&!t(r))};function je(e,t,r){if(!a(null==e?void 0:e.comments))return!1;let n=Be(t,r);return!n||e.comments.some(n)}function Le(e,t,r){if(!Array.isArray(null==e?void 0:e.comments))return[];let n=Be(t,r);return n?e.comments.filter(n):e.comments}var Me=(e,t)=>{let{originalText:r}=t;return o(r,c(e))};function Re(e){return G(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function $e(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)}function Ue(e){return Boolean(e.__isUsingHackPipeline)}var Ve=Symbol("ifWithoutBlockAndSameLineComment");function qe(e){return"TSAsExpression"===e.type||"TSSatisfiesExpression"===e.type}t.exports={getFunctionParameters:Ae,iterateFunctionParametersPath:Pe,getCallArguments:ke,iterateCallArgumentsPath:Ie,hasRestParameter:Te,getLeftSide:S,getLeftSidePathName:D,getParentExportDeclaration:P,getTypeScriptMappedTypeModifier:Z,hasFlowAnnotationComment:b,hasFlowShorthandAnnotationComment:g,hasLeadingOwnLineComment:te,hasNakedLeftSide:E,hasNode:v,hasIgnoreComment:_e,hasNodeIgnoreComment:Ne,identity:he,isBinaryish:V,isCallLikeExpression:Re,isEnabledHackPipeline:Ue,isLineComment:C,isPrettierIgnoreComment:Fe,isCallExpression:G,isMemberExpression:Y,isExportDeclaration:A,isFlowAnnotationComment:ee,isFunctionCompositionArgs:ue,isFunctionNotation:R,isFunctionOrArrowExpression:_,isGetterOrSetter:M,isJestEachTemplateLiteral:ie,isJsxNode:j,isLiteral:w,isLongCurriedCallExpression:le,isSimpleCallArgument:ce,isMemberish:q,isNumericLiteral:k,isSignedNumericLiteral:I,isObjectProperty:$e,isObjectType:N,isObjectTypePropertyAFunction:$,isSimpleType:z,isSimpleNumber:ne,isSimpleTemplateLiteral:Q,isStringLiteral:F,isStringPropSafeToUnquote:re,isTemplateOnItsOwnLine:ae,isTestCall:X,isTheOnlyJsxElementInMarkdown:L,isTSXFile:fe,isTypeAnnotationAFunction:U,isNextLineEmpty:Me,needsHardlineAfterDanglingComment:oe,rawText:de,shouldPrintComma:me,isBitwiseOperator:De,shouldFlatten:xe,startsWithNoLookaheadToken:ye,getPrecedence:Se,hasComment:je,getComments:Le,CommentCheckFlags:Oe,markerForIfWithoutBlockAndSameLineComment:Ve,isTSTypeExpression:qe}}}),Zt=m({"src/language-js/print/template-literal.js"(e,t){x();var r=A(),{getStringWidth:n,getIndentSize:i}=pe(),{builders:{join:s,hardline:a,softline:o,group:u,indent:l,align:c,lineSuffixBoundary:p,addAlignmentToDoc:d},printer:{printDocToString:h},utils:{mapDoc:f}}=V(),{isBinaryish:m,isJestEachTemplateLiteral:y,isSimpleTemplateLiteral:g,hasComment:b,isMemberExpression:v,isTSTypeExpression:E}=Qt();function S(e,t,r){let n=e.getValue();if("TemplateLiteral"===n.type&&y(n,e.getParentNode())){let n=D(e,r,t);if(n)return n}let s="expressions";"TSTemplateLiteralType"===n.type&&(s="types");let a=[],f=e.map(t,s),x=g(n);return x&&(f=f.map((e=>h(e,Object.assign(Object.assign({},r),{},{printWidth:Number.POSITIVE_INFINITY})).formatted))),a.push(p,"`"),e.each((e=>{let h=e.getName();if(a.push(t()),h<f.length){let{tabWidth:t}=r,y=e.getValue(),g=i(y.value.raw,t),S=f[h];if(!x){let e=n[s][h];(b(e)||v(e)||"ConditionalExpression"===e.type||"SequenceExpression"===e.type||E(e)||m(e))&&(S=[l([o,S]),o])}let D=0===g&&y.value.raw.endsWith("\n")?c(Number.NEGATIVE_INFINITY,S):d(S,g,t);a.push(u(["${",D,p,"}"]))}}),"quasis"),a.push("`"),a}function D(e,t,i){let o=e.getNode(),u=o.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some((e=>e.length>0))){t.__inJestEach=!0;let c=e.map(i,"expressions");t.__inJestEach=!1;let d=[],f=c.map((e=>"${"+h(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}")),m=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<o.quasis.length;e++){let t=r(m),n=f[e-1];t.cells.push(n),n.includes("\n")&&(t.hasLineBreak=!0),o.quasis[e].value.raw.includes("\n")&&m.push({hasLineBreak:!1,cells:[]})}let y=Math.max(u.length,...m.map((e=>e.cells.length))),g=Array.from({length:y}).fill(0),b=[{cells:u},...m.filter((e=>e.cells.length>0))];for(let{cells:e}of b.filter((e=>!e.hasLineBreak)))for(let[t,r]of e.entries())g[t]=Math.max(g[t],n(r));return d.push(p,"`",l([a,s(a,b.map((e=>s(" | ",e.cells.map(((t,r)=>e.hasLineBreak?t:t+" ".repeat(g[r]-n(t))))))))]),a,"`"),d}}function T(e,t){let r=e.getValue(),n=t();return b(r)&&(n=u([l([o,n]),o])),["${",n,p,"}"]}function C(e,t){return e.map((e=>T(e,t)),"expressions")}function P(e,t){return f(e,(e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):w(e):e))}function w(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:S,printTemplateExpressions:C,escapeTemplateCharacters:P,uncookTemplateElementValue:w}}}),er=m({"src/language-js/embed/markdown.js"(e,t){x();var{builders:{indent:r,softline:n,literalline:i,dedentToRoot:s}}=V(),{escapeTemplateCharacters:a}=Zt();function o(e,t,o){let l=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,((e,t)=>"\\".repeat(t.length/2)+"`")),c=u(l),p=""!==c;p&&(l=l.replace(new RegExp(`^${c}`,"gm"),""));let d=a(o(l,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",p?r([n,d]):[i,s(d)],n,"`"]}function u(e){let t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}t.exports=o}}),tr=m({"src/language-js/embed/css.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{indent:n,hardline:i,softline:s},utils:{mapDoc:a,replaceEndOfLine:o,cleanDoc:u}}=V(),{printTemplateExpressions:l}=Zt();function c(e,t,r){let n=e.getValue(),i=n.quasis.map((e=>e.value.raw)),s=0;return p(r(i.reduce(((e,t,r)=>0===r?t:e+"@prettier-placeholder-"+s+++"-id"+t),""),{parser:"scss"},{stripTrailingHardline:!0}),n,l(e,t))}function p(e,t,r){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";let a=d(e,r);if(!a)throw new Error("Couldn't insert all the expressions");return["`",n([i,a]),s,"`"]}function d(e,t){if(!r(t))return e;let n=0,i=a(u(e),(e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map(((e,r)=>r%2==0?o(e):(n++,t[e]))):e));return t.length===n?i:null}t.exports=c}}),rr=m({"src/language-js/embed/graphql.js"(e,t){x();var{builders:{indent:r,join:n,hardline:i}}=V(),{escapeTemplateCharacters:s,printTemplateExpressions:a}=Zt();function o(e,t,o){let l=e.getValue(),c=l.quasis.length;if(1===c&&""===l.quasis[0].value.raw.trim())return"``";let p=a(e,t),d=[];for(let e=0;e<c;e++){let t=0===e,r=e===c-1,n=l.quasis[e].value.cooked,i=n.split("\n"),a=i.length,h=p[e],f=a>2&&""===i[0].trim()&&""===i[1].trim(),m=a>2&&""===i[a-1].trim()&&""===i[a-2].trim(),y=i.every((e=>/^\s*(?:#[^\n\r]*)?$/.test(e)));if(!r&&/#[^\n\r]*$/.test(i[a-1]))return null;let g=null;g=y?u(i):o(n,{parser:"graphql"},{stripTrailingHardline:!0}),g?(g=s(g,!1),!t&&f&&d.push(""),d.push(g),!r&&m&&d.push("")):!t&&!r&&f&&d.push(""),h&&d.push(h)}return["`",r([i,n(i,d)]),i,"`"]}function u(e){let t=[],r=!1,s=e.map((e=>e.trim()));for(let[e,n]of s.entries())""!==n&&(""===s[e-1]&&r?t.push([i,n]):t.push(n),r=!0);return 0===t.length?null:n(i,t)}t.exports=o}}),nr=m({"src/language-js/embed/html.js"(e,t){x();var{builders:{indent:r,line:n,hardline:i,group:s},utils:{mapDoc:a}}=V(),{printTemplateExpressions:o,uncookTemplateElementValue:u}=Zt(),l=0;function c(e,t,c,p,d){let{parser:h}=d,f=e.getValue(),m=l;l=l+1>>>0;let y=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${m}_IN_JS`,g=f.quasis.map(((e,t,r)=>t===r.length-1?e.value.cooked:e.value.cooked+y(t))).join(""),b=o(e,t);if(0===b.length&&0===g.trim().length)return"``";let v=new RegExp(y("(\\d+)"),"g"),x=0,E=c(g,{parser:h,__onHtmlRoot(e){x=e.children.length}},{stripTrailingHardline:!0}),S=a(E,(e=>{if("string"!=typeof e)return e;let t=[],r=e.split(v);for(let e=0;e<r.length;e++){let n=r[e];if(e%2==0){n&&(n=u(n),p.__embeddedInHtml&&(n=n.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(n));continue}let i=Number(n);t.push(b[i])}return t})),D=/^\s/.test(g)?" ":"",T=/\s$/.test(g)?" ":"",C="ignore"===p.htmlWhitespaceSensitivity?i:D&&T?n:null;return s(C?["`",r([C,s(S)]),C,"`"]:["`",D,x>1?r(s(S)):s(S),T,"`"])}t.exports=c}}),ir=m({"src/language-js/embed.js"(e,t){x();var{hasComment:r,CommentCheckFlags:n,isObjectProperty:i}=Qt(),s=er(),a=tr(),o=rr(),u=nr();function l(e){return d(e)||y(e)||g(e)||h(e)?"css":E(e)?"graphql":D(e)?"html":f(e)?"angular":p(e)?"markdown":void 0}function c(e,t,r,n){let i=e.getValue();if("TemplateLiteral"!==i.type||T(i))return;let c=l(e);if(c){if("markdown"===c)return s(e,t,r);if("css"===c)return a(e,t,r);if("graphql"===c)return o(e,t,r);if("html"===c||"angular"===c)return u(e,t,r,n,{parser:c})}}function p(e){let t=e.getValue(),r=e.getParentNode();return r&&"TaggedTemplateExpression"===r.type&&1===t.quasis.length&&"Identifier"===r.tag.type&&("md"===r.tag.name||"markdown"===r.tag.name)}function d(e){let t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&"JSXExpressionContainer"===r.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some((e=>"jsx"===e.name.name))||r&&"TaggedTemplateExpression"===r.type&&"Identifier"===r.tag.type&&"css"===r.tag.name||r&&"TaggedTemplateExpression"===r.type&&"MemberExpression"===r.tag.type&&"css"===r.tag.object.name&&("global"===r.tag.property.name||"resolve"===r.tag.property.name)}function h(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"ArrayExpression"===e.type&&"elements"===t),((e,t)=>i(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t),...m)}function f(e){return e.match((e=>"TemplateLiteral"===e.type),((e,t)=>i(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t),...m)}var m=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function y(e){let t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;let r="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(r.type){case"MemberExpression":return b(r.object)||v(r);case"CallExpression":return b(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(b(r.callee.object.object)||v(r.callee.object))||"CallExpression"===r.callee.object.type&&b(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}function g(e){let t=e.getParentNode(),r=e.getParentNode(1);return r&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===r.type&&"JSXIdentifier"===r.name.type&&"css"===r.name.name}function b(e){return"Identifier"===e.type&&"styled"===e.name}function v(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function E(e){let t=e.getValue(),r=e.getParentNode();return S(t,"GraphQL")||r&&("TaggedTemplateExpression"===r.type&&("MemberExpression"===r.tag.type&&"graphql"===r.tag.object.name&&"experimental"===r.tag.property.name||"Identifier"===r.tag.type&&("gql"===r.tag.name||"graphql"===r.tag.name))||"CallExpression"===r.type&&"Identifier"===r.callee.type&&"graphql"===r.callee.name)}function S(e,t){return r(e,n.Block|n.Leading,(e=>{let{value:r}=e;return r===` ${t} `}))}function D(e){return S(e.getValue(),"HTML")||e.match((e=>"TemplateLiteral"===e.type),((e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t))}function T(e){let{quasis:t}=e;return t.some((e=>{let{value:{cooked:t}}=e;return null===t}))}t.exports=c}}),sr=m({"src/language-js/clean.js"(e,t){x();var r=Gt(),n=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),i=e=>{for(let t of e.quasis)delete t.value};function s(e,t,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)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((e=>"jsx"===e.name.name)))for(let{type:e,expression:r}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===r.type&&i(r);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&i(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let s=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===s.type&&"Component"===s.callee.name&&1===s.arguments.length){let r=e.expression.arguments[0].properties;for(let[e,n]of t.expression.arguments[0].properties.entries())switch(r[e].key.name){case"styles":"ArrayExpression"===n.value.type&&i(n.value.elements[0]);break;case"template":"TemplateLiteral"===n.value.type&&i(n.value)}}var a;return"TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&i(t.quasi),"TemplateLiteral"===e.type&&((null===(a=e.leadingComments)||void 0===a?void 0:a.some((e=>r(e)&&["GraphQL","HTML"].some((t=>e.value===` ${t} `)))))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&i(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}s.ignoredProperties=n,t.exports=s}}),ar={};function or(){if(typeof Er>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])Er="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");Er="LE"}}return Er}function ur(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function lr(){return[]}function cr(){return 0}function pr(){return Number.MAX_VALUE}function dr(){return Number.MAX_VALUE}function hr(){return[]}function fr(){return"Browser"}function mr(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function yr(){}function gr(){}function br(){return"javascript"}function vr(){return"browser"}function xr(){return"/tmp"}y(ar,{EOL:()=>Dr,arch:()=>br,cpus:()=>hr,default:()=>Tr,endianness:()=>or,freemem:()=>pr,getNetworkInterfaces:()=>gr,hostname:()=>ur,loadavg:()=>lr,networkInterfaces:()=>yr,platform:()=>vr,release:()=>mr,tmpDir:()=>xr,tmpdir:()=>Sr,totalmem:()=>dr,type:()=>fr,uptime:()=>cr});var Er,Sr,Dr,Tr,Cr=f({"node-modules-polyfills:os"(){x(),Tr={EOL:Dr="\n",tmpdir:Sr=xr,tmpDir:xr,networkInterfaces:yr,getNetworkInterfaces:gr,release:mr,type:fr,cpus:hr,totalmem:dr,freemem:pr,uptime:cr,loadavg:lr,hostname:ur,endianness:or}}}),Ar=m({"node-modules-polyfills-commonjs:os"(e,t){x();var r=(Cr(),v(ar));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),Pr=m({"node_modules/detect-newline/index.js"(e,t){x();var r=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"}}),wr=m({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=Ar();return t=function(){return e},e}function r(){let e=n(Pr());return r=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=h,e.parse=m,e.parseWithComments=y,e.print=g,e.strip=f;var i=/\*\/$/,s=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,d=[];function h(e){let t=e.match(a);return t?t[0].trimLeft():""}function f(e){let t=e.match(a);return t&&t[0]?e.substring(t[0].length):e}function m(e){return y(e).pragmas}function y(e){let n=(0,r().default)(e)||t().EOL;e=e.replace(s,"").replace(i,"").replace(p,"$1");let a="";for(;a!==e;)a=e,e=e.replace(l,`${n}$1 $2${n}`);e=e.replace(u,"").trimRight();let h,f=Object.create(null),m=e.replace(c,"").replace(u,"").trimRight();for(;h=c.exec(e);){let e=h[2].replace(o,"");"string"==typeof f[h[1]]||Array.isArray(f[h[1]])?f[h[1]]=d.concat(f[h[1]],e):f[h[1]]=e}return{comments:m,pragmas:f}}function g(e){let{comments:n="",pragmas:i={}}=e,s=(0,r().default)(n)||t().EOL,a="/**",o=" *",u=" */",l=Object.keys(i),c=l.map((e=>b(e,i[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>`${o} ${e}${s}`)).join("");if(!n){if(0===l.length)return"";if(1===l.length&&!Array.isArray(i[l[0]])){let e=i[l[0]];return`${a} ${b(l[0],e)[0]}${u}`}}let p=n.split(s).map((e=>`${o} ${e}`)).join(s)+s;return a+s+(n?p:"")+(n&&l.length?o+s:"")+c+u}function b(e,t){return d.concat(t).map((t=>`@${e} ${t}`.trim()))}}}),kr=m({"src/language-js/utils/get-shebang.js"(e,t){function r(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}x(),t.exports=r}}),Ir=m({"src/language-js/pragma.js"(e,t){x();var{parseWithComments:r,strip:n,extract:i,print:s}=wr(),{normalizeEndOfLine:a}=C(),o=kr();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let n=i(e),{pragmas:s,comments:a}=r(n);return{shebang:t,text:e,pragmas:s,comments:a}}function l(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")}function c(e){let{shebang:t,text:r,pragmas:i,comments:o}=u(e),l=n(r),c=s({pragmas:Object.assign({format:""},i),comments:o.trimStart()});return(t?`${t}\n`:"")+a(c)+(l.startsWith("\n")?"\n":"\n\n")+l}t.exports={hasPragma:l,insertPragma:c}}}),Fr=m({"src/language-js/utils/is-type-cast-comment.js"(e,t){x();var r=Gt();function n(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}t.exports=n}}),Nr=m({"src/language-js/comments.js"(e,t){x();var{getLast:r,hasNewline:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:i,getNextNonSpaceNonCommentCharacter:s,hasNewlineInRange:a,addLeadingComment:o,addTrailingComment:u,addDanglingComment:l,getNextNonSpaceNonCommentCharacterIndex:c,isNonEmptyArray:p}=pe(),{getFunctionParameters:d,isPrettierIgnoreComment:h,isJsxNode:f,hasFlowShorthandAnnotationComment:m,hasFlowAnnotationComment:y,hasIgnoreComment:g,isCallLikeExpression:b,getCallArguments:v,isCallExpression:E,isMemberExpression:S,isObjectProperty:D,isLineComment:T,getComments:C,CommentCheckFlags:A,markerForIfWithoutBlockAndSameLineComment:P}=Qt(),{locStart:w,locEnd:k}=It(),I=Gt(),F=Fr();function N(e){return[he,Q,U,M,R,$,z,se,re,ie,ae,oe,H,Z,ee].some((t=>t(e)))}function _(e){return[L,Q,V,ae,M,R,$,z,Z,te,ne,ie,ce,ee,me].some((t=>t(e)))}function O(e){return[he,M,R,q,Y,H,ie,G,X,fe,ee,de].some((t=>t(e)))}function B(e,t){let r=(e.body||e.properties).find((e=>{let{type:t}=e;return"EmptyStatement"!==t}));r?o(r,t):l(e,t)}function j(e,t){"BlockStatement"===e.type?B(e,t):o(e,t)}function L(e){let{comment:t,followingNode:r}=e;return!(!r||!F(t)||(o(r,t),0))}function M(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;if("IfStatement"!==(null==n?void 0:n.type)||!i)return!1;if(")"===s(a,t,k))return u(r,t),!0;if(r===n.consequent&&i===n.alternate){if("BlockStatement"===r.type)u(r,t);else{let e="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,i=t.loc.start.line===r.loc.start.line;e&&i?l(r,t,P):l(n,t)}return!0}return"BlockStatement"===i.type?(B(i,t),!0):"IfStatement"===i.type?(j(i.consequent,t),!0):n.consequent===i&&(o(i,t),!0)}function R(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;return!("WhileStatement"!==(null==n?void 0:n.type)||!i||(")"===s(a,t,k)?(u(r,t),0):"BlockStatement"===i.type?(B(i,t),0):n.body!==i||(o(i,t),0)))}function $(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!("TryStatement"!==(null==n?void 0:n.type)&&"CatchClause"!==(null==n?void 0:n.type)||!i||("CatchClause"===n.type&&r?(u(r,t),0):"BlockStatement"===i.type?(B(i,t),0):"TryStatement"===i.type?(j(i.finalizer,t),0):"CatchClause"!==i.type||(j(i.body,t),0)))}function U(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!S(r)||"Identifier"!==(null==n?void 0:n.type)||(o(r,t),0))}function V(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:s}=e,u=r&&!a(s,k(r),w(t));return!(r&&u||"ConditionalExpression"!==(null==n?void 0:n.type)&&"TSConditionalType"!==(null==n?void 0:n.type)||!i||(o(i,t),0))}function q(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!(!D(n)||!n.shorthand||n.key!==r||"AssignmentPattern"!==n.value.type||(u(n.value.left,t),0))}var W=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function z(e){let{comment:t,precedingNode:n,enclosingNode:i,followingNode:s}=e;if(W.has(null==i?void 0:i.type)){if(p(i.decorators)&&(!s||"Decorator"!==s.type))return u(r(i.decorators),t),!0;if(i.body&&s===i.body)return B(i.body,t),!0;if(s){if(i.superClass&&s===i.superClass&&n&&(n===i.id||n===i.typeParameters))return u(n,t),!0;for(let e of["implements","extends","mixins"])if(i[e]&&s===i[e][0])return!n||n!==i.id&&n!==i.typeParameters&&n!==i.superClass?l(i,t,e):u(n,t),!0}}return!1}var K=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function H(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return!!(n&&r&&"("===s(i,t,k)&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===r.type&&n.key===r&&":"!==s(i,r,k)||"Decorator"===(null==r?void 0:r.type)&&K.has(null==n?void 0:n.type))&&(u(r,t),!0)}var J=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function X(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return!("("!==s(i,t,k)||!r||!J.has(null==n?void 0:n.type)||(u(r,t),0))}function G(e){let{comment:t,enclosingNode:r,text:n}=e;if("ArrowFunctionExpression"!==(null==r?void 0:r.type))return!1;let i=c(n,t,k);return!1!==i&&"=>"===n.slice(i,i+2)&&(l(r,t),!0)}function Y(e){let{comment:t,enclosingNode:r,text:n}=e;return!(")"!==s(n,t,k)||(r&&(ye(r)&&0===d(r).length||b(r)&&0===v(r).length)?(l(r,t),0):"MethodDefinition"!==(null==r?void 0:r.type)&&"TSAbstractMethodDefinition"!==(null==r?void 0:r.type)||0!==d(r.value).length||(l(r.value,t),0)))}function Q(e){let{comment:t,precedingNode:n,enclosingNode:a,followingNode:o,text:l}=e;if("FunctionTypeParam"===(null==n?void 0:n.type)&&"FunctionTypeAnnotation"===(null==a?void 0:a.type)&&"FunctionTypeParam"!==(null==o?void 0:o.type)||("Identifier"===(null==n?void 0:n.type)||"AssignmentPattern"===(null==n?void 0:n.type))&&a&&ye(a)&&")"===s(l,t,k))return u(n,t),!0;if("FunctionDeclaration"===(null==a?void 0:a.type)&&"BlockStatement"===(null==o?void 0:o.type)){let e=(()=>{let e=d(a);if(e.length>0)return i(l,k(r(e)));let t=i(l,k(a.id));return!1!==t&&i(l,t+1)})();if(w(t)>e)return B(o,t),!0}return!1}function Z(e){let{comment:t,enclosingNode:r}=e;return"LabeledStatement"===(null==r?void 0:r.type)&&(o(r,t),!0)}function ee(e){let{comment:t,enclosingNode:r}=e;return!("ContinueStatement"!==(null==r?void 0:r.type)&&"BreakStatement"!==(null==r?void 0:r.type)||r.label||(u(r,t),0))}function te(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!(E(n)&&r&&n.callee===r&&n.arguments.length>0)&&(o(n.arguments[0],t),!0)}function re(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return"UnionTypeAnnotation"===(null==n?void 0:n.type)||"TSUnionType"===(null==n?void 0:n.type)?(h(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!r&&(u(r,t),!0)):(("UnionTypeAnnotation"===(null==i?void 0:i.type)||"TSUnionType"===(null==i?void 0:i.type))&&h(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function ne(e){let{comment:t,enclosingNode:r}=e;return!!D(r)&&(o(r,t),!0)}function ie(e){let{comment:t,enclosingNode:r,followingNode:n,ast:i,isLastComment:s}=e;return i&&i.body&&0===i.body.length?(s?l(i,t):o(i,t),!0):"Program"!==(null==r?void 0:r.type)||0!==(null==r?void 0:r.body.length)||p(r.directives)?"Program"===(null==n?void 0:n.type)&&0===(null==n?void 0:n.body.length)&&"ModuleExpression"===(null==r?void 0:r.type)&&(l(n,t),!0):(s?l(r,t):o(r,t),!0)}function se(e){let{comment:t,enclosingNode:r}=e;return("ForInStatement"===(null==r?void 0:r.type)||"ForOfStatement"===(null==r?void 0:r.type))&&(o(r,t),!0)}function ae(e){let{comment:t,precedingNode:r,enclosingNode:i,text:s}=e;if("ImportSpecifier"===(null==i?void 0:i.type)||"ExportSpecifier"===(null==i?void 0:i.type))return o(i,t),!0;let a="ImportSpecifier"===(null==r?void 0:r.type)&&"ImportDeclaration"===(null==i?void 0:i.type),l="ExportSpecifier"===(null==r?void 0:r.type)&&"ExportNamedDeclaration"===(null==i?void 0:i.type);return!(!a&&!l||!n(s,k(t))||(u(r,t),0))}function oe(e){let{comment:t,enclosingNode:r}=e;return"AssignmentPattern"===(null==r?void 0:r.type)&&(o(r,t),!0)}var ue=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),le=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ce(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!ue.has(null==r?void 0:r.type)||!n||!le.has(n.type)&&!I(t)||(o(n,t),0))}function de(e){let{comment:t,enclosingNode:r,followingNode:n,text:i}=e;return!(n||"TSMethodSignature"!==(null==r?void 0:r.type)&&"TSDeclareFunction"!==(null==r?void 0:r.type)&&"TSAbstractMethodDefinition"!==(null==r?void 0:r.type)||";"!==s(i,t,k)||(u(r,t),0))}function he(e){let{comment:t,enclosingNode:r,followingNode:n}=e;if(h(t)&&"TSMappedType"===(null==r?void 0:r.type)&&"TSTypeParameter"===(null==n?void 0:n.type)&&n.constraint)return r.prettierIgnore=!0,t.unignore=!0,!0}function fe(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return!("TSMappedType"!==(null==n?void 0:n.type)||("TSTypeParameter"===(null==i?void 0:i.type)&&i.name?(o(i.name,t),0):"TSTypeParameter"!==(null==r?void 0:r.type)||!r.constraint||(u(r.constraint,t),0)))}function me(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!r||"SwitchCase"!==r.type||r.test||!n||n!==r.consequent[0]||("BlockStatement"===n.type&&T(t)?B(n,t):l(r,t),0))}function ye(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function ge(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===d(e.value).length&&!e.value.returnType&&!p(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function be(e){let t=e.getValue(),r=e.getParentNode(),n=e=>y(C(e,A.Leading))||y(C(e,A.Trailing));return(t&&(f(t)||m(t)||E(r)&&n(t))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!g(e)||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)}t.exports={handleOwnLineComment:N,handleEndOfLineComment:_,handleRemainingComment:O,getCommentChildNodes:ge,willPrintOwnComments:be}}}),_r=m({"src/language-js/needs-parens.js"(e,t){x();var r=A(),n=se(),{getFunctionParameters:i,getLeftSidePathName:s,hasFlowShorthandAnnotationComment:a,hasNakedLeftSide:o,hasNode:u,isBitwiseOperator:l,startsWithNoLookaheadToken:c,shouldFlatten:p,getPrecedence:d,isCallExpression:h,isMemberExpression:f,isObjectProperty:m,isTSTypeExpression:y}=Qt();function g(e,t){let r=e.getParentNode();if(!r)return!1;let s=e.getName(),o=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&S(o)&&D(e))return!0;if(b(o))return!1;if("flow"!==t.parser&&a(e.getValue()))return!0;if("Identifier"===o.type){if(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name)||"left"===s&&("async"===o.name&&!r.await||"let"===o.name)&&"ForOfStatement"===r.type)return!0;if("let"===o.name){var u;let t=null===(u=e.findAncestor((e=>"ForOfStatement"===e.type)))||void 0===u?void 0:u.left;if(t&&c(t,(e=>e===o)))return!0}if("object"===s&&"let"===o.name&&"MemberExpression"===r.type&&r.computed&&!r.optional){let t=e.findAncestor((e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type)),r=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(r&&c(r,(e=>e===o)))return!0}return!1}if("ObjectExpression"===o.type||"FunctionExpression"===o.type||"ClassExpression"===o.type||"DoExpression"===o.type){var g;let t=null===(g=e.findAncestor((e=>"ExpressionStatement"===e.type)))||void 0===g?void 0:g.expression;if(t&&c(t,(e=>e===o)))return!0}switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===s&&("ArrowFunctionExpression"===o.type||"AssignmentExpression"===o.type||"AwaitExpression"===o.type||"BinaryExpression"===o.type||"ConditionalExpression"===o.type||"LogicalExpression"===o.type||"NewExpression"===o.type||"ObjectExpression"===o.type||"SequenceExpression"===o.type||"TaggedTemplateExpression"===o.type||"UnaryExpression"===o.type||"UpdateExpression"===o.type||"YieldExpression"===o.type||"TSNonNullExpression"===o.type))return!0;break;case"ExportDefaultDeclaration":return T(e,t)||"SequenceExpression"===o.type;case"Decorator":if("expression"===s){if(f(o)&&o.computed)return!0;let e=!1,r=!1,n=o;for(;n;)switch(n.type){case"MemberExpression":r=!0,n=n.object;break;case"CallExpression":if(r||e)return"typescript"!==t.parser;e=!0,n=n.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ArrowFunctionExpression":if("body"===s&&"SequenceExpression"!==o.type&&c(o,(e=>"ObjectExpression"===e.type)))return!0}switch(o.type){case"UpdateExpression":if("UnaryExpression"===r.type)return o.prefix&&("++"===o.operator&&"+"===r.operator||"--"===o.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return o.operator===r.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"BinaryExpression":return"left"===s&&"**"===r.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===r.type||"in"===o.operator&&v(e))return!0;if("|>"===o.operator&&o.extra&&o.extra.parenthesized){let t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(r.type){case"TSSatisfiesExpression":case"TSAsExpression":return!y(o);case"ConditionalExpression":return y(o);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===s;case"ClassExpression":case"ClassDeclaration":return"superClass"===s;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"AssignmentExpression":case"AssignmentPattern":return"left"===s&&("TSTypeAssertion"===o.type||y(o));case"LogicalExpression":if("LogicalExpression"===o.type)return r.operator!==o.operator;case"BinaryExpression":{let{operator:e,type:t}=o;if(!e&&"TSTypeAssertion"!==t)return!0;let n=d(e),i=r.operator,a=d(i);return a>n||"right"===s&&a===n||a===n&&!p(i,e)||(a<n&&"%"===e?"+"===i||"-"===i:!!l(i))}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==s;case"ArrowFunctionExpression":return"body"!==s;default:return!0}case"YieldExpression":if("UnaryExpression"===r.type||"AwaitExpression"===r.type||y(r)||"TSNonNullExpression"===r.type)return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"ConditionalExpression":return"test"===s;case"BinaryExpression":return!(!o.argument&&"|>"===r.operator);default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if("extendsType"===s&&"TSConditionalType"===r.type){if("TSConditionalType"===o.type)return!0;let{typeAnnotation:e}=o.returnType||o.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===s&&"TSConditionalType"===r.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===r.type||"TSIntersectionType"===r.type)&&r.types.length>1&&(!o.types||o.types.length>1))return!0;case"TSInferType":if("TSInferType"===o.type&&"TSRestType"===r.type)return!1;case"TSTypeOperator":return"TSArrayType"===r.type||"TSOptionalType"===r.type||"TSRestType"===r.type||"objectType"===s&&"TSIndexedAccessType"===r.type||"TSTypeOperator"===r.type||"TSTypeAnnotation"===r.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===s&&"TSIndexedAccessType"===r.type||"elementType"===s&&"TSArrayType"===r.type;case"TypeofTypeAnnotation":return"objectType"===s&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type)||"elementType"===s&&"ArrayTypeAnnotation"===r.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===r.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"NullableTypeAnnotation"===r.type||"IntersectionTypeAnnotation"===r.type||"UnionTypeAnnotation"===r.type||"objectType"===s&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===r.type||"objectType"===s&&("IndexedAccessType"===r.type||"OptionalIndexedAccessType"===r.type);case"FunctionTypeAnnotation":{let t="NullableTypeAnnotation"===r.type?e.getParentNode(1):r;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===s&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===r.type&&null===r.name&&i(o).some((e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type))}case"OptionalIndexedAccessType":return"objectType"===s&&"IndexedAccessType"===r.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===r.type&&!r.directive){let t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===s&&"MemberExpression"===r.type&&"number"==typeof o.value;case"AssignmentExpression":{let t=e.getParentNode(1);return"body"===s&&"ArrowFunctionExpression"===r.type||("key"!==s||"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type||!r.computed)&&("init"!==s&&"update"!==s||"ForStatement"!==r.type)&&("ExpressionStatement"===r.type?"ObjectPattern"===o.left.type:!("key"===s&&"TSPropertySignature"===r.type||"AssignmentExpression"===r.type||"SequenceExpression"===r.type&&t&&"ForStatement"===t.type&&(t.init===r||t.update===r)||"value"===s&&"Property"===r.type&&t&&"ObjectPattern"===t.type&&t.properties.includes(r)||"NGChainedExpression"===r.type))}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"ConditionalExpression":return"test"===s;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"BinaryExpression":return"|>"!==r.operator||o.extra&&o.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===s;case"MemberExpression":case"OptionalMemberExpression":return"object"===s;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===s;default:return!1}case"ClassExpression":return!!n(o.decorators)||"NewExpression"===r.type&&"callee"===s;case"OptionalMemberExpression":case"OptionalCallExpression":{let t=e.getParentNode(1);if("object"===s&&"MemberExpression"===r.type||"callee"===s&&("CallExpression"===r.type||"NewExpression"===r.type)||"TSNonNullExpression"===r.type&&"MemberExpression"===t.type&&t.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===s&&("BindExpression"===r.type||"NewExpression"===r.type)){let e=o;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===s&&("BindExpression"===r.type||"NewExpression"===r.type)||"object"===s&&f(r);case"NGPipeExpression":return!("NGRoot"===r.type||"NGMicrosyntaxExpression"===r.type||"ObjectProperty"===r.type&&(!o.extra||!o.extra.parenthesized)||"ArrayExpression"===r.type||h(r)&&r.arguments[s]===o||"right"===s&&"NGPipeExpression"===r.type||"property"===s&&"MemberExpression"===r.type||"AssignmentExpression"===r.type);case"JSXFragment":case"JSXElement":return"callee"===s||"left"===s&&"BinaryExpression"===r.type&&"<"===r.operator||"ArrayExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"AssignmentExpression"!==r.type&&"AssignmentPattern"!==r.type&&"BinaryExpression"!==r.type&&"NewExpression"!==r.type&&"ConditionalExpression"!==r.type&&"ExpressionStatement"!==r.type&&"JsExpressionRoot"!==r.type&&"JSXAttribute"!==r.type&&"JSXElement"!==r.type&&"JSXExpressionContainer"!==r.type&&"JSXFragment"!==r.type&&"LogicalExpression"!==r.type&&!h(r)&&!m(r)&&"ReturnStatement"!==r.type&&"ThrowStatement"!==r.type&&"TypeCastExpression"!==r.type&&"VariableDeclarator"!==r.type&&"YieldExpression"!==r.type;case"TypeAnnotation":return"returnType"===s&&"ArrowFunctionExpression"===r.type&&E(o)}return!1}function b(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}function v(e){let t=0,r=e.getValue();for(;r;){let n=e.getParentNode(t++);if(n&&"ForStatement"===n.type&&n.init===r)return!0;r=n}return!1}function E(e){return u(e,(e=>"ObjectTypeAnnotation"===e.type&&u(e,(e=>"FunctionTypeAnnotation"===e.type||void 0))||void 0))}function S(e){return"ObjectExpression"===e.type}function D(e){let t=e.getValue(),n=e.getParentNode(),i=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof i&&n.arguments[i]===t&&n.arguments.length-1===i)return e.callParent(D);break;case"ObjectProperty":if("value"===i){let t=e.getParentNode(1);return r(t.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===i)return e.callParent(D);break;case"ConditionalExpression":if("alternate"===i)return e.callParent(D);break;case"UnaryExpression":if(n.prefix)return e.callParent(D)}return!1}function T(e,t){let r=e.getValue(),n=e.getParentNode();return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===n.type||!g(e,t):!(!o(r)||"ExportDefaultDeclaration"!==n.type&&g(e,t))&&e.call((e=>T(e,t)),...s(e,r))}t.exports=g}}),Or=m({"src/language-js/print-preprocess.js"(e,t){function r(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}x(),t.exports=r}}),Br=m({"src/language-js/print/html-binding.js"(e,t){x();var{builders:{join:r,line:n,group:i,softline:s,indent:a}}=V();function o(e,t,o){let u=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(u,t),"File"===u.type){if(t.__isVueForBindingLeft)return e.call((e=>{let t=r([",",n],e.map(o,"params")),{params:u}=e.getValue();return 1===u.length?t:["(",a([s,i(t)]),s,")"]}),"program","body",0);if(t.__isVueBindings)return e.call((e=>r([",",n],e.map(o,"params"))),"program","body",0)}}function u(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return u(e.object)}return!1;case"Identifier":return!0;default:return!1}}t.exports={isVueEventBindingExpression:u,printHtmlBinding:o}}}),jr=m({"src/language-js/print/binaryish.js"(e,t){x();var{printComments:r}=Mt(),{getLast:n}=pe(),{builders:{join:i,line:s,softline:a,group:o,indent:u,align:l,indentIfBreak:c},utils:{cleanDoc:p,getDocParts:d,isConcat:h}}=V(),{hasLeadingOwnLineComment:f,isBinaryish:m,isJsxNode:y,shouldFlatten:g,hasComment:b,CommentCheckFlags:v,isCallExpression:E,isMemberExpression:S,isObjectProperty:D,isEnabledHackPipeline:T}=Qt(),C=0;function A(e,t,r){let i=e.getValue(),s=e.getParentNode(),l=e.getParentNode(1),p=i!==s.body&&("IfStatement"===s.type||"WhileStatement"===s.type||"SwitchStatement"===s.type||"DoWhileStatement"===s.type),d=T(t)&&"|>"===i.operator,h=P(e,r,t,!1,p);if(p)return h;if(d)return o(h);if(E(s)&&s.callee===i||"UnaryExpression"===s.type||S(s)&&!s.computed)return o([u([a,...h]),a]);let f="ReturnStatement"===s.type||"ThrowStatement"===s.type||"JSXExpressionContainer"===s.type&&"JSXAttribute"===l.type||"|"!==i.operator&&"JsExpressionRoot"===s.type||"NGPipeExpression"!==i.type&&("NGRoot"===s.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===s.type&&"NGMicrosyntax"===l.type&&1===l.body.length)||i===s.body&&"ArrowFunctionExpression"===s.type||i!==s.body&&"ForStatement"===s.type||"ConditionalExpression"===s.type&&"ReturnStatement"!==l.type&&"ThrowStatement"!==l.type&&!E(l)||"TemplateLiteral"===s.type,b="AssignmentExpression"===s.type||"VariableDeclarator"===s.type||"ClassProperty"===s.type||"PropertyDefinition"===s.type||"TSAbstractPropertyDefinition"===s.type||"ClassPrivateProperty"===s.type||D(s),v=m(i.left)&&g(i.operator,i.left.operator);if(f||w(i)&&!v||!w(i)&&b)return o(h);if(0===h.length)return"";let x=y(i.right),A=h.findIndex((e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type)),k=h.slice(0,-1===A?1:A+1),I=h.slice(k.length,x?-1:void 0),F=Symbol("logicalChain-"+ ++C),N=o([...k,u(I)],{id:F});if(!x)return N;let _=n(h);return o([N,c(_,{groupId:F})])}function P(e,t,n,a,c){let y=e.getValue();if(!m(y))return[o(t())];let x=[];g(y.operator,y.left.operator)?x=e.call((e=>P(e,t,n,!0,c)),"left"):x.push(o(t("left")));let E,S=w(y),D=("|>"===y.operator||"NGPipeExpression"===y.type||"|"===y.operator&&"__vue_expression"===n.parser)&&!f(n.originalText,y.right),C="NGPipeExpression"===y.type?"|":y.operator,A="NGPipeExpression"===y.type&&y.arguments.length>0?o(u([s,": ",i([s,": "],e.map(t,"arguments").map((e=>l(2,o(e)))))])):"";if(S)E=[C," ",t("right"),A];else{let r=T(n)&&"|>"===C?e.call((e=>P(e,t,n,!0,c)),"right"):t("right");E=[D?s:"",C,D?" ":s,r,A]}let k=e.getParentNode(),I=b(y.left,v.Trailing|v.Line),F=I||!(c&&"LogicalExpression"===y.type)&&k.type!==y.type&&y.left.type!==y.type&&y.right.type!==y.type;if(x.push(D?"":" ",F?o(E,{shouldBreak:I}):E),a&&b(y)){let t=p(r(e,x,n));return h(t)||"fill"===t.type?d(t):[t]}return x}function w(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||y(e.right))}t.exports={printBinaryishExpression:A,shouldInlineLogicalExpression:w}}}),Lr=m({"src/language-js/print/angular.js"(e,t){x();var{builders:{join:r,line:n,group:i}}=V(),{hasNode:s,hasComment:a,getComments:o}=Qt(),{printBinaryishExpression:u}=jr();function l(e,t,s){let l=e.getValue();if(l.type.startsWith("NG"))switch(l.type){case"NGRoot":return[s("node"),a(l.node)?" //"+o(l.node)[0].value.trimEnd():""];case"NGPipeExpression":return u(e,t,s);case"NGChainedExpression":return i(r([";",n],e.map((e=>p(e)?s():["(",s(),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[l.prefix,": ",l.value.trim()];case"NGMicrosyntax":return e.map(((e,t)=>[0===t?"":c(e.getValue(),t,l)?" ":[";",n],s()]),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(l.name)?l.name:JSON.stringify(l.name);case"NGMicrosyntaxExpression":return[s("expression"),null===l.alias?"":[" as ",s("alias")]];case"NGMicrosyntaxKeyedExpression":{let t=e.getName(),r=e.getParentNode(),n=c(l,t,r)||(1===t&&("then"===l.key.name||"else"===l.key.name)||2===t&&"else"===l.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return[s("key"),n?" ":": ",s("expression")]}case"NGMicrosyntaxLet":return["let ",s("key"),null===l.value?"":[" = ",s("value")]];case"NGMicrosyntaxAs":return[s("key")," as ",s("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(l.type)}.`)}}function c(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value}function p(e){return s(e.getValue(),(e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}t.exports={printAngular:l}}}),Mr=m({"src/language-js/print/jsx.js"(e,t){x();var{printComments:r,printDanglingComments:n,printCommentsSeparately:i}=Mt(),{builders:{line:s,hardline:a,softline:o,group:u,indent:l,conditionalGroup:c,fill:p,ifBreak:d,lineSuffixBoundary:h,join:f},utils:{willBreak:m}}=V(),{getLast:y,getPreferredQuote:g}=pe(),{isJsxNode:b,rawText:v,isCallExpression:E,isStringLiteral:S,isBinaryish:D,hasComment:T,CommentCheckFlags:C,hasNodeIgnoreComment:A}=Qt(),P=_r(),{willPrintOwnComments:w}=Nr(),k=e=>""===e||e===s||e===a||e===o;function I(e,t,r){let n=e.getValue();if("JSXElement"===n.type&&Y(n))return[r("openingElement"),r("closingElement")];let i="JSXElement"===n.type?r("openingElement"):r("openingFragment"),s="JSXElement"===n.type?r("closingElement"):r("closingFragment");if(1===n.children.length&&"JSXExpressionContainer"===n.children[0].type&&("TemplateLiteral"===n.children[0].expression.type||"TaggedTemplateExpression"===n.children[0].expression.type))return[i,...e.map(r,"children"),s];n.children=n.children.map((e=>Z(e)?{type:"JSXText",value:" ",raw:" "}:e));let h=n.children.some(b),f=n.children.filter((e=>"JSXExpressionContainer"===e.type)).length>1,g="JSXElement"===n.type&&n.openingElement.attributes.length>1,v=m(i)||h||g||f,x="mdx"===e.getParentNode().rootMarker,E=t.singleQuote?"{' '}":'{" "}',S=x?" ":d([E,o]," "),D=F(e,t,r,S,n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name),T=n.children.some((e=>Q(e)));for(let e=D.length-2;e>=0;e--){let t=""===D[e]&&""===D[e+1],r=D[e]===a&&""===D[e+1]&&D[e+2]===a,n=(D[e]===o||D[e]===a)&&""===D[e+1]&&D[e+2]===S,i=D[e]===S&&""===D[e+1]&&(D[e+2]===o||D[e+2]===a),s=D[e]===S&&""===D[e+1]&&D[e+2]===S,u=D[e]===o&&""===D[e+1]&&D[e+2]===a||D[e]===a&&""===D[e+1]&&D[e+2]===o;r&&T||t||n||s||u?D.splice(e,2):i&&D.splice(e+1,2)}for(;D.length>0&&k(y(D));)D.pop();for(;D.length>1&&k(D[0])&&k(D[1]);)D.shift(),D.shift();let C=[];for(let[e,t]of D.entries()){if(t===S){if(1===e&&""===D[e-1]){if(2===D.length){C.push(E);continue}C.push([E,a]);continue}if(e===D.length-1){C.push(E);continue}if(""===D[e-1]&&D[e-2]===a){C.push(E);continue}}C.push(t),m(t)&&(v=!0)}let A=T?p(C):u(C,{shouldBreak:!0});if(x)return A;let P=u([i,l([a,A]),a,s]);return v?P:c([u([i,...D,s]),P])}function F(e,t,r,n,i){let o=[];return e.each(((e,t,u)=>{let l=e.getValue();if("JSXText"===l.type){let e=v(l);if(Q(l)){let r,a=e.split(J);if(""===a[0]){if(o.push(""),a.shift(),/\n/.test(a[0])){let e=u[t+1];o.push(_(i,a[1],l,e))}else o.push(n);a.shift()}if(""===y(a)&&(a.pop(),r=a.pop()),0===a.length)return;for(let[e,t]of a.entries())e%2==1?o.push(s):o.push(t);if(void 0!==r)if(/\n/.test(r)){let e=u[t+1];o.push(_(i,y(o),l,e))}else o.push(n);else{let e=u[t+1];o.push(N(i,y(o),l,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",a):o.push("",n)}else{let e=r();o.push(e);let n=u[t+1];if(n&&Q(n)){let e=G(v(n)).split(J)[0];o.push(N(i,e,l,n))}else o.push(a)}}),"children"),o}function N(e,t,r,n){return e?"":"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?1===t.length?o:a:o}function _(e,t,r,n){return e?a:1===t.length?"JSXElement"===r.type&&!r.closingElement||n&&"JSXElement"===n.type&&!n.closingElement?a:o:a}function O(e,t,r){let n=e.getParentNode();if(!n||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;let i=e.match(void 0,(e=>"ArrowFunctionExpression"===e.type),E,(e=>"JSXExpressionContainer"===e.type)),s=P(e,r);return u([s?"":d("("),l([o,t]),o,s?"":d(")")],{shouldBreak:i})}function B(e,t,r){let n=e.getValue(),s=[];if(s.push(r("name")),n.value){let a;if(S(n.value)){let r=v(n.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:s,quote:o,regex:u}=g(r,t.jsxSingleQuote?"'":'"');r=r.replace(u,s);let{leading:l,trailing:c}=e.call((()=>i(e,t)),"value");a=[l,o,r,o,c]}else a=r("value");s.push("=",a)}return s}function j(e,t,r){let n=e.getValue(),i=(e,t)=>"JSXEmptyExpression"===e.type||!T(e)&&("ArrayExpression"===e.type||"ObjectExpression"===e.type||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(i(e.argument,e)||"JSXElement"===e.argument.type)||E(e)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||b(t)&&("ConditionalExpression"===e.type||D(e)));return i(n.expression,e.getParentNode(0))?u(["{",r("expression"),h,"}"]):u(["{",l([o,r("expression")]),o,h,"}"])}function L(e,t,r){let n=e.getValue(),i=n.name&&T(n.name)||n.typeParameters&&T(n.typeParameters);if(n.selfClosing&&0===n.attributes.length&&!i)return["<",r("name"),r("typeParameters")," />"];if(n.attributes&&1===n.attributes.length&&n.attributes[0].value&&S(n.attributes[0].value)&&!n.attributes[0].value.value.includes("\n")&&!i&&!T(n.attributes[0]))return u(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let o=n.attributes&&n.attributes.some((e=>e.value&&S(e.value)&&e.value.value.includes("\n"))),c=t.singleAttributePerLine&&n.attributes.length>1?a:s;return u(["<",r("name"),r("typeParameters"),l(e.map((()=>[c,r()]),"attributes")),...M(n,t,i)],{shouldBreak:o})}function M(e,t,r){return e.selfClosing?[s,"/>"]:R(e,t,r)?[">"]:[o,">"]}function R(e,t,r){let n=e.attributes.length>0&&T(y(e.attributes),C.Trailing);return 0===e.attributes.length&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function $(e,t,r){let n=e.getValue(),i=[];i.push("</");let s=r("name");return T(n.name,C.Leading|C.Line)?i.push(l([a,s]),a):T(n.name,C.Leading|C.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function U(e,t){let r=e.getValue(),i=T(r),s=T(r,C.Line),o="JSXOpeningFragment"===r.type;return[o?"<":"</",l([s?a:i&&!o?" ":"",n(e,t,!0)]),s?a:"",">"]}function q(e,t,n){return O(e,r(e,I(e,t,n),t),t)}function W(e,t){let r=e.getValue(),i=T(r,C.Line);return[n(e,t,!i),i?a:""]}function z(e,t,n){let i=e.getValue();return["{",e.call((e=>{let i=["...",n()],s=e.getValue();return T(s)&&w(e)?[l([o,r(e,i,t)]),o]:i}),"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]}function K(e,t,r){let n=e.getValue();if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return B(e,t,r);case"JSXIdentifier":return String(n.name);case"JSXNamespacedName":return f(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return f(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return z(e,t,r);case"JSXExpressionContainer":return j(e,t,r);case"JSXFragment":case"JSXElement":return q(e,t,r);case"JSXOpeningElement":return L(e,t,r);case"JSXClosingElement":return $(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return U(e,t);case"JSXEmptyExpression":return W(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(n.type)}.`)}}var H=" \n\r\t",J=new RegExp("(["+H+"]+)"),X=new RegExp("[^"+H+"]"),G=e=>e.replace(new RegExp("(?:^"+J.source+"|"+J.source+"$)"),"");function Y(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!Q(t)}function Q(e){return"JSXText"===e.type&&(X.test(v(e))||!/\n/.test(v(e)))}function Z(e){return"JSXExpressionContainer"===e.type&&S(e.expression)&&" "===e.expression.value&&!T(e.expression)}function ee(e){let t=e.getValue(),r=e.getParentNode();if(!(r&&t&&b(t)&&b(r)))return!1;let n=null;for(let e=r.children.indexOf(t);e>0;e--){let t=r.children[e-1];if("JSXText"!==t.type||Q(t)){n=t;break}}return n&&"JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type&&A(n.expression)}t.exports={hasJsxIgnoreComment:ee,printJsx:K}}}),Rr=m({"src/language-js/print/misc.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{indent:n,join:i,line:s}}=V(),{isFlowAnnotationComment:a}=Qt();function o(e){let t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function u(e){return e.getValue().definite||e.match(void 0,((e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite))?"!":""}function l(e,t,r){let n=e.getValue();return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function c(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let i=e.getParentNode(),s="DeclareFunction"===i.type&&i.id===n;return a(t.originalText,n.typeAnnotation)?[" /*: ",r("typeAnnotation")," */"]:[s?"":": ",r("typeAnnotation")]}function p(e,t,r){return["::",r("callee")]}function d(e,t,n){let s=e.getValue();return r(s.modifiers)?[i(" ",e.map(n,"modifiers"))," "]:""}function h(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?[" ",t]:n([s,t])}function f(e,t,r){return["...",r("argument"),c(e,t,r)]}function m(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}t.exports={printOptionalToken:o,printDefiniteToken:u,printFunctionTypeParameters:l,printBindExpressionCallee:p,printTypeScriptModifiers:d,printTypeAnnotation:c,printRestSpread:f,adjustClause:h,printDirective:m}}}),$r=m({"src/language-js/print/array.js"(e,t){x();var{printDanglingComments:r}=Mt(),{builders:{line:n,softline:i,hardline:s,group:a,indent:o,ifBreak:u,fill:l}}=V(),{getLast:c,hasNewline:p}=pe(),{shouldPrintComma:d,hasComment:h,CommentCheckFlags:f,isNextLineEmpty:m,isNumericLiteral:y,isSignedNumericLiteral:g}=Qt(),{locStart:b}=It(),{printOptionalToken:v,printTypeAnnotation:E}=Rr();function S(e,t,n){let s=e.getValue(),l=[],p="TupleExpression"===s.type?"#[":"[",m="]";if(0===s.elements.length)h(s,f.Dangling)?l.push(a([p,r(e,t),i,m])):l.push(p,m);else{let h=c(s.elements),f=!(h&&"RestElement"===h.type),y=null===h,g=Symbol("array"),b=!t.__inJestEach&&s.elements.length>1&&s.elements.every(((e,t,r)=>{let n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;let i=r[t+1];if(i&&n!==i.type)return!1;let s="ArrayExpression"===n?"elements":"properties";return e[s]&&e[s].length>1})),v=D(s,t),x=f?y?",":d(t)?v?u(",","",{groupId:g}):u(","):"":"";l.push(a([p,o([i,v?C(e,t,n,x):[T(e,t,"elements",n),x],r(e,t,!0)]),i,m],{shouldBreak:b,id:g}))}return l.push(v(e),E(e,t,n)),l}function D(e,t){return e.elements.length>1&&e.elements.every((e=>e&&(y(e)||g(e)&&!h(e.argument))&&!h(e,f.Trailing|f.Line,(e=>!p(t.originalText,b(e),{backwards:!0})))))}function T(e,t,r,s){let o=[],u=[];return e.each((e=>{o.push(u,a(s())),u=[",",n],e.getValue()&&m(e.getValue(),t)&&u.push(i)}),r),o}function C(e,t,r,i){let a=[];return e.each(((e,o,u)=>{let l=o===u.length-1;a.push([r(),l?i:","]),l||a.push(m(e.getValue(),t)?[s,s]:h(u[o+1],f.Leading|f.Line)?s:n)}),"elements"),l(a)}t.exports={printArray:S,printArrayItems:T,isConciselyPrintedArray:D}}}),Ur=m({"src/language-js/print/call-arguments.js"(e,t){x();var{printDanglingComments:r}=Mt(),{getLast:n,getPenultimate:i}=pe(),{getFunctionParameters:s,hasComment:a,CommentCheckFlags:o,isFunctionCompositionArgs:u,isJsxNode:l,isLongCurriedCallExpression:c,shouldPrintComma:p,getCallArguments:d,iterateCallArgumentsPath:h,isNextLineEmpty:f,isCallExpression:m,isStringLiteral:y,isObjectProperty:g,isTSTypeExpression:b}=Qt(),{builders:{line:v,hardline:E,softline:S,group:D,indent:T,conditionalGroup:C,ifBreak:A,breakParent:P},utils:{willBreak:w}}=V(),{ArgExpansionBailout:k}=Fe(),{isConciselyPrintedArray:I}=$r();function F(e,t,i){let s=e.getValue(),a="ImportExpression"===s.type,o=d(s);if(0===o.length)return["(",r(e,t,!0),")"];if(B(o))return["(",i(["arguments",0]),", ",i(["arguments",1]),")"];let l=!1,m=!1,y=o.length-1,g=[];h(e,((e,r)=>{let n=e.getNode(),s=[i()];r===y||(f(n,t)?(0===r&&(m=!0),l=!0,s.push(",",E,E)):s.push(",",v)),g.push(s)}));let b=a||s.callee&&"Import"===s.callee.type||!p(t,"all")?"":",";function x(){return D(["(",T([v,...g]),b,v,")"],{shouldBreak:!0})}if(l||"Decorator"!==e.getParentNode().type&&u(o))return x();let I=O(o),F=_(o,t);if(I||F){if(I?g.slice(1).some(w):g.slice(0,-1).some(w))return x();let t=[];try{e.try((()=>{h(e,((e,r)=>{I&&0===r&&(t=[[i([],{expandFirstArg:!0}),g.length>1?",":"",m?E:v,m?E:""],...g.slice(1)]),F&&r===y&&(t=[...g.slice(0,-1),i([],{expandLastArg:!0})])}))}))}catch(e){if(e instanceof k)return x();throw e}return[g.some(w)?P:"",C([["(",...t,")"],I?["(",D(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...g.slice(0,-1),D(n(t),{shouldBreak:!0}),")"],x()])]}let N=["(",T([S,...g]),A(b),S,")"];return c(e)?N:D(N,{shouldBreak:g.some(w)||l})}function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||a(e))||"ArrayExpression"===e.type&&(e.elements.length>0||a(e))||"TSTypeAssertion"===e.type&&N(e.expression)||b(e)&&N(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||j(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&N(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(m(e.body)||"ConditionalExpression"===e.body.type)||l(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function _(e,t){let r=n(e),s=i(e);return!a(r,o.Leading)&&!a(r,o.Trailing)&&N(r)&&(!s||s.type!==r.type)&&(2!==e.length||"ArrowFunctionExpression"!==s.type||"ArrayExpression"!==r.type)&&!(e.length>1&&"ArrayExpression"===r.type&&I(r,t))}function O(e){if(2!==e.length)return!1;let[t,r]=e;return!("ModuleExpression"!==t.type||!L(r))||!a(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&!N(r)}function B(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===s(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((e=>a(e)))}function j(e){return"BlockStatement"===e.type&&(e.body.some((e=>"EmptyStatement"!==e.type))||a(e,o.Dangling))}function L(e){return"ObjectExpression"===e.type&&1===e.properties.length&&g(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&y(e.properties[0].value)&&"module"===e.properties[0].value.value}t.exports=F}}),Vr=m({"src/language-js/print/member.js"(e,t){x();var{builders:{softline:r,group:n,indent:i,label:s}}=V(),{isNumericLiteral:a,isMemberExpression:o,isCallExpression:u}=Qt(),{printOptionalToken:l}=Rr();function c(e,t,a){let l,c=e.getValue(),d=e.getParentNode(),h=0;do{l=e.getParentNode(h),h++}while(l&&(o(l)||"TSNonNullExpression"===l.type));let f=a("object"),m=p(e,t,a),y=l&&("NewExpression"===l.type||"BindExpression"===l.type||"AssignmentExpression"===l.type&&"Identifier"!==l.left.type)||c.computed||"Identifier"===c.object.type&&"Identifier"===c.property.type&&!o(d)||("AssignmentExpression"===d.type||"VariableDeclarator"===d.type)&&(u(c.object)&&c.object.arguments.length>0||"TSNonNullExpression"===c.object.type&&u(c.object.expression)&&c.object.expression.arguments.length>0||"member-chain"===f.label);return s("member-chain"===f.label?"member-chain":"member",[f,y?m:n(i([r,m]))])}function p(e,t,s){let o=s("property"),u=e.getValue(),c=l(e);return u.computed?!u.property||a(u.property)?[c,"[",o,"]"]:n([c,"[",i([r,o]),r,"]"]):[c,".",o]}t.exports={printMemberExpression:c,printMemberLookup:p}}}),qr=m({"src/language-js/print/member-chain.js"(e,t){x();var{printComments:r}=Mt(),{getLast:n,isNextLineEmptyAfterIndex:i,getNextNonSpaceNonCommentCharacterIndex:s}=pe(),a=_r(),{isCallExpression:o,isMemberExpression:u,isFunctionOrArrowExpression:l,isLongCurriedCallExpression:c,isMemberish:p,isNumericLiteral:d,isSimpleCallArgument:h,hasComment:f,CommentCheckFlags:m,isNextLineEmpty:y}=Qt(),{locEnd:g}=It(),{builders:{join:b,hardline:v,group:E,indent:S,conditionalGroup:D,breakParent:T,label:C},utils:{willBreak:A}}=V(),P=Ur(),{printMemberLookup:w}=Vr(),{printOptionalToken:k,printFunctionTypeParameters:I,printBindExpressionCallee:F}=Rr();function N(e,t,x){let N=e.getParentNode(),_=!N||"ExpressionStatement"===N.type,O=[];function B(e){let{originalText:r}=t,n=s(r,e,g);return")"===r.charAt(n)?!1!==n&&i(r,n+1):y(e,t)}function j(e){let n=e.getValue();o(n)&&(p(n.callee)||o(n.callee))?(O.unshift({node:n,printed:[r(e,[k(e),I(e,t,x),P(e,t,x)],t),B(n)?v:""]}),e.call((e=>j(e)),"callee")):p(n)?(O.unshift({node:n,needsParens:a(e,t),printed:r(e,u(n)?w(e,t,x):F(e,t,x),t)}),e.call((e=>j(e)),"object")):"TSNonNullExpression"===n.type?(O.unshift({node:n,printed:r(e,"!",t)}),e.call((e=>j(e)),"expression")):O.unshift({node:n,printed:x()})}let L=e.getValue();O.unshift({node:L,printed:[k(e),I(e,t,x),P(e,t,x)]}),L.callee&&e.call((e=>j(e)),"callee");let M=[],R=[O[0]],$=1;for(;$<O.length&&("TSNonNullExpression"===O[$].node.type||o(O[$].node)||u(O[$].node)&&O[$].node.computed&&d(O[$].node.property));++$)R.push(O[$]);if(!o(O[0].node))for(;$+1<O.length&&p(O[$].node)&&p(O[$+1].node);++$)R.push(O[$]);M.push(R),R=[];let U=!1;for(;$<O.length;++$){if(U&&p(O[$].node)){if(O[$].node.computed&&d(O[$].node.property)){R.push(O[$]);continue}M.push(R),R=[],U=!1}(o(O[$].node)||"ImportExpression"===O[$].node.type)&&(U=!0),R.push(O[$]),f(O[$].node,m.Trailing)&&(M.push(R),R=[],U=!1)}function V(e){return/^[A-Z]|^[$_]+$/.test(e)}function q(e){return e.length<=t.tabWidth}function W(e){let t=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){let r=e[0][0].node;return"ThisExpression"===r.type||"Identifier"===r.type&&(V(r.name)||_&&q(r.name)||t)}let r=n(e[0]).node;return u(r)&&"Identifier"===r.property.type&&(V(r.property.name)||t)}R.length>0&&M.push(R);let z=M.length>=2&&!f(M[1][0].node)&&W(M);function K(e){let t=e.map((e=>e.printed));return e.length>0&&n(e).needsParens?["(",...t,")"]:t}function H(e){return 0===e.length?"":S(E([v,b(v,e.map(K))]))}let J=M.map(K),X=J,G=z?3:2,Y=M.flat(),Q=Y.slice(1,-1).some((e=>f(e.node,m.Leading)))||Y.slice(0,-1).some((e=>f(e.node,m.Trailing)))||M[G]&&f(M[G][0].node,m.Leading);if(M.length<=G&&!Q)return c(e)?X:E(X);let Z,ee=n(M[z?1:0]).node,te=!o(ee)&&B(ee),re=[K(M[0]),z?M.slice(1,2).map(K):"",te?v:"",H(M.slice(z?2:1))],ne=O.map((e=>{let{node:t}=e;return t})).filter(o);function ie(){let e=n(n(M)).node,t=n(J);return o(e)&&A(t)&&ne.slice(0,-1).some((e=>e.arguments.some(l)))}return Z=Q||ne.length>2&&ne.some((e=>!e.arguments.every((e=>h(e,0)))))||J.slice(0,-1).some(A)||ie()?E(re):[A(X)||te?T:"",D([X,re])],C("member-chain",Z)}t.exports=N}}),Wr=m({"src/language-js/print/call-expression.js"(e,t){x();var{builders:{join:r,group:n}}=V(),i=_r(),{getCallArguments:s,hasFlowAnnotationComment:a,isCallExpression:o,isMemberish:u,isStringLiteral:l,isTemplateOnItsOwnLine:c,isTestCall:p,iterateCallArgumentsPath:d}=Qt(),h=qr(),f=Ur(),{printOptionalToken:m,printFunctionTypeParameters:y}=Rr();function g(e,t,l){let g=e.getValue(),v=e.getParentNode(),x="NewExpression"===g.type,E="ImportExpression"===g.type,S=m(e),D=s(g);if(D.length>0&&(!E&&!x&&b(g,v)||1===D.length&&c(D[0],t.originalText)||!x&&p(g,v))){let n=[];return d(e,(()=>{n.push(l())})),[x?"new ":"",l("callee"),S,y(e,t,l),"(",r(", ",n),")"]}let T=("babel"===t.parser||"babel-flow"===t.parser)&&g.callee&&"Identifier"===g.callee.type&&a(g.callee.trailingComments);if(T&&(g.callee.trailingComments[0].printed=!0),!E&&!x&&u(g.callee)&&!e.call((e=>i(e,t)),"callee"))return h(e,t,l);let C=[x?"new ":"",E?"import":l("callee"),S,T?`/*:: ${g.callee.trailingComments[0].value.slice(2).trim()} */`:"",y(e,t,l),f(e,t,l)];return E||o(g.callee)?n(C):C}function b(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){let r=s(e);return"ExpressionStatement"===t.type&&(1===r.length||2===r.length&&"ArrayExpression"===r[0].type||3===r.length&&l(r[0])&&"ArrayExpression"===r[1].type)}return!1}t.exports={printCallExpression:g}}}),zr=m({"src/language-js/print/assignment.js"(e,t){x();var{isNonEmptyArray:r,getStringWidth:n}=pe(),{builders:{line:i,group:s,indent:a,indentIfBreak:o,lineSuffixBoundary:u},utils:{cleanDoc:l,willBreak:c,canBreak:p}}=V(),{hasLeadingOwnLineComment:d,isBinaryish:h,isStringLiteral:f,isLiteral:m,isNumericLiteral:y,isCallExpression:g,isMemberExpression:b,getCallArguments:v,rawText:E,hasComment:S,isSignedNumericLiteral:D,isObjectProperty:T}=Qt(),{shouldInlineLogicalExpression:C}=jr(),{printCallExpression:A}=Wr();function P(e,t,r,n,l,c){let p=I(e,t,r,n,c),d=r(c,{assignmentLayout:p});switch(p){case"break-after-operator":return s([s(n),l,s(a([i,d]))]);case"never-break-after-operator":return s([s(n),l," ",d]);case"fluid":{let e=Symbol("assignment");return s([s(n),l,s(a(i),{id:e}),u,o(d,{groupId:e})])}case"break-lhs":return s([n,l," ",s(d)]);case"chain":return[s(n),l,i,d];case"chain-tail":return[s(n),l,a([i,d])];case"chain-tail-arrow-chain":return[s(n),l,d];case"only-left":return n}}function w(e,t,r){let n=e.getValue();return P(e,t,r,r("left"),[" ",n.operator],"right")}function k(e,t,r){return P(e,t,r,r("id")," =","init")}function I(e,t,r,n,i){let s=e.getValue(),a=s[i];if(!a)return"only-left";let o=!_(a);if(e.match(_,O,(e=>!o||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type)))return o?"ArrowFunctionExpression"===a.type&&"ArrowFunctionExpression"===a.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&_(a.right)||d(t.originalText,a))return"break-after-operator";if("CallExpression"===a.type&&"require"===a.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(N(s)||B(s)||M(s)||R(s)&&p(n))return"break-lhs";let u=K(s,n,t);return e.call((()=>F(e,t,r,u)),i)?"break-after-operator":u||"TemplateLiteral"===a.type||"TaggedTemplateExpression"===a.type||"BooleanLiteral"===a.type||y(a)||"ClassExpression"===a.type?"never-break-after-operator":"fluid"}function F(e,t,n,i){let s=e.getValue();if(h(s)&&!C(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:e}=s;return h(e)&&!C(e)}case"ClassExpression":return r(s.decorators)}if(i)return!1;let a=s,o=[];for(;;)if("UnaryExpression"===a.type)a=a.argument,o.push("argument");else{if("TSNonNullExpression"!==a.type)break;a=a.expression,o.push("expression")}return!(!f(a)&&!e.call((()=>q(e,t,n)),...o))}function N(e){if(O(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((e=>T(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)))}return!1}function _(e){return"AssignmentExpression"===e.type}function O(e){return _(e)||"VariableDeclarator"===e.type}function B(e){let t=j(e);if(r(t)){let r="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((e=>e[r]||e.default)))return!0}return!1}function j(e){return L(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function L(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}function M(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=$(t.typeAnnotation);return r(n)&&n.length>1&&n.some((e=>r($(e))||"TSConditionalType"===e.type))}function R(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function $(e){return U(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function U(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}function q(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),s=()=>q(e,t,r,!0);if("TSNonNullExpression"===i.type)return e.call(s,"expression");if(g(i)){if("member-chain"===A(e,t,r).label)return!1;let n=v(i);return!(!(0===n.length||1===n.length&&z(n[0],t))||H(i,r))&&e.call(s,"callee")}return b(i)?e.call(s,"object"):n&&("Identifier"===i.type||"ThisExpression"===i.type)}var W=.25;function z(e,t){let{printWidth:r}=t;if(S(e))return!1;let n=r*W;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||D(e)&&!S(e.argument))return!0;let i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=n:f(e)?E(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):m(e)}function K(e,t,r){if(!T(e))return!1;let i=3;return"string"==typeof(t=l(t))&&n(t)<r.tabWidth+i}function H(e,t){let n=J(e);if(r(n)){if(n.length>1)return!0;if(1===n.length){let e=n[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}let r=e.typeParameters?"typeParameters":"typeArguments";if(c(t(r)))return!0}return!1}function J(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}t.exports={printVariableDeclarator:k,printAssignmentExpression:w,printAssignment:P,isArrowFunctionVariableDeclarator:R}}}),Kr=m({"src/language-js/print/function-parameters.js"(e,t){x();var{getNextNonSpaceNonCommentCharacter:r}=pe(),{printDanglingComments:n}=Mt(),{builders:{line:i,hardline:s,softline:a,group:o,indent:u,ifBreak:l},utils:{removeLines:c,willBreak:p}}=V(),{getFunctionParameters:d,iterateFunctionParametersPath:h,isSimpleType:f,isTestCall:m,isTypeAnnotationAFunction:y,isObjectType:g,isObjectTypePropertyAFunction:b,hasRestParameter:v,shouldPrintComma:E,hasComment:S,isNextLineEmpty:D}=Qt(),{locEnd:T}=It(),{ArgExpansionBailout:C}=Fe(),{printFunctionTypeParameters:A}=Rr();function P(e,t,g,x,S){let P=e.getValue(),k=d(P),I=S?A(e,g,t):"";if(0===k.length)return[I,"(",n(e,g,!0,(e=>")"===r(g.originalText,e,T))),")"];let F=e.getParentNode(),N=m(F),_=w(P),O=[];if(h(e,((e,r)=>{let n=r===k.length-1;n&&P.rest&&O.push("..."),O.push(t()),!n&&(O.push(","),N||_?O.push(" "):D(k[r],g)?O.push(s,s):O.push(i))})),x){if(p(I)||p(O))throw new C;return o([c(I),"(",c(O),")"])}let B=k.every((e=>!e.decorators));return _&&B||N?[I,"(",...O,")"]:(b(F)||y(F)||"TypeAlias"===F.type||"UnionTypeAnnotation"===F.type||"TSUnionType"===F.type||"IntersectionTypeAnnotation"===F.type||"FunctionTypeAnnotation"===F.type&&F.returnType===P)&&1===k.length&&null===k[0].name&&P.this!==k[0]&&k[0].typeAnnotation&&null===P.typeParameters&&f(k[0].typeAnnotation)&&!P.rest?"always"===g.arrowParens?["(",...O,")"]:O:[I,"(",u([a,...O]),l(!v(P)&&E(g,"all")?",":""),a,")"]}function w(e){if(!e)return!1;let t=d(e);if(1!==t.length)return!1;let[r]=t;return!S(r)&&("ObjectPattern"===r.type||"ArrayPattern"===r.type||"Identifier"===r.type&&r.typeAnnotation&&("TypeAnnotation"===r.typeAnnotation.type||"TSTypeAnnotation"===r.typeAnnotation.type)&&g(r.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===r.type&&g(r.typeAnnotation)||"AssignmentPattern"===r.type&&("ObjectPattern"===r.left.type||"ArrayPattern"===r.left.type)&&("Identifier"===r.right.type||"ObjectExpression"===r.right.type&&0===r.right.properties.length||"ArrayExpression"===r.right.type&&0===r.right.elements.length))}function k(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function I(e,t){let r=k(e);if(!r)return!1;let n=e.typeParameters&&e.typeParameters.params;if(n){if(n.length>1)return!1;if(1===n.length){let e=n[0];if(e.constraint||e.default)return!1}}return 1===d(e).length&&(g(r)||p(t))}t.exports={printFunctionParameters:P,shouldHugFunctionParameters:w,shouldGroupFunctionParameters:I}}}),Hr=m({"src/language-js/print/type-annotation.js"(e,t){x();var{printComments:r,printDanglingComments:n}=Mt(),{isNonEmptyArray:i}=pe(),{builders:{group:s,join:a,line:o,softline:u,indent:l,align:c,ifBreak:p}}=V(),d=_r(),{locStart:h}=It(),{isSimpleType:f,isObjectType:m,hasLeadingOwnLineComment:y,isObjectTypePropertyAFunction:g,shouldPrintComma:b}=Qt(),{printAssignment:v}=zr(),{printFunctionParameters:E,shouldGroupFunctionParameters:S}=Kr(),{printArrayItems:D}=$r();function T(e){if(f(e)||m(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){let t=e.types.filter((e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type)).length,r=e.types.some((e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type));if(e.types.length-1===t&&r)return!0}return!1}function C(e,t,r){let n=t.semi?";":"",i=e.getValue(),s=[];return s.push("opaque type ",r("id"),r("typeParameters")),i.supertype&&s.push(": ",r("supertype")),i.impltype&&s.push(" = ",r("impltype")),s.push(n),s}function A(e,t,r){let n=t.semi?";":"",i=e.getValue(),s=[];i.declare&&s.push("declare "),s.push("type ",r("id"),r("typeParameters"));let a="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[v(e,t,r,s," =",a),n]}function P(e,t,r){let n=e.getValue(),i=e.map(r,"types"),a=[],u=!1;for(let e=0;e<i.length;++e)0===e?a.push(i[e]):m(n.types[e-1])&&m(n.types[e])?a.push([" & ",u?l(i[e]):i[e]]):m(n.types[e-1])||m(n.types[e])?(e>1&&(u=!0),a.push(" & ",e>1?l(i[e]):i[e])):a.push(l([" &",o,i[e]]));return s(a)}function w(e,t,n){let i=e.getValue(),h=e.getParentNode(),f=!("TypeParameterInstantiation"===h.type||"TSTypeParameterInstantiation"===h.type||"GenericTypeAnnotation"===h.type||"TSTypeReference"===h.type||"TSTypeAssertion"===h.type||"TupleTypeAnnotation"===h.type||"TSTupleType"===h.type||"FunctionTypeParam"===h.type&&!h.name&&e.getParentNode(1).this!==h||("TypeAlias"===h.type||"VariableDeclarator"===h.type||"TSTypeAliasDeclaration"===h.type)&&y(t.originalText,i)),m=T(i),g=e.map((e=>{let i=n();return m||(i=c(2,i)),r(e,i,t)}),"types");if(m)return a(" | ",g);let b=f&&!y(t.originalText,i),v=[p([b?o:"","| "]),a([o,"| "],g)];return d(e,t)?s([l(v),u]):"TupleTypeAnnotation"===h.type&&h.types.length>1||"TSTupleType"===h.type&&h.elementTypes.length>1?s([l([p(["(",u]),v]),u,p(")")]):s(f?l(v):v)}function k(e,t,r){let n=e.getValue(),i=[],a=e.getParentNode(0),o=e.getParentNode(1),u=e.getParentNode(2),l="TSFunctionType"===n.type||!(("ObjectTypeProperty"===a.type||"ObjectTypeInternalSlot"===a.type)&&!a.variance&&!a.optional&&h(a)===h(n)||"ObjectTypeCallProperty"===a.type||u&&"DeclareFunction"===u.type),c=l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type),p=c&&l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type)&&"ArrowFunctionExpression"===o.type;g(a)&&(l=!0,c=!0),p&&i.push("(");let d=E(e,r,t,!1,!0),f=n.returnType||n.predicate||n.typeAnnotation?[l?" => ":": ",r("returnType"),r("predicate"),r("typeAnnotation")]:"",m=S(n,f);return i.push(m?s(d):d),f&&i.push(f),p&&i.push(")"),s(i)}function I(e,t,r){let a=e.getValue(),o="TSTupleType"===a.type?"elementTypes":"types",c=a[o],d=i(c),h=d?u:"";return s(["[",l([h,D(e,t,o,r)]),p(d&&b(t,"all")?",":""),n(e,t,!0),h,"]"])}function F(e,t,r){let n=e.getValue(),i="OptionalIndexedAccessType"===n.type&&n.optional?"?.[":"[";return[r("objectType"),i,r("indexType"),"]"]}function N(e,t,r){let n=e.getValue();return[n.postfix?"":r,t("typeAnnotation"),n.postfix?r:""]}t.exports={printOpaqueType:C,printTypeAlias:A,printIntersectionType:P,printUnionType:w,printFunctionType:k,printTupleType:I,printIndexedAccessType:F,shouldHugType:T,printJSDocType:N}}}),Jr=m({"src/language-js/print/type-parameters.js"(e,t){x();var{printDanglingComments:r}=Mt(),{builders:{join:n,line:i,hardline:s,softline:a,group:o,indent:u,ifBreak:l}}=V(),{isTestCall:c,hasComment:p,CommentCheckFlags:d,isTSXFile:h,shouldPrintComma:f,getFunctionParameters:m,isObjectType:y,getTypeScriptMappedTypeModifier:g}=Qt(),{createGroupIdMapper:b}=pe(),{shouldHugType:v}=Hr(),{isArrowFunctionVariableDeclarator:E}=zr(),S=b("typeParameters");function D(e,t,r,s){let p=e.getValue();if(!p[s])return"";if(!Array.isArray(p[s]))return r(s);let d=e.getNode(2),g=d&&c(d),b=e.match((e=>!(1===e[s].length&&y(e[s][0]))),void 0,((e,t)=>"typeAnnotation"===t),(e=>"Identifier"===e.type),E);if(0===p[s].length||!b&&(g||1===p[s].length&&("NullableTypeAnnotation"===p[s][0].type||v(p[s][0]))))return["<",n(", ",e.map(r,s)),T(e,t),">"];let x="TSTypeParameterInstantiation"===p.type?"":1===m(p).length&&h(t)&&!p[s][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":f(t,"all")?l(","):"";return o(["<",u([a,n([",",i],e.map(r,s))]),x,a,">"],{id:S(p)})}function T(e,t){let n=e.getValue();if(!p(n,d.Dangling))return"";let i=!p(n,d.Line),a=r(e,t,i);return i?a:[a,s]}function C(e,t,r){let n=e.getValue(),i=["TSTypeParameter"===n.type&&n.const?"const ":""],s=e.getParentNode();return"TSMappedType"===s.type?(s.readonly&&i.push(g(s.readonly,"readonly")," "),i.push("[",r("name")),n.constraint&&i.push(" in ",r("constraint")),s.nameType&&i.push(" as ",e.callParent((()=>r("nameType")))),i.push("]"),i):(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(r("name")),n.bound&&i.push(": ",r("bound")),n.constraint&&i.push(" extends ",r("constraint")),n.default&&i.push(" = ",r("default")),i)}t.exports={printTypeParameter:C,printTypeParameters:D,getTypeParametersGroupId:S}}}),Xr=m({"src/language-js/print/property.js"(e,t){x();var{printComments:r}=Mt(),{printString:n,printNumber:i}=pe(),{isNumericLiteral:s,isSimpleNumber:a,isStringLiteral:o,isStringPropSafeToUnquote:u,rawText:l}=Qt(),{printAssignment:c}=zr(),p=new WeakMap;function d(e,t,c){let d=e.getNode();if(d.computed)return["[",c("key"),"]"];let h=e.getParentNode(),{key:f}=d;if("consistent"===t.quoteProps&&!p.has(h)){let e=(h.properties||h.body||h.members).some((e=>!e.computed&&e.key&&o(e.key)&&!u(e,t)));p.set(h,e)}if(("Identifier"===f.type||s(f)&&a(i(l(f)))&&String(f.value)===i(l(f))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&p.get(h))){let i=n(JSON.stringify("Identifier"===f.type?f.name:f.value.toString()),t);return e.call((e=>r(e,i,t)),"key")}return u(d,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!p.get(h))?e.call((e=>r(e,/^\d/.test(f.value)?i(f.value):f.value,t)),"key"):c("key")}function h(e,t,r){return e.getValue().shorthand?r("value"):c(e,t,r,d(e,t,r),":","value")}t.exports={printProperty:h,printPropertyKey:d}}}),Gr=m({"src/language-js/print/function.js"(e,t){x();var r=Lt(),{printDanglingComments:n,printCommentsSeparately:i}=Mt(),s=A(),{getNextNonSpaceNonCommentCharacterIndex:a}=pe(),{builders:{line:o,softline:u,group:l,indent:c,ifBreak:p,hardline:d,join:h,indentIfBreak:f},utils:{removeLines:m,willBreak:y}}=V(),{ArgExpansionBailout:g}=Fe(),{getFunctionParameters:b,hasLeadingOwnLineComment:v,isFlowAnnotationComment:E,isJsxNode:S,isTemplateOnItsOwnLine:D,shouldPrintComma:T,startsWithNoLookaheadToken:C,isBinaryish:P,isLineComment:w,hasComment:k,getComments:I,CommentCheckFlags:F,isCallLikeExpression:N,isCallExpression:_,getCallArguments:O,hasNakedLeftSide:B,getLeftSide:j}=Qt(),{locEnd:L}=It(),{printFunctionParameters:M,shouldGroupFunctionParameters:R}=Kr(),{printPropertyKey:$}=Xr(),{printFunctionTypeParameters:U}=Rr();function q(e,t,r,n){let i=e.getValue(),s=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&n&&n.expandLastArg){let t=e.getParentNode();_(t)&&O(t).length>1&&(s=!0)}let a=[];"TSDeclareFunction"===i.type&&i.declare&&a.push("declare "),i.async&&a.push("async "),i.generator?a.push("function* "):a.push("function "),i.id&&a.push(t("id"));let o=M(e,t,r,s),u=Y(e,t,r),c=R(i,u);return a.push(U(e,r,t),l([c?l(o):o,u]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&a.push(";"),a}function W(e,t,n){let i=e.getNode(),{kind:s}=i,a=i.value||i,o=[];return s&&"init"!==s&&"method"!==s&&"constructor"!==s?(r.ok("get"===s||"set"===s),o.push(s," ")):a.async&&o.push("async "),a.generator&&o.push("*"),o.push($(e,t,n),i.optional||i.key.optional?"?":""),i===a?o.push(z(e,t,n)):"FunctionExpression"===a.type?o.push(e.call((e=>z(e,t,n)),"value")):o.push(n("value")),o}function z(e,t,r){let n=e.getNode(),i=M(e,r,t),s=Y(e,r,t),a=R(n,s),o=[U(e,t,r),l([a?l(i):i,s])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function K(e,t,r,i){let s=[];if(e.getValue().async&&s.push("async "),G(e,t))s.push(r(["params",0]));else{let n=i&&(i.expandLastArg||i.expandFirstArg),a=Y(e,r,t);if(n){if(y(a))throw new g;a=l(m(a))}s.push(l([M(e,r,t,n,!0),a]))}let o=n(e,t,!0,(e=>{let r=a(t.originalText,e,L);return!1!==r&&"=>"===t.originalText.slice(r,r+2)}));return o&&s.push(" ",o),s}function H(e,t,r,n,i,s){let a=e.getName(),d=e.getParentNode(),m=N(d)&&"callee"===a,y=Boolean(t&&t.assignmentLayout),g="BlockStatement"!==s.body.type&&"ObjectExpression"!==s.body.type&&"SequenceExpression"!==s.body.type,b=m&&g||t&&"chain-tail-arrow-chain"===t.assignmentLayout,v=Symbol("arrow-chain");return"SequenceExpression"===s.body.type&&(i=l(["(",c([u,i]),u,")"])),l([l(c([m||y?u:"",l(h([" =>",o],r),{shouldBreak:n})]),{id:v,shouldBreak:b})," =>",f(g?c([o,i]):[" ",i],{groupId:v}),m?p(u,"",{groupId:v}):""])}function J(e,t,r,n){let s=e.getValue(),a=[],d=[],h=!1;if(function o(){let u=K(e,t,r,n);if(0===a.length)a.push(u);else{let{leading:r,trailing:n}=i(e,t);a.push([r,u]),d.unshift(n)}h=h||s.returnType&&b(s).length>0||s.typeParameters||b(s).some((e=>"Identifier"!==e.type)),"ArrowFunctionExpression"!==s.body.type||n&&n.expandLastArg?d.unshift(r("body",n)):(s=s.body,e.call(o,"body"))}(),a.length>1)return H(e,n,a,h,d,s);let f=a;if(f.push(" =>"),!v(t.originalText,s.body)&&("ArrayExpression"===s.body.type||"ObjectExpression"===s.body.type||"BlockStatement"===s.body.type||S(s.body)||D(s.body,t.originalText)||"ArrowFunctionExpression"===s.body.type||"DoExpression"===s.body.type))return l([...f," ",d]);if("SequenceExpression"===s.body.type)return l([...f,l([" (",c([u,d]),u,")"])]);let m=(n&&n.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!k(s),y=n&&n.expandLastArg&&T(t,"all"),g="ConditionalExpression"===s.body.type&&!C(s.body,(e=>"ObjectExpression"===e.type));return l([...f,l([c([o,g?p("","("):"",d,g?p("",")"):""]),m?[p(y?",":""),u]:""])])}function X(e){let t=b(e);return!(1!==t.length||e.typeParameters||k(e,F.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||k(t[0])||t[0].optional||e.predicate||e.returnType)}function G(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&X(e.getValue())}function Y(e,t,r){let n=e.getValue(),i=t("returnType");if(n.returnType&&E(r.originalText,n.returnType))return[" /*: ",i," */"];let s=[i];return n.returnType&&n.returnType.typeAnnotation&&s.unshift(": "),n.predicate&&s.push(n.returnType?" ":": ",t("predicate")),s}function Q(e,t,r){let i=e.getValue(),a=t.semi?";":"",o=[];i.argument&&(te(t,i.argument)?o.push([" (",c([d,r("argument")]),d,")"]):P(i.argument)||"SequenceExpression"===i.argument.type?o.push(l([p(" ("," "),c([u,r("argument")]),u,p(")")])):o.push(" ",r("argument")));let h=I(i),f=s(h),m=f&&w(f);return m&&o.push(a),k(i,F.Dangling)&&o.push(" ",n(e,t,!0)),m||o.push(a),o}function Z(e,t,r){return["return",Q(e,t,r)]}function ee(e,t,r){return["throw",Q(e,t,r)]}function te(e,t){if(v(e.originalText,t))return!0;if(B(t)){let r,n=t;for(;r=j(n);)if(n=r,v(e.originalText,n))return!0}return!1}t.exports={printFunction:q,printArrowFunction:J,printMethod:W,printReturnStatement:Z,printThrowStatement:ee,printMethodInternal:z,shouldPrintParamsWithoutParens:G}}}),Yr=m({"src/language-js/print/decorators.js"(e,t){x();var{isNonEmptyArray:r,hasNewline:n}=pe(),{builders:{line:i,hardline:s,join:a,breakParent:o,group:u}}=V(),{locStart:l,locEnd:c}=It(),{getParentExportDeclaration:p}=Qt();function d(e,t,r){let n=e.getValue();return u([a(i,e.map(r,"decorators")),m(n,t)?s:i])}function h(e,t,r){return[a(s,e.map(r,"declaration","decorators")),s]}function f(e,t,n){let u=e.getValue(),{decorators:l}=u;if(!r(l)||y(e.getParentNode()))return;let c="ClassExpression"===u.type||"ClassDeclaration"===u.type||m(u,t);return[p(e)?s:c?o:"",a(i,e.map(n,"decorators")),i]}function m(e,t){return e.decorators.some((e=>n(t.originalText,c(e))))}function y(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let t=e.declaration&&e.declaration.decorators;return r(t)&&l(e)===l(t[0])}t.exports={printDecorators:f,printClassMemberDecorators:d,printDecoratorsBeforeExport:h,hasDecoratorsBeforeExport:y}}}),Qr=m({"src/language-js/print/class.js"(e,t){x();var{isNonEmptyArray:r,createGroupIdMapper:n}=pe(),{printComments:i,printDanglingComments:s}=Mt(),{builders:{join:a,line:o,hardline:u,softline:l,group:c,indent:p,ifBreak:d}}=V(),{hasComment:h,CommentCheckFlags:f}=Qt(),{getTypeParametersGroupId:m}=Jr(),{printMethod:y}=Gr(),{printOptionalToken:g,printTypeAnnotation:b,printDefiniteToken:v}=Rr(),{printPropertyKey:E}=Xr(),{printAssignment:S}=zr(),{printClassMemberDecorators:D}=Yr();function T(e,t,n){let s=e.getValue(),a=[];s.declare&&a.push("declare "),s.abstract&&a.push("abstract "),a.push("class");let u=s.id&&h(s.id,f.Trailing)||s.typeParameters&&h(s.typeParameters,f.Trailing)||s.superClass&&h(s.superClass)||r(s.extends)||r(s.mixins)||r(s.implements),l=[],d=[];if(s.id&&l.push(" ",n("id")),l.push(n("typeParameters")),s.superClass){let r=[I(e,t,n),n("superTypeParameters")],s=e.call((e=>["extends ",i(e,r,t)]),"superClass");u?d.push(o,c(s)):d.push(" ",s)}else d.push(k(e,t,n,"extends"));if(d.push(k(e,t,n,"mixins"),k(e,t,n,"implements")),u){let e;e=w(s)?[...l,p(d)]:p([...l,d]),a.push(c(e,{id:C(s)}))}else a.push(...l,...d);return a.push(" ",n("body")),a}var C=n("heritageGroup");function A(e){return d(u,"",{groupId:C(e)})}function P(e){return["superClass","extends","mixins","implements"].filter((t=>Boolean(e[t]))).length>1}function w(e){return e.typeParameters&&!h(e.typeParameters,f.Trailing|f.Line)&&!P(e)}function k(e,t,n,i){let l=e.getValue();if(!r(l[i]))return"";let h=s(e,t,!0,(e=>{let{marker:t}=e;return t===i}));return[w(l)?d(" ",o,{groupId:m(l.typeParameters)}):o,h,h&&u,i,c(p([o,a([",",o],e.map(n,i))]))]}function I(e,t,r){let n=r("superClass");return"AssignmentExpression"===e.getParentNode().type?c(d(["(",p([l,n]),l,")"],n)):n}function F(e,t,n){let i=e.getValue(),s=[];return r(i.decorators)&&s.push(D(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.readonly&&s.push("readonly "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),s.push(y(e,t,n)),s}function N(e,t,n){let i=e.getValue(),s=[],a=t.semi?";":"";return r(i.decorators)&&s.push(D(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractPropertyDefinition"===i.type||"TSAbstractAccessorProperty"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),i.readonly&&s.push("readonly "),i.variance&&s.push(n("variance")),("ClassAccessorProperty"===i.type||"AccessorProperty"===i.type||"TSAbstractAccessorProperty"===i.type)&&s.push("accessor "),s.push(E(e,t,n),g(e),v(e),b(e,t,n)),[S(e,t,n,s," =","value"),a]}t.exports={printClass:T,printClassMethod:F,printClassProperty:N,printHardlineAfterHeritage:A}}}),Zr=m({"src/language-js/print/interface.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{join:n,line:i,group:s,indent:a,ifBreak:o}}=V(),{hasComment:u,identity:l,CommentCheckFlags:c}=Qt(),{getTypeParametersGroupId:p}=Jr(),{printTypeScriptModifiers:d}=Rr();function h(e,t,h){let f=e.getValue(),m=[];f.declare&&m.push("declare "),"TSInterfaceDeclaration"===f.type&&m.push(f.abstract?"abstract ":"",d(e,t,h)),m.push("interface");let y=[],g=[];"InterfaceTypeAnnotation"!==f.type&&y.push(" ",h("id"),h("typeParameters"));let b=f.typeParameters&&!u(f.typeParameters,c.Trailing|c.Line);return r(f.extends)&&g.push(b?o(" ",i,{groupId:p(f.typeParameters)}):i,"extends ",(1===f.extends.length?l:a)(n([",",i],e.map(h,"extends")))),f.id&&u(f.id,c.Trailing)||r(f.extends)?b?m.push(s([...y,a(g)])):m.push(s(a([...y,...g]))):m.push(...y,...g),m.push(" ",h("body")),s(m)}t.exports={printInterface:h}}}),en=m({"src/language-js/print/module.js"(e,t){x();var{isNonEmptyArray:r}=pe(),{builders:{softline:n,group:i,indent:s,join:a,line:o,ifBreak:u,hardline:l}}=V(),{printDanglingComments:c}=Mt(),{hasComment:p,CommentCheckFlags:d,shouldPrintComma:h,needsHardlineAfterDanglingComment:f,isStringLiteral:m,rawText:y}=Qt(),{locStart:g,hasSameLoc:b}=It(),{hasDecoratorsBeforeExport:v,printDecoratorsBeforeExport:E}=Yr();function S(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{importKind:a}=n;return s.push("import"),a&&"value"!==a&&s.push(" ",a),s.push(P(e,t,r),A(e,t,r),k(e,t,r),i),s}function D(e,t,r){let n=e.getValue(),i=[];v(n)&&i.push(E(e,t,r));let{type:s,exportKind:a,declaration:o}=n;return i.push("export"),(n.default||"ExportDefaultDeclaration"===s)&&i.push(" default"),p(n,d.Dangling)&&(i.push(" ",c(e,t,!0)),f(n)&&i.push(l)),o?i.push(" ",r("declaration")):i.push("type"===a?" type":"",P(e,t,r),A(e,t,r),k(e,t,r)),C(n,t)&&i.push(";"),i}function T(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{exportKind:a,exported:o}=n;return s.push("export"),"type"===a&&s.push(" type"),s.push(" *"),o&&s.push(" as ",r("exported")),s.push(A(e,t,r),k(e,t,r),i),s}function C(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,i=e.default||"ExportDefaultDeclaration"===r;if(!n)return!0;let{type:s}=n;return!(!i||"ClassDeclaration"===s||"FunctionDeclaration"===s||"TSInterfaceDeclaration"===s||"DeclareClass"===s||"DeclareFunction"===s||"TSDeclareFunction"===s||"EnumDeclaration"===s)}function A(e,t,r){let n=e.getValue();if(!n.source)return"";let i=[];return w(n,t)||i.push(" from"),i.push(" ",r("source")),i}function P(e,t,l){let c=e.getValue();if(w(c,t))return"";let d=[" "];if(r(c.specifiers)){let r=[],f=[];e.each((()=>{let t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)r.push(l());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error(`Unknown specifier type ${JSON.stringify(t)}`);f.push(l())}}),"specifiers"),d.push(a(", ",r)),f.length>0&&(r.length>0&&d.push(", "),f.length>1||r.length>0||c.specifiers.some((e=>p(e)))?d.push(i(["{",s([t.bracketSpacing?o:n,a([",",o],f)]),u(h(t)?",":""),t.bracketSpacing?o:n,"}"])):d.push(["{",t.bracketSpacing?" ":"",...f,t.bracketSpacing?" ":"","}"]))}else d.push("{}");return d}function w(e,t){let{type:n,importKind:i,source:s,specifiers:a}=e;return"ImportDeclaration"===n&&!r(a)&&"type"!==i&&!/{\s*}/.test(t.originalText.slice(g(e),g(s)))}function k(e,t,n){let i=e.getNode();return r(i.assertions)?[" assert {",t.bracketSpacing?" ":"",a(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}function I(e,t,r){let n=e.getNode(),{type:i}=n,s=[],a="ImportSpecifier"===i?n.importKind:n.exportKind;a&&"value"!==a&&s.push(a," ");let o=i.startsWith("Import"),u=o?"imported":"local",l=o?"local":"exported",c=n[u],p=n[l],d="",h="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?d="*":c&&(d=r(u)),p&&!F(n)&&(h=r(l)),s.push(d,d&&h?" as ":"",h),s}function F(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:r}=e;return!(t.type!==r.type||!b(t,r))&&(m(t)?t.value===r.value&&y(t)===y(r):"Identifier"===t.type&&t.name===r.name)}t.exports={printImportDeclaration:S,printExportDeclaration:D,printExportAllDeclaration:T,printModuleSpecifier:I}}}),tn=m({"src/language-js/print/object.js"(e,t){x();var{printDanglingComments:r}=Mt(),{builders:{line:n,softline:i,group:s,indent:a,ifBreak:o,hardline:u}}=V(),{getLast:l,hasNewlineInRange:c,hasNewline:p,isNonEmptyArray:d}=pe(),{shouldPrintComma:h,hasComment:f,getComments:m,CommentCheckFlags:y,isNextLineEmpty:g}=Qt(),{locStart:b,locEnd:v}=It(),{printOptionalToken:E,printTypeAnnotation:S}=Rr(),{shouldHugFunctionParameters:D}=Kr(),{shouldHugType:T}=Hr(),{printHardlineAfterHeritage:C}=Qr();function A(e,t,x){let A,P=t.semi?";":"",w=e.getValue();A="TSTypeLiteral"===w.type?"members":"TSInterfaceBody"===w.type?"body":"properties";let k="ObjectTypeAnnotation"===w.type,I=[A];k&&I.push("indexers","callProperties","internalSlots");let F=I.map((e=>w[e][0])).sort(((e,t)=>b(e)-b(t)))[0],N=e.getParentNode(0),_=k&&N&&("InterfaceDeclaration"===N.type||"DeclareInterface"===N.type||"DeclareClass"===N.type)&&"body"===e.getName(),O="TSInterfaceBody"===w.type||_||"ObjectPattern"===w.type&&"FunctionDeclaration"!==N.type&&"FunctionExpression"!==N.type&&"ArrowFunctionExpression"!==N.type&&"ObjectMethod"!==N.type&&"ClassMethod"!==N.type&&"ClassPrivateMethod"!==N.type&&"AssignmentPattern"!==N.type&&"CatchClause"!==N.type&&w.properties.some((e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)))||"ObjectPattern"!==w.type&&F&&c(t.originalText,b(w),b(F)),B=_?";":"TSInterfaceBody"===w.type||"TSTypeLiteral"===w.type?o(P,";"):",",j="RecordExpression"===w.type?"#{":w.exact?"{|":"{",L=w.exact?"|}":"}",M=[];for(let t of I)e.each((e=>{let t=e.getValue();M.push({node:t,printed:x(),loc:b(t)})}),t);I.length>1&&M.sort(((e,t)=>e.loc-t.loc));let R=[],$=M.map((e=>{let r=[...R,s(e.printed)];return R=[B,n],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&f(e.node,y.PrettierIgnore)&&R.shift(),g(e.node,t)&&R.push(u),r}));if(w.inexact){let i;if(f(w,y.Dangling)){let s=f(w,y.Line);i=[r(e,t,!0),s||p(t.originalText,v(l(m(w))))?u:n,"..."]}else i=["..."];$.push([...R,...i])}let U,V=l(w[A]),q=!(w.inexact||V&&"RestElement"===V.type||V&&("TSPropertySignature"===V.type||"TSCallSignatureDeclaration"===V.type||"TSMethodSignature"===V.type||"TSConstructSignatureDeclaration"===V.type)&&f(V,y.PrettierIgnore));if(0===$.length){if(!f(w,y.Dangling))return[j,L,S(e,t,x)];U=s([j,r(e,t),i,L,E(e),S(e,t,x)])}else U=[_&&d(w.properties)?C(N):"",j,a([t.bracketSpacing?n:i,...$]),o(q&&(","!==B||h(t))?B:""),t.bracketSpacing?n:i,L,E(e),S(e,t,x)];return e.match((e=>"ObjectPattern"===e.type&&!e.decorators),((e,t,r)=>D(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r))||e.match(T,((e,t)=>"typeAnnotation"===t),((e,t)=>"typeAnnotation"===t),((e,t,r)=>D(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r))||!O&&e.match((e=>"ObjectPattern"===e.type),(e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type))?U:s(U,{shouldBreak:O})}t.exports={printObject:A}}}),rn=m({"src/language-js/print/flow.js"(e,t){x();var r=Lt(),{printDanglingComments:n}=Mt(),{printString:i,printNumber:s}=pe(),{builders:{hardline:a,softline:o,group:u,indent:l}}=V(),{getParentExportDeclaration:c,isFunctionNotation:p,isGetterOrSetter:d,rawText:h,shouldPrintComma:f}=Qt(),{locStart:m,locEnd:y}=It(),{replaceTextEndOfLine:g}=R(),{printClass:b}=Qr(),{printOpaqueType:v,printTypeAlias:E,printIntersectionType:S,printUnionType:D,printFunctionType:T,printTupleType:C,printIndexedAccessType:A}=Hr(),{printInterface:P}=Zr(),{printTypeParameter:w,printTypeParameters:k}=Jr(),{printExportDeclaration:I,printExportAllDeclaration:F}=en(),{printArrayItems:N}=$r(),{printObject:_}=tn(),{printPropertyKey:O}=Xr(),{printOptionalToken:B,printTypeAnnotation:j,printRestSpread:L}=Rr();function M(e,t,c){let x=e.getValue(),M=t.semi?";":"",R=[];switch(x.type){case"DeclareClass":return $(e,b(e,t,c));case"DeclareFunction":return $(e,["function ",c("id"),x.predicate?" ":"",c("predicate"),M]);case"DeclareModule":return $(e,["module ",c("id")," ",c("body")]);case"DeclareModuleExports":return $(e,["module.exports",": ",c("typeAnnotation"),M]);case"DeclareVariable":return $(e,["var ",c("id"),M]);case"DeclareOpaqueType":return $(e,v(e,t,c));case"DeclareInterface":return $(e,P(e,t,c));case"DeclareTypeAlias":return $(e,E(e,t,c));case"DeclareExportDeclaration":return $(e,I(e,t,c));case"DeclareExportAllDeclaration":return $(e,F(e,t,c));case"OpaqueType":return v(e,t,c);case"TypeAlias":return E(e,t,c);case"IntersectionTypeAnnotation":return S(e,t,c);case"UnionTypeAnnotation":return D(e,t,c);case"FunctionTypeAnnotation":return T(e,t,c);case"TupleTypeAnnotation":return C(e,t,c);case"GenericTypeAnnotation":return[c("id"),k(e,t,c,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return A(e,t,c);case"TypeAnnotation":return c("typeAnnotation");case"TypeParameter":return w(e,t,c);case"TypeofTypeAnnotation":return["typeof ",c("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[c("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(x.value);case"EnumDeclaration":return["enum ",c("id")," ",c("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===x.type||x.explicitType){let e=null;switch(x.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}R.push("of ",e," ")}if(0!==x.members.length||x.hasUnknownMembers){let r=x.members.length>0?[a,N(e,t,"members",c),x.hasUnknownMembers||f(t)?",":""]:[];R.push(u(["{",l([...r,...x.hasUnknownMembers?[a,"..."]:[]]),n(e,t,!0),a,"}"]))}else R.push(u(["{",n(e,t),o,"}"]));return R;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[c("id")," = ","object"==typeof x.init?c("init"):String(x.init)];case"EnumDefaultedMember":return c("id");case"FunctionTypeParam":{let t=x.name?c("name"):e.getParentNode().this===x?"this":"";return[t,B(e),t?": ":"",c("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return P(e,t,c);case"ClassImplements":case"InterfaceExtends":return[c("id"),c("typeParameters")];case"NullableTypeAnnotation":return["?",c("typeAnnotation")];case"Variance":{let{kind:e}=x;return r.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return x.static&&R.push("static "),R.push(c("value")),R;case"ObjectTypeIndexer":return[x.static?"static ":"",x.variance?c("variance"):"","[",c("id"),x.id?": ":"",c("key"),"]: ",c("value")];case"ObjectTypeProperty":{let r="";return x.proto?r="proto ":x.static&&(r="static "),[r,d(x)?x.kind+" ":"",x.variance?c("variance"):"",O(e,t,c),B(e),p(x)?"":": ",c("value")]}case"ObjectTypeAnnotation":return _(e,t,c);case"ObjectTypeInternalSlot":return[x.static?"static ":"","[[",c("id"),"]]",B(e),x.method?"":": ",c("value")];case"ObjectTypeSpreadProperty":return L(e,t,c);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[c("qualification"),".",c("id")];case"StringLiteralTypeAnnotation":return g(i(h(x),t));case"NumberLiteralTypeAnnotation":r.strictEqual(typeof x.value,"number");case"BigIntLiteralTypeAnnotation":return x.extra?s(x.extra.raw):s(x.raw);case"TypeCastExpression":return["(",c("expression"),j(e,t,c),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let r=k(e,t,c,"params");if("flow"===t.parser){let e=m(x),n=y(x),i=t.originalText.lastIndexOf("/*",e),s=t.originalText.indexOf("*/",n);if(-1!==i&&-1!==s){let e=t.originalText.slice(i+2,s).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",r," */"]}}return r}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",c("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(x.type))}}function $(e,t){let n=c(e);return n?(r.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:M}}}),nn=m({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function r(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}x(),t.exports=r}}),sn=m({"src/language-js/print/ternary.js"(e,t){x();var{hasNewlineInRange:r}=pe(),{isJsxNode:n,getComments:i,isCallExpression:s,isMemberExpression:a,isTSTypeExpression:o}=Qt(),{locStart:u,locEnd:l}=It(),c=Gt(),{builders:{line:p,softline:d,group:h,indent:f,align:m,ifBreak:y,dedent:g,breakParent:b}}=V();function v(e){let t=[e];for(let e=0;e<t.length;e++){let r=t[e];for(let e of["test","consequent","alternate"]){let i=r[e];if(n(i))return!0;"ConditionalExpression"===i.type&&t.push(i)}}return!1}function E(e,t,r){let n=e.getValue(),i="ConditionalExpression"===n.type,s=i?"alternate":"falseType",a=e.getParentNode(),o=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return a.type===n.type&&a[s]===n?m(2,o):o}var S=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function D(e){let t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let r,n=t;for(let t=0;!r;t++){let i=e.getParentNode(t);s(i)&&i.callee===n||a(i)&&i.object===n||"TSNonNullExpression"===i.type&&i.expression===n?n=i:"NewExpression"===i.type&&i.callee===n||o(i)&&i.expression===n?(r=e.getParentNode(t+1),n=i):r=i}return n!==t&&r[S.get(r.type)]===n}function T(e,t,s){let o,x,S=e.getValue(),T="ConditionalExpression"===S.type,C=T?"consequent":"trueType",A=T?"alternate":"falseType",P=T?["test"]:["checkType","extendsType"],w=S[C],k=S[A],I=[],F=!1,N=e.getParentNode(),_=N.type===S.type&&P.some((e=>N[e]===S)),O=N.type===S.type&&!_,B=0;do{x=o||S,o=e.getParentNode(B),B++}while(o&&o.type===S.type&&P.every((e=>o[e]!==x)));let j=o||N,L=x;if(T&&(n(S[P[0]])||n(w)||n(k)||v(L))){F=!0,O=!0;let e=e=>[y("("),f([d,e]),d,y(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;I.push(" ? ",t(w)?s(C):e(s(C))," : ",k.type===S.type||t(k)?s(A):e(s(A)))}else{let e=[p,"? ",w.type===S.type?y("","("):"",m(2,s(C)),w.type===S.type?y("",")"):"",p,": ",k.type===S.type?s(A):m(2,s(A))];I.push(N.type!==S.type||N[A]===S||_?e:t.useTabs?g(f(e)):m(Math.max(0,t.tabWidth-2),e))}let M=[...P.map((e=>i(S[e]))),i(w),i(k)].flat().some((e=>c(e)&&r(t.originalText,u(e),l(e)))),R=e=>N===j?h(e,{shouldBreak:M}):M?[e,b]:e,$=!F&&(a(N)||"NGPipeExpression"===N.type&&N.left===S)&&!N.computed,U=D(e),V=R([E(e,t,s),O?I:f(I),T&&$&&!U?d:""]);return _||U?h([f([d,V]),d]):V}t.exports={printTernary:T}}}),an=m({"src/language-js/print/statement.js"(e,t){x();var{builders:{hardline:r}}=V(),n=_r(),{getLeftSidePathName:i,hasNakedLeftSide:s,isJsxNode:a,isTheOnlyJsxElementInMarkdown:o,hasComment:u,CommentCheckFlags:l,isNextLineEmpty:c}=Qt(),{shouldPrintParamsWithoutParens:p}=Gr();function d(e,t,n,i){let s=e.getValue(),a=[],p="ClassBody"===s.type,d=h(s[i]);return e.each(((e,i,s)=>{let h=e.getValue();if("EmptyStatement"===h.type)return;let m=n();t.semi||p||o(t,e)||!f(e,t)?a.push(m):u(h,l.Leading)?a.push(n([],{needsSemi:!0})):a.push(";",m),!t.semi&&p&&b(h)&&v(h,s[i+1])&&a.push(";"),h!==d&&(a.push(r),c(h,t)&&a.push(r))}),i),a}function h(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if("EmptyStatement"!==r.type)return r}}function f(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((e=>m(e,t)),"expression")}function m(e,t){let r=e.getValue();switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!p(e,t))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=r;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(a(r))return!0}return!!n(e,t)||!!s(r)&&e.call((e=>m(e,t)),...i(e,r))}function y(e,t,r){return d(e,t,r,"body")}function g(e,t,r){return d(e,t,r,"consequent")}var b=e=>{let{type:t}=e;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t||"AccessorProperty"===t||"TSAbstractPropertyDefinition"===t||"TSAbstractAccessorProperty"===t};function v(e,t){let{type:r,name:n}=e.key;if(!(e.computed||"Identifier"!==r||"static"!==n&&"get"!==n&&"set"!==n&&"accessor"!==n||e.value||e.typeAnnotation))return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(b(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}t.exports={printBody:y,printSwitchCaseConsequent:g}}}),on=m({"src/language-js/print/block.js"(e,t){x();var{printDanglingComments:r}=Mt(),{isNonEmptyArray:n}=pe(),{builders:{hardline:i,indent:s}}=V(),{hasComment:a,CommentCheckFlags:o,isNextLineEmpty:u}=Qt(),{printHardlineAfterHeritage:l}=Qr(),{printBody:c}=an();function p(e,t,r){let a=e.getValue(),o=[];if("StaticBlock"===a.type&&o.push("static "),"ClassBody"===a.type&&n(a.body)){let t=e.getParentNode();o.push(l(t))}o.push("{");let u=d(e,t,r);if(u)o.push(s([i,u]),i);else{let t=e.getParentNode(),r=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&&!r.finalizer||"TSModuleDeclaration"===t.type||"TSDeclareFunction"===t.type||"StaticBlock"===a.type||"ClassBody"===a.type||o.push(i)}return o.push("}"),o}function d(e,t,s){let l=e.getValue(),p=n(l.directives),d=l.body.some((e=>"EmptyStatement"!==e.type)),h=a(l,o.Dangling);if(!p&&!d&&!h)return"";let f=[];if(p&&e.each(((e,r,n)=>{f.push(s()),(r<n.length-1||d||h)&&(f.push(i),u(e.getValue(),t)&&f.push(i))}),"directives"),d&&f.push(c(e,t,s)),h&&f.push(r(e,t,!0)),"Program"===l.type){let t=e.getParentNode();(!t||"ModuleExpression"!==t.type)&&f.push(i)}return f}t.exports={printBlock:p,printBlockBody:d}}}),un=m({"src/language-js/print/typescript.js"(e,t){x();var{printDanglingComments:r}=Mt(),{hasNewlineInRange:n}=pe(),{builders:{join:i,line:s,hardline:a,softline:o,group:u,indent:l,conditionalGroup:c,ifBreak:p}}=V(),{isStringLiteral:d,getTypeScriptMappedTypeModifier:h,shouldPrintComma:f,isCallExpression:m,isMemberExpression:y}=Qt(),g=nn(),{locStart:b,locEnd:v}=It(),{printOptionalToken:E,printTypeScriptModifiers:S}=Rr(),{printTernary:D}=sn(),{printFunctionParameters:T,shouldGroupFunctionParameters:C}=Kr(),{printTemplateLiteral:A}=Zt(),{printArrayItems:P}=$r(),{printObject:w}=tn(),{printClassProperty:k,printClassMethod:I}=Qr(),{printTypeParameter:F,printTypeParameters:N}=Jr(),{printPropertyKey:_}=Xr(),{printFunction:O,printMethodInternal:B}=Gr(),{printInterface:j}=Zr(),{printBlock:L}=on(),{printTypeAlias:M,printIntersectionType:R,printUnionType:$,printFunctionType:U,printTupleType:q,printIndexedAccessType:W,printJSDocType:z}=Hr();function K(e,t,x){let V=e.getValue();if(!V.type.startsWith("TS"))return;if(g(V))return V.type.slice(2,-7).toLowerCase();let K=t.semi?";":"",H=[];switch(V.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!("ArrayExpression"===V.expression.type||"ObjectExpression"===V.expression.type),t=u(["<",l([o,x("typeAnnotation")]),o,">"]),r=[p("("),l([o,x("expression")]),o,p(")")];return e?c([[t,x("expression")],[t,u(r,{shouldBreak:!0})],[t,x("expression")]]):u([t,x("expression")])}case"TSDeclareFunction":return O(e,x,t);case"TSExportAssignment":return["export = ",x("expression"),K];case"TSModuleBlock":return L(e,t,x);case"TSInterfaceBody":case"TSTypeLiteral":return w(e,t,x);case"TSTypeAliasDeclaration":return M(e,t,x);case"TSQualifiedName":return i(".",[x("left"),x("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return I(e,t,x);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return k(e,t,x);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return H.push(x("expression")),V.typeParameters&&H.push(x("typeParameters")),H;case"TSTemplateLiteralType":return A(e,x,t);case"TSNamedTupleMember":return[x("label"),V.optional?"?":"",": ",x("elementType")];case"TSRestType":return["...",x("typeAnnotation")];case"TSOptionalType":return[x("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return j(e,t,x);case"TSClassImplements":case"TSInstantiationExpression":return[x("expression"),x("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return N(e,t,x,"params");case"TSTypeParameter":return F(e,t,x);case"TSSatisfiesExpression":case"TSAsExpression":{let t="TSAsExpression"===V.type?"as":"satisfies";H.push(x("expression"),` ${t} `,x("typeAnnotation"));let r=e.getParentNode();return m(r)&&r.callee===V||y(r)&&r.object===V?u([l([o,...H]),o]):H}case"TSArrayType":return[x("elementType"),"[]"];case"TSPropertySignature":return V.readonly&&H.push("readonly "),H.push(_(e,t,x),E(e)),V.typeAnnotation&&H.push(": ",x("typeAnnotation")),V.initializer&&H.push(" = ",x("initializer")),H;case"TSParameterProperty":return V.accessibility&&H.push(V.accessibility+" "),V.export&&H.push("export "),V.static&&H.push("static "),V.override&&H.push("override "),V.readonly&&H.push("readonly "),H.push(x("parameter")),H;case"TSTypeQuery":return["typeof ",x("exprName"),x("typeParameters")];case"TSIndexSignature":{let r=e.getParentNode(),n=V.parameters.length>1?p(f(t)?",":""):"",s=u([l([o,i([", ",o],e.map(x,"parameters"))]),n,o]);return[V.export?"export ":"",V.accessibility?[V.accessibility," "]:"",V.static?"static ":"",V.readonly?"readonly ":"",V.declare?"declare ":"","[",V.parameters?s:"",V.typeAnnotation?"]: ":"]",V.typeAnnotation?x("typeAnnotation"):"","ClassBody"===r.type?K:""]}case"TSTypePredicate":return[V.asserts?"asserts ":"",x("parameterName"),V.typeAnnotation?[" is ",x("typeAnnotation")]:""];case"TSNonNullExpression":return[x("expression"),"!"];case"TSImportType":return[V.isTypeOf?"typeof ":"","import(",x(V.parameter?"parameter":"argument"),")",V.qualifier?[".",x("qualifier")]:"",N(e,t,x,"typeParameters")];case"TSLiteralType":return x("literal");case"TSIndexedAccessType":return W(e,t,x);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===V.type&&V.abstract&&H.push("abstract "),"TSCallSignatureDeclaration"!==V.type&&H.push("new "),H.push(u(T(e,x,t,!1,!0))),V.returnType||V.typeAnnotation){let e="TSConstructorType"===V.type;H.push(e?" => ":": ",x("returnType"),x("typeAnnotation"))}return H;case"TSTypeOperator":return[V.operator," ",x("typeAnnotation")];case"TSMappedType":{let i=n(t.originalText,b(V),v(V));return u(["{",l([t.bracketSpacing?s:o,x("typeParameter"),V.optional?h(V.optional,"?"):"",V.typeAnnotation?": ":"",x("typeAnnotation"),p(K)]),r(e,t,!0),t.bracketSpacing?s:o,"}"],{shouldBreak:i})}case"TSMethodSignature":{let r=V.kind&&"method"!==V.kind?`${V.kind} `:"";H.push(V.accessibility?[V.accessibility," "]:"",r,V.export?"export ":"",V.static?"static ":"",V.readonly?"readonly ":"",V.abstract?"abstract ":"",V.declare?"declare ":"",V.computed?"[":"",x("key"),V.computed?"]":"",E(e));let n=T(e,x,t,!1,!0),i=V.returnType?"returnType":"typeAnnotation",s=V[i],a=s?x(i):"",o=C(V,a);return H.push(o?u(n):n),s&&H.push(": ",u(a)),u(H)}case"TSNamespaceExportDeclaration":return H.push("export as namespace ",x("id")),t.semi&&H.push(";"),u(H);case"TSEnumDeclaration":return V.declare&&H.push("declare "),V.modifiers&&H.push(S(e,t,x)),V.const&&H.push("const "),H.push("enum ",x("id")," "),0===V.members.length?H.push(u(["{",r(e,t),o,"}"])):H.push(u(["{",l([a,P(e,t,"members",x),f(t,"es5")?",":""]),r(e,t,!0),a,"}"])),H;case"TSEnumMember":return V.computed?H.push("[",x("id"),"]"):H.push(x("id")),V.initializer&&H.push(" = ",x("initializer")),H;case"TSImportEqualsDeclaration":return V.isExport&&H.push("export "),H.push("import "),V.importKind&&"value"!==V.importKind&&H.push(V.importKind," "),H.push(x("id")," = ",x("moduleReference")),t.semi&&H.push(";"),u(H);case"TSExternalModuleReference":return["require(",x("expression"),")"];case"TSModuleDeclaration":{let r=e.getParentNode(),n=d(V.id),i="TSModuleDeclaration"===r.type,s=V.body&&"TSModuleDeclaration"===V.body.type;if(i)H.push(".");else{V.declare&&H.push("declare "),H.push(S(e,t,x));let r=t.originalText.slice(b(V),b(V.id));"Identifier"===V.id.type&&"global"===V.id.name&&!/namespace|module/.test(r)||H.push(n||/(?:^|\s)module(?:\s|$)/.test(r)?"module ":"namespace ")}return H.push(x("id")),s?H.push(x("body")):V.body?H.push(" ",u(x("body"))):H.push(K),H}case"TSConditionalType":return D(e,t,x);case"TSInferType":return["infer"," ",x("typeParameter")];case"TSIntersectionType":return R(e,t,x);case"TSUnionType":return $(e,t,x);case"TSFunctionType":return U(e,t,x);case"TSTupleType":return q(e,t,x);case"TSTypeReference":return[x("typeName"),N(e,t,x,"typeParameters")];case"TSTypeAnnotation":return x("typeAnnotation");case"TSEmptyBodyFunctionExpression":return B(e,t,x);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return z(e,x,"?");case"TSJSDocNonNullableType":return z(e,x,"!");default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(V.type)}.`)}}t.exports={printTypescript:K}}}),ln=m({"src/language-js/print/comment.js"(e,t){x();var{hasNewline:r}=pe(),{builders:{join:n,hardline:i},utils:{replaceTextEndOfLine:s}}=V(),{isLineComment:a}=Qt(),{locStart:o,locEnd:u}=It(),l=Gt();function c(e,t){let n=e.getValue();if(a(n))return t.originalText.slice(o(n),u(n)).trimEnd();if(l(n)){if(p(n)){let e=d(n);return n.trailing&&!r(t.originalText,o(n),{backwards:!0})?[i,e]:e}let e=u(n),a="*-/"===t.originalText.slice(e-3,e);return["/*",s(n.value),a?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(n))}function p(e){let t=`*${e.value}*`.split("\n");return t.length>1&&t.every((e=>"*"===e.trim()[0]))}function d(e){let t=e.value.split("\n");return["/*",n(i,t.map(((e,r)=>0===r?e.trimEnd():" "+(r<t.length-1?e.trim():e.trimStart())))),"*/"]}t.exports={printComment:c}}}),cn=m({"src/language-js/print/literal.js"(e,t){x();var{printString:r,printNumber:n}=pe(),{replaceTextEndOfLine:i}=R(),{printDirective:s}=Rr();function a(e,t){let a=e.getNode();switch(a.type){case"RegExpLiteral":return l(a);case"BigIntLiteral":return u(a.bigint||a.extra.raw);case"NumericLiteral":return n(a.extra.raw);case"StringLiteral":return i(r(a.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(a.value);case"DecimalLiteral":return n(a.value)+"m";case"Literal":{if(a.regex)return l(a.regex);if(a.bigint)return u(a.raw);if(a.decimal)return n(a.decimal)+"m";let{value:c}=a;return"number"==typeof c?n(a.raw):"string"==typeof c?o(e)?s(a.raw,t):i(r(a.raw,t)):String(c)}}}function o(e){if("expression"!==e.getName())return;let t=e.getParentNode();return"ExpressionStatement"===t.type&&t.directive}function u(e){return e.toLowerCase()}function l(e){let{pattern:t,flags:r}=e;return r=[...r].sort().join(""),`/${t}/${r}`}t.exports={printLiteral:a}}}),pn=m({"src/language-js/printer-estree.js"(e,t){x();var{printDanglingComments:r}=Mt(),{hasNewline:n}=pe(),{builders:{join:i,line:s,hardline:a,softline:o,group:u,indent:l},utils:{replaceTextEndOfLine:c}}=V(),p=ir(),d=sr(),{insertPragma:h}=Ir(),f=Nr(),m=_r(),y=Or(),{hasFlowShorthandAnnotationComment:g,hasComment:b,CommentCheckFlags:v,isTheOnlyJsxElementInMarkdown:E,isLineComment:S,isNextLineEmpty:D,needsHardlineAfterDanglingComment:T,hasIgnoreComment:C,isCallExpression:A,isMemberExpression:P,markerForIfWithoutBlockAndSameLineComment:w}=Qt(),{locStart:k,locEnd:I}=It(),F=Gt(),{printHtmlBinding:N,isVueEventBindingExpression:_}=Br(),{printAngular:O}=Lr(),{printJsx:B,hasJsxIgnoreComment:j}=Mr(),{printFlow:L}=rn(),{printTypescript:M}=un(),{printOptionalToken:R,printBindExpressionCallee:$,printTypeAnnotation:U,adjustClause:q,printRestSpread:W,printDefiniteToken:z,printDirective:K}=Rr(),{printImportDeclaration:H,printExportDeclaration:J,printExportAllDeclaration:X,printModuleSpecifier:G}=en(),{printTernary:Y}=sn(),{printTemplateLiteral:Q}=Zt(),{printArray:Z}=$r(),{printObject:ee}=tn(),{printClass:te,printClassMethod:re,printClassProperty:ne}=Qr(),{printProperty:ie}=Xr(),{printFunction:se,printArrowFunction:ae,printMethod:oe,printReturnStatement:ue,printThrowStatement:le}=Gr(),{printCallExpression:ce}=Wr(),{printVariableDeclarator:de,printAssignmentExpression:he}=zr(),{printBinaryishExpression:fe}=jr(),{printSwitchCaseConsequent:me}=an(),{printMemberExpression:ye}=Vr(),{printBlock:ge,printBlockBody:be}=on(),{printComment:ve}=ln(),{printLiteral:xe}=cn(),{printDecorators:Ee}=Yr();function Se(e,t,r,n){let i=De(e,t,r,n);if(!i)return"";let a=e.getValue(),{type:o}=a;if("ClassMethod"===o||"ClassPrivateMethod"===o||"ClassProperty"===o||"ClassAccessorProperty"===o||"AccessorProperty"===o||"TSAbstractAccessorProperty"===o||"PropertyDefinition"===o||"TSAbstractPropertyDefinition"===o||"ClassPrivateProperty"===o||"MethodDefinition"===o||"TSAbstractMethodDefinition"===o||"TSDeclareMethod"===o)return i;let c=[i],p=Ee(e,t,r),d="ClassExpression"===a.type&&p;if(p&&(c=[...p,i],!d))return u(c);if(!m(e,t))return n&&n.needsSemi&&c.unshift(";"),1===c.length&&c[0]===i?i:c;if(d&&(c=[l([s,...c])]),c.unshift("("),n&&n.needsSemi&&c.unshift(";"),g(a)){let[e]=a.trailingComments;c.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return d&&c.push(s),c.push(")"),c}function De(e,t,p,d){let h=e.getValue(),f=t.semi?";":"";if(!h)return"";if("string"==typeof h)return h;for(let r of[xe,N,O,B,L,M]){let n=r(e,t,p);if(typeof n<"u")return n}let m=[];switch(h.type){case"JsExpressionRoot":return p("node");case"JsonRoot":return[p("node"),a];case"File":return h.program&&h.program.interpreter&&m.push(p(["program","interpreter"])),m.push(p("program")),m;case"Program":return be(e,t,p);case"EmptyStatement":return"";case"ExpressionStatement":{if("__vue_event_binding"===t.parser||"__vue_ts_event_binding"===t.parser){let t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===h)return[p("expression"),_(h.expression)?";":""]}let n=r(e,t,!0,(e=>{let{marker:t}=e;return t===w}));return[p("expression"),E(t,e)?"":f,n?[" ",n]:""]}case"ParenthesizedExpression":return b(h.expression)||"ObjectExpression"!==h.expression.type&&"ArrayExpression"!==h.expression.type?u(["(",l([o,p("expression")]),o,")"]):["(",p("expression"),")"];case"AssignmentExpression":return he(e,t,p);case"VariableDeclarator":return de(e,t,p);case"BinaryExpression":case"LogicalExpression":return fe(e,t,p);case"AssignmentPattern":return[p("left")," = ",p("right")];case"OptionalMemberExpression":case"MemberExpression":return ye(e,t,p);case"MetaProperty":return[p("meta"),".",p("property")];case"BindExpression":return h.object&&m.push(p("object")),m.push(u(l([o,$(e,t,p)]))),m;case"Identifier":return[h.name,R(e),z(e),U(e,t,p)];case"V8IntrinsicIdentifier":return["%",h.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return W(e,t,p);case"FunctionDeclaration":case"FunctionExpression":return se(e,p,t,d);case"ArrowFunctionExpression":return ae(e,t,p,d);case"YieldExpression":return m.push("yield"),h.delegate&&m.push("*"),h.argument&&m.push(" ",p("argument")),m;case"AwaitExpression":if(m.push("await"),h.argument){m.push(" ",p("argument"));let t=e.getParentNode();if(A(t)&&t.callee===h||P(t)&&t.object===h){m=[l([o,...m]),o];let t=e.findAncestor((e=>"AwaitExpression"===e.type||"BlockStatement"===e.type));if(!t||"AwaitExpression"!==t.type)return u(m)}}return m;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return J(e,t,p);case"ExportAllDeclaration":return X(e,t,p);case"ImportDeclaration":return H(e,t,p);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return G(e,t,p);case"ImportAttribute":return[p("key"),": ",p("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ge(e,t,p);case"ThrowStatement":return le(e,t,p);case"ReturnStatement":return ue(e,t,p);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ce(e,t,p);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ee(e,t,p);case"ObjectProperty":case"Property":return h.method||"get"===h.kind||"set"===h.kind?oe(e,t,p):ie(e,t,p);case"ObjectMethod":return oe(e,t,p);case"Decorator":return["@",p("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Z(e,t,p);case"SequenceExpression":{let t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each(((e,r)=>{0===r?t.push(p()):t.push(",",l([s,p()]))}),"expressions"),u(t)}return u(i([",",s],e.map(p,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[p("value"),f];case"DirectiveLiteral":return K(h.extra.raw,t);case"UnaryExpression":return m.push(h.operator),/[a-z]$/.test(h.operator)&&m.push(" "),b(h.argument)?m.push(u(["(",l([o,p("argument")]),o,")"])):m.push(p("argument")),m;case"UpdateExpression":return m.push(p("argument"),h.operator),h.prefix&&m.reverse(),m;case"ConditionalExpression":return Y(e,t,p);case"VariableDeclaration":{let t,r=e.map(p,"declarations"),n=e.getParentNode(),i="ForStatement"===n.type||"ForInStatement"===n.type||"ForOfStatement"===n.type,o=h.declarations.some((e=>e.init));return 1!==r.length||b(h.declarations[0])?r.length>0&&(t=l(r[0])):t=r[0],m=[h.declare?"declare ":"",h.kind,t?[" ",t]:"",l(r.slice(1).map((e=>[",",o&&!i?a:s,e])))],i&&n.body!==h||m.push(f),u(m)}case"WithStatement":return u(["with (",p("object"),")",q(h.body,p("body"))]);case"IfStatement":{let n=q(h.consequent,p("consequent")),i=u(["if (",u([l([o,p("test")]),o]),")",n]);if(m.push(i),h.alternate){let n=b(h.consequent,v.Trailing|v.Line)||T(h),i="BlockStatement"===h.consequent.type&&!n;m.push(i?" ":a),b(h,v.Dangling)&&m.push(r(e,t,!0),n?a:" "),m.push("else",u(q(h.alternate,p("alternate"),"IfStatement"===h.alternate.type)))}return m}case"ForStatement":{let n=q(h.body,p("body")),i=r(e,t,!0),a=i?[i,o]:"";return h.init||h.test||h.update?[a,u(["for (",u([l([o,p("init"),";",s,p("test"),";",s,p("update")]),o]),")",n])]:[a,u(["for (;;)",n])]}case"WhileStatement":return u(["while (",u([l([o,p("test")]),o]),")",q(h.body,p("body"))]);case"ForInStatement":return u(["for (",p("left")," in ",p("right"),")",q(h.body,p("body"))]);case"ForOfStatement":return u(["for",h.await?" await":""," (",p("left")," of ",p("right"),")",q(h.body,p("body"))]);case"DoWhileStatement":{let e=q(h.body,p("body"));return m=[u(["do",e])],"BlockStatement"===h.body.type?m.push(" "):m.push(a),m.push("while (",u([l([o,p("test")]),o]),")",f),m}case"DoExpression":return[h.async?"async ":"","do ",p("body")];case"BreakStatement":return m.push("break"),h.label&&m.push(" ",p("label")),m.push(f),m;case"ContinueStatement":return m.push("continue"),h.label&&m.push(" ",p("label")),m.push(f),m;case"LabeledStatement":return"EmptyStatement"===h.body.type?[p("label"),":;"]:[p("label"),": ",p("body")];case"TryStatement":return["try ",p("block"),h.handler?[" ",p("handler")]:"",h.finalizer?[" finally ",p("finalizer")]:""];case"CatchClause":if(h.param){let e=b(h.param,(e=>!F(e)||e.leading&&n(t.originalText,I(e))||e.trailing&&n(t.originalText,k(e),{backwards:!0}))),r=p("param");return["catch ",e?["(",l([o,r]),o,") "]:["(",r,") "],p("body")]}return["catch ",p("body")];case"SwitchStatement":return[u(["switch (",l([o,p("discriminant")]),o,")"])," {",h.cases.length>0?l([a,i(a,e.map(((e,r,n)=>{let i=e.getValue();return[p(),r!==n.length-1&&D(i,t)?a:""]}),"cases"))]):"",a,"}"];case"SwitchCase":{h.test?m.push("case ",p("test"),":"):m.push("default:"),b(h,v.Dangling)&&m.push(" ",r(e,t,!0));let n=h.consequent.filter((e=>"EmptyStatement"!==e.type));if(n.length>0){let r=me(e,t,p);m.push(1===n.length&&"BlockStatement"===n[0].type?[" ",r]:l([a,r]))}return m}case"DebuggerStatement":return["debugger",f];case"ClassDeclaration":case"ClassExpression":return te(e,t,p);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return re(e,t,p);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return ne(e,t,p);case"TemplateElement":return c(h.value.raw);case"TemplateLiteral":return Q(e,p,t);case"TaggedTemplateExpression":return[p("tag"),p("typeParameters"),p("quasi")];case"PrivateIdentifier":return["#",p("name")];case"PrivateName":return["#",p("id")];case"InterpreterDirective":return m.push("#!",h.value,a),D(h,t)&&m.push(a),m;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{m.push("module {");let e=p("body");return e&&m.push(l([a,e]),a),m.push("}"),m}default:throw new Error("unknown type: "+JSON.stringify(h.type))}}function Te(e){return e.type&&!F(e)&&!S(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type}t.exports={preprocess:y,print:Se,embed:p,insertPragma:h,massageAstNode:d,hasPrettierIgnore:e=>C(e)||j(e),willPrintOwnComments:f.willPrintOwnComments,canAttachComment:Te,printComment:ve,isBlockComment:F,handleComments:{avoidAstMutation:!0,ownLine:f.handleOwnLineComment,endOfLine:f.handleEndOfLineComment,remaining:f.handleRemainingComment},getCommentChildNodes:f.getCommentChildNodes}}}),dn=m({"src/language-js/printer-estree-json.js"(e,t){x();var{builders:{hardline:r,indent:n,join:i}}=V(),s=Or();function a(e,t,s){let a=e.getValue();switch(a.type){case"JsonRoot":return[s("node"),r];case"ArrayExpression":{if(0===a.elements.length)return"[]";let t=e.map((()=>null===e.getValue()?"null":s()),"elements");return["[",n([r,i([",",r],t)]),r,"]"]}case"ObjectExpression":return 0===a.properties.length?"{}":["{",n([r,i([",",r],e.map(s,"properties"))]),r,"}"];case"ObjectProperty":return[s("key"),": ",s("value")];case"UnaryExpression":return["+"===a.operator?"":a.operator,s("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return a.value?"true":"false";case"StringLiteral":return JSON.stringify(a.value);case"NumericLiteral":return o(e)?JSON.stringify(String(a.value)):JSON.stringify(a.value);case"Identifier":return o(e)?JSON.stringify(a.name):a.name;case"TemplateLiteral":return s(["quasis",0]);case"TemplateElement":return JSON.stringify(a.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(a.type))}}function o(e){return"key"===e.getName()&&"ObjectProperty"===e.getParentNode().type}var u=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function l(e,t){let{type:r}=e;if("ObjectProperty"!==r){if("UnaryExpression"===r&&"+"===e.operator)return t.argument;if("ArrayExpression"!==r)return"TemplateLiteral"===r?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(let[r,n]of e.elements.entries())null===n&&t.elements.splice(r,0,{type:"NullLiteral"})}else{let{key:r}=e;"Identifier"===r.type?t.key={type:"StringLiteral",value:r.name}:"NumericLiteral"===r.type&&(t.key={type:"StringLiteral",value:String(r.value)})}}l.ignoredProperties=u,t.exports={preprocess:s,print:a,massageAstNode:l}}}),hn=m({"src/common/common-options.js"(e,t){x();var r="Common";t.exports={bracketSpacing:{since:"0.0.0",category:r,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:r,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:r,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:r,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:r,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),fn=m({"src/language-js/options.js"(e,t){x();var r=hn(),n="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:n,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:r.bracketSameLine,bracketSpacing:r.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:n,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:n,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:r.singleQuote,jsxSingleQuote:{since:"1.15.0",category:n,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:n,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:n,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:r.singleAttributePerLine}}}),mn=m({"src/language-js/parse/parsers.js"(){x()}}),yn=m({"node_modules/linguist-languages/data/JavaScript.json"(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),gn=m({"node_modules/linguist-languages/data/TypeScript.json"(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),bn=m({"node_modules/linguist-languages/data/TSX.json"(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),vn=m({"node_modules/linguist-languages/data/JSON.json"(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),xn=m({"node_modules/linguist-languages/data/JSON with Comments.json"(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),En=m({"node_modules/linguist-languages/data/JSON5.json"(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Sn=m({"src/language-js/index.js"(e,t){x();var r=zt(),n=pn(),i=dn(),s=fn(),a=mn(),o=[r(yn(),(e=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter((e=>".jsx"!==e)),".wxs"]}))),r(yn(),(()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}))),r(yn(),(()=>({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}))),r(gn(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}))),r(bn(),(()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}))),r(vn(),(()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]}))),r(vn(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((e=>".jsonl"!==e))}))),r(xn(),(e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc",".swcrc"]}))),r(En(),(()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})))],u={estree:n,"estree-json":i};t.exports={languages:o,options:s,printers:u,parsers:a}}}),Dn=m({"src/language-css/clean.js"(e,t){x();var{isFrontMatterNode:r}=pe(),n=A(),i=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function s(e,t,i){if(r(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===i.type&&i.nodes.length>0&&((i.nodes[0]===e||r(i.nodes[0])&&i.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===i.type&&n(i.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&t.value&&(t.value=a(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,((e,t,r)=>{let n=Number(t);return Number.isNaN(n)?e:n+r.toLowerCase()}))),"selector-tag"===e.type){let r=e.value.toLowerCase();["from","to"].includes(r)&&(t.value=r)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let r=e.groups.findIndex((e=>"value-number"===e.type&&"..."===e.unit));-1!==r&&(t.groups[r].unit="",t.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some((e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]")))?{type:"value-atword",value:e.groups.map((e=>e.value)).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}function a(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}s.ignoredProperties=i,t.exports=s}}),Tn=m({"src/utils/front-matter/print.js"(e,t){x();var{builders:{hardline:r,markAsRoot:n}}=V();function i(e,t){if("yaml"===e.lang){let i=e.value.trim(),s=i?t(i,{parser:"yaml"},{stripTrailingHardline:!0}):"";return n([e.startDelimiter,r,s,s?r:"",e.endDelimiter])}}t.exports=i}}),Cn=m({"src/language-css/embed.js"(e,t){x();var{builders:{hardline:r}}=V(),n=Tn();function i(e,t,i){let s=e.getValue();if("front-matter"===s.type){let e=n(s,i);return e?[e,r]:""}}t.exports=i}}),An=m({"src/utils/front-matter/parse.js"(e,t){x();var r=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function n(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:i,value:s="",endDelimiter:a}=t.groups,o=i.trim()||"yaml";if("+++"===n&&(o="toml"),"yaml"!==o&&n!==a)return{content:e};let[u]=t;return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:n,endDelimiter:a,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+e.slice(u.length)}}t.exports=n}}),Pn=m({"src/language-css/pragma.js"(e,t){x();var r=Ir(),n=An();function i(e){return r.hasPragma(n(e).content)}function s(e){let{frontMatter:t,content:i}=n(e);return(t?t.raw+"\n\n":"")+r.insertPragma(i)}t.exports={hasPragma:i,insertPragma:s}}}),wn=m({"src/language-css/utils/index.js"(e,t){x();var r=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 n(e,t){let r,n=Array.isArray(t)?t:[t],i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function i(e,t){let r=n(e,t);return-1===r?null:e.getParentNode(r)}function s(e){var t;let r=i(e,"css-decl");return null==r||null===(t=r.prop)||void 0===t?void 0:t.toLowerCase()}var a=new Set(["initial","inherit","unset","revert"]);function o(e){return a.has(e.toLowerCase())}function u(e,t){let r=i(e,"css-atrule");return(null==r?void 0:r.name)&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function l(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function c(e,t){var r;let n=i(e,"value-func");return(null==n||null===(r=n.value)||void 0===r?void 0:r.toLowerCase())===t}function p(e){var t;let r=i(e,"css-rule"),n=null==r||null===(t=r.raws)||void 0===t?void 0:t.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function d(e,t){let r=Array.isArray(t)?t:[t],n=i(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())}function h(e){let t=e.getValue(),r=i(e,"css-atrule");return"import"===(null==r?void 0:r.name)&&"url"===t.groups[0].value&&2===t.groups.length}function f(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}function m(e,t){var r;let n=null===(r=e.getParentNode())||void 0===r?void 0:r.nodes;return n&&n.indexOf(t)===n.length-1}function y(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))}function g(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function b(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function v(e){return"value-word"===e.type&&"in"===e.value}function E(e){return"value-operator"===e.type&&"*"===e.value}function S(e){return"value-operator"===e.type&&"/"===e.value}function D(e){return"value-operator"===e.type&&"+"===e.value}function T(e){return"value-operator"===e.type&&"-"===e.value}function C(e){return"value-operator"===e.type&&"%"===e.value}function A(e){return E(e)||S(e)||D(e)||T(e)||C(e)}function P(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function w(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function k(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function I(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function F(e){return e.name.startsWith("prettier-placeholder")}function N(e){return e.prop.startsWith("@prettier-placeholder")}function _(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function O(e){var t,r;return"value-root"===(null===(t=e.value)||void 0===t?void 0:t.type)&&"value-value"===(null===(r=e.value.group)||void 0===r?void 0:r.type)&&"composes"===e.prop.toLowerCase()}function B(e){var t,r,n;return"value-paren_group"===(null===(t=e.value)||void 0===t||null===(r=t.group)||void 0===r||null===(n=r.group)||void 0===n?void 0:n.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function j(e){var t;return""===(null===(t=e.raws)||void 0===t?void 0:t.before)}function L(e){var t,r;return"value-comma_group"===e.type&&"value-colon"===(null===(t=e.groups)||void 0===t||null===(r=t[1])||void 0===r?void 0:r.type)}function M(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&L(e.groups[0])}function R(e){var t;let r=e.getValue();if(0===r.groups.length)return!1;let n=e.getParentNode(1);if(!(M(r)||n&&M(n)))return!1;let s=i(e,"css-decl");return!!(null!=s&&null!==(t=s.prop)&&void 0!==t&&t.startsWith("$")||M(n)||"value-func"===n.type)}function $(e){return"value-comment"===e.type&&e.inline}function U(e){return"value-word"===e.type&&"#"===e.value}function V(e){return"value-word"===e.type&&"{"===e.value}function q(e){return"value-word"===e.type&&"}"===e.value}function W(e){return["value-word","value-atword"].includes(e.type)}function z(e){return"value-colon"===(null==e?void 0:e.type)}function K(e,t){if(!L(t))return!1;let{groups:r}=t,n=r.indexOf(e);return-1!==n&&z(r[n+1])}function H(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function J(e){return"value-func"===e.type&&r.has(e.value.toLowerCase())}function X(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function G(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function Y(e,t){var r,n;if("("!==(null===(r=e.open)||void 0===r?void 0:r.value)||")"!==(null===(n=e.close)||void 0===n?void 0:n.value)||e.groups.some((e=>"value-comma_group"!==e.type)))return!1;if("value-comma_group"===t.type){let r=t.groups.indexOf(e)-1,n=t.groups[r];if("value-word"===(null==n?void 0:n.type)&&"with"===n.value)return!0}return!1}function Q(e){var t,r;return"value-paren_group"===e.type&&"("===(null===(t=e.open)||void 0===t?void 0:t.value)&&")"===(null===(r=e.close)||void 0===r?void 0:r.value)}t.exports={getAncestorCounter:n,getAncestorNode:i,getPropOfDeclNode:s,maybeToLowerCase:l,insideValueFunctionNode:c,insideICSSRuleNode:p,insideAtRuleNode:d,insideURLFunctionInImportAtRuleNode:h,isKeyframeAtRuleKeywords:u,isWideKeywords:o,isLastNode:m,isSCSSControlDirectiveNode:k,isDetachedRulesetDeclarationNode:y,isRelationalOperatorNode:w,isEqualityOperatorNode:P,isMultiplicationNode:E,isDivisionNode:S,isAdditionNode:D,isSubtractionNode:T,isModuloNode:C,isMathOperatorNode:A,isEachKeywordNode:v,isForKeywordNode:g,isURLFunctionNode:f,isIfElseKeywordNode:b,hasComposesNode:O,hasParensAroundNode:B,hasEmptyRawBefore:j,isDetachedRulesetCallNode:I,isTemplatePlaceholderNode:F,isTemplatePropNode:N,isPostcssSimpleVarNode:_,isKeyValuePairNode:L,isKeyValuePairInParenGroupNode:M,isKeyInValuePairNode:K,isSCSSMapItemNode:R,isInlineValueCommentNode:$,isHashNode:U,isLeftCurlyBraceNode:V,isRightCurlyBraceNode:q,isWordNode:W,isColonNode:z,isMediaAndSupportsKeywords:H,isColorAdjusterFuncNode:J,lastLineHasInlineComment:X,isAtWordPlaceholderNode:G,isConfigurationNode:Y,isParenGroupNode:Q}}}),kn=m({"src/utils/line-column-to-index.js"(e,t){x(),t.exports=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf("\n",r)+1;return r+e.column}}}),In=m({"src/language-css/loc.js"(e,t){x();var{skipEverythingButNewLine:r}=ae(),n=A(),i=kn();function s(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?i(e.source.start,t)-1:null}function a(e,t){if("css-comment"===e.type&&e.inline)return r(t,e.source.startOffset);let s=e.nodes&&n(e.nodes);return s&&e.source&&!e.source.end&&(e=s),e.source&&e.source.end?i(e.source.end,t):null}function o(e,t){e.source&&(e.source.startOffset=s(e,t),e.source.endOffset=a(e,t));for(let r in e){let n=e[r];"source"===r||!n||"object"!=typeof n||("value-root"===n.type||"value-unknown"===n.type?u(n,l(e),n.text||n.value):o(n,t))}}function u(e,t,r){e.source&&(e.source.startOffset=s(e,r)+t,e.source.endOffset=a(e,r)+t);for(let n in e){let i=e[n];"source"===n||!i||"object"!=typeof i||u(i,t,r)}}function l(e){let t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}function c(e){let t,r="initial",n="initial",i=!1,s=[];for(let a=0;a<e.length;a++){let o=e[a];switch(r){case"initial":if("'"===o){r="single-quotes";continue}if('"'===o){r="double-quotes";continue}if(("u"===o||"U"===o)&&"url("===e.slice(a,a+4).toLowerCase()){r="url",a+=3;continue}if("*"===o&&"/"===e[a-1]){r="comment-block";continue}if("/"===o&&"/"===e[a-1]){r="comment-inline",t=a-1;continue}continue;case"single-quotes":if("'"===o&&"\\"!==e[a-1]&&(r=n,n="initial"),"\n"===o||"\r"===o)return e;continue;case"double-quotes":if('"'===o&&"\\"!==e[a-1]&&(r=n,n="initial"),"\n"===o||"\r"===o)return e;continue;case"url":if(")"===o&&(r="initial"),"\n"===o||"\r"===o)return e;if("'"===o){r="single-quotes",n="url";continue}if('"'===o){r="double-quotes",n="url";continue}continue;case"comment-block":"/"===o&&"*"===e[a-1]&&(r="initial");continue;case"comment-inline":('"'===o||"'"===o||"*"===o)&&(i=!0),("\n"===o||"\r"===o)&&(i&&s.push([t,a]),r="initial",i=!1);continue}}for(let[t,r]of s)e=e.slice(0,t)+e.slice(t,r).replace(/["'*]/g," ")+e.slice(r);return e}function p(e){return e.source.startOffset}function d(e){return e.source.endOffset}t.exports={locStart:p,locEnd:d,calculateLoc:o,replaceQuotesInInlineComments:c}}}),Fn=m({"src/language-css/utils/is-less-parser.js"(e,t){function r(e){return"css"===e.parser||"less"===e.parser}x(),t.exports=r}}),Nn=m({"src/language-css/utils/is-scss.js"(e,t){function r(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)}x(),t.exports=r}}),_n=m({"src/language-css/utils/css-units.evaluate.js"(e,t){t.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),On=m({"src/language-css/utils/print-unit.js"(e,t){x();var r=_n();function n(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:e}t.exports=n}}),Bn=m({"src/language-css/printer-postcss.js"(e,t){x();var r=A(),{printNumber:n,printString:i,hasNewline:s,isFrontMatterNode:a,isNextLineEmpty:o,isNonEmptyArray:u}=pe(),{builders:{join:l,line:c,hardline:p,softline:d,group:h,fill:f,indent:m,dedent:y,ifBreak:g,breakParent:b},utils:{removeLines:v,getDocParts:E}}=V(),S=Dn(),D=Cn(),{insertPragma:T}=Pn(),{getAncestorNode:C,getPropOfDeclNode:P,maybeToLowerCase:w,insideValueFunctionNode:k,insideICSSRuleNode:I,insideAtRuleNode:F,insideURLFunctionInImportAtRuleNode:N,isKeyframeAtRuleKeywords:_,isWideKeywords:O,isLastNode:B,isSCSSControlDirectiveNode:j,isDetachedRulesetDeclarationNode:L,isRelationalOperatorNode:M,isEqualityOperatorNode:R,isMultiplicationNode:$,isDivisionNode:U,isAdditionNode:q,isSubtractionNode:W,isMathOperatorNode:z,isEachKeywordNode:K,isForKeywordNode:H,isURLFunctionNode:J,isIfElseKeywordNode:X,hasComposesNode:G,hasParensAroundNode:Y,hasEmptyRawBefore:Q,isKeyValuePairNode:Z,isKeyInValuePairNode:ee,isDetachedRulesetCallNode:te,isTemplatePlaceholderNode:re,isTemplatePropNode:ne,isPostcssSimpleVarNode:ie,isSCSSMapItemNode:se,isInlineValueCommentNode:ae,isHashNode:oe,isLeftCurlyBraceNode:ue,isRightCurlyBraceNode:le,isWordNode:ce,isColonNode:de,isMediaAndSupportsKeywords:he,isColorAdjusterFuncNode:fe,lastLineHasInlineComment:me,isAtWordPlaceholderNode:ye,isConfigurationNode:ge,isParenGroupNode:be}=wn(),{locStart:ve,locEnd:xe}=In(),Ee=Fn(),Se=Nn(),De=On();function Te(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function Ce(e,t,n){let s=e.getValue();if(!s)return"";if("string"==typeof s)return s;switch(s.type){case"front-matter":return[s.raw,p];case"css-root":{let r=Ae(e,t,n),i=s.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r,i?` ${i}`:"",E(r).length>0?p:""]}case"css-comment":{let e=s.inline||s.raws.inline,r=t.originalText.slice(ve(s),xe(s));return e?r.trimEnd():r}case"css-rule":return[n("selector"),s.important?" !important":"",s.nodes?[s.selector&&"selector-unknown"===s.selector.type&&me(s.selector.value)?c:" ","{",s.nodes.length>0?m([p,Ae(e,t,n)]):"",p,"}",L(s)?";":""]:";"];case"css-decl":{let r=e.getParentNode(),{between:i}=s.raws,a=i.trim(),o=":"===a,u=G(s)?v(n("value")):n("value");return!o&&me(a)&&(u=m([p,y(u)])),[s.raws.before.replace(/[\s;]/g,""),"css-atrule"===r.type&&r.variable||I(e)?s.prop:w(s.prop),a.startsWith("//")?" ":"",a,s.extend?"":" ",Ee(t)&&s.extend&&s.selector?["extend(",n("selector"),")"]:"",u,s.raws.important?s.raws.important.replace(/\s*!\s*important/i," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/i," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/i," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",m([d,Ae(e,t,n)]),d,"}"]:ne(s)&&!r.raws.semicolon&&";"!==t.originalText[xe(s)-1]?"":t.__isHTMLStyleAttribute&&B(e,s)?g(";"):";"]}case"css-atrule":{let r=e.getParentNode(),i=re(s)&&!r.raws.semicolon&&";"!==t.originalText[xe(s)-1];if(Ee(t)){if(s.mixin)return[n("selector"),s.important?" !important":"",i?"":";"];if(s.function)return[s.name,n("params"),i?"":";"];if(s.variable)return["@",s.name,": ",s.value?n("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",m([s.nodes.length>0?d:"",Ae(e,t,n)]),d,"}"]:"",i?"":";"]}return["@",te(s)||s.name.endsWith(":")?s.name:w(s.name),s.params?[te(s)?"":re(s)?""===s.raws.afterName?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(s.raws.afterName)?[p,p]:/^\s*\n/.test(s.raws.afterName)?p:" ":" ",n("params")]:"",s.selector?m([" ",n("selector")]):"",s.value?h([" ",n("value"),j(s)?Y(s)?" ":c:""]):"else"===s.name?" ":"",s.nodes?[j(s)?"":s.selector&&!s.selector.nodes&&"string"==typeof s.selector.value&&me(s.selector.value)||!s.selector&&"string"==typeof s.params&&me(s.params)?c:" ","{",m([s.nodes.length>0?d:"",Ae(e,t,n)]),d,"}"]:i?"":";"]}case"media-query-list":{let t=[];return e.each((e=>{let r=e.getValue();"media-query"===r.type&&""===r.value||t.push(n())}),"nodes"),h(m(l(c,t)))}case"media-query":return[l(" ",e.map(n,"nodes")),B(e,s)?"":","];case"media-type":case"media-value":return Oe(Ne(s.value,t));case"media-feature-expression":return s.nodes?["(",...e.map(n,"nodes"),")"]:s.value;case"media-feature":return w(Ne(s.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[s.value," "];case"media-keyword":case"selector-string":return Ne(s.value,t);case"media-url":return Ne(s.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return s.value;case"selector-root":return h([F(e,"custom-selector")?[C(e,"css-atrule").customSelector,c]:"",l([",",F(e,["extend","custom-selector","nest"])?c:p],e.map(n,"nodes"))]);case"selector-selector":return h(m(e.map(n,"nodes")));case"selector-tag":{let t=e.getParentNode(),r=t&&t.nodes.indexOf(s),n=r&&t.nodes[r-1];return[s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"","selector-nesting"===n.type?s.value:Oe(_(e,s.value)?s.value.toLowerCase():s.value)]}case"selector-id":return["#",s.value];case"selector-class":return[".",Oe(Ne(s.value,t))];case"selector-attribute":var a;return["[",s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),null!==(a=s.operator)&&void 0!==a?a:"",s.value?_e(Ne(s.value.trim(),t),t):"",s.insensitive?" i":"","]"];case"selector-combinator":if("+"===s.value||">"===s.value||"~"===s.value||">>>"===s.value){let t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===s?"":c,s.value,B(e,s)?"":" "]}return[s.value.trim().startsWith("(")?c:"",Oe(Ne(s.value.trim(),t))||c];case"selector-universal":return[s.namespace?[!0===s.namespace?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[w(s.value),u(s.nodes)?h(["(",m([d,l([",",c],e.map(n,"nodes"))]),d,")"]):""];case"selector-unknown":{let r=C(e,"css-rule");if(r&&r.isSCSSNesterProperty)return Oe(Ne(w(s.value),t));let n=e.getParentNode();if(n.raws&&n.raws.selector){let e=ve(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let i=e.getParentNode(1);if("value-paren_group"===n.type&&i&&"value-func"===i.type&&"selector"===i.value){let e=xe(n.open)+1,r=ve(n.close),i=t.originalText.slice(e,r).trim();return me(i)?[b,i]:i}return s.value}case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(ve(s),xe(s));case"value-comma_group":{let r=e.getParentNode(),i=e.getParentNode(1),a=P(e),o=a&&"value-value"===r.type&&("grid"===a||a.startsWith("grid-template")),u=C(e,"css-atrule"),l=u&&j(u),g=s.groups.some((e=>ae(e))),v=e.map(n,"groups"),E=[],S=k(e,"url"),D=!1,T=!1;for(let n=0;n<s.groups.length;++n){var x;E.push(v[n]);let a=s.groups[n-1],h=s.groups[n],f=s.groups[n+1],m=s.groups[n+2];if(S){(f&&q(f)||q(h))&&E.push(" ");continue}if(F(e,"forward")&&"value-word"===h.type&&h.value&&void 0!==a&&"value-word"===a.type&&"as"===a.value&&"value-operator"===f.type&&"*"===f.value||!f||"value-word"===h.type&&h.value.endsWith("-")&&ye(f))continue;if("value-string"===h.type&&h.quoted){let e=h.value.lastIndexOf("#{"),t=h.value.lastIndexOf("}");-1!==e&&-1!==t?D=e>t:-1!==e?D=!0:-1!==t&&(D=!1)}if(D||de(h)||de(f)||"value-atword"===h.type&&(""===h.value||h.value.endsWith("["))||"value-word"===f.type&&f.value.startsWith("]")||"~"===h.value||h.value&&h.value.includes("\\")&&f&&"value-comment"!==f.type||a&&a.value&&a.value.indexOf("\\")===a.value.length-1&&"value-operator"===h.type&&"/"===h.value||"\\"===h.value||ie(h,f)||oe(h)||ue(h)||le(f)||ue(f)&&Q(f)||le(h)&&Q(f)||"--"===h.value&&oe(f))continue;let g=z(h),b=z(f);if((g&&oe(f)||b&&le(h))&&Q(f)||!a&&U(h)||k(e,"calc")&&(q(h)||q(f)||W(h)||W(f))&&Q(f))continue;let C=(q(h)||W(h))&&0===n&&("value-number"===f.type||f.isHex)&&i&&fe(i)&&!Q(f),A=m&&"value-func"===m.type||m&&ce(m)||"value-func"===h.type||ce(h),P="value-func"===f.type||ce(f)||a&&"value-func"===a.type||a&&ce(a);if(($(f)||$(h)||k(e,"calc")||C||!(U(f)&&!A||U(h)&&!P||q(f)&&!A||q(h)&&!P||W(f)||W(h))||!(Q(f)||g&&(!a||a&&z(a))))&&("scss"!==t.parser&&"less"!==t.parser||!g||"-"!==h.value||!be(f)||xe(h)!==ve(f.open)||"("!==f.open.value)){if(ae(h)){if("value-paren_group"===r.type){E.push(y(p));continue}E.push(p);continue}if(l&&(R(f)||M(f)||X(f)||K(h)||H(h))){E.push(" ");continue}if(u&&"namespace"===u.name.toLowerCase()){E.push(" ");continue}if(o){h.source&&f.source&&h.source.start.line!==f.source.start.line?(E.push(p),T=!0):E.push(" ");continue}if(b){E.push(" ");continue}if(!(f&&"..."===f.value||ye(h)&&ye(f)&&xe(h)===ve(f))){if(ye(h)&&be(f)&&xe(h)===ve(f.open)){E.push(d);continue}if("with"===h.value&&be(f)){E.push(" ");continue}null!==(x=h.value)&&void 0!==x&&x.endsWith("#")&&"{"===f.value&&be(f.group)||E.push(c)}}}return g&&E.push(b),T&&E.unshift(p),l?h(m(E)):N(e)?h(f(E)):h(m(f(E)))}case"value-paren_group":{let i=e.getParentNode();if(i&&J(i)&&(1===s.groups.length||s.groups.length>0&&"value-comma_group"===s.groups[0].type&&s.groups[0].groups.length>0&&"value-word"===s.groups[0].groups[0].type&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?n("open"):"",l(",",e.map(n,"groups")),s.close?n("close"):""];if(!s.open){let t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push([",",c]),r.push(t[e]);return h(m(f(r)))}let a=se(e),b=r(s.groups),v=b&&"value-comment"===b.type,x=ee(s,i),S=ge(s,i),D=S||a&&!x,T=S||x,C=h([s.open?n("open"):"",m([d,l([c],e.map(((e,i)=>{let a=e.getValue(),l=i===s.groups.length-1,c=[n(),l?"":","];if(Z(a)&&"value-comma_group"===a.type&&a.groups&&"value-paren_group"!==a.groups[0].type&&a.groups[2]&&"value-paren_group"===a.groups[2].type){let e=E(c[0].contents.contents);e[1]=h(e[1]),c=[h(y(c))]}if(!l&&"value-comma_group"===a.type&&u(a.groups)){let e=r(a.groups);!e.source&&e.close&&(e=e.close),e.source&&o(t.originalText,e,xe)&&c.push(p)}return c}),"groups"))]),g(!v&&Se(t.parser,t.originalText)&&a&&Te(t)?",":""),d,s.close?n("close"):""],{shouldBreak:D});return T?y(C):C}case"value-func":return[s.value,F(e,"supports")&&he(s)?" ":"",n("group")];case"value-number":return[Be(s.value),De(s.unit)];case"value-word":return s.isColor&&s.isHex||O(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let t=e.getParentNode(),n=t&&t.groups.indexOf(s),i=n&&t.groups[n-1];return[s.value,i&&"string"==typeof i.value&&"\\"===r(i.value)||k(e,"url")?"":c]}case"value-string":return i(s.raws.quote+s.value+s.raws.quote,t);case"value-atword":return["@",s.value];default:throw new Error(`Unknown postcss type ${JSON.stringify(s.type)}`)}}function Ae(e,t,r){let n=[];return e.each(((e,i,u)=>{let l=u[i-1];if(l&&"css-comment"===l.type&&"prettier-ignore"===l.text.trim()){let r=e.getValue();n.push(t.originalText.slice(ve(r),xe(r)))}else n.push(r());i!==u.length-1&&("css-comment"===u[i+1].type&&!s(t.originalText,ve(u[i+1]),{backwards:!0})&&!a(u[i])||"css-atrule"===u[i+1].type&&"else"===u[i+1].name&&"css-comment"!==u[i].type?n.push(" "):(n.push(t.__isHTMLStyleAttribute?c:p),o(t.originalText,e.getValue(),xe)&&!a(u[i])&&n.push(p)))}),"nodes"),n}var Pe=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,we=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,ke=/[A-Za-z]+/g,Ie=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Fe=new RegExp(Pe.source+`|(${Ie.source})?(${we.source})(${ke.source})?`,"g");function Ne(e,t){return e.replace(Pe,(e=>i(e,t)))}function _e(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function Oe(e){return e.replace(Fe,((e,t,r,n,i)=>!r&&n?Be(n)+w(i||""):e))}function Be(e){return n(e).replace(/\.0(?=$|e)/,"")}t.exports={print:Ce,embed:D,insertPragma:T,massageAstNode:S}}}),jn=m({"src/language-css/options.js"(e,t){x();var r=hn();t.exports={singleQuote:r.singleQuote}}}),Ln=m({"src/language-css/parsers.js"(){x()}}),Mn=m({"node_modules/linguist-languages/data/CSS.json"(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),Rn=m({"node_modules/linguist-languages/data/PostCSS.json"(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),$n=m({"node_modules/linguist-languages/data/Less.json"(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),Un=m({"node_modules/linguist-languages/data/SCSS.json"(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),Vn=m({"src/language-css/index.js"(e,t){x();var r=zt(),n=Bn(),i=jn(),s=Ln(),a=[r(Mn(),(e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]}))),r(Rn(),(()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}))),r($n(),(()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}))),r(Un(),(()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]})))],o={postcss:n};t.exports={languages:a,options:i,printers:o,parsers:s}}}),qn=m({"src/language-handlebars/loc.js"(e,t){function r(e){return e.loc.start.offset}function n(e){return e.loc.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),Wn=m({"src/language-handlebars/clean.js"(e,t){function r(e,t){if("TextNode"===e.type){let r=e.chars.trim();if(!r)return null;t.chars=r.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}x(),r.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=r}}),zn=m({"src/language-handlebars/html-void-elements.evaluate.js"(e,t){t.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),Kn=m({"src/language-handlebars/utils.js"(e,t){x();var r=A(),n=zn();function i(e){let t=e.getValue(),n=e.getParentNode(0);return!!(d(e,["ElementNode"])&&r(n.children)===t||d(e,["Block"])&&r(n.body)===t)}function s(e){return e.toUpperCase()===e}function a(e){return p(e,["ElementNode"])&&"string"==typeof e.tag&&!e.tag.startsWith(":")&&(s(e.tag[0])||e.tag.includes("."))}var o=new Set(n);function u(e){return o.has(e.toLowerCase())&&!s(e[0])}function l(e){return!0===e.selfClosing||u(e.tag)||a(e)&&e.children.every((e=>c(e)))}function c(e){return p(e,["TextNode"])&&!/\S/.test(e.chars)}function p(e,t){return e&&t.includes(e.type)}function d(e,t){return p(e.getParentNode(0),t)}function h(e,t){return p(y(e),t)}function f(e,t){return p(g(e),t)}function m(e,t){var r,n,i,s;let a=e.getValue(),o=null!==(r=e.getParentNode(0))&&void 0!==r?r:{},u=null!==(n=null!==(i=null!==(s=o.children)&&void 0!==s?s:o.body)&&void 0!==i?i:o.parts)&&void 0!==n?n:[],l=u.indexOf(a);return-1!==l&&u[l+t]}function y(e){return m(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function g(e){return m(e,1)}function b(e){return p(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}function v(e){let t=e.getValue(),r=y(e,2);return b(t)||b(r)}t.exports={getNextNode:g,getPreviousNode:y,hasPrettierIgnore:v,isLastNodeOfSiblings:i,isNextNodeOfSomeType:f,isNodeOfSomeType:p,isParentOfSomeType:d,isPreviousNodeOfSomeType:h,isVoid:l,isWhitespaceNode:c}}}),Hn=m({"src/language-handlebars/printer-glimmer.js"(e,t){x();var{builders:{dedent:r,fill:n,group:i,hardline:s,ifBreak:a,indent:o,join:u,line:l,softline:c},utils:{getDocParts:p,replaceTextEndOfLine:d}}=V(),{getPreferredQuote:h,isNonEmptyArray:f}=pe(),{locStart:m,locEnd:y}=qn(),g=Wn(),{getNextNode:b,getPreviousNode:v,hasPrettierIgnore:E,isLastNodeOfSiblings:S,isNextNodeOfSomeType:D,isNodeOfSomeType:T,isParentOfSomeType:C,isPreviousNodeOfSomeType:A,isVoid:P,isWhitespaceNode:w}=Kn(),k=2;function I(e,t,a){let p=e.getValue();if(!p)return"";if(E(e))return t.originalText.slice(m(p),y(p));let f=t.singleQuote?"'":'"';switch(p.type){case"Block":case"Program":case"Template":return i(e.map(a,"body"));case"ElementNode":{let r=i(N(e,a)),n="ignore"===t.htmlWhitespaceSensitivity&&D(e,["ElementNode"])?c:"";if(P(p))return[r,n];let u=["</",p.tag,">"];return 0===p.children.length?[r,o(u),n]:"ignore"===t.htmlWhitespaceSensitivity?[r,o(_(e,t,a)),s,o(u),n]:[r,o(i(_(e,t,a))),o(u),n]}case"BlockStatement":{let r=e.getParentNode(1);return r&&r.inverse&&1===r.inverse.body.length&&r.inverse.body[0]===p&&r.inverse.body[0].path.parts[0]===r.path.parts[0]?[K(e,a,r.inverse.body[0].path.parts[0]),Y(e,a,t),Q(e,a,t)]:[W(e,a),i([Y(e,a,t),Q(e,a,t),H(e,a,t)])]}case"ElementModifierStatement":return i(["{{",le(e,a),"}}"]);case"MustacheStatement":return i([B(p),le(e,a),j(p)]);case"SubExpression":return i(["(",ue(e,a),c,")"]);case"AttrNode":{let e="TextNode"===p.value.type;if(e&&""===p.value.chars&&m(p.value)===y(p.value))return p.name;let t=e?h(p.value.chars,f).quote:"ConcatStatement"===p.value.type?h(p.value.parts.filter((e=>"TextNode"===e.type)).map((e=>e.chars)).join(""),f).quote:"",r=a("value");return[p.name,"=",t,"class"===p.name&&t?i(o(r)):r,t]}case"ConcatStatement":return e.map(a,"parts");case"Hash":return u(l,e.map(a,"pairs"));case"HashPair":return[p.key,"=",a("value")];case"TextNode":{let i=p.chars.replace(/{{/g,"\\{{"),s=te(e);if(s){if("class"===s){let t=i.trim().split(/\s+/).join(" "),r=!1,n=!1;return C(e,["ConcatStatement"])&&(A(e,["MustacheStatement"])&&/^\s/.test(i)&&(r=!0),D(e,["MustacheStatement"])&&/\s$/.test(i)&&""!==t&&(n=!0)),[r?l:"",t,n?l:""]}return d(i)}let a=/^[\t\n\f\r ]*$/.test(i),o=!v(e),u=!b(e);if("ignore"!==t.htmlWhitespaceSensitivity){let t=/^[\t\n\f\r ]*/,s=/[\t\n\f\r ]*$/,c=u&&C(e,["Template"]),p=o&&C(e,["Template"]);if(a){if(p||c)return"";let t=[l],n=re(i);return n&&(t=se(n)),S(e)&&(t=t.map((e=>r(e)))),t}let[d]=i.match(t),[h]=i.match(s),f=[];if(d){f=[l];let e=re(d);e&&(f=se(e)),i=i.replace(t,"")}let m=[];if(h){if(!c){m=[l];let t=re(h);t&&(m=se(t)),S(e)&&(m=m.map((e=>r(e))))}i=i.replace(s,"")}return[...f,n(Z(i)),...m]}let c=re(i),h=ne(i),f=ie(i);if((o||u)&&a&&C(e,["Block","ElementNode","Template"]))return"";a&&c?(h=Math.min(c,k),f=0):(D(e,["BlockStatement","ElementNode"])&&(f=Math.max(f,1)),A(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1)));let m="",y="";return 0===f&&D(e,["MustacheStatement"])&&(y=" "),0===h&&A(e,["MustacheStatement"])&&(m=" "),o&&(h=0,m=""),u&&(f=0,y=""),i=i.replace(/^[\t\n\f\r ]+/g,m).replace(/[\t\n\f\r ]+$/,y),[...se(h),n(Z(i)),...se(f)]}case"MustacheCommentStatement":{let e=m(p),r=y(p),n="~"===t.originalText.charAt(e+2),i="~"===t.originalText.charAt(r-3),s=p.value.includes("}}")?"--":"";return["{{",n?"~":"","!",s,p.value,s,i?"~":"","}}"]}case"PathExpression":return p.original;case"BooleanLiteral":case"NumberLiteral":return String(p.value);case"CommentStatement":return["\x3c!--",p.value,"--\x3e"];case"StringLiteral":if(oe(e)){let e=t.singleQuote?'"':"'";return ae(p.value,e)}return ae(p.value,f);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(p.type))}}function F(e,t){return m(e)-m(t)}function N(e,t){let r=e.getValue(),n=["attributes","modifiers","comments"].filter((e=>f(r[e]))),i=n.flatMap((e=>r[e])).sort(F);for(let r of n)e.each((e=>{let r=i.indexOf(e.getValue());i.splice(r,1,[l,t()])}),r);return f(r.blockParams)&&i.push(l,he(r)),["<",r.tag,o(i),O(r)]}function _(e,t,r){let n=e.getValue().children.every((e=>w(e)));return"ignore"===t.htmlWhitespaceSensitivity&&n?"":e.map(((e,n)=>{let i=r();return 0===n&&"ignore"===t.htmlWhitespaceSensitivity?[c,i]:i}),"children")}function O(e){return P(e)?a([c,"/>"],[" />",c]):a([c,">"],">")}function B(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function j(e){let t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function L(e){return[B(e),e.openStrip.open?"~":"","#"]}function M(e){let t=j(e);return[e.openStrip.close?"~":"",t]}function R(e){return[B(e),e.closeStrip.open?"~":"","/"]}function $(e){let t=j(e);return[e.closeStrip.close?"~":"",t]}function U(e){return[B(e),e.inverseStrip.open?"~":""]}function q(e){let t=j(e);return[e.inverseStrip.close?"~":"",t]}function W(e,t){let r=e.getValue(),n=[],s=de(e,t);return s&&n.push(i(s)),f(r.program.blockParams)&&n.push(he(r.program)),i([L(r),ce(e,t),n.length>0?o([l,u(l,n)]):"",c,M(r)])}function z(e,t){return["ignore"===t.htmlWhitespaceSensitivity?s:"",U(e),"else",q(e)]}function K(e,t,r){let n=e.getValue(),s=e.getParentNode(1);return i([U(s),["else"," ",r],o([l,i(de(e,t)),...f(n.program.blockParams)?[l,he(n.program)]:[]]),c,q(s)])}function H(e,t,r){let n=e.getValue();return"ignore"===r.htmlWhitespaceSensitivity?[J(n)?c:s,R(n),t("path"),$(n)]:[R(n),t("path"),$(n)]}function J(e){return T(e,["BlockStatement"])&&e.program.body.every((e=>w(e)))}function X(e){return G(e)&&1===e.inverse.body.length&&T(e.inverse.body[0],["BlockStatement"])&&e.inverse.body[0].path.parts[0]===e.path.parts[0]}function G(e){return T(e,["BlockStatement"])&&e.inverse}function Y(e,t,r){if(J(e.getValue()))return"";let n=t("program");return"ignore"===r.htmlWhitespaceSensitivity?o([s,n]):o(n)}function Q(e,t,r){let n=e.getValue(),i=t("inverse"),a="ignore"===r.htmlWhitespaceSensitivity?[s,i]:i;return X(n)?a:G(n)?[z(n,r),o(a)]:""}function Z(e){return p(u(l,ee(e)))}function ee(e){return e.split(/[\t\n\f\r ]+/)}function te(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r&&"AttrNode"===r.type)return r.name.toLowerCase()}}function re(e){return(e="string"==typeof e?e:"").split("\n").length-1}function ne(e){return re(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}function ie(e){return re(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,k)}).fill(s)}function ae(e,t){let{quote:r,regex:n}=h(e,t);return[r,e.replace(n,`\\${r}`),r]}function oe(e){let t=0,r=e.getParentNode(t);for(;r&&T(r,["SubExpression"]);)t++,r=e.getParentNode(t);return!!(r&&T(e.getParentNode(t+1),["ConcatStatement"])&&T(e.getParentNode(t+2),["AttrNode"]))}function ue(e,t){let r=ce(e,t),n=de(e,t);return n?o([r,l,i(n)]):r}function le(e,t){let r=ce(e,t),n=de(e,t);return n?[o([r,l,n]),c]:r}function ce(e,t){return t("path")}function de(e,t){let r=e.getValue(),n=[];if(r.params.length>0){let r=e.map(t,"params");n.push(...r)}if(r.hash&&r.hash.pairs.length>0){let e=t("hash");n.push(e)}return 0===n.length?"":u(l,n)}function he(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:I,massageAstNode:g}}}),Jn=m({"src/language-handlebars/parsers.js"(){x()}}),Xn=m({"node_modules/linguist-languages/data/Handlebars.json"(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),Gn=m({"src/language-handlebars/index.js"(e,t){x();var r=zt(),n=Hn(),i=Jn(),s=[r(Xn(),(()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})))],a={glimmer:n};t.exports={languages:s,printers:a,parsers:i}}}),Yn=m({"src/language-graphql/pragma.js"(e,t){function r(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function n(e){return"# @format\n\n"+e}x(),t.exports={hasPragma:r,insertPragma:n}}}),Qn=m({"src/language-graphql/loc.js"(e,t){function r(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start}function n(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}x(),t.exports={locStart:r,locEnd:n}}}),Zn=m({"src/language-graphql/printer-graphql.js"(e,t){x();var{builders:{join:r,hardline:n,line:i,softline:s,group:a,indent:o,ifBreak:u}}=V(),{isNextLineEmpty:l,isNonEmptyArray:c}=pe(),{insertPragma:p}=Yn(),{locStart:d,locEnd:h}=Qn();function f(e,t,p){let f=e.getValue();if(!f)return"";if("string"==typeof f)return f;switch(f.kind){case"Document":{let r=[];return e.each(((e,i,s)=>{r.push(p()),i!==s.length-1&&(r.push(n),l(t.originalText,e.getValue(),h)&&r.push(n))}),"definitions"),[...r,n]}case"OperationDefinition":{let n="{"!==t.originalText[d(f)],i=Boolean(f.name);return[n?f.operation:"",n&&i?[" ",p("name")]:"",n&&!i&&c(f.variableDefinitions)?" ":"",c(f.variableDefinitions)?a(["(",o([s,r([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):"",m(e,p,f),f.selectionSet&&(n||i)?" ":"",p("selectionSet")]}case"FragmentDefinition":return["fragment ",p("name"),c(f.variableDefinitions)?a(["(",o([s,r([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):""," on ",p("typeCondition"),m(e,p,f)," ",p("selectionSet")];case"SelectionSet":return["{",o([n,r(n,y(e,t,p,"selections"))]),n,"}"];case"Field":return a([f.alias?[p("alias"),": "]:"",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):"",m(e,p,f),f.selectionSet?" ":"",p("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return f.value;case"StringValue":if(f.block){let e=f.value.replace(/"""/g,"\\$&").split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every((e=>""===e))&&(e.length=0),r(n,['"""',...e,'"""'])}return['"',f.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return f.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",p("name")];case"ListValue":return a(["[",o([s,r([u("",", "),s],e.map(p,"values"))]),s,"]"]);case"ObjectValue":return a(["{",t.bracketSpacing&&f.fields.length>0?" ":"",o([s,r([u("",", "),s],e.map(p,"fields"))]),s,u("",t.bracketSpacing&&f.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[p("name"),": ",p("value")];case"Directive":return["@",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):""];case"NamedType":return p("name");case"VariableDefinition":return[p("variable"),": ",p("type"),f.defaultValue?[" = ",p("defaultValue")]:"",m(e,p,f)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[p("description"),f.description?n:"","ObjectTypeExtension"===f.kind?"extend ":"","type ",p("name"),f.interfaces.length>0?[" implements ",...v(e,t,p)]:"",m(e,p,f),f.fields.length>0?[" {",o([n,r(n,y(e,t,p,"fields"))]),n,"}"]:""];case"FieldDefinition":return[p("description"),f.description?n:"",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):"",": ",p("type"),m(e,p,f)];case"DirectiveDefinition":return[p("description"),f.description?n:"","directive ","@",p("name"),f.arguments.length>0?a(["(",o([s,r([u("",", "),s],y(e,t,p,"arguments"))]),s,")"]):"",f.repeatable?" repeatable":""," on ",r(" | ",e.map(p,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[p("description"),f.description?n:"","EnumTypeExtension"===f.kind?"extend ":"","enum ",p("name"),m(e,p,f),f.values.length>0?[" {",o([n,r(n,y(e,t,p,"values"))]),n,"}"]:""];case"EnumValueDefinition":return[p("description"),f.description?n:"",p("name"),m(e,p,f)];case"InputValueDefinition":return[p("description"),f.description?f.description.block?n:i:"",p("name"),": ",p("type"),f.defaultValue?[" = ",p("defaultValue")]:"",m(e,p,f)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[p("description"),f.description?n:"","InputObjectTypeExtension"===f.kind?"extend ":"","input ",p("name"),m(e,p,f),f.fields.length>0?[" {",o([n,r(n,y(e,t,p,"fields"))]),n,"}"]:""];case"SchemaExtension":return["extend schema",m(e,p,f),...f.operationTypes.length>0?[" {",o([n,r(n,y(e,t,p,"operationTypes"))]),n,"}"]:[]];case"SchemaDefinition":return[p("description"),f.description?n:"","schema",m(e,p,f)," {",f.operationTypes.length>0?o([n,r(n,y(e,t,p,"operationTypes"))]):"",n,"}"];case"OperationTypeDefinition":return[p("operation"),": ",p("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[p("description"),f.description?n:"","InterfaceTypeExtension"===f.kind?"extend ":"","interface ",p("name"),f.interfaces.length>0?[" implements ",...v(e,t,p)]:"",m(e,p,f),f.fields.length>0?[" {",o([n,r(n,y(e,t,p,"fields"))]),n,"}"]:""];case"FragmentSpread":return["...",p("name"),m(e,p,f)];case"InlineFragment":return["...",f.typeCondition?[" on ",p("typeCondition")]:"",m(e,p,f)," ",p("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return a([p("description"),f.description?n:"",a(["UnionTypeExtension"===f.kind?"extend ":"","union ",p("name"),m(e,p,f),f.types.length>0?[" =",u(""," "),o([u([i," "]),r([i,"| "],e.map(p,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[p("description"),f.description?n:"","ScalarTypeExtension"===f.kind?"extend ":"","scalar ",p("name"),m(e,p,f)];case"NonNullType":return[p("type"),"!"];case"ListType":return["[",p("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(f.kind))}}function m(e,t,n){if(0===n.directives.length)return"";let u=r(i,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?a([i,u]):[" ",a(o([s,u]))]}function y(e,t,r,i){return e.map(((e,i,s)=>{let a=r();return i<s.length-1&&l(t.originalText,e.getValue(),h)?[a,n]:a}),i)}function g(e){return e.kind&&"Comment"!==e.kind}function b(e){let t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function v(e,t,r){let n=e.getNode(),s=[],{interfaces:a}=n,o=e.map((e=>r(e)),"interfaces");for(let e=0;e<a.length;e++){let r=a[e];s.push(o[e]);let n=a[e+1];if(n){let e=t.originalText.slice(r.loc.end,n.loc.start),a=e.includes("#"),o=e.replace(/#.*/g,"").trim();s.push(","===o?",":" &",a?i:" ")}}return s}function E(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=t.value.trim())}function S(e){var t;let r=e.getValue();return null==r||null===(t=r.comments)||void 0===t?void 0:t.some((e=>"prettier-ignore"===e.value.trim()))}E.ignoredProperties=new Set(["loc","comments"]),t.exports={print:f,massageAstNode:E,hasPrettierIgnore:S,insertPragma:p,printComment:b,canAttachComment:g}}}),ei=m({"src/language-graphql/options.js"(e,t){x();var r=hn();t.exports={bracketSpacing:r.bracketSpacing}}}),ti=m({"src/language-graphql/parsers.js"(){x()}}),ri=m({"node_modules/linguist-languages/data/GraphQL.json"(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),ni=m({"src/language-graphql/index.js"(e,t){x();var r=zt(),n=Zn(),i=ei(),s=ti(),a=[r(ri(),(()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})))],o={graphql:n};t.exports={languages:a,options:i,printers:o,parsers:s}}}),ii=m({"node_modules/collapse-white-space/index.js"(e,t){function r(e){return String(e).replace(/\s+/g," ")}x(),t.exports=r}}),si=m({"src/language-markdown/loc.js"(e,t){function r(e){return e.position.start.offset}function n(e){return e.position.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),ai=m({"src/language-markdown/constants.evaluate.js"(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),oi=m({"src/language-markdown/utils.js"(e,t){x();var{getLast:r}=pe(),{locStart:n,locEnd:i}=si(),{cjkPattern:s,kPattern:a,punctuationPattern:o}=ai(),u=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],l=[...u,"tableCell","paragraph","heading"],c=new RegExp(a),p=new RegExp(o);function d(e,t){let n="non-cjk",i="cj-letter",a="k-letter",o="cjk-punctuation",u=[],l=("preserve"===t.proseWrap?e:e.replace(new RegExp(`(${s})\n(${s})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[e,t]of l.entries()){if(e%2==1){u.push({type:"whitespace",value:/\n/.test(t)?"\n":" "});continue}if((0===e||e===l.length-1)&&""===t)continue;let h=t.split(new RegExp(`(${s})`));for(let[e,t]of h.entries())if(0!==e&&e!==h.length-1||""!==t){if(e%2==0){""!==t&&d({type:"word",value:t,kind:n,hasLeadingPunctuation:p.test(t[0]),hasTrailingPunctuation:p.test(r(t))});continue}d(p.test(t)?{type:"word",value:t,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:t,kind:c.test(t)?a:i,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return u;function d(e){let t=r(u);function s(r,n){return t.kind===r&&e.kind===n||t.kind===n&&e.kind===r}t&&"word"===t.type&&(t.kind===n&&e.kind===i&&!t.hasTrailingPunctuation||t.kind===i&&e.kind===n&&!e.hasLeadingPunctuation?u.push({type:"whitespace",value:" "}):!s(n,o)&&![t.value,e.value].some((e=>/\u3000/.test(e)))&&u.push({type:"whitespace",value:""})),u.push(e)}}function h(e,t){let[,r,n,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:i}}function f(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(h(e.children[0],t.originalText).numberText),n=Number(h(e.children[1],t.originalText).numberText);if(0===r&&e.children.length>2){let r=Number(h(e.children[2],t.originalText).numberText);return 1===n&&1===r}return 1===n}function m(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith("\n")&&t.endsWith("\n")?r.slice(0,-1):r}function y(e,t){return function e(r,n,i){let s=Object.assign({},t(r,n,i));return s.children&&(s.children=s.children.map(((t,r)=>e(t,r,[s,...i])))),s}(e,null,[])}function g(e){if("link"!==(null==e?void 0:e.type)||1!==e.children.length)return!1;let[t]=e.children;return n(e)===n(t)&&i(e)===i(t)}t.exports={mapAst:y,splitText:d,punctuationPattern:o,getFencedCodeBlockValue:m,getOrderedListItemInfo:h,hasGitDiffFriendlyOrderedList:f,INLINE_NODE_TYPES:u,INLINE_NODE_WRAPPER_TYPES:l,isAutolink:g}}}),ui=m({"src/language-markdown/embed.js"(e,t){x();var{inferParserByLanguage:r,getMaxContinuousCount:n}=pe(),{builders:{hardline:i,markAsRoot:s},utils:{replaceEndOfLine:a}}=V(),o=Tn(),{getFencedCodeBlockValue:u}=oi();function l(e,t,l,c){let p=e.getValue();if("code"===p.type&&null!==p.lang){let e=r(p.lang,c);if(e){let t=c.__inJsTemplate?"~":"`",r=t.repeat(Math.max(3,n(p.value,t)+1)),o={parser:e};"tsx"===p.lang&&(o.filepath="dummy.tsx");let d=l(u(p,c.originalText),o,{stripTrailingHardline:!0});return s([r,p.lang,p.meta?" "+p.meta:"",i,a(d),i,r])}}switch(p.type){case"front-matter":return o(p,l);case"importExport":return[l(p.value,{parser:"babel"},{stripTrailingHardline:!0}),i];case"jsx":return l(`<$>${p.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}t.exports=l}}),li=m({"src/language-markdown/pragma.js"(e,t){x();var r=An(),n=["format","prettier"];function i(e){let t=`@(${n.join("|")})`,r=new RegExp([`\x3c!--\\s*${t}\\s*--\x3e`,`{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}`,`\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*${t}[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e`].join("|"),"m"),i=e.match(r);return 0===(null==i?void 0:i.index)}t.exports={startWithPragma:i,hasPragma:e=>i(r(e).content.trimStart()),insertPragma:e=>{let t=r(e),i=`\x3c!-- @${n[0]} --\x3e`;return t.frontMatter?`${t.frontMatter.raw}\n\n${i}\n\n${t.content}`:`${i}\n\n${t.content}`}}}}),ci=m({"src/language-markdown/print-preprocess.js"(e,t){x();var r=A(),{getOrderedListItemInfo:n,mapAst:i,splitText:s}=oi(),a=/^.$/su;function o(e,t){return e=p(e=u(e=f(e=y(e=m(e=l(e=h(e=c(e,t)),t),t),t),t)))}function u(e){return i(e,(e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"})))}function l(e,t){return i(e,(e=>"inlineCode"!==e.type||"preserve"===t.proseWrap?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")})))}function c(e,t){return i(e,(e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&a.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e))}function p(e){return d(e,((e,t)=>"importExport"===e.type&&"importExport"===t.type),((e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}})))}function d(e,t,n){return i(e,(e=>{if(!e.children)return e;let i=e.children.reduce(((e,i)=>{let s=r(e);return s&&t(s,i)?e.splice(-1,1,n(s,i)):e.push(i),e}),[]);return Object.assign(Object.assign({},e),{},{children:i})}))}function h(e){return d(e,((e,t)=>"text"===e.type&&"text"===t.type),((e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}})))}function f(e,t){return i(e,((e,r,n)=>{let[i]=n;if("text"!==e.type)return e;let{value:a}=e;return"paragraph"===i.type&&(0===r&&(a=a.trimStart()),r===i.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:e.position,children:s(a,t)}}))}function m(e,t){return i(e,((e,r,n)=>{if("code"===e.type){let r=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=r,r)for(let e=0;e<n.length;e++){let t=n[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e}))}function y(e,t){return i(e,((e,t,r)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t<r.length;t++){let n=r[t];if("list"===n.type&&!n.isAligned)return e.isAligned=!1,e}e.isAligned=s(e)}return e}));function r(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function s(e){if(!e.ordered)return!0;let[i,s]=e.children;if(n(i,t.originalText).leadingSpaces.length>1)return!0;let a=r(i);return-1!==a&&(1===e.children.length?a%t.tabWidth==0:a===r(s)&&(a%t.tabWidth==0||n(s,t.originalText).leadingSpaces.length>1))}}t.exports=o}}),pi=m({"src/language-markdown/clean.js"(e,t){x();var r=ii(),{isFrontMatterNode:n}=pe(),{startWithPragma:i}=li(),s=new Set(["position","raw"]);function a(e,t,s){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type||"imageReference"===e.type)&&(t.label=r(e.label)),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),s&&"root"===s.type&&s.children.length>0&&(s.children[0]===e||n(s.children[0])&&s.children[1]===e)&&"html"===e.type&&i(e.value)))return null}a.ignoredProperties=s,t.exports=a}}),di=m({"src/language-markdown/printer-markdown.js"(e,t){x();var r=ii(),{getLast:n,getMinNotPresentContinuousCount:i,getMaxContinuousCount:s,getStringWidth:a,isNonEmptyArray:o}=pe(),{builders:{breakParent:u,join:l,line:c,literalline:p,markAsRoot:d,hardline:h,softline:f,ifBreak:m,fill:y,align:g,indent:b,group:v,hardlineWithoutBreakParent:E},utils:{normalizeDoc:S,replaceTextEndOfLine:D},printer:{printDocToString:T}}=V(),C=ui(),{insertPragma:A}=li(),{locStart:P,locEnd:w}=si(),k=ci(),I=pi(),{getFencedCodeBlockValue:F,hasGitDiffFriendlyOrderedList:N,splitText:_,punctuationPattern:O,INLINE_NODE_TYPES:B,INLINE_NODE_WRAPPER_TYPES:j,isAutolink:L}=oi(),M=new Set(["importExport"]),R=["heading","tableCell","link","wikiLink"],$=new Set(["listItem","definition","footnoteDefinition"]);function U(e,t,r){let a=e.getValue();if(se(e))return _(t.originalText.slice(a.position.start.offset,a.position.end.offset),t).map((r=>"word"===r.type?r.value:""===r.value?"":X(e,r.value,t)));switch(a.type){case"front-matter":return t.originalText.slice(a.position.start.offset,a.position.end.offset);case"root":return 0===a.children.length?"":[S(Y(e,t,r)),M.has(ee(a).type)?"":h];case"paragraph":return Q(e,t,r,{postprocessor:y});case"sentence":return Q(e,t,r);case"word":{let t=a.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${O})(_+)`,`(_+)(${O}|$)`].join("|"),"g"),((e,t,r,n,i)=>(r?`${t}${r}`:`${n}${i}`).replace(/_/g,"\\_"))),r=(e,t,r)=>"sentence"===e.type&&0===r,n=(e,t,r)=>L(e.children[r-1]);return t!==a.value&&(e.match(void 0,r,n)||e.match(void 0,r,((e,t,r)=>"emphasis"===e.type&&0===r),n))&&(t=t.replace(/^(\\?[*_])+/,(e=>e.replace(/\\/g,"")))),t}case"whitespace":{let r=e.getParentNode(),n=r.children.indexOf(a),i=r.children[n+1],s=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(i.value)?"never":t.proseWrap;return X(e,a.value,{proseWrap:s})}case"emphasis":{let i;if(L(a.children[0]))i=t.originalText[a.position.start.offset];else{let t=e.getParentNode(),r=t.children.indexOf(a),s=t.children[r-1],o=t.children[r+1];i=s&&"sentence"===s.type&&s.children.length>0&&"word"===n(s.children).type&&!n(s.children).hasTrailingPunctuation||o&&"sentence"===o.type&&o.children.length>0&&"word"===o.children[0].type&&!o.children[0].hasLeadingPunctuation||J(e,"emphasis")?"*":"_"}return[i,Q(e,t,r),i]}case"strong":return["**",Q(e,t,r),"**"];case"delete":return["~~",Q(e,t,r),"~~"];case"inlineCode":{let e=i(a.value,"`"),t="`".repeat(e||1),r=e&&!/^\s/.test(a.value)?" ":"";return[t,r,a.value,r,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?a.value:a.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[a.position.start.offset]){case"<":{let e="mailto:";return["<",a.url.startsWith(e)&&t.originalText.slice(a.position.start.offset+1,a.position.start.offset+1+e.length)!==e?a.url.slice(e.length):a.url,">"]}case"[":return["[",Q(e,t,r),"](",ae(a.url,")"),oe(a.title,t),")"];default:return t.originalText.slice(a.position.start.offset,a.position.end.offset)}case"image":return[""),oe(a.title,t),")"];case"blockquote":return["> ",g("> ",Q(e,t,r))];case"heading":return["#".repeat(a.depth)+" ",Q(e,t,r)];case"code":{if(a.isIndented){let e=" ".repeat(4);return g(e,[e,...D(a.value,h)])}let e=t.__inJsTemplate?"~":"`",r=e.repeat(Math.max(3,s(a.value,e)+1));return[r,a.lang||"",a.meta?" "+a.meta:"",h,...D(F(a,t.originalText),h),h,r]}case"html":{let t=e.getParentNode(),r="root"===t.type&&n(t.children)===a?a.value.trimEnd():a.value,i=/^<!--.*-->$/s.test(r);return D(r,i?h:d(p))}case"list":{let n=z(a,e.getParentNode()),i=N(a,t);return Q(e,t,r,{processor:(e,s)=>{let o=l(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?[o,q(e,t,r,o)]:[o,g(" ".repeat(o.length),q(e,t,r,o))];function l(){let e=a.ordered?(0===s?a.start:i?1:a.start+s)+(n%2==0?". ":") "):n%2==0?"- ":"* ";return a.isAligned||a.hasIndentedCodeblock?W(e,t):e}}})}case"thematicBreak":{let t=H(e,"list");return-1===t?"---":z(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return["[",Q(e,t,r),"]","full"===a.referenceType?ce(a):"collapsed"===a.referenceType?"[]":""];case"imageReference":return"full"===a.referenceType?["![",a.alt||"","]",ce(a)]:["![",a.alt,"]","collapsed"===a.referenceType?"[]":""];case"definition":{let e="always"===t.proseWrap?c:" ";return v([ce(a),":",b([e,ae(a.url),null===a.title?"":[e,oe(a.title,t,!1)]])])}case"footnote":return["[^",Q(e,t,r),"]"];case"footnoteReference":return de(a);case"footnoteDefinition":{let n=e.getParentNode().children[e.getName()+1],i=1===a.children.length&&"paragraph"===a.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&a.children[0].position.start.line===a.children[0].position.end.line);return[de(a),": ",i?Q(e,t,r):v([g(" ".repeat(4),Q(e,t,r,{processor:(e,t)=>0===t?v([f,r()]):r()})),n&&"footnoteDefinition"===n.type?f:""])]}case"table":return G(e,t,r);case"tableCell":return Q(e,t,r);case"break":return/\s/.test(t.originalText[a.position.start.offset])?[" ",d(p)]:["\\",h];case"liquidNode":return D(a.value,h);case"importExport":return[a.value,h];case"esComment":return["{/* ",a.value," */}"];case"jsx":return a.value;case"math":return["$$",h,a.value?[...D(a.value,h),h]:"","$$"];case"inlineMath":return t.originalText.slice(P(a),w(a));default:throw new Error(`Unknown markdown type ${JSON.stringify(a.type)}`)}}function q(e,t,r,n){let i=e.getValue(),s=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[s,Q(e,t,r,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return g(" ".repeat(s.length),r());let a=" ".repeat(ue(t.tabWidth-n.length,0,3));return[a,g(a,r())]}})]}function W(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let r=e.length%t.tabWidth;return 0===r?0:t.tabWidth-r}}function z(e,t){return K(e,t,(t=>t.ordered===e.ordered))}function K(e,t,r){let n=-1;for(let i of t.children)if(i.type===e.type&&r(i)?n++:n=-1,i===e)return n}function H(e,t){let r,n=Array.isArray(t)?t:[t],i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function J(e,t){let r=H(e,t);return-1===r?null:e.getParentNode(r)}function X(e,t,r){if("preserve"===r.proseWrap&&"\n"===t)return h;let n="always"===r.proseWrap&&!J(e,R);return""!==t?n?c:" ":n?f:""}function G(e,t,r){let n=e.getValue(),i=[],s=e.map((e=>e.map(((e,n)=>{let s=T(r(),t).formatted,o=a(s);return i[n]=Math.max(i[n]||3,o),{text:s,width:o}}),"children")),"children"),o=p(!1);if("never"!==t.proseWrap)return[u,o];let c=p(!0);return[u,v(m(c,o))];function p(e){let t=[h(s[0],e),d(e)];return s.length>1&&t.push(l(E,s.slice(1).map((t=>h(t,e))))),l(E,t)}function d(e){return`| ${i.map(((t,r)=>{let i=n.align[r],s="center"===i||"right"===i?":":"-";return`${"center"===i||"left"===i?":":"-"}${e?"-":"-".repeat(t-2)}${s}`})).join(" | ")} |`}function h(e,t){return`| ${e.map(((e,r)=>{let{text:s,width:a}=e;if(t)return s;let o=i[r]-a,u=n.align[r],l=0;"right"===u?l=o:"center"===u&&(l=Math.floor(o/2));let c=o-l;return`${" ".repeat(l)}${s}${" ".repeat(c)}`})).join(" | ")} |`}}function Y(e,t,r){let n=[],i=null,{children:s}=e.getValue();for(let[e,t]of s.entries())switch(te(t)){case"start":null===i&&(i={index:e,offset:t.position.end.offset});break;case"end":null!==i&&(n.push({start:i,end:{index:e,offset:t.position.start.offset}}),i=null)}return Q(e,t,r,{processor:(e,i)=>{if(n.length>0){let e=n[0];if(i===e.start.index)return[Z(s[e.start.index]),t.originalText.slice(e.start.offset,e.end.offset),Z(s[e.end.index])];if(e.start.index<i&&i<e.end.index)return!1;if(i===e.end.index)return n.shift(),!1}return r()}})}function Q(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{postprocessor:s}=i,a=i.processor||(()=>r()),o=e.getValue(),u=[];return e.each(((e,r)=>{let i=e.getValue(),s=a(e,r);if(!1!==s){let e={parts:u,prevNode:n,parentNode:o,options:t};re(i,e)&&(u.push(h),n&&M.has(n.type)||(ne(i,e)||ie(i,e))&&u.push(h),ie(i,e)&&u.push(h)),u.push(s),n=i}}),"children"),s?s(u):u}function Z(e){return"html"===e.type?e.value:"paragraph"===e.type&&Array.isArray(e.children)&&1===e.children.length&&"esComment"===e.children[0].type?["{/* ",e.children[0].value," */}"]:void 0}function ee(e){let t=e;for(;o(t.children);)t=n(t.children);return t}function te(e){let t;if("html"===e.type)t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;"esComment"===e.type?r=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]||"next")}function re(e,t){let r=0===t.parts.length,n=B.includes(e.type),i="html"===e.type&&j.includes(t.parentNode.type);return!r&&!n&&!i}function ne(e,t){var r,n,i;let s=(t.prevNode&&t.prevNode.type)===e.type&&$.has(e.type),a="listItem"===t.parentNode.type&&!t.parentNode.loose,o="listItem"===(null===(r=t.prevNode)||void 0===r?void 0:r.type)&&t.prevNode.loose,u="next"===te(t.prevNode),l="html"===e.type&&"html"===(null===(n=t.prevNode)||void 0===n?void 0:n.type)&&t.prevNode.position.end.line+1===e.position.start.line,c="html"===e.type&&"listItem"===t.parentNode.type&&"paragraph"===(null===(i=t.prevNode)||void 0===i?void 0:i.type)&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(s||a||u||l||c)}function ie(e,t){let r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function se(e){let t=J(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}function ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map((e=>`\\${e}`)).join("|")).test(e)?`<${e}>`:e}function oe(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+oe(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let r=e.split("'").length-1,n=e.split('"').length-1,i=r>n?'"':n>r||t.singleQuote?"'":'"';return`${i}${e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp(`(${i})`,"g"),"\\$1")}${i}`}function ue(e,t,r){return e<t?t:e>r?r:e}function le(e){let t=Number(e.getName());return 0!==t&&"next"===te(e.getParentNode().children[t-1])}function ce(e){return`[${r(e.label)}]`}function de(e){return`[^${e.label}]`}t.exports={preprocess:k,print:U,embed:C,massageAstNode:I,hasPrettierIgnore:le,insertPragma:A}}}),hi=m({"src/language-markdown/options.js"(e,t){x();var r=hn();t.exports={proseWrap:r.proseWrap,singleQuote:r.singleQuote}}}),fi=m({"src/language-markdown/parsers.js"(){x()}}),mi=m({"node_modules/linguist-languages/data/Markdown.json"(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),yi=m({"src/language-markdown/index.js"(e,t){x();var r=zt(),n=di(),i=hi(),s=fi(),a=[r(mi(),(e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter((e=>".mdx"!==e))}))),r(mi(),(()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})))],o={mdast:n};t.exports={languages:a,options:i,printers:o,parsers:s}}}),gi=m({"src/language-html/clean.js"(e,t){x();var{isFrontMatterNode:r}=pe(),n=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function i(e,t){if("text"===e.type||"comment"===e.type||r(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}i.ignoredProperties=n,t.exports=i}}),bi=m({"src/language-html/constants.evaluate.js"(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),vi=m({"src/language-html/utils/is-unknown-namespace.js"(e,t){function r(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}x(),t.exports=r}}),xi=m({"src/language-html/utils/index.js"(e,t){x();var{inferParserByLanguage:r,isFrontMatterNode:n}=pe(),{builders:{line:i,hardline:s,join:a},utils:{getDocParts:o,replaceTextEndOfLine:u}}=V(),{CSS_DISPLAY_TAGS:l,CSS_DISPLAY_DEFAULT:c,CSS_WHITE_SPACE_TAGS:p,CSS_WHITE_SPACE_DEFAULT:d}=bi(),h=vi(),f=new Set(["\t","\n","\f","\r"," "]),m=e=>e.replace(/^[\t\n\f\r ]+/,""),y=e=>e.replace(/[\t\n\f\r ]+$/,""),g=e=>m(y(e)),b=e=>e.replace(/^[\t\f\r ]*\n/g,""),v=e=>b(y(e)),E=e=>e.split(/[\t\n\f\r ]+/),S=e=>e.match(/^[\t\n\f\r ]*/)[0],D=e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},T=e=>/[\t\n\f\r ]/.test(e);function C(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||ne(e)&&e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))||ye(e,t)&&!k(e)&&"interpolation"!==e.type)}function A(e){return!("attribute"===e.type||!e.parent||!e.prev)&&P(e.prev)}function P(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function w(e){return"text"===e.type||"comment"===e.type}function k(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||h(e)&&("script"===e.name||"style"===e.name))}function I(e){return e.children&&!k(e)}function F(e){return k(e)||"interpolation"===e.type||N(e)}function N(e){return oe(e).startsWith("pre")}function _(e,t){let r=i();return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:r;function i(){return!(n(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ne(e.parent)&&(!e.prev&&("root"===e.parent.type||ne(e)&&e.parent||k(e.parent)||fe(e.parent,t)||!Q(e.parent.cssDisplay))||e.prev&&!te(e.prev.cssDisplay))))}}function O(e,t){return!(n(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ne(e.parent)&&(!e.next&&("root"===e.parent.type||ne(e)&&e.parent||k(e.parent)||fe(e.parent,t)||!Z(e.parent.cssDisplay))||e.next&&!ee(e.next.cssDisplay))))}function B(e){return re(e.cssDisplay)&&!k(e)}function j(e){return n(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function L(e){return M(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>H(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&q(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||W(e.lastChild))}function M(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function R(e){return z(e)||e.prev&&$(e.prev)||U(e)}function $(e){return z(e)||"element"===e.type&&"br"===e.fullName||U(e)}function U(e){return q(e)&&W(e)}function q(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function W(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function z(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function K(e){return e.lastChild?K(e.lastChild):e}function H(e){return e.children&&e.children.some((e=>"text"!==e.type))}function J(e){let{type:t,lang:r}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===r?"babel":"application/x-typescript"===t||"ts"===r||"tsx"===r?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))||"speculationrules"===t?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function X(e,t){let{lang:n}=e.attrMap;return n&&"postcss"!==n&&"css"!==n?"scss"===n?"scss":"less"===n?"less":"stylus"===n?r("stylus",t):void 0:"css"}function G(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?X(e,t):t&&ye(e,t)?J(e)||!("src"in e.attrMap)&&r(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?J(e):"babel"}function Y(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Q(e){return!Y(e)&&"inline-block"!==e}function Z(e){return!Y(e)&&"inline-block"!==e}function ee(e){return!Y(e)}function te(e){return!Y(e)}function re(e){return!Y(e)&&"inline-block"!==e}function ne(e){return oe(e).startsWith("pre")}function ie(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let i=e.stack[n];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&r++}return r}function se(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function ae(e,t){if(e.prev&&"comment"===e.prev.type){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let r=!1;if("element"===e.type&&"svg"===e.namespace){if(!se(e,(e=>"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";r=!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||r||h(e))&&l[e.name]||c}}function oe(e){return"element"===e.type&&(!e.namespace||h(e))&&p[e.name]||d}function ue(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;if(!f.has(r[0]))return 0;let e=S(r).length;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}function le(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue(e);return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")}function ce(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function de(e){return e.replace(/'/g,"'").replace(/"/g,'"')}var he=new Set(["template","style","script"]);function fe(e,t){return me(e,t)&&!he.has(e.fullName)}function me(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function ye(e,t){return me(e,t)&&(fe(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function ge(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}function be(e,t){let r=e.parent;if(!me(r,t))return!1;let n=r.fullName,i=e.fullName;return"script"===n&&"setup"===i||"style"===n&&"vars"===i}function ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?u(t):u(le(v(t)),s):o(a(i,E(t)))}function xe(e,t){return me(e,t)&&"script"===e.name}t.exports={htmlTrim:g,htmlTrimPreserveIndentation:v,hasHtmlWhitespace:T,getLeadingAndTrailingHtmlWhitespace:D,canHaveInterpolation:I,countChars:ce,countParents:ie,dedentString:le,forceBreakChildren:M,forceBreakContent:L,forceNextEmptyLine:j,getLastDescendant:K,getNodeCssStyleDisplay:ae,getNodeCssStyleWhiteSpace:oe,hasPrettierIgnore:A,inferScriptParser:G,isVueCustomBlock:fe,isVueNonHtmlBlock:ye,isVueScriptTag:xe,isVueSlotAttribute:ge,isVueSfcBindingsAttribute:be,isVueSfcBlock:me,isDanglingSpaceSensitiveNode:B,isIndentationSensitiveNode:N,isLeadingSpaceSensitiveNode:_,isPreLikeNode:ne,isScriptLikeTag:k,isTextLikeNode:w,isTrailingSpaceSensitiveNode:O,isWhitespaceSensitiveNode:F,isUnknownNamespace:h,preferHardlineAsLeadingSpaces:R,preferHardlineAsTrailingSpaces:$,shouldPreserveContent:C,unescapeQuoteEntities:de,getTextValueParts:ve}}}),Ei=m({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){function t(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP}function r(t){return e.$0<=t&&t<=e.$9}function n(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z}function i(t){return t>=e.$a&&t<=e.$f||t>=e.$A&&t<=e.$F||r(t)}function s(t){return t===e.$LF||t===e.$CR}function a(t){return e.$0<=t&&t<=e.$7}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=t,e.isDigit=r,e.isAsciiLetter=n,e.isAsciiHexDigit=i,e.isNewLine=s,e.isOctalDigit=a}}),Si=m({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;var r=class{constructor(){this.cache=new Map}get(e,r,n){let i=`"${e}".${r}${(n=n||[]).length?`.${n.join(".")}`:""}`,s=this.cache.get(i);return s||(s=new t(e,r,n),this.cache.set(i,s)),s}};e.StaticSymbolCache=r}}),Di=m({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function r(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[1].toUpperCase()}))}function n(e,t){return s(e,":",t)}function i(e,t){return s(e,".",t)}function s(e,t,r){let n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function a(e,t,r){return Array.isArray(e)?t.visitArray(e,r):b(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}function o(e){return null!=e}function u(e){return void 0===e?null:e}e.dashCaseToCamelCase=r,e.splitAtColon=n,e.splitAtPeriod=i,e.visitValue=a,e.isDefined=o,e.noUndefined=u;var l=class{visitArray(e,t){return e.map((e=>a(e,this,t)))}visitStringMap(e,t){let r={};return Object.keys(e).forEach((n=>{r[n]=a(e[n],this,t)})),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}};function c(e){throw new Error(`Internal Error: ${e}`)}function p(e,t){let r=Error(e);return r[d]=!0,t&&(r[h]=t),r}e.ValueTransformer=l,e.SyncAsync={assertSync:e=>{if(D(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>D(e)?e.then(t):t(e),all:e=>e.some(D)?Promise.all(e):e},e.error=c,e.syntaxError=p;var d="ngSyntaxError",h="ngParseErrors";function f(e){return e[d]}function m(e){return e[h]||[]}function y(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}e.isSyntaxError=f,e.getParseErrors=m,e.escapeRegExp=y;var g=Object.getPrototypeOf({});function b(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===g}function v(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t}function E(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(E).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;if(!e.toString)return"object";let t=e.toString();if(null==t)return""+t;let r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function S(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function D(e){return!!e&&"function"==typeof e.then}e.utf8Encode=v,e.stringify=E,e.resolveForwardRef=S,e.isPromise=D;var T=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};e.Version=T;var C=typeof window<"u"&&window,A=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,P=typeof globalThis<"u"&&globalThis||C||A;e.global=P}}),Ti=m({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Si(),r=Di(),n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=i;var s,a,o=0;function u(e){if(!e||!e.reference)return null;let n=e.reference;if(n instanceof t.StaticSymbol)return n.name;if(n.__anonymousType)return n.__anonymousType;let s=r.stringify(n);return s.indexOf("(")>=0?(s="anonymous_"+o++,n.__anonymousType=s):s=i(s),s}function l(e){let n=e.reference;return n instanceof t.StaticSymbol?n.filePath:`./${r.stringify(n)}`}function c(e,t){return`View_${u({reference:e})}_${t}`}function p(e){return`RenderType_${u({reference:e})}`}function d(e){return`HostView_${u({reference:e})}`}function h(e){return`${u({reference:e})}NgFactory`}function f(e){return null!=e.value?i(e.value):u(e.identifier)}function m(e){return null!=e.identifier?e.identifier.reference:e.value}e.identifierName=u,e.identifierModuleUrl=l,e.viewClassName=c,e.rendererTypeName=p,e.hostViewClassName=d,e.componentFactoryName=h,(a=s=e.CompileSummaryKind||(e.CompileSummaryKind={}))[a.Pipe=0]="Pipe",a[a.Directive=1]="Directive",a[a.NgModule=2]="NgModule",a[a.Injectable=3]="Injectable",e.tokenName=f,e.tokenReference=m;var y=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=T(t),this.styleUrls=T(r)}};e.CompileStylesheetMetadata=y;var g=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:i,styles:s,styleUrls:a,externalStylesheets:o,animations:u,ngContentSelectors:l,interpolation:c,isInline:p,preserveWhitespaces:d}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=i,this.styles=T(s),this.styleUrls=T(a),this.externalStylesheets=T(o),this.animations=u?A(u):[],this.ngContentSelectors=l||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=p,this.preserveWhitespaces=d}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=g;var b=class{static create(e){let{isHost:t,type:i,isComponent:s,selector:a,exportAs:o,changeDetection:u,inputs:l,outputs:c,host:p,providers:d,viewProviders:h,queries:f,guards:m,viewQueries:y,entryComponents:g,template:v,componentViewType:x,rendererType:E,componentFactory:S}=e,D={},T={},C={};null!=p&&Object.keys(p).forEach((e=>{let t=p[e],r=e.match(n);null===r?C[e]=t:null!=r[1]?T[r[1]]=t:null!=r[2]&&(D[r[2]]=t)}));let A={};null!=l&&l.forEach((e=>{let t=r.splitAtColon(e,[e,e]);A[t[0]]=t[1]}));let P={};return null!=c&&c.forEach((e=>{let t=r.splitAtColon(e,[e,e]);P[t[0]]=t[1]})),new b({isHost:t,type:i,isComponent:!!s,selector:a,exportAs:o,changeDetection:u,inputs:A,outputs:P,hostListeners:D,hostProperties:T,hostAttributes:C,providers:d,viewProviders:h,queries:f,guards:m,viewQueries:y,entryComponents:g,template:v,componentViewType:x,rendererType:E,componentFactory:S})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:i,exportAs:s,changeDetection:a,inputs:o,outputs:u,hostListeners:l,hostProperties:c,hostAttributes:p,providers:d,viewProviders:h,queries:f,guards:m,viewQueries:y,entryComponents:g,template:b,componentViewType:v,rendererType:x,componentFactory:E}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=o,this.outputs=u,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=p,this.providers=T(d),this.viewProviders=T(h),this.queries=T(f),this.guards=m,this.viewQueries=T(y),this.entryComponents=T(g),this.template=b,this.componentViewType=v,this.rendererType=x,this.componentFactory=E}toSummary(){return{summaryKind:s.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=b;var v=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:s.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompilePipeMetadata=v;var E=class{};e.CompileShallowModuleMetadata=E;var S=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:i,declaredPipes:s,exportedPipes:a,entryComponents:o,bootstrapComponents:u,importedModules:l,exportedModules:c,schemas:p,transitiveModule:d,id:h}=e;this.type=t||null,this.declaredDirectives=T(n),this.exportedDirectives=T(i),this.declaredPipes=T(s),this.exportedPipes=T(a),this.providers=T(r),this.entryComponents=T(o),this.bootstrapComponents=T(u),this.importedModules=T(l),this.exportedModules=T(c),this.schemas=T(p),this.id=h||null,this.transitiveModule=d||null}toSummary(){let e=this.transitiveModule;return{summaryKind:s.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};e.CompileNgModuleMetadata=S;var D=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function T(e){return e||[]}e.TransitiveCompileNgModuleMetadata=D;var C=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:i,useFactory:s,deps:a,multi:o}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=i,this.useFactory=s||null,this.dependencies=a||null,this.multi=!!o}};function A(e){return e.reduce(((e,t)=>{let r=Array.isArray(t)?A(t):t;return e.concat(r)}),[])}function P(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function w(e,r,n){let i;return i=n.isInline?r.type.reference instanceof t.StaticSymbol?`${r.type.reference.filePath}.${r.type.reference.name}.html`:`${u(e)}/${u(r.type)}.html`:n.templateUrl,r.type.reference instanceof t.StaticSymbol?i:P(i)}function k(e,t){let r=e.moduleUrl.split(/\/\\/g);return P(`css/${t}${r[r.length-1]}.ngstyle.js`)}function I(e){return P(`${u(e.type)}/module.ngfactory.js`)}function F(e,t){return P(`${u(e)}/${u(t.type)}.ngfactory.js`)}e.ProviderMeta=C,e.flatten=A,e.templateSourceUrl=w,e.sharedStylesheetJitUrl=k,e.ngModuleJitUrl=I,e.templateJitUrl=F}}),Ci=m({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ei(),r=Ti(),n=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,i=r.length,s=this.offset,a=this.line,o=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==t.$LF){a--;let e=r.substr(0,s-1).lastIndexOf(String.fromCharCode(t.$LF));o=e>0?s-e:s}else o--;for(;s<i&&e>0;){let n=r.charCodeAt(s);s++,e--,n==t.$LF?(a++,o=0):o++}return new n(this.file,s,a,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let i=n,s=0,a=0;for(;s<e&&n>0&&(n--,s++,"\n"!=r[n]||++a!=t););for(s=0,a=0;s<e&&i<r.length-1&&(i++,s++,"\n"!=r[i]||++a!=t););return{before:r.substring(n,this.offset),after:r.substring(this.offset,i+1)}}return null}};e.ParseLocation=n;var i=class{constructor(e,t){this.content=e,this.url=t}};e.ParseSourceFile=i;var s,a,o=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=o,e.EMPTY_PARSE_LOCATION=new n(new i("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new o(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(a=s=e.ParseErrorLevel||(e.ParseErrorLevel={}))[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR";var u=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.ERROR;this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${s[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function l(e,t){let s=r.identifierModuleUrl(t),a=null!=s?`in ${e} ${r.identifierName(t)} in ${s}`:`in ${e} ${r.identifierName(t)}`,u=new i("",a);return new o(new n(u,-1,-1,-1),new n(u,-1,-1,-1))}function c(e,t,r){let s=new i("",`in ${e} ${t} in ${r}`);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1))}e.ParseError=u,e.typeSourceSpan=l,e.r3JitTypeSourceSpan=c}}),Ai=m({"src/language-html/print-preprocess.js"(e,t){x();var{ParseSourceSpan:r}=Ci(),{htmlTrim:n,getLeadingAndTrailingHtmlWhitespace:i,hasHtmlWhitespace:s,canHaveInterpolation:a,getNodeCssStyleDisplay:o,isDanglingSpaceSensitiveNode:u,isIndentationSensitiveNode:l,isLeadingSpaceSensitiveNode:c,isTrailingSpaceSensitiveNode:p,isWhitespaceSensitiveNode:d,isVueScriptTag:h}=xi(),f=[y,g,v,S,D,A,T,C,P,E,w];function m(e,t){for(let r of f)r(e,t);return e}function y(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))}function g(e){let t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if(!t(i))continue;let s=i.prev,a=i.firstChild;e.removeChild(s),n--;let o=new r(s.sourceSpan.start,a.sourceSpan.end),u=new r(o.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=u,i.startSourceSpan=o,i.removeChild(a)}}))}function b(e,t,n){e.walk((e=>{if(e.children)for(let i=0;i<e.children.length;i++){let s=e.children[i];if("text"!==s.type&&!t(s))continue;"text"!==s.type&&(s.type="text",s.value=n(s));let a=s.prev;!a||"text"!==a.type||(a.value+=s.value,a.sourceSpan=new r(a.sourceSpan.start,s.sourceSpan.end),e.removeChild(s),i--)}}))}function v(e){return b(e,(e=>"cdata"===e.type),(e=>`<![CDATA[${e.value}]]>`))}function E(e){let t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!s(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if(!t(i))continue;let s=i.prev,a=i.next;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+a.value,s.sourceSpan=new r(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(i),n--,e.removeChild(a)}}))}function S(e,t){if("html"===t.parser)return;let n=/{{(.+?)}}/s;e.walk((e=>{if(a(e))for(let t of e.children){if("text"!==t.type)continue;let i=t.sourceSpan.start,s=null,a=t.value.split(n);for(let n=0;n<a.length;n++,i=s){let o=a[n];n%2!=0?(s=i.moveBy(o.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new r(i,s),children:0===o.length?[]:[{type:"text",value:o,sourceSpan:new r(i.moveBy(2),s.moveBy(-2))}]})):(s=i.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{type:"text",value:o,sourceSpan:new r(i,s)}))}e.removeChild(t)}}))}function D(e){e.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===n(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=d(e),s=l(e);if(!t)for(let t=0;t<e.children.length;t++){let n=e.children[t];if("text"!==n.type)continue;let{leadingWhitespace:s,text:a,trailingWhitespace:o}=i(n.value),u=n.prev,l=n.next;a?(n.value=a,n.sourceSpan=new r(n.sourceSpan.start.moveBy(s.length),n.sourceSpan.end.moveBy(-o.length)),s&&(u&&(u.hasTrailingSpaces=!0),n.hasLeadingSpaces=!0),o&&(n.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(n),t--,(s||o)&&(u&&(u.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=s}))}function T(e){e.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))}function C(e,t){e.walk((e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))}function A(e,t){e.walk((e=>{e.cssDisplay=o(e,t)}))}function P(e,t){e.walk((e=>{let{children:r}=e;if(r){if(0===r.length)return void(e.isDanglingSpaceSensitive=u(e));for(let e of r)e.isLeadingSpaceSensitive=c(e,t),e.isTrailingSpaceSensitive=p(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}}))}function w(e,t){if("vue"===t.parser){let r=e.children.find((e=>h(e,t)));if(!r)return;let{lang:n}=r.attrMap;("ts"===n||"typescript"===n)&&(t.__should_parse_vue_template_with_ts=!0)}}t.exports=m}}),Pi=m({"src/language-html/pragma.js"(e,t){function r(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function n(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}x(),t.exports={hasPragma:r,insertPragma:n}}}),wi=m({"src/language-html/loc.js"(e,t){function r(e){return e.sourceSpan.start.offset}function n(e){return e.sourceSpan.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),ki=m({"src/language-html/print/tag.js"(e,t){x();var r=Lt(),{isNonEmptyArray:n}=pe(),{builders:{indent:i,join:s,line:a,softline:o,hardline:u},utils:{replaceTextEndOfLine:l}}=V(),{locStart:c,locEnd:p}=wi(),{isTextLikeNode:d,getLastDescendant:h,isPreLikeNode:f,hasPrettierIgnore:m,shouldPreserveContent:y,isVueSfcBlock:g}=xi();function b(e,t){return[e.isSelfClosing?"":v(e,t),E(e,t)]}function v(e,t){return e.lastChild&&k(e.lastChild)?"":[S(e,t),T(e,t)]}function E(e,t){return(e.next?P(e.next):w(e.parent))?"":[C(e,t),D(e,t)]}function S(e,t){return w(e)?C(e.lastChild,t):""}function D(e,t){return k(e)?T(e.parent,t):I(e)?M(e.next):""}function T(e,t){if(r(!e.isSelfClosing),A(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function C(e,t){if(A(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 A(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(m(e)||y(e.parent,t))}function P(e){return e.prev&&"docType"!==e.prev.type&&!d(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function w(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!d(h(e.lastChild))&&!f(e)}function k(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&d(h(e))}function I(e){return e.next&&!d(e.next)&&d(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function F(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!t&&(!t[1]||t[1].split(/\s+/))}function N(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function _(e,t,r){let d=e.getValue();if(!n(d.attrs))return d.isSelfClosing?" ":"";let h=d.prev&&"comment"===d.prev.type&&F(d.prev.value),f="boolean"==typeof h?()=>h:Array.isArray(h)?e=>h.includes(e.rawName):()=>!1,m=e.map((e=>{let n=e.getValue();return f(n)?l(t.originalText.slice(c(n),p(n))):r()}),"attrs"),y="element"===d.type&&"script"===d.fullName&&1===d.attrs.length&&"src"===d.attrs[0].fullName&&0===d.children.length,b=t.singleAttributePerLine&&d.attrs.length>1&&!g(d,t)?u:a,v=[i([y?" ":a,s(b,m)])];return d.firstChild&&N(d.firstChild)||d.isSelfClosing&&w(d.parent)||y?v.push(d.isSelfClosing?" ":""):v.push(t.bracketSameLine?d.isSelfClosing?" ":"":d.isSelfClosing?a:o),v}function O(e){return e.firstChild&&N(e.firstChild)?"":R(e)}function B(e,t,r){let n=e.getValue();return[j(n,t),_(e,t,r),n.isSelfClosing?"":O(n)]}function j(e,t){return e.prev&&I(e.prev)?"":[L(e,t),M(e)]}function L(e,t){return N(e)?R(e.parent):P(e)?C(e.prev,t):""}function M(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return`\x3c!--[if ${e.condition}]>\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function R(e){switch(r(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}t.exports={printClosingTag:b,printClosingTagStart:v,printClosingTagStartMarker:T,printClosingTagEndMarker:C,printClosingTagSuffix:D,printClosingTagEnd:E,needsToBorrowLastChildClosingTagEndMarker:w,needsToBorrowParentClosingTagStartMarker:k,needsToBorrowPrevClosingTagEndMarker:P,printOpeningTag:B,printOpeningTagStart:j,printOpeningTagPrefix:L,printOpeningTagStartMarker:M,printOpeningTagEndMarker:R,needsToBorrowNextOpeningTagStartMarker:I,needsToBorrowParentOpeningTagEndMarker:N}}}),Ii=m({"node_modules/parse-srcset/src/parse-srcset.js"(e,t){var r,n;x(),r=e,n=function(){return function(e,t){var r=t&&t.logger||console;function n(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var r,n=t.exec(e.substring(g));if(n)return r=n[0],g+=r.length,r}for(var s,a,o,u,l,c=e.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,b=[];;){if(i(d),g>=c)return b;s=i(h),a=[],","===s.slice(-1)?(s=s.replace(f,""),x()):v()}function v(){for(i(p),o="",u="in descriptor";;){if(l=e.charAt(g),"in descriptor"===u)if(n(l))o&&(a.push(o),o="",u="after descriptor");else{if(","===l)return g+=1,o&&a.push(o),void x();if("("===l)o+=l,u="in parens";else{if(""===l)return o&&a.push(o),void x();o+=l}}else if("in parens"===u)if(")"===l)o+=l,u="in descriptor";else{if(""===l)return a.push(o),void x();o+=l}else if("after descriptor"===u&&!n(l)){if(""===l)return void x();u="in descriptor",g-=1}g+=1}}function x(){var t,n,i,o,u,l,c,p,d,h=!1,f={};for(o=0;o<a.length;o++)l=(u=a[o])[u.length-1],c=u.substring(0,u.length-1),p=parseInt(c,10),d=parseFloat(c),m.test(c)&&"w"===l?((t||n)&&(h=!0),0===p?h=!0:t=p):y.test(c)&&"x"===l?((t||n||i)&&(h=!0),d<0?h=!0:n=d):m.test(c)&&"h"===l?((i||n)&&(h=!0),0===p?h=!0:i=p):h=!0;h?r&&r.error&&r.error("Invalid srcset descriptor found in '"+e+"' at '"+u+"'."):(f.url=s,t&&(f.w=t),n&&(f.d=n),i&&(f.h=i),b.push(f))}}},"object"==typeof t&&t.exports?t.exports=n():r.parseSrcset=n()}}),Fi=m({"src/language-html/syntax-attribute.js"(e,t){x();var r=Ii(),{builders:{ifBreak:n,join:i,line:s}}=V();function a(e){let t=r(e,{logger:{error(e){throw new Error(e)}}}),a=t.some((e=>{let{w:t}=e;return t})),o=t.some((e=>{let{h:t}=e;return t}));if(a+o+t.some((e=>{let{d:t}=e;return t}))>1)throw new Error("Mixed descriptor in srcset is not supported");let u=a?"w":o?"h":"d",l=a?"w":o?"h":"x",c=e=>Math.max(...e),p=t.map((e=>e.url)),d=c(p.map((e=>e.length))),h=t.map((e=>e[u])).map((e=>e?e.toString():"")),f=h.map((e=>{let t=e.indexOf(".");return-1===t?e.length:t})),m=c(f);return i([",",s],p.map(((e,t)=>{let r=[e],i=h[t];if(i){let s=d-e.length+1,a=m-f[t],o=" ".repeat(s+a);r.push(n(o," "),i+l)}return r})))}function o(e){return e.trim().split(/\s+/).join(" ")}t.exports={printImgSrcset:a,printClassNames:o}}}),Ni=m({"src/language-html/syntax-vue.js"(e,t){x();var{builders:{group:r}}=V();function n(e,t){let{left:n,operator:s,right:a}=i(e);return[r(t(`function _(${n}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",s," ",t(a,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function i(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,i=e.match(t);if(!i)return;let s={};if(s.for=i[3].trim(),!s.for)return;let a=i[1].trim().replace(n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let u=[s.alias,s.iterator1,s.iterator2];return u.some(((e,t)=>!e&&(0===t||u.slice(t+1).some(Boolean))))?void 0:{left:u.filter(Boolean).join(","),operator:i[2],right:s.for}}function s(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}function a(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,n=e.trim();return t.test(n)||r.test(n)}t.exports={isVueEventBindingExpression:a,printVueFor:n,printVueBindings:s}}}),_i=m({"src/language-html/get-node-content.js"(e,t){x();var{needsToBorrowParentClosingTagStartMarker:r,printClosingTagStartMarker:n,needsToBorrowLastChildClosingTagEndMarker:i,printClosingTagEndMarker:s,needsToBorrowParentOpeningTagEndMarker:a,printOpeningTagEndMarker:o}=ki();function u(e,t){let u=e.startSourceSpan.end.offset;e.firstChild&&a(e.firstChild)&&(u-=o(e).length);let l=e.endSourceSpan.start.offset;return e.lastChild&&r(e.lastChild)?l+=n(e,t).length:i(e)&&(l-=s(e.lastChild,t).length),t.originalText.slice(u,l)}t.exports=u}}),Oi=m({"src/language-html/embed.js"(e,t){x();var{builders:{breakParent:r,group:n,hardline:i,indent:s,line:a,fill:o,softline:u},utils:{mapDoc:l,replaceTextEndOfLine:c}}=V(),p=Tn(),{printClosingTag:d,printClosingTagSuffix:h,needsToBorrowPrevClosingTagEndMarker:f,printOpeningTagPrefix:m,printOpeningTag:y}=ki(),{printImgSrcset:g,printClassNames:b}=Fi(),{printVueFor:v,printVueBindings:E,isVueEventBindingExpression:S}=Ni(),{isScriptLikeTag:D,isVueNonHtmlBlock:T,inferScriptParser:C,htmlTrimPreserveIndentation:A,dedentString:P,unescapeQuoteEntities:w,isVueSlotAttribute:k,isVueSfcBindingsAttribute:I,getTextValueParts:F}=xi(),N=_i();function _(e,t,r){let i=t=>new RegExp(t.join("|")).test(e.fullName),l=()=>w(e.value),p=!1,d=(e,t)=>{let r="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;r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||"__vue_expression"===t.parser&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))&&(p=!0)},h=e=>n(e),f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n([s([u,e]),t?u:""])},m=e=>p?h(e):f(e),y=(e,r)=>t(e,Object.assign({__onHtmlBindingRoot:d,__embeddedInHtml:!0},r));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return f(g(l()));if("class"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return b(e)}if("style"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return f(y(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===r.parser){if("v-for"===e.fullName)return v(l(),y);if(k(e)||I(e,r))return E(l(),y);let t=["^:","^v-bind:"],n=["^v-"];if(i(["^@","^v-on:"])){let e=l(),t=S(e)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return m(y(e,{parser:t}))}if(i(t))return m(y(l(),{parser:"__vue_expression"}));if(i(n))return m(y(l(),{parser:"__js_expression"}))}if("angular"===r.parser){let t=(e,t)=>y(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"})),r=["^\\*"],u=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],p=["^i18n(-.+)?$"];if(i(["^\\(.+\\)$","^on-"]))return m(t(l(),{parser:"__ng_action"}));if(i(u))return m(t(l(),{parser:"__ng_binding"}));if(i(p)){let t=l().trim();return f(o(F(e,t)),!t.includes("@@"))}if(i(r))return m(t(l(),{parser:"__ng_directive"}));let d=/{{(.+?)}}/s,h=l();if(d.test(h)){let e=[];for(let[r,i]of h.split(d).entries())if(r%2==0)e.push(c(i));else try{e.push(n(["{{",s([a,t(i,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),a,"}}"]))}catch{e.push("{{",c(i),"}}")}return n(e)}}return null}function O(e,t,o,u){let c=e.getValue();switch(c.type){case"element":if(D(c)||"interpolation"===c.type)return;if(!c.isSelfClosing&&T(c,u)){let r=C(c,u);if(!r)return;let s=N(c,u),a=/^\s*$/.test(s),l="";return a||(l=o(A(s),{parser:r,__embeddedInHtml:!0},{stripTrailingHardline:!0}),a=""===l),[m(c,u),n(y(e,u,t)),a?"":i,l,a?"":i,d(c,u),h(c,u)]}break;case"text":if(D(c.parent)){let e=C(c.parent,u);if(e){let t="markdown"===e?P(c.value.replace(/^[^\S\n]*\n/,"")):c.value,n={parser:e,__embeddedInHtml:!0};if("html"===u.parser&&"babel"===e){let e="script",{attrMap:t}=c.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),n.__babelSourceType=e}return[r,m(c,u),o(t,n,{stripTrailingHardline:!0}),h(c,u)]}}else if("interpolation"===c.parent.type){let e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===u.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===u.parser?e.parser=u.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":e.parser="__js_expression",[s([a,o(c.value,e,{stripTrailingHardline:!0})]),c.parent.next&&f(c.parent.next)?" ":a]}break;case"attribute":{if(!c.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];if("lwc"===u.parser&&/^{.*}$/s.test(u.originalText.slice(c.valueSpan.start.offset,c.valueSpan.end.offset)))return[c.rawName,"=",c.value];let e=_(c,((e,t)=>o(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})),u);if(e)return[c.rawName,'="',n(l(e,(e=>"string"==typeof e?e.replace(/"/g,"""):e))),'"'];break}case"front-matter":return p(c,o)}}t.exports=O}}),Bi=m({"src/language-html/print/children.js"(e,t){x();var{builders:{breakParent:r,group:n,ifBreak:i,line:s,softline:a,hardline:o},utils:{replaceTextEndOfLine:u}}=V(),{locStart:l,locEnd:c}=wi(),{forceBreakChildren:p,forceNextEmptyLine:d,isTextLikeNode:h,hasPrettierIgnore:f,preferHardlineAsLeadingSpaces:m}=xi(),{printOpeningTagPrefix:y,needsToBorrowNextOpeningTagStartMarker:g,printOpeningTagStartMarker:b,needsToBorrowPrevClosingTagEndMarker:v,printClosingTagEndMarker:E,printClosingTagSuffix:S,needsToBorrowParentClosingTagStartMarker:D}=ki();function T(e,t,r){let n=e.getValue();return f(n)?[y(n,t),...u(t.originalText.slice(l(n)+(n.prev&&g(n.prev)?b(n).length:0),c(n)-(n.next&&v(n.next)?E(n,t).length:0))),S(n,t)]:r()}function C(e,t){return h(e)&&h(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?m(t)?o:s:"":m(t)?o:a:g(e)&&(f(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&v(t)?"":!t.isLeadingSpaceSensitive||m(t)||v(t)&&e.lastChild&&D(e.lastChild)&&e.lastChild.lastChild&&D(e.lastChild.lastChild)?o:t.hasLeadingSpaces?s:a}function A(e,t,s){let u=e.getValue();if(p(u))return[r,...e.map((e=>{let r=e.getValue(),n=r.prev?C(r.prev,r):"";return[n?[n,d(r.prev)?o:""]:"",T(e,t,s)]}),"children")];let l=u.children.map((()=>Symbol("")));return e.map(((e,r)=>{let u=e.getValue();if(h(u)){if(u.prev&&h(u.prev)){let r=C(u.prev,u);if(r)return d(u.prev)?[o,o,T(e,t,s)]:[r,T(e,t,s)]}return T(e,t,s)}let c=[],p=[],f=[],m=[],y=u.prev?C(u.prev,u):"",g=u.next?C(u,u.next):"";return y&&(d(u.prev)?c.push(o,o):y===o?c.push(o):h(u.prev)?p.push(y):p.push(i("",a,{groupId:l[r-1]}))),g&&(d(u)?h(u.next)&&m.push(o,o):g===o?h(u.next)&&m.push(o):f.push(g)),[...c,n([...p,n([T(e,t,s),...f],{id:l[r]})]),...m]}),"children")}t.exports={printChildren:A}}}),ji=m({"src/language-html/print/element.js"(e,t){x();var{builders:{breakParent:r,dedentToRoot:n,group:i,ifBreak:s,indentIfBreak:a,indent:o,line:u,softline:l},utils:{replaceTextEndOfLine:c}}=V(),p=_i(),{shouldPreserveContent:d,isScriptLikeTag:h,isVueCustomBlock:f,countParents:m,forceBreakContent:y}=xi(),{printOpeningTagPrefix:g,printOpeningTag:b,printClosingTagSuffix:v,printClosingTag:E,needsToBorrowPrevClosingTagEndMarker:S,needsToBorrowLastChildClosingTagEndMarker:D}=ki(),{printChildren:T}=Bi();function C(e,t,x){let C=e.getValue();if(d(C,t))return[g(C,t),i(b(e,t,x)),...c(p(C,t)),...E(C,t),v(C,t)];let A=1===C.children.length&&"interpolation"===C.firstChild.type&&C.firstChild.isLeadingSpaceSensitive&&!C.firstChild.hasLeadingSpaces&&C.lastChild.isTrailingSpaceSensitive&&!C.lastChild.hasTrailingSpaces,P=Symbol("element-attr-group-id"),w=r=>i([i(b(e,t,x),{id:P}),r,E(C,t)]),k=e=>A?a(e,{groupId:P}):!h(C)&&!f(C,t)||"root"!==C.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?o(e):e,I=()=>A?s(l,"",{groupId:P}):C.firstChild.hasLeadingSpaces&&C.firstChild.isLeadingSpaceSensitive?u:"text"===C.firstChild.type&&C.isWhitespaceSensitive&&C.isIndentationSensitive?n(l):l,F=()=>(C.next?S(C.next):D(C.parent))?C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?" ":"":A?s(l,"",{groupId:P}):C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?u:("comment"===C.lastChild.type||"text"===C.lastChild.type&&C.isWhitespaceSensitive&&C.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*m(e,(e=>e.parent&&"root"!==e.parent.type))}}$`).test(C.lastChild.value)?"":l;return 0===C.children.length?w(C.hasDanglingSpaces&&C.isDanglingSpaceSensitive?u:""):w([y(C)?r:"",k([I(),T(e,t,x)]),F()])}t.exports={printElement:C}}}),Li=m({"src/language-html/printer-html.js"(e,t){x();var{builders:{fill:r,group:n,hardline:i,literalline:s},utils:{cleanDoc:a,getDocParts:o,isConcat:u,replaceTextEndOfLine:l}}=V(),c=gi(),{countChars:p,unescapeQuoteEntities:d,getTextValueParts:h}=xi(),f=Ai(),{insertPragma:m}=Pi(),{locStart:y,locEnd:g}=wi(),b=Oi(),{printClosingTagSuffix:v,printClosingTagEnd:E,printOpeningTagPrefix:S,printOpeningTagStart:D}=ki(),{printElement:T}=ji(),{printChildren:C}=Bi();function A(e,t,c){let f=e.getValue();switch(f.type){case"front-matter":return l(f.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(f),[n(C(e,t,c)),i];case"element":case"ieConditionalComment":return T(e,t,c);case"ieConditionalStartComment":case"ieConditionalEndComment":return[D(f),E(f)];case"interpolation":return[D(f,t),...e.map(c,"children"),E(f,t)];case"text":{if("interpolation"===f.parent.type){let e=/\n[^\S\n]*$/,t=e.test(f.value),r=t?f.value.replace(e,""):f.value;return[...l(r),t?i:""]}let e=a([S(f,t),...h(f),v(f,t)]);return u(e)||"fill"===e.type?r(o(e)):e}case"docType":return[n([D(f,t)," ",f.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),E(f,t)];case"comment":return[S(f,t),...l(t.originalText.slice(y(f),g(f)),s),v(f,t)];case"attribute":{if(null===f.value)return f.rawName;let e=d(f.value),t=p(e,"'")<p(e,'"')?"'":'"';return[f.rawName,"=",t,...l('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'")),t]}default:throw new Error(`Unexpected node type ${f.type}`)}}t.exports={preprocess:f,print:A,insertPragma:m,massageAstNode:c,embed:b}}}),Mi=m({"src/language-html/options.js"(e,t){x();var r=hn(),n="HTML";t.exports={bracketSameLine:r.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:n,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:r.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:n,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),Ri=m({"src/language-html/parsers.js"(){x()}}),$i=m({"node_modules/linguist-languages/data/HTML.json"(e,t){t.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),Ui=m({"node_modules/linguist-languages/data/Vue.json"(e,t){t.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),Vi=m({"src/language-html/index.js"(e,t){x();var r=zt(),n=Li(),i=Mi(),s=Ri(),a=[r($i(),(()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}))),r($i(),(e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]}))),r($i(),(()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}))),r(Ui(),(()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})))],o={html:n};t.exports={languages:a,printers:o,options:i,parsers:s}}}),qi=m({"src/language-yaml/pragma.js"(e,t){function r(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function n(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)}function i(e){return`# @format\n\n${e}`}x(),t.exports={isPragma:r,hasPragma:n,insertPragma:i}}}),Wi=m({"src/language-yaml/loc.js"(e,t){function r(e){return e.position.start.offset}function n(e){return e.position.end.offset}x(),t.exports={locStart:r,locEnd:n}}}),zi=m({"src/language-yaml/embed.js"(e,t){function r(e,t,r,n){if("root"===e.getValue().type&&n.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(n.filepath))return r(n.originalText,Object.assign(Object.assign({},n),{},{parser:"json"}))}x(),t.exports=r}}),Ki=m({"src/language-yaml/utils.js"(e,t){x();var{getLast:r,isNonEmptyArray:n}=pe();function i(e,t){let r=0,n=e.stack.length-1;for(let i=0;i<n;i++){let n=e.stack[i];s(n)&&t(n)&&r++}return r}function s(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function a(e,t,r){return t("children"in e?Object.assign(Object.assign({},e),{},{children:e.children.map((r=>a(r,t,e)))}):e,r)}function o(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})}function u(e,t){let r=0,n=t.length;for(let i=e.position.end.offset-1;i<n;i++){let e=t[i];if("\n"===e&&r++,1===r&&/\S/.test(e))return!1;if(2===r)return!0}return!1}function l(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let r=1;r<t;r++){let t=e.stack[r],n=e.stack[r-1];if(Array.isArray(n)&&"number"==typeof t&&t!==n.length-1)return!1}return!0}function c(e){return n(e.children)?c(r(e.children)):e}function p(e){return"prettier-ignore"===e.value.trim()}function d(e){let t=e.getValue();if("documentBody"===t.type){let t=e.getParentNode();return v(t.head)&&p(r(t.head.endComments))}return m(t)&&p(r(t.leadingComments))}function h(e){return!n(e.children)&&!f(e)}function f(e){return m(e)||y(e)||g(e)||b(e)||v(e)}function m(e){return n(null==e?void 0:e.leadingComments)}function y(e){return n(null==e?void 0:e.middleComments)}function g(e){return null==e?void 0:e.indicatorComment}function b(e){return null==e?void 0:e.trailingComment}function v(e){return n(null==e?void 0:e.endComments)}function E(e){let t,r=[];for(let n of e.split(/( +)/))" "!==n?" "===t?r.push(n):r.push((r.pop()||"")+n):void 0===t&&r.unshift(""),t=n;return" "===t&&r.push((r.pop()||"")+" "),""===r[0]&&(r.shift(),r.unshift(" "+(r.shift()||""))),r}function S(e,t,n){let i=t.split("\n").map(((e,t,r)=>0===t&&t===r.length-1?e:0!==t&&t!==r.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?i.map((e=>0===e.length?[]:[e])):i.map((e=>0===e.length?[]:E(e))).reduce(((t,n,s)=>0!==s&&i[s-1].length>0&&n.length>0&&("quoteDouble"!==e||!r(r(t)).endsWith("\\"))?[...t.slice(0,-1),[...r(t),...n]]:[...t,n]),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))}function D(e,t){let n,{parentIndent:i,isLastDescendant:s,options:a}=t,o=e.position.start.line===e.position.end.line?"":a.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1];if(null===e.indent){let e=o.match(/^(?<leadingSpace> *)[^\n\r ]/m);n=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else n=e.indent-1+i;let u=o.split("\n").map((e=>e.slice(n)));return"preserve"===a.proseWrap||"blockLiteral"===e.type?l(u.map((e=>0===e.length?[]:[e]))):l(u.map((e=>0===e.length?[]:E(e))).reduce(((e,t,n)=>0!==n&&u[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(r(e))?[...e.slice(0,-1),[...r(e),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/.test(r(e))?[...e.slice(0,-1),r(e)+" "+t]:[...e,t]),[]))).map((e=>"never"===a.proseWrap?[e.join(" ")]:e)));function l(t){if("keep"===e.chomping)return 0===r(t).length?t.slice(0,-1):t;let n=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)n++;return 0===n?t:n>=2&&!s?t.slice(0,-(n-1)):t.slice(0,-n)}}function T(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}t.exports={getLast:r,getAncestorCount:i,isNode:s,isEmptyNode:h,isInlineNode:T,mapNode:a,defineShortcut:o,isNextLineEmpty:u,isLastDescendantNode:l,getBlockValueLineContents:D,getFlowScalarLineContents:S,getLastDescendantNode:c,hasPrettierIgnore:d,hasLeadingComments:m,hasMiddleComments:y,hasIndicatorComment:g,hasTrailingComment:b,hasEndComments:v}}}),Hi=m({"src/language-yaml/print-preprocess.js"(e,t){x();var{defineShortcut:r,mapNode:n}=Ki();function i(e){return n(e,s)}function s(e){switch(e.type){case"document":r(e,"head",(()=>e.children[0])),r(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":r(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":r(e,"key",(()=>e.children[0])),r(e,"value",(()=>e.children[1]))}return e}t.exports=i}}),Ji=m({"src/language-yaml/print/misc.js"(e,t){x();var{builders:{softline:r,align:n}}=V(),{hasEndComments:i,isNextLineEmpty:s,isNode:a}=Ki(),o=new WeakMap;function u(e,t){let n,i=e.getValue(),a=e.stack[0];return o.has(a)?n=o.get(a):(n=new Set,o.set(a,n)),n.has(i.position.end.line)||(n.add(i.position.end.line),!s(i,t)||l(e.getParentNode()))?"":r}function l(e){return i(e)&&!a(e,["documentHead","documentBody","flowMapping","flowSequence"])}function c(e,t){return n(" ".repeat(e),t)}t.exports={alignWithSpaces:c,shouldPrintEndComments:l,printNextEmptyLine:u}}}),Xi=m({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){x();var{builders:{ifBreak:r,line:n,softline:i,hardline:s,join:a}}=V(),{isEmptyNode:o,getLast:u,hasEndComments:l}=Ki(),{printNextEmptyLine:c,alignWithSpaces:p}=Ji();function d(e,t,c){let d=e.getValue(),f="flowMapping"===d.type,m=f?"{":"[",y=f?"}":"]",g=i;f&&d.children.length>0&&c.bracketSpacing&&(g=n);let b=u(d.children),v=b&&"flowMappingItem"===b.type&&o(b.key)&&o(b.value);return[m,p(c.tabWidth,[g,h(e,t,c),"none"===c.trailingComma?"":r(","),l(d)?[s,a(s,e.map(t,"endComments"))]:""]),v?"":g,y]}function h(e,t,r){let i=e.getValue();return e.map(((e,s)=>[t(),s===i.children.length-1?"":[",",n,i.children[s].position.start.line!==i.children[s+1].position.start.line?c(e,r.originalText):""]]),"children")}t.exports={printFlowMapping:d,printFlowSequence:d}}}),Gi=m({"src/language-yaml/print/mapping-item.js"(e,t){x();var{builders:{conditionalGroup:r,group:n,hardline:i,ifBreak:s,join:a,line:o}}=V(),{hasLeadingComments:u,hasMiddleComments:l,hasTrailingComment:c,hasEndComments:p,isNode:d,isEmptyNode:h,isInlineNode:f}=Ki(),{alignWithSpaces:m}=Ji();function y(e,t,y,x,E){let{key:S,value:D}=e,T=h(S),C=h(D);if(T&&C)return": ";let A=x("key"),P=b(e)?" ":"";if(C)return"flowMappingItem"===e.type&&"flowMapping"===t.type?A:"mappingItem"!==e.type||!g(S.content,E)||c(S.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",m(2,A)]:[A,P,":"];let w=x("value");if(T)return[": ",m(2,w)];if(u(D)||!f(S.content))return["? ",m(2,A),i,a("",y.map(x,"value","leadingComments").map((e=>[e,i]))),": ",m(2,w)];if(v(S.content)&&!u(S.content)&&!l(S.content)&&!c(S.content)&&!p(S)&&!u(D.content)&&!l(D.content)&&!p(D)&&g(D.content,E))return[A,P,": ",w];let k=Symbol("mappingKey"),I=n([s("? "),n(m(2,A),{id:k})]),F=[i,": ",m(2,w)],N=[P,":"];u(D.content)||p(D)&&D.content&&!d(D.content,["mapping","sequence"])||"mapping"===t.type&&c(S.content)&&f(D.content)||d(D.content,["mapping","sequence"])&&null===D.content.tag&&null===D.content.anchor?N.push(i):D.content&&N.push(o),N.push(w);let _=m(E.tabWidth,N);return!g(S.content,E)||u(S.content)||l(S.content)||p(S)?r([[I,s(F,_,{groupId:k})]]):r([[A,_]])}function g(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function b(e){return e.key.content&&"alias"===e.key.content.type}function v(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}t.exports=y}}),Yi=m({"src/language-yaml/print/block.js"(e,t){x();var{builders:{dedent:r,dedentToRoot:n,fill:i,hardline:s,join:a,line:o,literalline:u,markAsRoot:l},utils:{getDocParts:c}}=V(),{getAncestorCount:p,getBlockValueLineContents:d,hasIndicatorComment:h,isLastDescendantNode:f,isNode:m}=Ki(),{alignWithSpaces:y}=Ji();function g(e,t,g){let b=e.getValue(),v=p(e,(e=>m(e,["sequence","mapping"]))),x=f(e),E=["blockFolded"===b.type?">":"|"];null!==b.indent&&E.push(b.indent.toString()),"clip"!==b.chomping&&E.push("keep"===b.chomping?"+":"-"),h(b)&&E.push(" ",t("indicatorComment"));let S=d(b,{parentIndent:v,isLastDescendant:x,options:g}),D=[];for(let[e,t]of S.entries())0===e&&D.push(s),D.push(i(c(a(o,t)))),e!==S.length-1?D.push(0===t.length?s:l(u)):"keep"===b.chomping&&x&&D.push(n(0===t.length?s:u));return null===b.indent?E.push(r(y(g.tabWidth,D))):E.push(n(y(b.indent-1+v,D))),E}t.exports=g}}),Qi=m({"src/language-yaml/printer-yaml.js"(e,t){x();var{builders:{breakParent:r,fill:n,group:i,hardline:s,join:a,line:o,lineSuffix:u,literalline:l},utils:{getDocParts:c,replaceTextEndOfLine:p}}=V(),{isPreviousLineEmpty:d}=pe(),{insertPragma:h,isPragma:f}=qi(),{locStart:m}=Wi(),y=zi(),{getFlowScalarLineContents:g,getLastDescendantNode:b,hasLeadingComments:v,hasMiddleComments:E,hasTrailingComment:S,hasEndComments:D,hasPrettierIgnore:T,isLastDescendantNode:C,isNode:A,isInlineNode:P}=Ki(),w=Hi(),{alignWithSpaces:k,printNextEmptyLine:I,shouldPrintEndComments:F}=Ji(),{printFlowMapping:N,printFlowSequence:_}=Xi(),O=Gi(),B=Yi();function j(e,t,n){let o=e.getValue(),c=[];"mappingValue"!==o.type&&v(o)&&c.push([a(s,e.map(n,"leadingComments")),s]);let{tag:h,anchor:f}=o;h&&c.push(n("tag")),h&&f&&c.push(" "),f&&c.push(n("anchor"));let y="";A(o,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!C(e)&&(y=I(e,t.originalText)),(h||f)&&(A(o,["sequence","mapping"])&&!E(o)?c.push(s):c.push(" ")),E(o)&&c.push([1===o.middleComments.length?"":s,a(s,e.map(n,"middleComments")),s]);let g=e.getParentNode();return T(e)?c.push(p(t.originalText.slice(o.position.start.offset,o.position.end.offset).trimEnd(),l)):c.push(i(L(o,g,e,t,n))),S(o)&&!A(o,["document","documentHead"])&&c.push(u(["mappingValue"!==o.type||o.content?" ":"","mappingKey"===g.type&&"mapping"===e.getParentNode(2).type&&P(o)?"":r,n("trailingComment")])),F(o)&&c.push(k("sequenceItem"===o.type?2:0,[s,a(s,e.map((e=>[d(t.originalText,e.getValue(),m)?s:"",n()]),"endComments"))])),c.push(y),c}function L(e,t,r,n,i){switch(e.type){case"root":{let{children:t}=e,n=[];r.each(((e,r)=>{let a=t[r],o=t[r+1];0!==r&&n.push(s),n.push(i()),R(a,o)?(n.push(s,"..."),S(a)&&n.push(" ",i("trailingComment"))):o&&!S(o.head)&&n.push(s,"---")}),"children");let a=b(e);return(!A(a,["blockLiteral","blockFolded"])||"keep"!==a.chomping)&&n.push(s),n}case"document":{let o=[];return"head"===$(e,t.children[r.getName()+1],t,n)&&((e.head.children.length>0||e.head.endComments.length>0)&&o.push(i("head")),S(e.head)?o.push(["---"," ",i(["head","trailingComment"])]):o.push("---")),M(e)&&o.push(i("body")),a(s,o)}case"documentHead":return a(s,[...r.map(i,"children"),...r.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:n}=e,o="";if(t.length>0&&n.length>0){let t=b(e);A(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(o=[s,s]):o=s}return[a(s,r.map(i,"children")),o,a(s,r.map(i,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return U(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let t="'",r='"',i=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&i.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(i)){let s="quoteDouble"===e.type?r:t;return[s,U(e.type,i,n),s]}if(i.includes(r))return[t,U(e.type,"quoteDouble"===e.type?i.replace(/\\"/g,r).replace(/'/g,t.repeat(2)):i,n),t];if(i.includes(t))return[r,U(e.type,"quoteSingle"===e.type?i.replace(/''/g,t):i,n),r];let s=n.singleQuote?t:r;return[s,U(e.type,i,n),s]}case"blockFolded":case"blockLiteral":return B(r,i,n);case"mapping":case"sequence":return a(s,r.map(i,"children"));case"sequenceItem":return["- ",k(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return O(e,t,r,i,n);case"flowMapping":return N(r,i,n);case"flowSequence":return _(r,i,n);case"flowSequenceItem":return i("content");default:throw new Error(`Unexpected node type ${e.type}`)}}function M(e){return e.body.children.length>0||D(e.body)}function R(e,t){return S(e)||t&&(t.head.children.length>0||D(t.head))}function $(e,t,r,n){return r.children[0]===e&&/---(?:\s|$)/.test(n.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||D(e.head)||S(e.head)?"head":!R(e,t)&&!!t&&"root"}function U(e,t,r){let i=g(e,t,r);return a(s,i.map((e=>n(c(a(o,e))))))}function q(e,t){if(A(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}}t.exports={preprocess:w,embed:y,print:j,massageAstNode:q,insertPragma:h}}}),Zi=m({"src/language-yaml/options.js"(e,t){x();var r=hn();t.exports={bracketSpacing:r.bracketSpacing,singleQuote:r.singleQuote,proseWrap:r.proseWrap}}}),es=m({"src/language-yaml/parsers.js"(){x()}}),ts=m({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),rs=m({"src/language-yaml/index.js"(e,t){x();var r=zt(),n=Qi(),i=Zi(),s=es(),a=[r(ts(),(e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter((e=>"yarn.lock"!==e)),".prettierrc",".stylelintrc",".lintstagedrc"]})))];t.exports={languages:a,printers:{yaml:n},options:i,parsers:s}}}),ns=m({"src/languages.js"(e,t){x(),t.exports=[Sn(),Vn(),Gn(),ni(),yi(),Vi(),rs()]}});x();var{version:is}=E(),ss=qt(),{getSupportInfo:as}=ie(),os=Wt(),us=ns(),ls=V();function cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];let s=n[t]||{},a=s.plugins||[];return n[t]=Object.assign(Object.assign({},s),{},{plugins:[...us,...Array.isArray(a)?a:Object.values(a)]}),e(...n)}}var ps=cs(ss.formatWithCursor);t.exports={formatWithCursor:ps,format:(e,t)=>ps(e,t).formatted,check(e,t){let{formatted:r}=ps(e,t);return r===e},doc:ls,getSupportInfo:cs(as,0),version:is,util:os,__debug:{parse:cs(ss.parse),formatAST:cs(ss.formatAST),formatDoc:cs(ss.formatDoc),printToDoc:cs(ss.printToDoc),printDocToString:cs(ss.printDocToString)}}})),K9());var J9=H9.exports,X9={exports:{}};X9.exports=function(){var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof y&&y)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),n=e(((e,t)=>{var n=r();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),i=e(((e,t)=>{var n=r();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),s=e(((e,t)=>{var r=i(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}})),a=e((e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t})),o=e(((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),u=e(((e,t)=>{var r=i(),n=Function.prototype,s=n.call,a=r&&n.bind.bind(s,s);t.exports=r?a:function(e){return function(){return s.apply(e,arguments)}}})),l=e(((e,t)=>{var r=u(),n=r({}.toString),i=r("".slice);t.exports=function(e){return i(n(e),8,-1)}})),c=e(((e,t)=>{var n=u(),i=r(),s=l(),a=Object,o=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?o(e,""):a(e)}:a})),p=e(((e,t)=>{t.exports=function(e){return null==e}})),d=e(((e,t)=>{var r=p(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}})),h=e(((e,t)=>{var r=c(),n=d();t.exports=function(e){return r(n(e))}})),f=e(((e,t)=>{var r="object"==typeof document&&document.all,n=typeof r>"u"&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}})),m=e(((e,t)=>{var r=f(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}})),g=e(((e,t)=>{var r=m(),n=f(),i=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}})),b=e(((e,r)=>{var n=t(),i=m(),s=function(e){return i(e)?e:void 0};r.exports=function(e,t){return arguments.length<2?s(n[e]):n[e]&&n[e][t]}})),v=e(((e,t)=>{var r=u();t.exports=r({}.isPrototypeOf)})),x=e(((e,t)=>{var r=b();t.exports=r("navigator","userAgent")||""})),E=e(((e,r)=>{var n,i,s=t(),a=x(),o=s.process,u=s.Deno,l=o&&o.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),r.exports=i})),S=e(((e,t)=>{var n=E(),i=r();t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),D=e(((e,t)=>{var r=S();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),T=e(((e,t)=>{var r=b(),n=m(),i=v(),s=D(),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}})),C=e(((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}})),A=e(((e,t)=>{var r=m(),n=C(),i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not a function")}})),P=e(((e,t)=>{var r=A(),n=p();t.exports=function(e,t){var i=e[t];return n(i)?void 0:r(i)}})),w=e(((e,t)=>{var r=s(),n=m(),i=g(),a=TypeError;t.exports=function(e,t){var s,o;if("string"===t&&n(s=e.toString)&&!i(o=r(s,e))||n(s=e.valueOf)&&!i(o=r(s,e))||"string"!==t&&n(s=e.toString)&&!i(o=r(s,e)))return o;throw a("Can't convert object to primitive value")}})),k=e(((e,t)=>{t.exports=!1})),I=e(((e,r)=>{var n=t(),i=Object.defineProperty;r.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),F=e(((e,r)=>{var n=t(),i=I(),s="__core-js_shared__",a=n[s]||i(s,{});r.exports=a})),N=e(((e,t)=>{var r=k(),n=F();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),_=e(((e,t)=>{var r=d(),n=Object;t.exports=function(e){return n(r(e))}})),O=e(((e,t)=>{var r=u(),n=_(),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(n(e),t)}})),B=e(((e,t)=>{var r=u(),n=0,i=Math.random(),s=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+i,36)}})),j=e(((e,r)=>{var n=t(),i=N(),s=O(),a=B(),o=S(),u=D(),l=i("wks"),c=n.Symbol,p=c&&c.for,d=u?c:c&&c.withoutSetter||a;r.exports=function(e){if(!s(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&s(c,e)?l[e]=c[e]:l[e]=u&&p?p(t):d(t)}return l[e]}})),L=e(((e,t)=>{var r=s(),n=g(),i=T(),a=P(),o=w(),u=j(),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!n(e)||i(e))return e;var s,u=a(e,c);if(u){if(void 0===t&&(t="default"),s=r(u,e,t),!n(s)||i(s))return s;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}})),M=e(((e,t)=>{var r=L(),n=T();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}})),R=e(((e,r)=>{var n=t(),i=g(),s=n.document,a=i(s)&&i(s.createElement);r.exports=function(e){return a?s.createElement(e):{}}})),$=e(((e,t)=>{var i=n(),s=r(),a=R();t.exports=!i&&!s((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))})),U=e((e=>{var t=n(),r=s(),i=a(),u=o(),l=h(),c=M(),p=O(),d=$(),f=Object.getOwnPropertyDescriptor;e.f=t?f:function(e,t){if(e=l(e),t=c(t),d)try{return f(e,t)}catch{}if(p(e,t))return u(!r(i.f,e,t),e[t])}})),V=e(((e,t)=>{var i=n(),s=r();t.exports=i&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),q=e(((e,t)=>{var r=g(),n=String,i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not an object")}})),W=e((e=>{var t=n(),r=$(),i=V(),s=q(),a=M(),o=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",p="configurable",d="writable";e.f=t?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:c in r?r[c]:n[c],writable:!1})}return u(e,t,r)}:u:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return u(e,t,n)}catch{}if("get"in n||"set"in n)throw o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),z=e(((e,t)=>{var r=n(),i=W(),s=o();t.exports=r?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}})),K=e(((e,t)=>{var r=n(),i=O(),s=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=i(s,"name"),u=o&&"something"===function(){}.name,l=o&&(!r||r&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:l}})),H=e(((e,t)=>{var r=u(),n=m(),i=F(),s=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),t.exports=i.inspectSource})),J=e(((e,r)=>{var n=t(),i=m(),s=n.WeakMap;r.exports=i(s)&&/native code/.test(String(s))})),X=e(((e,t)=>{var r=N(),n=B(),i=r("keys");t.exports=function(e){return i[e]||(i[e]=n(e))}})),G=e(((e,t)=>{t.exports={}})),Y=e(((e,r)=>{var n,i,s,a,o,u=J(),l=t(),c=g(),p=z(),d=O(),h=F(),f=X(),m=G(),y="Object already initialized",b=l.TypeError,v=l.WeakMap,x=function(e){return s(e)?i(e):n(e,{})},E=function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw b("Incompatible receiver, "+e+" required");return r}};u||h.state?((a=h.state||(h.state=new v)).get=a.get,a.has=a.has,a.set=a.set,n=function(e,t){if(a.has(e))throw b(y);return t.facade=e,a.set(e,t),t},i=function(e){return a.get(e)||{}},s=function(e){return a.has(e)}):(m[o=f("state")]=!0,n=function(e,t){if(d(e,o))throw b(y);return t.facade=e,p(e,o,t),t},i=function(e){return d(e,o)?e[o]:{}},s=function(e){return d(e,o)}),r.exports={set:n,get:i,has:s,enforce:x,getterFor:E}})),Q=e(((e,t)=>{var i=r(),s=m(),a=O(),o=n(),u=K().CONFIGURABLE,l=H(),c=Y(),p=c.enforce,d=c.get,h=Object.defineProperty,f=o&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(o?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=p(e);return a(n,"source")||(n.source=y.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return s(this)&&d(this).source||l(this)}),"toString")})),Z=e(((e,t)=>{var r=m(),n=W(),i=Q(),s=I();t.exports=function(e,t,a,o){o||(o={});var u=o.enumerable,l=void 0!==o.name?o.name:t;if(r(a)&&i(a,l,o),o.global)u?e[t]=a:s(t,a);else{try{o.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}})),ee=e(((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}})),te=e(((e,t)=>{var r=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}})),re=e(((e,t)=>{var r=te(),n=Math.max,i=Math.min;t.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}})),ne=e(((e,t)=>{var r=te(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}})),ie=e(((e,t)=>{var r=ne();t.exports=function(e){return r(e.length)}})),se=e(((e,t)=>{var r=h(),n=re(),i=ie(),s=function(e){return function(t,s,a){var o,u=r(t),l=i(u),c=n(a,l);if(e&&s!=s){for(;l>c;)if((o=u[c++])!=o)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===s)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}})),ae=e(((e,t)=>{var r=u(),n=O(),i=h(),s=se().indexOf,a=G(),o=r([].push);t.exports=function(e,t){var r,u=i(e),l=0,c=[];for(r in u)!n(a,r)&&n(u,r)&&o(c,r);for(;t.length>l;)n(u,r=t[l++])&&(~s(c,r)||o(c,r));return c}})),oe=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ue=e((e=>{var t=ae(),r=oe().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}})),le=e((e=>{e.f=Object.getOwnPropertySymbols})),ce=e(((e,t)=>{var r=b(),n=u(),i=ue(),s=le(),a=q(),o=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?o(t,r(e)):t}})),pe=e(((e,t)=>{var r=O(),n=ce(),i=U(),s=W();t.exports=function(e,t,a){for(var o=n(t),u=s.f,l=i.f,c=0;c<o.length;c++){var p=o[c];!r(e,p)&&(!a||!r(a,p))&&u(e,p,l(t,p))}}})),de=e(((e,t)=>{var n=r(),i=m(),s=/#|\.prototype\./,a=function(e,t){var r=u[o(e)];return r==c||r!=l&&(i(t)?n(t):!!t)},o=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a})),he=e(((e,r)=>{var n=t(),i=U().f,s=z(),a=Z(),o=I(),u=pe(),l=de();r.exports=function(e,t){var r,c,p,d,h,f=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[f]||o(f,{}):(n[f]||{}).prototype)for(c in t){if(d=t[c],p=e.dontCallGetSet?(h=i(r,c))&&h.value:r[c],!l(m?c:f+(y?".":"#")+c,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),a(r,c,d,e)}}})),fe=e((()=>{var e=he(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})})),me=e((()=>{fe()})),ye=e(((e,t)=>{var r=Q(),n=W();t.exports=function(e,t,i){return i.get&&r(i.get,t,{getter:!0}),i.set&&r(i.set,t,{setter:!0}),n.f(e,t,i)}})),ge=e(((e,t)=>{var r=q();t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}})),be=e((()=>{var e=t(),i=n(),s=ye(),a=ge(),o=r(),u=e.RegExp,l=u.prototype;i&&o((function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==n||r!==n}))&&s(l,"flags",{configurable:!0,get:a})})),ve=e(((e,t)=>{var r=l();t.exports=Array.isArray||function(e){return"Array"==r(e)}})),xe=e(((e,t)=>{var r=TypeError,n=9007199254740991;t.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}})),Ee=e(((e,t)=>{var r=l(),n=u();t.exports=function(e){if("Function"===r(e))return n(e)}})),Se=e(((e,t)=>{var r=Ee(),n=A(),s=i(),a=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}})),De=e(((e,t)=>{var r=ve(),n=ie(),i=xe(),s=Se(),a=function(e,t,o,u,l,c,p,d){for(var h,f,m=l,y=0,g=!!p&&s(p,d);y<u;)y in o&&(h=g?g(o[y],y,t):o[y],c>0&&r(h)?(f=n(h),m=a(e,t,h,f,m,c-1)-1):(i(m+1),e[m]=h),m++),y++;return m};t.exports=a})),Te=e(((e,t)=>{var r={};r[j()("toStringTag")]="z",t.exports="[object z]"===String(r)})),Ce=e(((e,t)=>{var r=Te(),n=m(),i=l(),s=j()("toStringTag"),a=Object,o="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch{}};t.exports=r?i:function(e){var t,r,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=a(e),s))?r:o?i(t):"Object"==(l=i(t))&&n(t.callee)?"Arguments":l}})),Ae=e(((e,t)=>{var n=u(),i=r(),s=m(),a=Ce(),o=b(),l=H(),c=function(){},p=[],d=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),y=!h.exec(c),g=function(e){if(!s(e))return!1;try{return d(c,p,e),!0}catch{return!1}},v=function(e){if(!s(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!f(h,l(e))}catch{return!0}};v.sham=!0,t.exports=!d||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g})),Pe=e(((e,t)=>{var r=ve(),n=Ae(),i=g(),s=j()("species"),a=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(n(t)&&(t===a||r(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}})),we=e(((e,t)=>{var r=Pe();t.exports=function(e,t){return new(r(e))(0===t?0:t)}})),ke=e((()=>{var e=he(),t=De(),r=A(),n=_(),i=ie(),s=we();e({target:"Array",proto:!0},{flatMap:function(e){var a,o=n(this),u=i(o);return r(e),(a=s(o,0)).length=t(a,o,o,u,0,1,e,arguments.length>1?arguments[1]:void 0),a}})})),Ie=e(((e,t)=>{me(),be(),ke();var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},o=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of i(t))!s.call(e,u)&&u!==a&&r(e,u,{get:()=>t[u],enumerable:!(o=n(t,u))||o.enumerable});return e},c=e=>l(r({},"__esModule",{value:!0}),e),p=a({"<define:process>"(){}}),d=o({"src/utils/try-combinations.js"(e,t){function r(){let e;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let[t,n]of r.entries())try{return{result:n()}}catch(r){0===t&&(e=r)}return{error:e}}p(),t.exports=r}}),h=o({"src/language-js/utils/get-shebang.js"(e,t){function r(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}p(),t.exports=r}}),f=o({"src/utils/text/skip-inline-comment.js"(e,t){function r(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}p(),t.exports=r}}),m=o({"src/utils/text/skip-newline.js"(e,t){function r(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let i=e.charAt(t);if(n){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}p(),t.exports=r}}),y=o({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}p();var n=r(/\s/),i=r(" \t"),s=r(",; \t"),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:a}}}),g=o({"src/utils/text/skip-trailing-comment.js"(e,t){p();var{skipEverythingButNewLine:r}=y();function n(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}t.exports=n}}),b=o({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){p();var r=f(),n=m(),i=g(),{skipSpaces:s}=y();function a(e,t){let a=null,o=t;for(;o!==a;)a=o,o=s(e,o),o=r(e,o),o=i(e,o),o=n(e,o);return o}t.exports=a}}),v={};function x(){if(typeof O>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])O="BE";else{if(513!==r[0])throw new Error("unable to figure out endianess");O="LE"}}return O}function E(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function S(){return[]}function D(){return 0}function T(){return Number.MAX_VALUE}function C(){return Number.MAX_VALUE}function A(){return[]}function P(){return"Browser"}function w(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function k(){}function I(){}function F(){return"javascript"}function N(){return"browser"}function _(){return"/tmp"}u(v,{EOL:()=>j,arch:()=>F,cpus:()=>A,default:()=>L,endianness:()=>x,freemem:()=>T,getNetworkInterfaces:()=>I,hostname:()=>E,loadavg:()=>S,networkInterfaces:()=>k,platform:()=>N,release:()=>w,tmpDir:()=>_,tmpdir:()=>B,totalmem:()=>C,type:()=>P,uptime:()=>D});var O,B,j,L,M=a({"node-modules-polyfills:os"(){p(),L={EOL:j="\n",tmpdir:B=_,tmpDir:_,networkInterfaces:k,getNetworkInterfaces:I,release:w,type:P,cpus:A,totalmem:C,freemem:T,uptime:D,loadavg:S,hostname:E,endianness:x}}}),R=o({"node-modules-polyfills-commonjs:os"(e,t){p();var r=(M(),c(v));if(r&&r.default){t.exports=r.default;for(let e in r)t.exports[e]=r[e]}else r&&(t.exports=r)}}),$=o({"node_modules/detect-newline/index.js"(e,t){p();var r=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"}}),U=o({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=R();return t=function(){return e},e}function r(){let e=n($());return r=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}p(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=f,e.parse=y,e.parseWithComments=g,e.print=b,e.strip=m;var i=/\*\/$/,s=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,d=/(\r?\n|^) *\* ?/g,h=[];function f(e){let t=e.match(a);return t?t[0].trimLeft():""}function m(e){let t=e.match(a);return t&&t[0]?e.substring(t[0].length):e}function y(e){return g(e).pragmas}function g(e){let n=(0,r().default)(e)||t().EOL;e=e.replace(s,"").replace(i,"").replace(d,"$1");let a="";for(;a!==e;)a=e,e=e.replace(l,`${n}$1 $2${n}`);e=e.replace(u,"").trimRight();let p,f=Object.create(null),m=e.replace(c,"").replace(u,"").trimRight();for(;p=c.exec(e);){let e=p[2].replace(o,"");"string"==typeof f[p[1]]||Array.isArray(f[p[1]])?f[p[1]]=h.concat(f[p[1]],e):f[p[1]]=e}return{comments:m,pragmas:f}}function b(e){let{comments:n="",pragmas:i={}}=e,s=(0,r().default)(n)||t().EOL,a="/**",o=" *",u=" */",l=Object.keys(i),c=l.map((e=>v(e,i[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>`${o} ${e}${s}`)).join("");if(!n){if(0===l.length)return"";if(1===l.length&&!Array.isArray(i[l[0]])){let e=i[l[0]];return`${a} ${v(l[0],e)[0]}${u}`}}let p=n.split(s).map((e=>`${o} ${e}`)).join(s)+s;return a+s+(n?p:"")+(n&&l.length?o+s:"")+c+u}function v(e,t){return h.concat(t).map((t=>`@${e} ${t}`.trim()))}}}),V=o({"src/common/end-of-line.js"(e,t){function r(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function n(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function i(e,t){let r;switch(t){case"\n":r=/\n/g;break;case"\r":r=/\r/g;break;case"\r\n":r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function s(e){return e.replace(/\r\n?/g,"\n")}p(),t.exports={guessEndOfLine:r,convertEndOfLineToChars:n,countEndOfLineChars:i,normalizeEndOfLine:s}}}),q=o({"src/language-js/pragma.js"(e,t){p();var{parseWithComments:r,strip:n,extract:i,print:s}=U(),{normalizeEndOfLine:a}=V(),o=h();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let n=i(e),{pragmas:s,comments:a}=r(n);return{shebang:t,text:e,pragmas:s,comments:a}}function l(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")}function c(e){let{shebang:t,text:r,pragmas:i,comments:o}=u(e),l=n(r),c=s({pragmas:Object.assign({format:""},i),comments:o.trimStart()});return(t?`${t}\n`:"")+a(c)+(l.startsWith("\n")?"\n":"\n\n")+l}t.exports={hasPragma:l,insertPragma:c}}}),W=o({"src/utils/is-non-empty-array.js"(e,t){function r(e){return Array.isArray(e)&&e.length>0}p(),t.exports=r}}),z=o({"src/language-js/loc.js"(e,t){p();var r=W();function n(e){var t,i;let s=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}function a(e,t){let r=i(e);return Number.isInteger(r)&&r===i(t)}function o(e,t){return s(e,t)&&a(e,t)}t.exports={locStart:n,locEnd:i,hasSameLocStart:s,hasSameLoc:o}}}),K=o({"src/language-js/parse/utils/create-parser.js"(e,t){p();var{hasPragma:r}=q(),{locStart:n,locEnd:i}=z();function s(e){return e="function"==typeof e?{parse:e}:e,Object.assign({astFormat:"estree",hasPragma:r,locStart:n,locEnd:i},e)}t.exports=s}}),H=o({"src/common/parser-create-error.js"(e,t){function r(e,t){let r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}p(),t.exports=r}}),J=o({"src/language-js/parse/utils/create-babel-parse-error.js"(e,t){p();var r=H();function n(e){let{message:t,loc:n}=e;return r(t.replace(/ \(.*\)/,""),{start:{line:n?n.line:0,column:n?n.column+1:0}})}t.exports=n}}),X=o({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function r(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}p(),t.exports=r}}),G=o({"src/language-js/utils/is-block-comment.js"(e,t){p();var r=new Set(["Block","CommentBlock","MultiLine"]),n=e=>r.has(null==e?void 0:e.type);t.exports=n}}),Y=o({"src/language-js/utils/is-type-cast-comment.js"(e,t){p();var r=G();function n(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}t.exports=n}}),Q=o({"src/utils/get-last.js"(e,t){p();var r=e=>e[e.length-1];t.exports=r}}),Z=o({"src/language-js/parse/postprocess/visit-node.js"(e,t){function r(e,t){if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=r(e[n],t);return e}if(e&&"object"==typeof e&&"string"==typeof e.type){let n=Object.keys(e);for(let i=0;i<n.length;i++)e[n[i]]=r(e[n[i]],t);return t(e)||e}return e}p(),t.exports=r}}),ee=o({"src/language-js/parse/postprocess/throw-syntax-error.js"(e,t){p();var r=H();function n(e,t){let{start:n,end:i}=e.loc;throw r(t,{start:{line:n.line,column:n.column+1},end:{line:i.line,column:i.column+1}})}t.exports=n}}),te=o({"src/language-js/parse/postprocess/index.js"(e,t){p();var{locStart:r,locEnd:n}=z(),i=X(),s=Y(),a=Q(),o=Z(),u=ee();function l(e,t){if("typescript"!==t.parser&&"flow"!==t.parser&&"acorn"!==t.parser&&"espree"!==t.parser&&"meriyah"!==t.parser){let t=new Set;e=o(e,(e=>{e.leadingComments&&e.leadingComments.some(s)&&t.add(r(e))})),e=o(e,(e=>{if("ParenthesizedExpression"===e.type){let{expression:n}=e;if("TypeCastExpression"===n.type)return n.range=e.range,n;let i=r(e);if(!t.has(i))return n.extra=Object.assign(Object.assign({},n.extra),{},{parenthesized:!0}),n}}))}return e=o(e,(e=>{switch(e.type){case"ChainExpression":return c(e.expression);case"LogicalExpression":if(d(e))return h(e);break;case"VariableDeclaration":{let t=a(e.declarations);t&&t.init&&l(e,t);break}case"TSParenthesizedType":return i(e.typeAnnotation)||"TSThisType"===e.typeAnnotation.type||(e.typeAnnotation.range=[r(e),n(e)]),e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){let t=r(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}break;case"ObjectExpression":if("typescript"===t.parser){let t=e.properties.find((e=>"Property"===e.type&&"TSEmptyBodyFunctionExpression"===e.value.type));t&&u(t.value,"Unexpected token.")}break;case"SequenceExpression":{let t=a(e.expressions);e.range=[r(e),Math.min(n(t),n(e))];break}case"TopicReference":t.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:i}=e;if("meriyah"===t.parser&&i&&"Identifier"===i.type){let s=t.originalText.slice(r(i),n(i));(s.startsWith('"')||s.startsWith("'"))&&(e.exported=Object.assign(Object.assign({},e.exported),{},{type:"Literal",value:e.exported.name,raw:s}))}break}case"PropertyDefinition":if("meriyah"===t.parser&&e.static&&!e.computed&&!e.key){let t="static",n=r(e);Object.assign(e,{static:!1,key:{type:"Identifier",name:t,range:[n,n+t.length]}})}}}));function l(e,i){";"!==t.originalText[n(i)]&&(e.range=[r(e),n(i)])}}function c(e){switch(e.type){case"CallExpression":e.type="OptionalCallExpression",e.callee=c(e.callee);break;case"MemberExpression":e.type="OptionalMemberExpression",e.object=c(e.object);break;case"TSNonNullExpression":e.expression=c(e.expression)}return e}function d(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function h(e){return d(e)?h({type:"LogicalExpression",operator:e.operator,left:h({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[r(e.left),n(e.right.left)]}),right:e.right.right,range:[r(e),n(e)]}):e}t.exports=l}}),re=o({"node_modules/@babel/parser/lib/index.js"(e){p(),Object.defineProperty(e,"__esModule",{value:!0});var t={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function r(e){if(e&&null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");let r={};for(let n of Object.keys(t))r[n]=e&&null!=e[n]?e[n]:t[n];return r}var n=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},i={brace:new n("{"),j_oTag:new n("<tag"),j_cTag:new n("</tag"),j_expr:new n("<tag>...</tag>",!0)};i.template=new n("`",!0);var s=!0,a=!0,o=!0,u=!0,l=!0,c=!0,d=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}},h=new Map;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;let r=D(e,t);return h.set(e,r),r}function m(e,t){return D(e,{beforeExpr:s,binop:t})}var y=-1,g=[],b=[],v=[],x=[],E=[],S=[];function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,i,s;return++y,b.push(e),v.push(null!=(r=t.binop)?r:-1),x.push(null!=(n=t.beforeExpr)&&n),E.push(null!=(i=t.startsExpr)&&i),S.push(null!=(s=t.prefix)&&s),g.push(new d(e,t)),y}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,i,s;return++y,h.set(e,y),b.push(e),v.push(null!=(r=t.binop)?r:-1),x.push(null!=(n=t.beforeExpr)&&n),E.push(null!=(i=t.startsExpr)&&i),S.push(null!=(s=t.prefix)&&s),g.push(new d("name",t)),y}var C={bracketL:D("[",{beforeExpr:s,startsExpr:a}),bracketHashL:D("#[",{beforeExpr:s,startsExpr:a}),bracketBarL:D("[|",{beforeExpr:s,startsExpr:a}),bracketR:D("]"),bracketBarR:D("|]"),braceL:D("{",{beforeExpr:s,startsExpr:a}),braceBarL:D("{|",{beforeExpr:s,startsExpr:a}),braceHashL:D("#{",{beforeExpr:s,startsExpr:a}),braceR:D("}"),braceBarR:D("|}"),parenL:D("(",{beforeExpr:s,startsExpr:a}),parenR:D(")"),comma:D(",",{beforeExpr:s}),semi:D(";",{beforeExpr:s}),colon:D(":",{beforeExpr:s}),doubleColon:D("::",{beforeExpr:s}),dot:D("."),question:D("?",{beforeExpr:s}),questionDot:D("?."),arrow:D("=>",{beforeExpr:s}),template:D("template"),ellipsis:D("...",{beforeExpr:s}),backQuote:D("`",{startsExpr:a}),dollarBraceL:D("${",{beforeExpr:s,startsExpr:a}),templateTail:D("...`",{startsExpr:a}),templateNonTail:D("...${",{beforeExpr:s,startsExpr:a}),at:D("@"),hash:D("#",{startsExpr:a}),interpreterDirective:D("#!..."),eq:D("=",{beforeExpr:s,isAssign:u}),assign:D("_=",{beforeExpr:s,isAssign:u}),slashAssign:D("_=",{beforeExpr:s,isAssign:u}),xorAssign:D("_=",{beforeExpr:s,isAssign:u}),moduloAssign:D("_=",{beforeExpr:s,isAssign:u}),incDec:D("++/--",{prefix:l,postfix:c,startsExpr:a}),bang:D("!",{beforeExpr:s,prefix:l,startsExpr:a}),tilde:D("~",{beforeExpr:s,prefix:l,startsExpr:a}),doubleCaret:D("^^",{startsExpr:a}),doubleAt:D("@@",{startsExpr:a}),pipeline:m("|>",0),nullishCoalescing:m("??",1),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),lt:m("</>/<=/>=",7),gt:m("</>/<=/>=",7),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),bitShiftL:m("<</>>/>>>",8),bitShiftR:m("<</>>/>>>",8),plusMin:D("+/-",{beforeExpr:s,binop:9,prefix:l,startsExpr:a}),modulo:D("%",{binop:10,startsExpr:a}),star:D("*",{binop:10}),slash:m("/",10),exponent:D("**",{beforeExpr:s,binop:11,rightAssociative:!0}),_in:f("in",{beforeExpr:s,binop:7}),_instanceof:f("instanceof",{beforeExpr:s,binop:7}),_break:f("break"),_case:f("case",{beforeExpr:s}),_catch:f("catch"),_continue:f("continue"),_debugger:f("debugger"),_default:f("default",{beforeExpr:s}),_else:f("else",{beforeExpr:s}),_finally:f("finally"),_function:f("function",{startsExpr:a}),_if:f("if"),_return:f("return",{beforeExpr:s}),_switch:f("switch"),_throw:f("throw",{beforeExpr:s,prefix:l,startsExpr:a}),_try:f("try"),_var:f("var"),_const:f("const"),_with:f("with"),_new:f("new",{beforeExpr:s,startsExpr:a}),_this:f("this",{startsExpr:a}),_super:f("super",{startsExpr:a}),_class:f("class",{startsExpr:a}),_extends:f("extends",{beforeExpr:s}),_export:f("export"),_import:f("import",{startsExpr:a}),_null:f("null",{startsExpr:a}),_true:f("true",{startsExpr:a}),_false:f("false",{startsExpr:a}),_typeof:f("typeof",{beforeExpr:s,prefix:l,startsExpr:a}),_void:f("void",{beforeExpr:s,prefix:l,startsExpr:a}),_delete:f("delete",{beforeExpr:s,prefix:l,startsExpr:a}),_do:f("do",{isLoop:o,beforeExpr:s}),_for:f("for",{isLoop:o}),_while:f("while",{isLoop:o}),_as:T("as",{startsExpr:a}),_assert:T("assert",{startsExpr:a}),_async:T("async",{startsExpr:a}),_await:T("await",{startsExpr:a}),_from:T("from",{startsExpr:a}),_get:T("get",{startsExpr:a}),_let:T("let",{startsExpr:a}),_meta:T("meta",{startsExpr:a}),_of:T("of",{startsExpr:a}),_sent:T("sent",{startsExpr:a}),_set:T("set",{startsExpr:a}),_static:T("static",{startsExpr:a}),_using:T("using",{startsExpr:a}),_yield:T("yield",{startsExpr:a}),_asserts:T("asserts",{startsExpr:a}),_checks:T("checks",{startsExpr:a}),_exports:T("exports",{startsExpr:a}),_global:T("global",{startsExpr:a}),_implements:T("implements",{startsExpr:a}),_intrinsic:T("intrinsic",{startsExpr:a}),_infer:T("infer",{startsExpr:a}),_is:T("is",{startsExpr:a}),_mixins:T("mixins",{startsExpr:a}),_proto:T("proto",{startsExpr:a}),_require:T("require",{startsExpr:a}),_satisfies:T("satisfies",{startsExpr:a}),_keyof:T("keyof",{startsExpr:a}),_readonly:T("readonly",{startsExpr:a}),_unique:T("unique",{startsExpr:a}),_abstract:T("abstract",{startsExpr:a}),_declare:T("declare",{startsExpr:a}),_enum:T("enum",{startsExpr:a}),_module:T("module",{startsExpr:a}),_namespace:T("namespace",{startsExpr:a}),_interface:T("interface",{startsExpr:a}),_type:T("type",{startsExpr:a}),_opaque:T("opaque",{startsExpr:a}),name:D("name",{startsExpr:a}),string:D("string",{startsExpr:a}),num:D("num",{startsExpr:a}),bigint:D("bigint",{startsExpr:a}),decimal:D("decimal",{startsExpr:a}),regexp:D("regexp",{startsExpr:a}),privateName:D("#name",{startsExpr:a}),eof:D("eof"),jsxName:D("jsxName"),jsxText:D("jsxText",{beforeExpr:!0}),jsxTagStart:D("jsxTagStart",{startsExpr:!0}),jsxTagEnd:D("jsxTagEnd"),placeholder:D("%%",{startsExpr:!0})};function A(e){return e>=93&&e<=130}function P(e){return e<=92}function w(e){return e>=58&&e<=130}function k(e){return e>=58&&e<=134}function I(e){return x[e]}function F(e){return E[e]}function N(e){return e>=29&&e<=33}function _(e){return e>=127&&e<=129}function O(e){return e>=90&&e<=92}function B(e){return e>=58&&e<=92}function j(e){return e>=39&&e<=59}function L(e){return 34===e}function M(e){return S[e]}function R(e){return e>=119&&e<=121}function $(e){return e>=122&&e<=128}function U(e){return b[e]}function V(e){return v[e]}function q(e){return 57===e}function W(e){return e>=24&&e<=25}function z(e){return g[e]}function K(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}g[8].updateContext=e=>{e.pop()},g[5].updateContext=g[7].updateContext=g[23].updateContext=e=>{e.push(i.brace)},g[22].updateContext=e=>{e[e.length-1]===i.template?e.pop():e.push(i.template)},g[140].updateContext=e=>{e.push(i.j_expr,i.j_oTag)};var H=class{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}},J=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function X(e,t){let{line:r,column:n,index:i}=e;return new H(r,n+t,i+t)}var G={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;return{get(){return e.reduce(((e,t)=>e[t]),this)},set(r){e.reduce(((e,n,i)=>i===t?e[n]=r:e[n]),this)}}},Q=(e,t,r)=>Object.keys(r).map((e=>[e,r[e]])).filter((e=>{let[,t]=e;return!!t})).map((e=>{let[t,r]=e;return[t,"function"==typeof r?{value:r,enumerable:!1}:"string"==typeof r.reflect?Object.assign({},r,Y(r.reflect.split("."))):r]})).reduce(((e,t)=>{let[r,n]=t;return Object.defineProperty(e,r,Object.assign({configurable:!0},n))}),Object.assign(new e,t)),Z={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:G.SourceTypeModuleError},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:G.SourceTypeModuleError}},ee={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},te=e=>{let{type:t,prefix:r}=e;return"UpdateExpression"===t?ee.UpdateExpression[String(r)]:ee[t]},re={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:r}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${r}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${te(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${te(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:r}=e;return`Unexpected token${r?` '${r}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:r}=e;return`The only valid meta property for ${t} is ${t}.${r}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},ne={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},ie=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),se={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${te({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},ae=["toMessage"],oe=["message"];function ue(e){let{toMessage:t}=e,r=K(e,ae);return function e(n){let{loc:i,details:s}=n;return Q(SyntaxError,Object.assign({},r,{loc:i}),{clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.loc||{};return e({loc:new H("line"in r?r.line:this.loc.line,"column"in r?r.column:this.loc.column,"index"in r?r.index:this.loc.index),details:Object.assign({},this.details,t.details)})},details:{value:s,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(e){Object.defineProperty(this,"message",{value:e})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in s&&{reflect:"details.missingPlugin",enumerable:!0}})}}function le(e,t){if(Array.isArray(e))return t=>le(t,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:a}=s,o=K(s,oe),u="string"==typeof a?()=>a:a;r[n]=ue(Object.assign({code:G.SyntaxError,reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var ce=Object.assign({},le(Z),le(re),le(ne),le`pipelineOperator`(se)),{defineProperty:pe}=Object,de=(e,t)=>pe(e,t,{enumerable:!1,value:e[t]});function he(e){return e.loc.start&&de(e.loc.start,"index"),e.loc.end&&de(e.loc.end,"index"),e}var fe=e=>class extends e{parse(){let e=he(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(he)),e}parseRegExpLiteral(e){let{pattern:t,flags:r}=e,n=null;try{n=new RegExp(t,r)}catch{}let i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;let r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);let s=e.directives.map((e=>this.directiveToStmt(e)));e.body=s.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,i,s){this.parseMethod(t,r,n,i,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,n,i,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){let e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition"),e}parseClassPrivateProperty(){let e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition",e.computed=!1),e}parseObjectMethod(e,t,r,n,i){let s=super.parseObjectMethod(e,t,r,n,i);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,n){let i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(ce.PatternHasAccessor,{at:e.key}):e.method?this.raise(ce.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){let r=super.finishCallExpression(e,t);var n;return"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],this.hasPlugin("importAssertions")&&(r.attributes=null!=(n=r.arguments[1])?n:null),delete r.arguments,delete r.callee),r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var i;let{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){let i=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if(("OptionalMemberExpression"===i.type||"OptionalCallExpression"===i.type)&&(i.type=i.type.substring(8)),n.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else("MemberExpression"===i.type||"CallExpression"===i.type)&&(i.optional=!1);return i}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,r){return he(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t),he(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),he(e)}},me="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ye="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ge=new RegExp("["+me+"]"),be=new RegExp("["+me+ye+"]");me=ye=null;var ve=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,38,6,186,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,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],xe=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Ee(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Se(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ge.test(String.fromCharCode(e)):Ee(e,ve)))}function De(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&be.test(String.fromCharCode(e)):Ee(e,ve)||Ee(e,xe))))}var Te={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Ce=new Set(Te.keyword),Ae=new Set(Te.strict),Pe=new Set(Te.strictBind);function we(e,t){return t&&"await"===e||"enum"===e}function ke(e,t){return we(e,t)||Ae.has(e)}function Ie(e){return Pe.has(e)}function Fe(e,t){return ke(e,t)||Ie(e)}function Ne(e){return Ce.has(e)}function _e(e,t,r){return 64===e&&64===t&&Se(r)}var Oe=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","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Be(e){return Oe.has(e)}var je=0,Le=1,Me=2,Re=4,$e=8,Ue=16,Ve=32,qe=64,We=128,ze=256,Ke=Le|Me|We|ze,He=1,Je=2,Xe=4,Ge=8,Ye=16,Qe=64,Ze=128,et=256,tt=512,rt=1024,nt=2048,it=4096,st=8192,at=He|Je|Ge|Ze|st,ot=0|He|Ge|st,ut=0|He|Ge|0,lt=0|He|Xe|0,ct=0|He|Ye|0,pt=0|Je|Ze,dt=0|Je,ht=He|Je|Ge|et|st,ft=0|rt,mt=0|Qe,yt=0|He|Qe,gt=ht|tt,bt=0|rt,vt=0|Je|it,xt=nt,Et=4,St=2,Dt=1,Tt=St|Dt,Ct=St|Et,At=Dt|Et,Pt=St,wt=Dt,kt=0,It=class{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e}},Ft=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&Le)>0}get inFunction(){return(this.currentVarScopeFlags()&Me)>0}get allowSuper(){return(this.currentThisScopeFlags()&Ue)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&Ve)>0}get inClass(){return(this.currentThisScopeFlags()&qe)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&qe)>0&&0==(e&Me)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&We)return!0;if(t&(Ke|qe))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&Me)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new It(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(Me|We)||!this.parser.inModule&&e.flags&Le)}declareName(e,t,r){let n=this.currentScope();if(t&Ge||t&Ye)this.checkRedeclarationInScope(n,e,t,r),t&Ye?n.functions.add(e):n.lexical.add(e),t&Ge&&this.maybeExportDefined(n,e);else if(t&Xe)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.var.add(e),this.maybeExportDefined(n,e),!(n.flags&Ke));--i);this.parser.inModule&&n.flags&Le&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&Le&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(ce.VarRedeclaration,{at:n,identifierName:t})}isRedeclaredInScope(e,t,r){return!!(r&He)&&(r&Ge?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):r&Ye?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(e.flags&$e&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t))}checkLocalExport(e){let{name:t}=e,r=this.scopeStack[0];!r.lexical.has(t)&&!r.var.has(t)&&!r.functions.has(t)&&this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&Ke)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&(Ke|qe)&&!(t&Re))return t}}},Nt=class extends It{constructor(){super(...arguments),this.declareFunctions=new Set}},_t=class extends Ft{createScope(e){return new Nt(e)}declareName(e,t,r){let n=this.currentScope();if(t&nt)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){return!!super.isRedeclaredInScope(e,t,r)||!!(r&nt)&&!e.declareFunctions.has(t)&&(e.lexical.has(t)||e.functions.has(t))}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Ot=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}};function Bt(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function jt(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}function Lt(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Mt(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?Lt(e,r.comments):Bt(n,r.comments)}var Rt=class extends Ot{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}processComment(e){let{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1,i=t[n];i.start===e.end&&(i.leadingNode=e,n--);let{start:s}=e;for(;n>=0;n--){let r=t[n],i=r.end;if(!(i>s)){i===s&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Bt(e.leadingNode,t),null!==e.trailingNode&&jt(e.trailingNode,t);else{let{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Mt(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":Mt(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Mt(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Mt(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Mt(r,r.specifiers,e);break;default:Lt(r,t)}else Lt(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(0===r)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){let i=n[s],a=i.end;if(i.start===r)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}},$t=/\r\n?|[\n\u2028\u2029]/,Ut=new RegExp($t.source,"g");function Vt(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var qt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wt=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function zt(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Kt=class{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=137,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[i.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}init(e){let{strictMode:t,sourceType:r,startLine:n,startColumn:i}=e;this.strict=!1!==t&&(!0===t||"module"===r),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new H(n,i,0)}curPosition(){return new H(this.curLine,this.pos-this.lineStart,this.pos)}clone(e){let t=new Kt,r=Object.keys(this);for(let n=0,i=r.length;n<i;n++){let i=r[n],s=this[i];!e&&Array.isArray(s)&&(s=s.slice()),t[i]=s}return t}},Ht=function(e){return e>=48&&e<=57},Jt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Xt={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Gt(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:d}=t;for(;;){if(r>=d){s.unterminated(a,o,u),l+=t.slice(p,r);break}let h=t.charCodeAt(r);if(Yt(e,h,t,r)){l+=t.slice(p,r);break}if(92===h){l+=t.slice(p,r);let a=Qt(t,r,n,i,"template"===e,s);null!==a.ch||c?l+=a.ch:c={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),p=r}else 8232===h||8233===h?(++i,n=++r):10===h||13===h?"template"===e?(l+=t.slice(p,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++i,p=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function Yt(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Qt(e,t,r,n,i,s){let a=!i;t++;let o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:t}=Zt(e,t,r,n,2,!1,a,s)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=tr(e,t,r,n,a,s)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let a=t-1,u=e.slice(a,t+2).match(/^[0-7]+/)[0],l=parseInt(u,8);l>255&&(u=u.slice(0,-1),l=parseInt(u,8)),t+=u.length-1;let c=e.charCodeAt(t);if("0"!==u||56===c||57===c){if(i)return o(null);s.strictNumericEscape(a,r,n)}return o(String.fromCharCode(l))}return o(String.fromCharCode(u))}}function Zt(e,t,r,n,i,s,a,o){let u,l=t;return({n:u,pos:t}=er(e,t,r,n,16,i,s,!1,o,!a)),null===u&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function er(e,t,r,n,i,s,a,o,u,l){let c=t,p=16===i?Jt.hex:Jt.decBinOct,d=16===i?Xt.hex:10===i?Xt.dec:8===i?Xt.oct:Xt.bin,h=!1,f=0;for(let c=0,m=null==s?1/0:s;c<m;++c){let s,c=e.charCodeAt(t);if(95!==c||"bail"===o){if(s=c>=97?c-97+10:c>=65?c-65+10:Ht(c)?c-48:1/0,s>=i){if(s<=9&&l)return{n:null,pos:t};if(s<=9&&u.invalidDigit(t,r,n,i))s=0;else{if(!a)break;s=0,h=!0}}++t,f=f*i+s}else{let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!d(s)||p.has(i)||p.has(s)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===c||null!=s&&t-c!==s||h?{n:null,pos:t}:{n:f,pos:t}}function tr(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=Zt(e,t,r,n,e.indexOf("}",t)-t,!0,i,s)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:a,pos:t}=Zt(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}var rr=["at"],nr=["at"];function ir(e,t,r){return new H(r,e-t,e)}var sr=new Set([103,109,115,105,121,117,100,118]),ar=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new J(e.startLoc,e.endLoc)}},or=class extends Rt{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(ce.InvalidDigit,{at:ir(e,t,r),radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(ce.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(ce.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(ce.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(ce.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(ce.StrictNumericEscape,{at:ir(e,t,r)})},unterminated:(e,t,r)=>{throw this.raise(ce.UnterminatedString,{at:ir(e-1,t,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(ce.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(ce.UnterminatedTemplate,{at:ir(e,t,r)})}}),this.state=new Kt,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new ar(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return qt.lastIndex=e,qt.test(this.input)?qt.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){let r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,r]=e;return this.raise(t,{at:r})})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(137):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(ce.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=n+e.length,Ut.lastIndex=r+2;Ut.test(this.input)&&Ut.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Ut.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(r+2,n),start:r,end:n+e.length,loc:new J(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){let t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Vt(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,s={type:"CommentLine",value:this.input.slice(r+e,i),start:r,end:i,loc:new J(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){let e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(zt(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){let r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==r||this.inModule||!this.options.annexB)break e;{let e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){let r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(ce.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?ce.RecordExpressionHashIncorrectStartSyntaxType:ce.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else Se(t)?(++this.state.pos,this.finishToken(136,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!Vt(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61===n&&!this.state.inType&&(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ce.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(Se(e))return void this.readWord(e)}throw this.raise(ce.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e,t,r=this.state.startLoc,n=this.state.start+1,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(ce.UnterminatedRegExp,{at:X(r,1)});let n=this.input.charCodeAt(i);if(Vt(n))throw this.raise(ce.UnterminatedRegExp,{at:X(r,1)});if(e)e=!1;else{if(91===n)t=!0;else if(93===n&&t)t=!1;else if(47===n&&!t)break;e=92===n}}let s=this.input.slice(n,i);++i;let a="",o=()=>X(r,i+2-n);for(;i<this.length;){let e=this.codePointAtPos(i),t=String.fromCharCode(e);if(sr.has(e))118===e?(this.expectPlugin("regexpUnicodeSets",o()),a.includes("u")&&this.raise(ce.IncompatibleRegExpUVFlags,{at:o()})):117===e&&a.includes("v")&&this.raise(ce.IncompatibleRegExpUVFlags,{at:o()}),a.includes(t)&&this.raise(ce.DuplicateRegExpFlags,{at:o()});else{if(!De(e)&&92!==e)break;this.raise(ce.MalformedRegExpFlags,{at:o()})}++i,a+=t}this.state.pos=i,this.finishToken(135,{pattern:s,flags:a})}readInt(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{n:i,pos:s}=er(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){let t=this.state.curPosition(),r=!1;this.state.pos+=2;let n=this.readInt(e);null==n&&this.raise(ce.InvalidDigit,{at:X(t,2),radix:e});let i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,r=!0;else if(109===i)throw this.raise(ce.InvalidDecimal,{at:t});if(Se(this.codePointAtPos(this.state.pos)))throw this.raise(ce.NumberIdentifier,{at:this.state.curPosition()});if(r){let e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,e)}else this.finishToken(132,n)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,i=!1,s=!1,a=!1,o=!1;!e&&null===this.readInt(10)&&this.raise(ce.InvalidNumber,{at:this.state.curPosition()});let u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(ce.StrictOctalLiteral,{at:r}),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(ce.ZeroDigitNumericSeparator,{at:X(r,t)})}o=u&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(46===l&&!o&&(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),(69===l||101===l)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(43===l||45===l)&&++this.state.pos,null===this.readInt(10)&&this.raise(ce.InvalidOrMissingExponent,{at:r}),n=!0,a=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((n||u)&&this.raise(ce.InvalidBigIntLiteral,{at:r}),++this.state.pos,i=!0),109===l&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(ce.InvalidDecimal,{at:r}),++this.state.pos,s=!0),Se(this.codePointAtPos(this.state.pos)))throw this.raise(ce.NumberIdentifier,{at:this.state.curPosition()});let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(133,c);if(s)return void this.finishToken(134,c);let p=o?parseInt(c,8):parseFloat(c);this.finishToken(132,p)}readCodePoint(e){let{code:t,pos:r}=tr(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:i}=Gt(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(131,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:i,lineStart:s}=Gt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new H(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let{at:r}=t,n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,{at:r}):this.state.strictErrors.set(n,[e,r])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(De(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===r?Se:De;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(ce.MissingUnicodeEscape,{at:this.state.curPosition()}),n=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(ce.EscapedCharNotAnIdentifier,{at:e}),t+=String.fromCodePoint(s)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=h.get(t);void 0!==r?this.finishToken(r,U(r)):this.finishToken(130,t)}checkKeywordEscapes(){let{type:e}=this.state;B(e)&&this.state.containsEsc&&this.raise(ce.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:U(e)})}raise(e,t){let{at:r}=t,n=K(t,rr),i=e({loc:r instanceof H?r:r.loc.start,details:n});if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t){let{at:r}=t,n=K(t,nr),i=r instanceof H?r:r.loc.start,s=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.loc.index===s)return a[t]=e({loc:i,details:n});if(r.loc.index<s)break}return this.raise(e,t)}updateContext(e){}unexpected(e,t){throw this.raise(ce.UnexpectedToken,{expected:t?U(t):null,at:null!=e?e:this.state.startLoc})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(ce.MissingPlugin,{at:null!=t?t:this.state.startLoc,missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(ce.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,{at:ir(t,r,n)})}}},ur=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},lr=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ur)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(ce.InvalidPrivateFieldResolution,{at:n,identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current(),a=n.has(e);if(t&Tt){let r=a&&i.get(e);r?(a=(r&Tt)==(t&Tt)||(r&Et)!=(t&Et),a||i.delete(e)):a||i.set(e,t)}a&&this.parser.raise(ce.PrivateNameRedeclaration,{at:r,identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(ce.InvalidPrivateFieldResolution,{at:t,identifierName:e})}},cr=0,pr=1,dr=2,hr=3,fr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cr;this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return this.type===dr||this.type===pr}isCertainlyParameterDeclaration(){return this.type===hr}},mr=class extends fr{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let{at:r}=t,n=r.index;this.declarationErrors.set(n,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},yr=class{constructor(e){this.parser=void 0,this.stack=[new fr],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let{at:r}=t,n={at:r.loc.start},{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,n),a=i[--s]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{at:r}=t,{stack:n}=this,i=n[n.length-1],s={at:r.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(e,s);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,s)}}recordAsyncArrowParametersError(e){let{at:t}=e,{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===dr&&i.recordDeclarationError(ce.AwaitBindingIdentifier,{at:t}),i=r[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[r,n]=t;this.parser.raise(r,{at:n});let i=e.length-2,s=e[i];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(n.index),s=e[--i]}))}};function gr(){return new fr(hr)}function br(){return new mr(pr)}function vr(){return new mr(dr)}function xr(){return new fr}var Er=0,Sr=1,Dr=2,Tr=4,Cr=8,Ar=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&Dr)>0}get hasYield(){return(this.currentFlags()&Sr)>0}get hasReturn(){return(this.currentFlags()&Tr)>0}get hasIn(){return(this.currentFlags()&Cr)>0}};function Pr(e,t){return(e?Dr:0)|(t?Sr:0)}var wr=class extends or{addExtra(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;let i=e.extra=e.extra||{};n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let r=e+t.length;if(this.input.slice(e,r)===t){let e=this.input.charCodeAt(r);return!(De(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,{at:this.state.startLoc});this.unexpected(null,e)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return $t.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Wt.lastIndex=this.state.end,Wt.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(ce.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{let n=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s}=e;if(!t)return!!(r||n||s||i);null!=r&&this.raise(ce.InvalidCoverInitializedName,{at:r}),null!=n&&this.raise(ce.DuplicateProto,{at:n}),null!=i&&this.raise(ce.UnexpectedPrivateField,{at:i}),null!=s&&this.unexpected(s)}isLiteralPropertyName(){return k(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let a=this.prodParam;this.prodParam=new Ar;let o=this.classScope;this.classScope=new lr(this);let u=this.expressionScope;return this.expressionScope=new yr(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=u}}enterInitialScopes(){let e=Er;this.inModule&&(e|=Dr),this.scope.enter(Le),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},kr=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},Ir=class{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new J(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}},Fr=Ir.prototype;function Nr(e){return _r(e)}function _r(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(Fr);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,"Placeholder"===t&&(u.expectedNode=e.expectedNode),u}function Or(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if("Placeholder"===t)return Nr(e);let o=Object.create(Fr);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=a,o.value=e.value,o}Fr.__clone=function(){let e=new Ir(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};var Br=class extends wr{startNode(){return new Ir(this,this.state.start,this.state.startLoc)}startNodeAt(e){return new Ir(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},jr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Lr=le`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:r}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${r}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:r}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${r}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:r}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:r,explicitType:n}=e;return`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${r}\` needs to be a ${n} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:r}=e;return`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:r}=e;return`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:r,suggestion:n}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${n}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:r}=e;return`Number enum members need to be initialized, e.g. \`${r} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitailized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:r}=e;return`\`declare export ${t}\` is not supported. Use \`${r}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Mr(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function Rr(e){return"type"===e.importKind||"typeof"===e.importKind}function $r(e){return w(e)&&97!==e}var Ur={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Vr(e,t){let r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}var qr=/\*?\s*@((?:no)?flow)\b/,Wr=e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return _t}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){131!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=qr.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>t.index+1&&this.raise(Lr.UnexpectedSpaceBetweenModuloChecks,{at:t}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,xt,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(125)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(Lr.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e)):this.isContextual(128)?this.flowParseDeclareTypeAlias(e):this.isContextual(129)?this.flowParseDeclareOpaqueType(e):this.isContextual(127)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,lt,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(je),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(Lr.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(e)):(this.expectContextual(123,Lr.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,i=!1;return r.forEach((e=>{Mr(e)?("CommonJS"===n&&this.raise(Lr.AmbiguousDeclareModuleKind,{at:e}),n="ES"):"DeclareModuleExports"===e.type&&(i&&this.raise(Lr.DuplicateDeclareModuleExports,{at:e}),"ES"===n&&this.raise(Lr.AmbiguousDeclareModuleKind,{at:e}),n="CommonJS",i=!0)})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!t){let e=this.state.value;throw this.raise(Lr.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:e,suggestion:Ur[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(129)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?ct:ot,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(this.eatContextual(115))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(111))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Lr.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,t,r){jr.has(e)&&this.raise(r?Lr.AssignReservedType:Lr.UnexpectedReservedType,{at:t,reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,ot,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,ot,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(Lr.MissingTypeParamDefault,{at:t}),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let r=!1;do{let e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){let r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:r,allowSpread:n,allowProto:i,allowInexact:s}=e,a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let u,l,c=!1;for(r&&this.match(6)?(this.expect(6),u=9,l=!0):(this.expect(5),u=8,l=!1),o.exact=l;!this.match(u);){let e=!1,r=null,a=null,u=this.startNode();if(i&&this.isContextual(116)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=this.state.startLoc,t=!1)}if(t&&this.isContextual(104)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}let p=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(p&&this.unexpected(p.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,e))):o.indexers.push(this.flowParseObjectTypeIndexer(u,e,p));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),p&&this.unexpected(p.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,e));else{let t="init";(this.isContextual(98)||this.isContextual(103))&&k(this.lookahead().type)&&(t=this.state.value,this.next());let i=this.flowParseObjectTypeProperty(u,e,r,p,t,n,null!=s?s:!l);null===i?(c=!0,a=this.state.lastTokStartLoc):o.properties.push(i)}this.flowObjectTypeSemicolon(),a&&!this.match(8)&&!this.match(9)&&this.raise(Lr.UnexpectedExplicitInexactInObject,{at:a})}this.expect(u),n&&(o.inexact=c);let p=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,p}flowParseObjectTypeProperty(e,t,r,n,i,s,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(Lr.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(Lr.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),n&&this.raise(Lr.InexactVariance,{at:n}),null):(s||this.raise(Lr.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=r&&this.unexpected(r),n&&this.raise(Lr.SpreadVariance,{at:n}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===i||"set"===i)&&this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(Lr.ThisParamBannedInConstructor,{at:e.value.this})):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Lr.GetterMayNotHaveThisParam:Lr.SetterMayNotHaveThisParam,{at:e.value.this}),r!==t&&this.raise("get"===e.kind?ce.BadGetterArity:ce.BadSetterArity,{at:e}),"set"===e.kind&&e.value.rest&&this.raise(ce.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){let r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null,i=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(Lr.ThisParamMustBeFirst,{at:i}),t=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(Lr.ThisParamMayNotBeOptional,{at:i})),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){let e,t,r=this.state.startLoc,n=this.startNode(),i=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,t=this.flowParseTupleType(),this.state.noAnonFunctionType=s,t;case 47:return n.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),n.params=e.params,n.rest=e.rest,n.this=e._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),this.finishNode(n,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(A(this.state.type)||this.match(78)){let e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),n.params=e.params,n.rest=e.rest,n.this=e._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(Lr.UnexpectedSubtractionOperand,{at:this.state.startLoc})}return void this.unexpected();case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(B(this.state.type)){let e=U(this.state.type);return this.next(),super.createIdentifier(n,e)}if(A(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(130===this.state.type&&"_"===this.state.value){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){if(w(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return void 0===this.flowPragma&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||A(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(A(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){let{type:e}=this.state;return _(e)||this.shouldParseEnums()&&124===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return _(e)||this.shouldParseEnums()&&124===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);let n=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t),{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[u,l]=this.getArrowLikeExpressions(a);if(o||l.length>0){let e=[...i];if(l.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[u,l]=this.getArrowLikeExpressions(a)}o&&u.length>1&&this.raise(Lr.AmbiguousConditionalArrow,{at:n.startLoc}),o&&1===u.length&&(this.state=n,e.push(u[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let r=[e],n=[];for(;0!==r.length;){let e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):Vr(n,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(Me|Re),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExport(e,t){let r=super.parseExport(e,t);return("ExportNamedDeclaration"===r.type||"ExportAllDeclaration"===r.type)&&(r.exportKind=r.exportKind||"value"),r}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(129)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(127)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(128)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){let{startLoc:n}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(Lr.DeclareClassElement,{at:n}):t.value&&this.raise(Lr.DeclareClassFieldInitializer,{at:t.value}))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(ce.InvalidIdentifier,{at:this.state.curPosition(),identifierName:t}),this.finishToken(130,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):_e(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!t&&"AssignmentExpression"===e.type&&"TypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;let i=e[n];i&&"TypeCastExpression"===i.type&&(null==(r=i.extra)||!r.parenthesized)&&(e.length>1||!t)&&this.raise(Lr.TypeCastInPattern,{at:i.typeAnnotation})}return e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,i,s),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Lr.ThisParamBannedInConstructor,{at:t})}else if("MethodDefinition"===t.type&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Lr.ThisParamBannedInConstructor,{at:t})}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(Lr.GetterMayNotHaveThisParam,{at:r}):this.isThisParam(r)&&this.raise(Lr.SetterMayNotHaveThisParam,{at:r})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,i,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(e,t,r,n,i,s,a);return o&&((u.value||u).typeParameters=o),u}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Lr.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(Lr.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Lr.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(Lr.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Lr.TypeBeforeInitializer,{at:r.typeAnnotation}),r}shouldParseDefaultImport(e){return Rr(e)?$r(this.state.type):super.shouldParseDefaultImport(e)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Lr.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}parseImportSpecifierLocal(e,t,r){t.local=Rr(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(87)?t="typeof":this.isContextual(128)&&(t="type"),t){let r=this.lookahead(),{type:n}=r;"type"===t&&55===n&&this.unexpected(null,r.type),($r(n)||5===n||55===n)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e,t,r,n,i){let s=e.imported,a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===a||w(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=_r(t))}else{if(null!==a&&w(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(ce.ImportBindingIsString,{at:e,importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=_r(e.imported))}let u=Rr(e);return r&&u&&this.raise(Lr.ImportTypeShorthandOnlyInPureImport,{at:e}),(r||u)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),o&&!r&&!u&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){let r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(s=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t)),s),!n.error)return n.node;let{context:r}=this.state,a=r[r.length-1];(a===i.j_oTag||a===i.j_expr)&&r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var a,o;s=s||this.state.clone();let r,i=this.tryParse((n=>{var i;r=this.flowParseTypeParameterDeclaration();let s=this.forwardNoArrowParamsConversionAt(r,(()=>{let n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(i=s.extra)&&i.parenthesized&&n();let a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&n(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),s}),s),u=null;if(i.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(i.node).type){if(!i.error&&!i.aborted)return i.node.async&&this.raise(Lr.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:r}),i.node;u=i.node}if(null!=(a=n)&&a.node)return this.state=n.failState,n.node;if(u)return this.state=i.failState,u;throw null!=(o=n)&&o.thrown?n.error:i.thrown?i.error:this.raise(Lr.UnexpectedTokenAfterTypeParameter,{at:r})}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(Lr.ThisParamMustBeFirst,{at:e.params[t]});super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();let r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let n=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!i.error&&!i.aborted)return i.node;let s=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){let r=this.startNodeAt(t);r.callee=e;let i=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){let r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(Lr.UnterminatedFlowComment,{at:this.state.curPosition()}),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(Lr.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(ce.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(Lr.EnumBooleanMemberNotInitialized,{at:e,memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?Lr.EnumInvalidMemberInitializerSymbolType:Lr.EnumInvalidMemberInitializerPrimaryType:Lr.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},t))}flowEnumErrorNumberMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(Lr.EnumNumberMemberNotInitialized,{at:e,enumName:r,memberName:n})}flowEnumErrorStringMemberInconsistentlyInitailized(e,t){let{enumName:r}=t;this.raise(Lr.EnumStringMemberInconsistentlyInitailized,{at:e,enumName:r})}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 131:{let r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){let{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:r}=e,n=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}let e=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),u=a.name;if(""===u)continue;/^[a-z]/.test(u)&&this.raise(Lr.EnumInvalidMemberName,{at:a,memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:t}),n.has(u)&&this.raise(Lr.EnumDuplicateMemberName,{at:a,memberName:u,enumName:t}),n.add(u);let l={enumName:t,explicitType:r,memberName:u};switch(e.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"boolean"),e.init=o.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"number"),e.init=o.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"string"),e.init=o.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,l);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,l);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:s}}flowEnumStringMembers(e,t,r){let{enumName:n}=r;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(t,{enumName:n});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:n});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(101))return null;if(!A(this.state.type))throw this.raise(Lr.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:t});let{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(Lr.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){let r=t.name,n=t.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let i=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,u=s.defaultedMembers.length;if(!(i||a||o||u))return t();if(!i&&!a)return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!a&&!o&&i>=u){for(let e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!o&&a>=u){for(let e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Lr.EnumInconsistentMemberValues,{at:n,enumName:r}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},zr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Kr=le`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:r}=e;return`Unexpected token \`${t}\`. Did you mean \`${r}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Hr(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Jr(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Jr(e.object)+"."+Jr(e.property);throw new Error("Node had unexpected type: "+e.type)}var Xr=e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Kr.UnterminatedJsxContent,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(139,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Vt(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ce.UnterminatedString,{at:this.state.startLoc});let n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Vt(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(131,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let t=this.input.slice(e,this.state.pos),r=zr[t];if(++this.state.pos,r)return r}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(De(e)||45===e);this.finishToken(138,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(138)?e.name=this.state.value:B(this.state.type)?e.name=U(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(i.brace),this.next(),e=this.jsxParseExpressionContainer(e,i.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(Kr.AttributeIsEmpty,{at:e}),e;case 140:case 131:return this.parseExprAtom();default:throw this.raise(Kr.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(i.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(i.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(i.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(141);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(141),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(141),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){let t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e),s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 140:if(e=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 139:r.push(this.parseExprAtom());break;case 5:{let e=this.startNode();this.setContext(i.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,i.j_expr));break}default:this.unexpected()}Hr(n)&&!Hr(s)&&null!==s?this.raise(Kr.MissingClosingTagFragment,{at:s}):(!Hr(n)&&Hr(s)||!Hr(n)&&!Hr(s)&&Jr(s.name)!==Jr(n.name))&&this.raise(Kr.MissingClosingTagElement,{at:s,openingTagName:Jr(n.name)})}if(Hr(n)?(t.openingFragment=n,t.closingFragment=s):(t.openingElement=n,t.closingElement=s),t.children=r,this.match(47))throw this.raise(Kr.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return Hr(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(139)?this.parseLiteral(this.state.value,"JSXText"):this.match(140)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(140),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t!==i.j_expr){if(t===i.j_oTag||t===i.j_cTag){if(Se(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(141);if((34===e||39===e)&&t===i.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(140);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){let{context:t,type:r}=this.state;if(56===r&&140===e)t.splice(-2,2,i.j_cTag),this.state.canStartJSXElement=!1;else if(140===r)t.push(i.j_oTag);else if(141===r){let r=t[t.length-1];r===i.j_oTag&&56===e||r===i.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===i.j_expr):(this.setContext(i.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=I(r)}},Gr=class extends It{constructor(){super(...arguments),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}},Yr=class extends Ft{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Gr(e)}enter(e){e==ze&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e==ze&&this.importsStack.pop(),e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(t&it)return this.hasImport(e,!0)&&this.parser.raise(ce.VarRedeclaration,{at:r,identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);let n=this.currentScope();if(t&rt)return this.maybeExportDefined(n,e),void n.exportOnlyBindings.add(e);super.declareName(e,t,r),t&Je&&(t&He||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),n.types.add(e)),t&et&&n.enums.add(e),t&tt&&n.constEnums.add(e),t&Ze&&n.classes.add(e)}isRedeclaredInScope(e,t,r){return e.enums.has(t)?!(r&et)||!!(r&tt)!==e.constEnums.has(t):r&Ze&&e.classes.has(t)?!!e.lexical.has(t)&&!!(r&He):!!(r&Je&&e.types.has(t))||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){let r=this.scopeStack[e];if(r.types.has(t)||r.exportOnlyBindings.has(t))return}super.checkLocalExport(e)}}},Qr=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t],Zr=e=>"ParenthesizedExpression"===e.type?Zr(e.expression):e,en=class extends Br{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r,n;let i;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(i=Zr(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(ce.InvalidParenthesizedAssignment,{at:e}):"MemberExpression"!==i.type&&this.raise(ce.InvalidParenthesizedAssignment,{at:e}):this.raise(ce.InvalidParenthesizedAssignment,{at:e})),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,i=n-1;r<n;r++){var s;let n=e.properties[r],a=r===i;this.toAssignableObjectExpressionProp(n,a,t),a&&"RestElement"===n.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(ce.RestTrailingComma,{at:e.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(ce.MissingEqInAssignment,{at:e.left.loc.end}),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?ce.PatternHasAccessor:ce.PatternHasMethod,{at:e.key});else if("SpreadElement"===e.type){e.type="RestElement";let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(ce.RestTrailingComma,{at:e})}else this.toAssignable(e,r)}toAssignableList(e,t,r){let n=e.length-1;for(let i=0;i<=n;i++){let s=e[i];if(s){if("SpreadElement"===s.type){s.type="RestElement";let e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(s,r);"RestElement"===s.type&&(i<n?this.raise(ce.RestTrailingComma,{at:s}):t&&this.raise(ce.RestTrailingComma,{at:t}))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every(((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,r){let n=1&r,i=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),n&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(ce.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let e=this.startNode(),{type:t,startLoc:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(136===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){let r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);let n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return Qr({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}checkLVal(e,t){let{in:r,binding:n=mt,checkClashes:i=!1,strictModeChanged:s=!1,hasParenthesizedAncestor:a=!1}=t;var o;let u=e.type;if(this.isObjectMethod(e))return;if("MemberExpression"===u)return void(n!==mt&&this.raise(ce.InvalidPropertyBindingPattern,{at:e}));if("Identifier"===u){this.checkIdentifier(e,n,s);let{name:t}=e;return void(i&&(i.has(t)?this.raise(ce.ParamDupe,{at:e}):i.add(t)))}let l=this.isValidLVal(u,!(a||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===r.type,n);if(!0===l)return;if(!1===l){let t=n===mt?ce.InvalidLhs:ce.InvalidLhsBinding;return void this.raise(t,{at:e,ancestor:r})}let[c,p]=Array.isArray(l)?l:[l,"ParenthesizedExpression"===u],d="ArrayPattern"===u||"ObjectPattern"===u||"ParenthesizedExpression"===u?{type:u}:r;for(let t of[].concat(e[c]))t&&this.checkLVal(t,{in:d,binding:n,checkClashes:i,strictModeChanged:s,hasParenthesizedAncestor:p})}checkIdentifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(r?Fe(e.name,this.inModule):Ie(e.name))&&(t===mt?this.raise(ce.StrictEvalArguments,{at:e,referenceName:e.name}):this.raise(ce.StrictEvalArgumentsBinding,{at:e,bindingName:e.name})),t&st&&"let"===e.name&&this.raise(ce.LetInLexicalBinding,{at:e}),t&mt||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(ce.InvalidRestAssignmentPattern,{at:e})}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?ce.RestTrailingComma:ce.ElementAfterRest,{at:this.state.startLoc}),!0)}},tn=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t];function rn(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function nn(e){if(!e)throw new Error("Assert fail")}var sn=le`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>"Accessibility modifier already seen.",DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function an(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function on(e){return"private"===e||"public"===e||"protected"===e}function un(e){return"in"===e||"out"===e}var ln=e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:sn.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:sn.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:sn.InvalidModifierOnTypeParameter})}getScopeHandler(){return Yr}tsIsIdentifier(){return A(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!A(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t){let{allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=sn.InvalidModifierOnTypeMember}=e,a=(e,r,n,i)=>{r===n&&t[i]&&this.raise(sn.InvalidModifiersOrder,{at:e,orderedModifiers:[n,i]})},o=(e,r,n,i)=>{(t[n]&&r===i||t[i]&&r===n)&&this.raise(sn.IncompatibleModifiers,{at:e,modifiers:[n,i]})};for(;;){let{startLoc:e}=this.state,u=this.tsParseModifier(r.concat(null!=n?n:[]),i);if(!u)break;on(u)?t.accessibility?this.raise(sn.DuplicateAccessibilityModifier,{at:e,modifier:u}):(a(e,u,u,"override"),a(e,u,u,"static"),a(e,u,u,"readonly"),t.accessibility=u):un(u)?(t[u]&&this.raise(sn.DuplicateModifier,{at:e,modifier:u}),t[u]=!0,a(e,u,"in","out")):(Object.hasOwnProperty.call(t,u)?this.raise(sn.DuplicateModifier,{at:e,modifier:u}):(a(e,u,"static","readonly"),a(e,u,"static","override"),a(e,u,"override","readonly"),a(e,u,"abstract","override"),o(e,u,"declare","override"),o(e,u,"static","abstract")),t[u]=!0),null!=n&&n.includes(u)&&this.raise(s,{at:e,modifier:u})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){let r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return rn(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){let i=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let n=t();if(null==n)return;if(i.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}s=this.state.lastTokStart}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));let s=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),s}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(sn.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){let r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(sn.EmptyTypeParameters,{at:t}),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let r=19===e,n="parameters",i="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t[n]=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t[i]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return super.parseBindingList(11,41,2).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(sn.UnsupportedSignatureParameterKind,{at:e,type:e.type}),e)))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!A(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let r=e;if(this.match(10)||this.match(47)){t&&this.raise(sn.ReadonlyForMethodSignature,{at:e});let n=r;n.kind&&this.match(47)&&this.raise(sn.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let i="parameters",s="typeAnnotation";if("get"===n.kind)n[i].length>0&&(this.raise(ce.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(n[i][0])&&this.raise(sn.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===n.kind){if(1!==n[i].length)this.raise(ce.BadSetterArity,{at:this.state.curPosition()});else{let e=n[i][0];this.isThisParam(e)&&this.raise(sn.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===e.type&&e.optional&&this.raise(sn.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===e.type&&this.raise(sn.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}n[s]&&this.raise(sn.SetAccesorCannotHaveReturnType,{at:n[s]})}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{let e=r;t&&(e.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!(!this.match(0)||(this.next(),!this.tsIsIdentifier()))&&(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{let{type:n}=e;t&&"TSRestType"!==n&&"TSOptionalType"!==n&&!("TSNamedTupleMember"===n&&e.optional)&&this.raise(sn.OptionalTypeBeforeRequired,{at:e}),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n);let i=n;"TSRestType"===n&&(i=(e=e.typeAnnotation).type);let s="TSNamedTupleMember"===i;null!=r||(r=s),r!==s&&this.raise(sn.MixedLabeledAndUnlabeledElements,{at:e})})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,r,n,{startLoc:i}=this.state,s=this.eat(21),a=w(this.state.type)?this.lookaheadCharCode():null;if(58===a)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),n=this.tsParseType();else if(63===a){r=!0;let i=this.state.startLoc,s=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(i),s),this.expect(17),this.expect(14),n=this.tsParseType()):(e=!1,n=a,this.expect(17))}else n=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e){let e;t?(e=this.startNodeAtNode(t),e.optional=r,e.label=t,e.elementType=n,this.eat(17)&&(e.optional=!0,this.raise(sn.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(e=this.startNodeAtNode(n),e.optional=r,this.raise(sn.InvalidTupleMemberLabel,{at:n}),e.label=n,e.elementType=this.tsParseType()),n=this.finishNode(e,"TSNamedTupleMember")}else if(r){let e=this.startNodeAtNode(n);e.typeAnnotation=n,n=this.finishNode(e,"TSOptionalType")}if(s){let e=this.startNodeAt(i);e.typeAnnotation=n,n=this.finishNode(e,"TSRestType")}return n}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,e)}tsParseLiteralTypeNode(){let e=this.startNode();return e.literal=(()=>{switch(this.state.type){case 132:case 133:case 131:case 85:case 86:return super.parseExprAtom();default:this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 132!==t.type&&133!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(A(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":an(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(sn.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return R(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){let n=this.startNode(),i=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(A(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{let t=this.startNode();this.expect(e);let r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(107!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),!(!A(this.state.type)&&!this.match(78)||(e&&this.raise(ce.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){nn(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(sn.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(sn.EmptyHeritageClauseType,{at:t,token:e}),r}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(127),t.declare&&(e.declare=!0),A(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,pt)):(e.id=null,this.raise(sn.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,dt),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&16!==this.lookahead().type){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?gt:ht),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(je),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,bt),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(ze),this.prodParam.enter(Er),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(ze),this.prodParam.enter(Er),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkIdentifier(e.id,it),this.expect(29);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(sn.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){let t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(99)&&(r=74,t="let"),this.tsInAmbientContext((()=>{if(68===r)return e.declare=!0,super.parseFunctionStatement(e,!1,!1);if(80===r)return e.declare=!0,this.parseClass(e,!0,!1);if(124===r)return this.tsParseEnumDeclaration(e,{declare:!0});if(110===r)return this.tsParseAmbientExternalModuleDeclaration(e);if(75===r||74===r)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));if(127===r){let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}return A(r)?this.tsParseDeclaration(e,this.state.value,!0,null):void 0}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{let t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(5)){this.scope.enter(ze),this.prodParam.enter(Er);let r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||A(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(A(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&A(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&A(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch((()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(sn.EmptyTypeArguments,{at:e}),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return $(this.state.type)}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let i=n.accessibility,s=n.override,a=n.readonly;!(4&e)&&(i||a||s)&&this.raise(sn.UnexpectedParameterModifier,{at:r});let o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);let u=this.parseMaybeDefault(o.loc.start,o);if(i||a||s){let e=this.startNodeAt(r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(sn.UnsupportedParameterPropertyKind,{at:e}),e.parameter=u,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),u}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(sn.PatternIsOptional,{at:t})}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(sn.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,ft):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(sn.UnexpectedTypeAnnotation,{at:e.typeAnnotation})}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s,a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(s=this.state.curPosition());if(W(this.state.type)){let r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=a,r}if(!r&&this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&F(o)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(t);return u.expression=e,u.typeParameters=a,this.finishNode(u,"TSInstantiationExpression")}));if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(sn.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:r}=e;"TSInstantiationExpression"===r.type&&(null==(t=r.extra)||!t.parenthesized)&&(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(V(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(118)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(ce.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(sn.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",A(this.state.type)||this.match(55)||this.match(5)){let t=this.lookahead();if(this.isContextual(128)&&12!==t.type&&97!==t.type&&29!==t.type&&(e.importKind="type",this.next(),t=this.lookahead()),A(this.state.type)&&29===t.type)return this.tsParseImportEqualsDeclaration(e)}let t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(sn.TypeImportCannotSpecifyDefaultAndNamed,{at:t}),t}parseExport(e,t){if(this.match(83))return this.next(),this.isContextual(128)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){let t=e;return this.expectContextual(126),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}if(e.exportKind="value",this.isContextual(128)){let t=this.lookaheadCharCode();(123===t||42===t)&&(this.next(),e.exportKind="type")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(122)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(!n)return i;for(let{id:e,init:r}of i.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(sn.InitializerNotAllowedInAmbientContext,{at:r}):pn(r,this.hasPlugin("estree"))||this.raise(sn.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:r}));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>on(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:sn.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(sn.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,r,n){let i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(sn.IndexSignatureHasAbstract,{at:t}),t.accessibility&&this.raise(sn.IndexSignatureHasAccessibility,{at:t,modifier:t.accessibility}),t.declare&&this.raise(sn.IndexSignatureHasDeclare,{at:t}),void(t.override&&this.raise(sn.IndexSignatureHasOverride,{at:t}));!this.state.inAbstractClass&&t.abstract&&this.raise(sn.NonAbstractClassHasAbstractMethod,{at:t}),t.override&&(r.hadSuperClass||this.raise(sn.OverrideNotInSubClass,{at:t})),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(sn.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(sn.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);let n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));let t=this.state.startLoc,r=this.eatContextual(123);if(r&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(sn.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=A(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(111))return;super.parseClassId(e,t,r,e.declare?ft:at);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(sn.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:t}=e;this.raise(sn.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(sn.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(sn.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(sn.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(sn.ConstructorHasTypeParameters,{at:a});let{declare:o=!1,kind:u}=t;o&&("get"===u||"set"===u)&&this.raise(sn.DeclareAccessor,{at:t,kind:u}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&!e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,i,s,a)}parseFunctionParams(e,t){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,s,a,o,u,l;let c,p,d;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(c=this.state.clone(),p=this.tryParse((()=>super.parseMaybeAssign(e,t)),c),!p.error)return p.node;let{context:r}=this.state,n=r[r.length-1];(n===i.j_oTag||n===i.j_expr)&&r.pop()}if(!(null!=(r=p)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);(!c||c===this.state)&&(c=this.state.clone());let h,f=this.tryParse((r=>{var n,i;h=this.tsParseTypeParameters(this.tsParseConstModifier);let s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized)&&r(),0!==(null==(i=h)?void 0:i.params.length)&&this.resetStartLocationFromNode(s,h),s.typeParameters=h,s}),c);if(!f.error&&!f.aborted)return h&&this.reportReservedArrowTypeParam(h),f.node;if(!p&&(nn(!this.hasPlugin("jsx")),d=this.tryParse((()=>super.parseMaybeAssign(e,t)),c),!d.error))return d.node;if(null!=(n=p)&&n.node)return this.state=p.failState,p.node;if(f.node)return this.state=f.failState,h&&this.reportReservedArrowTypeParam(h),f.node;if(null!=(s=d)&&s.node)return this.state=d.failState,d.node;throw null!=(a=p)&&a.thrown?p.error:f.thrown?f.error:null!=(o=d)&&o.thrown?d.error:(null==(u=p)?void 0:u.error)||f.error||(null==(l=d)?void 0:l.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&(null==(t=e.extra)||!t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(sn.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse((e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(sn.UnexpectedTypeCastInParameter,{at:e}):this.raise(sn.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,t);break;case"AssignmentExpression":!t&&"TSTypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){return tn({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(r!==mt||!t)&&["expression",!0],TSSatisfiesExpression:(r!==mt||!t)&&["expression",!0],TSTypeAssertion:(r!==mt||!t)&&["expression",!0]},e)||super.isValidLVal(e,t,r)}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(sn.TypeAnnotationAfterAssign,{at:r.typeAnnotation}),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,r){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(sn.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,i,s,a){let o=super.parseMethod(e,t,r,n,i,s,a);if(o.abstract&&(this.hasPlugin("estree")?o.value.body:o.body)){let{key:e}=o;this.raise(sn.AbstractMethodHasImplementation,{at:o,methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,i){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?vt:it))}parseTypeOnlyImportExportSpecifier(e,t,r){let n,i=t?"imported":"local",s=t?"local":"exported",a=e[i],o=!1,u=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let r=this.parseIdentifier();w(this.state.type)?(o=!0,a=e,n=t?this.parseIdentifier():this.parseModuleExportName(),u=!1):(n=r,u=!1)}else w(this.state.type)?(u=!1,n=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else w(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(t?sn.TypeModifierIsUsedInTypeImports:sn.TypeModifierIsUsedInTypeExports,{at:l}),e[i]=a,e[s]=n,e[t?"importKind":"exportKind"]=o?"type":"value",u&&this.eatContextual(93)&&(e[s]=t?this.parseIdentifier():this.parseModuleExportName()),e[s]||(e[s]=_r(e[i])),t&&this.checkIdentifier(e[s],o?vt:it)}};function cn(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&fn(e.object)}function pn(e,t){var r;let{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!(dn(e,t)||hn(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||cn(e))}function dn(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function hn(e,t){if("UnaryExpression"===e.type){let{operator:r,argument:n}=e;if("-"===r&&dn(n,t))return!0}return!1}function fn(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&fn(e.object)}var mn=le`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),yn=e=>class extends e{parsePlaceholder(e){if(this.match(142)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!(!super.chStartsBindingIdentifier(e,t)&&142!==this.lookahead().type)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){let n=t?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(142)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);throw this.raise(mn.ClassNameIsRequired,{at:this.state.startLoc})}e.id=s}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(U(142),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(e)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(mn.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},gn=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),A(this.state.type)){let e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function bn(e,t){let[r,n]="string"==typeof t?[t,{}]:t,i=Object.keys(n),s=0===i.length;return e.some((e=>{if("string"==typeof e)return s&&e===r;{let[t,s]=e;if(t!==r)return!1;for(let e of i)if(s[e]!==n[e])return!1;return!0}}))}function vn(e,t,r){let n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var xn=["minimal","fsharp","hack","smart"],En=["^^","@@","^","%","#"],Sn=["hash","bar"];function Dn(e){if(bn(e,"decorators")){if(bn(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=vn(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=vn(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(bn(e,"flow")&&bn(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(bn(e,"placeholders")&&bn(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(bn(e,"pipelineOperator")){let t=vn(e,"pipelineOperator","proposal");if(!xn.includes(t)){let e=xn.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let r=bn(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(bn(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(bn(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=vn(e,"pipelineOperator","topicToken");if(!En.includes(t)){let e=En.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(bn(e,"moduleAttributes")){if(bn(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==vn(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(bn(e,"recordAndTuple")&&null!=vn(e,"recordAndTuple","syntaxType")&&!Sn.includes(vn(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Sn.map((e=>`'${e}'`)).join(", "));if(bn(e,"asyncDoExpressions")&&!bn(e,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}}var Tn={estree:fe,jsx:Xr,flow:Wr,typescript:ln,v8intrinsic:gn,placeholders:yn},Cn=Object.keys(Tn),An=class extends en{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(ce.RecordNoProto,{at:i});r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(ce.DuplicateProto,{at:i})),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){let r,n=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}e?r=!1:(e=new kr,r=!0);let{type:i}=this.state;(10===i||A(i))&&(this.state.potentialArrowAt=this.state.start);let s=this.parseMaybeConditional(e);if(t&&(s=t.call(this,s,n)),N(this.state.type)){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(s,!0),t.left=s;let r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=s;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(s,{in:this.finishNode(t,"AssignmentExpression")}),t}return r&&this.checkExpressionErrors(e,!0),s}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(r>=V(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(ce.PrivateInExpectedIn,{at:e,identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let n=this.state.type;if(j(n)&&(this.prodParam.hasIn||!this.match(58))){let i=V(n);if(i>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let a=41===n||42===n,o=40===n;if(o&&(i=V(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(ce.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});s.right=this.parseExprOpRightExpr(n,i);let u=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(o&&(41===l||42===l)||a&&40===l)throw this.raise(ce.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,t,r)}}return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(ce.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,q(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return ie.has(r.type)&&!(null!=(e=r.extra)&&e.parenthesized)&&this.raise(ce.PipeUnparenthesizedBody,{at:t,type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(ce.PipeTopicUnused,{at:t}),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(ce.UnexpectedTokenUnaryExponentiation,{at:e.argument})}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();let e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),s=this.startNode();if(M(this.state.type)){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let r=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){let e=s.argument;"Identifier"===e.type?this.raise(ce.StrictDelete,{at:s}):this.hasPropertyAsPrivateName(e)&&this.raise(ce.DeletePrivateField,{at:s})}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let a=this.parseUpdate(s,i,e);if(n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?F(e):F(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(ce.AwaitNotInAsyncContext,{at:r}),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}let n=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;L(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){let{type:i}=this.state;if(!r&&15===i)return this.parseBind(e,t,r,n);if(W(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(18===i){if(r&&(this.raise(ce.OptionalChainingNoNew,{at:this.state.startLoc}),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{let r=this.eat(0);return r||s||this.eat(16)?this.parseMember(e,t,n,r,s):(n.stop=!0,e)}}parseMember(e,t,r,n,i){let s=this.startNodeAt(t);return s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(3)):this.match(136)?("Super"===e.type&&this.raise(ce.SuperPrivateField,{at:t}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,n){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let i=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:u}=r;o&&(this.expressionScope.enter(vr()),s=new kr),u&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,a,s);let l=this.finishCallExpression(a,u);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(ce.OptionalChainingNoTemplate,{at:t}),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(ce.ImportCallArity,{at:e,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(ce.ImportCallSpreadArgument,{at:t});return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,i){let s=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){t&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(ce.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(!1,i,r))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&Lt(e,t.innerComments),t.callee.trailingComments&&Lt(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):(this.match(10)||this.raise(ce.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(ce.UnsupportedBind,{at:e})}case 136:return this.raise(ce.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());Se(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(A(n)){if(this.isContextual(125)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(A(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=X(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){let n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?ce.PrimaryTopicNotAllowed:ce.PipeTopicUnbound,{at:t}),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(ce.PipeTopicUnconfiguredToken,{at:t,token:U(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:U(r)}]);case"smart":return 27===r;default:throw this.raise(ce.PipeTopicRequiresHackPipes,{at:t})}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Pr(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(ce.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(Dr),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(ce.UnexpectedSuper,{at:e}):this.raise(ce.SuperNotAllowed,{at:e}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(ce.UnsupportedSuper,{at:e}),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(X(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(ce.UnsupportedMetaProperty,{at:e.property,target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(ce.ImportMetaOutsideModule,{at:t}),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,r=this.state.startLoc;this.next(),this.expressionScope.enter(br());let n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let s,a,o=this.state.startLoc,u=[],l=new kr,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===l.optionalParametersLoc?null:l.optionalParametersLoc),this.match(11)){a=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(s=this.state.startLoc,u.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else u.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}let p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let d=this.startNodeAt(r);return e&&this.shouldParseArrow(u)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,u,!1),d):(this.expressionScope.exit(),u.length||this.unexpected(this.state.lastTokStartLoc),a&&this.unexpected(a),s&&this.unexpected(s),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(u,!0),u.length>1?(t=this.startNodeAt(o),t.expressions=u,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=u[0],this.wrapParenthesis(r,t))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(ce.UnexpectedNewTarget,{at:r}),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){e.callee=this.parseNoCallExpr(),"Import"===e.callee.type&&this.raise(ce.ImportCallNotNewExpression,{at:e.callee})}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:i}=this.state,s=t+1,a=this.startNodeAt(X(r,1));null===i&&(e||this.raise(ce.InvalidEscapeSequenceTemplate,{at:X(this.state.firstInvalidTemplateEscapePos,1)}));let o=this.match(24),u=o?-1:-2,l=n+u;a.value={raw:this.input.slice(s,l).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,u)},a.tail=o,this.next();let c=this.finishNode(a,"TemplateElement");return this.resetEndLocation(c,X(this.state.lastTokEndLoc,u)),c}parseTemplate(e){let t=this.startNode();t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=Object.create(null),a=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(n),this.checkProto(i,r,s,n)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(ce.InvalidRecordProperty,{at:i}),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(o,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStart),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(ce.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)t.push(this.parseDecorator());let r,n=this.startNode(),i=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(n);let o=this.state.containsEsc,u=this.parsePropertyName(n,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(n)){let e=u.name;"async"===e&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(u),a=this.eat(55),this.parsePropertyName(n)),("get"===e||"set"===e)&&(s=!0,this.resetPreviousNodeTrailingComments(u),n.kind=e,this.match(55)&&(a=!0,this.raise(ce.AccessorIsGenerator,{at:this.state.curPosition(),kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,a,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?ce.BadGetterArity:ce.BadSetterArity,{at:e}),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(ce.BadSetterRestParameter,{at:e})}parseObjectMethod(e,t,r,n,i){if(i){let r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,_r(e.key));else if(this.match(29)){let r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(ce.InvalidCoverInitializedName,{at:r}),e.value=this.parseMaybeDefault(t,_r(e.key))}else e.value=_r(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,i,s,a){let o=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let r,{type:n,value:i}=this.state;if(w(n))r=this.parseIdentifier(!0);else switch(n){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(ce.UnexpectedPrivateField,{at:e}),r=this.parsePrivateName();break}default:this.unexpected()}e.key=r,136!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(Me|Ue|(a?qe:0)|(i?Ve:0)),this.prodParam.enter(Pr(r,e.generator)),this.parseFunctionParams(e,n);let o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(Me|Re);let i=Pr(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=Cr),this.prodParam.enter(i),this.initFunction(e,r);let s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t&&!this.match(5);if(this.expressionScope.enter(xr()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Tr),e.body=this.parseBlock(!0,!1,(i=>{let s=!this.isSimpleParamList(e.params);i&&s&&this.raise(ce.IllegalLanguageModeDirective,{at:"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end});let a=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,yt,a)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,{in:s,binding:lt,checkClashes:i,strictModeChanged:n})}parseExprList(e,t,r,n){let i=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(t,r))}return i}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(ce.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),n=null;else if(this.match(21)){let e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(ce.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t,{startLoc:r,type:n}=this.state;w(n)?t=this.state.value:this.unexpected();let i=P(n);return e?i&&this.replaceToken(130):this.checkReservedWord(t,r,i,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)&&Be(e))if(r&&Ne(e))this.raise(ce.UnexpectedKeyword,{at:t,keyword:e});else if((this.state.strict?n?Fe:ke:we)(e,this.inModule))this.raise(ce.UnexpectedReservedWord,{at:t,reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(ce.YieldBindingIdentifier,{at:t})}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(ce.AwaitBindingIdentifier,{at:t});if(this.scope.inStaticBlock)return void this.raise(ce.AwaitBindingIdentifierInStaticBlock,{at:t});this.expressionScope.recordAsyncArrowParametersError({at:t})}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(ce.ArgumentsInClass,{at:t})}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(ce.AwaitExpressionFormalParameter,{at:t}),this.eat(55)&&this.raise(ce.ObsoleteAwaitStar,{at:t}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||W(e)||101===e&&!this.state.containsEsc||135===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(ce.YieldInParameter,{at:e}),this.next();let t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(ce.PipelineHeadSequenceExpression,{at:t})}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(ce.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(ce.PipelineTopicUnused,{at:e})}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(Cr&~t){this.prodParam.enter(t|Cr);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(Cr&t){this.prodParam.enter(t&~Cr);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Pn={kind:"loop"},wn={kind:"switch"},kn=/[\uD800-\uDFFF]/u,In=/in(?:stanceof)?/y;function Fn(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:i}=n;if("number"==typeof i){if(136===i){let{loc:t,start:i,value:s,end:a}=n,o=i+1,u=X(t.start,1);e.splice(r,1,new ar({type:z(27),value:"#",start:i,end:o,startLoc:t.start,endLoc:u}),new ar({type:z(130),value:s,start:o,end:a,startLoc:u,endLoc:t.end})),r++;continue}if(W(i)){let s,a,o,u,l,{loc:c,start:p,value:d,end:h}=n,f=p+1,m=X(c.start,1);s=96===t.charCodeAt(p)?new ar({type:z(22),value:"`",start:p,end:f,startLoc:c.start,endLoc:m}):new ar({type:z(8),value:"}",start:p,end:f,startLoc:c.start,endLoc:m}),24===i?(o=h-1,u=X(c.end,-1),a=null===d?null:d.slice(1,-1),l=new ar({type:z(22),value:"`",start:o,end:h,startLoc:u,endLoc:c.end})):(o=h-2,u=X(c.end,-2),a=null===d?null:d.slice(1,-2),l=new ar({type:z(23),value:"${",start:o,end:h,startLoc:u,endLoc:c.end})),e.splice(r,1,s,new ar({type:z(20),value:a,start:f,end:o,startLoc:m,endLoc:u}),l),r+=2;continue}n.type=z(i)}}return e}var Nn=class extends An{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=Fn(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:137,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(ce.ModuleExportUndefined,{at:t,localName:e});return t=137===r?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",X(this.state.startLoc,-1)),t}stmtToDirective(e){let t=e;t.type="Directive",t.value=t.expression,delete t.expression;let r=t.value,n=r.value,i=this.input.slice(r.start,r.end),s=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",s),this.addExtra(r,"expressionValue",n),r.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(99)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(Se(e)){if(In.lastIndex=t,In.test(this.input)){let e=this.codePointAtPos(In.lastIndex);if(!De(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasFollowingBindingIdentifier(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let e=this.lookahead();return!(101===e.type&&!e.containsEsc||(this.expectPlugin("explicitResourceManagement"),0))}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?ce.StrictFunction:this.options.annexB?ce.SloppyFunctionAnnexB:ce.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(n,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(ce.UnexpectedUsingDeclaration,{at:this.state.startLoc}):i||this.raise(ce.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(n,"using");case 99:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:i||this.raise(ce.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return!this.options.allowImportExportEverywhere&&!a&&this.raise(ce.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===r?(e=this.parseImport(n),"ImportDeclaration"===e.type&&(!e.importKind||"value"===e.importKind)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,t),("ExportNamedDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportAllDeclaration"===e.type&&(!e.exportKind||"value"===e.exportKind)||"ExportDefaultDeclaration"===e.type)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(ce.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}let o=this.state.value,u=this.parseExpression();return A(r)&&"Identifier"===u.type&&this.eat(14)?this.parseLabeledStatement(n,o,u,e):this.parseExpressionStatement(n,u,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(ce.ImportOutsideModule,{at:e})}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ce.DecoratorsBeforeAfterExport,{at:t.decorators[0]}),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(ce.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(ce.UnexpectedLeadingDecorator,{at:this.state.startLoc});return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,r=this.state.startLoc;if(this.match(10)){let r=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(r,t);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(ce.DecoratorArgumentsOutsideParentheses,{at:n})}else{for(t=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(r);e.object=t,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||"loop"===n.kind)||e.label&&t))break}if(r===this.state.labels.length){let r=t?"BreakStatement":"ContinueStatement";this.raise(ce.IllegalBreakContinue,{at:e,type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Pn),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Pn);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(je),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(99),n=this.isContextual(105)&&!this.hasFollowingLineBreak(),i=r&&this.hasFollowingBindingAtom()||n&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||i){let r=this.startNode(),i=this.state.value;this.next(),this.parseVar(r,!0,i);let s=this.finishNode(r,"VariableDeclaration"),a=this.match(58);return a&&n&&this.raise(ce.ForInUsing,{at:s}),(a||this.isContextual(101))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}let s=this.isContextual(95),a=new kr,o=this.parseExpression(!0,a),u=this.isContextual(101);if(u&&(r&&this.raise(ce.ForOfLet,{at:o}),null===t&&s&&"Identifier"===o.type&&this.raise(ce.ForOfAsync,{at:o})),u||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(o,!0);let r=u?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:r}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(a,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(ce.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t,r=e.cases=[];this.expect(5),this.state.labels.push(wn),this.scope.enter(je);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(e&&this.raise(ce.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),e=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(ce.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?$e:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:ut}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(je)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(ce.NoCatchOrFinally,{at:e}),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Pn),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(ce.StrictWith,{at:this.state.startLoc}),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(let e of this.state.labels)e.name===t&&this.raise(ce.LabelRedeclaration,{at:r,labelName:t});let i=O(this.state.type)?"loop":this.match(71)?"switch":null;for(let t=this.state.labels.length-1;t>=0;t--){let r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(je),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){let s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){let s=this.state.strict,a=!1,o=!1;for(;!this.match(n);){let n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){let e=this.stmtToDirective(n);t.push(e),!a&&"use strict"===e.value.value&&(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}i&&i.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||!this.options.annexB||this.state.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(ce.ForInOfLoopInitializer,{at:t,type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(ce.InvalidLhs,{at:t,ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.declarations=[];for(e.kind=r;;){let e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!n&&("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(101))?"const"===r&&!(this.match(58)||this.isContextual(101))&&this.raise(ce.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(ce.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){"using"===t&&!this.inModule&&this.match(96)&&this.raise(ce.AwaitInUsingBinding,{at:this.state.startLoc});let r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?lt:ot}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=2&t,n=!!(1&t),i=n&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(r&&this.raise(ce.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(i));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(Me),this.prodParam.enter(Pr(s,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||A(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(gr()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?lt:ot:ct,e.id.loc.start)}parseClass(e,t,r){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(ce.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){n.push(this.parseDecorator());continue}let e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(ce.DecoratorConstructor,{at:e})}})),this.state.strict=t,this.next(),n.length)throw this.raise(ce.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){let n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let n=this.isContextual(104);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){let i=t,s=t,a=t,o=t,u=t,l=i,c=i;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind="method";let t=this.match(136);return this.parseClassElementName(l),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(ce.ConstructorIsGenerator,{at:i.key}),void this.pushClassMethod(e,i,!0,!1,!1,!1))}let p=A(this.state.type)&&!this.state.containsEsc,d=this.match(136),h=this.parseClassElementName(t),f=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(l.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);let n=this.isNonstaticConstructor(i),a=!1;n&&(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(ce.DuplicateConstructor,{at:h}),n&&this.hasPlugin("typescript")&&t.override&&this.raise(ce.OverrideOnConstructor,{at:h}),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,i,!1,!1,n,a)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(p&&"async"===h.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);let t=this.eat(55);c.optional&&this.unexpected(f),l.kind="method";let r=this.match(136);this.parseClassElementName(l),this.parsePostMemberNameModifiers(c),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(i)&&this.raise(ce.ConstructorIsAsync,{at:i.key}),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==h.name&&"set"!==h.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===h.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);let t=this.match(136);this.parseClassElementName(a),this.pushClassAccessorProperty(e,u,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.resetPreviousNodeTrailingComments(h),l.kind=h.name;let t=this.match(136);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(ce.ConstructorIsAccessor,{at:i.key}),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){let{type:t,value:r}=this.state;if((130===t||131===t)&&e.static&&"prototype"===r&&this.raise(ce.StaticPrototype,{at:this.state.startLoc}),136===t){"constructor"===r&&this.raise(ce.ConstructorClassPrivateField,{at:this.state.startLoc});let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(qe|We|Ue);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(Er);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(ce.DecoratorStaticBlock,{at:t})}pushClassProperty(e,t){!t.computed&&("constructor"===t.key.name||"constructor"===t.key.value)&&this.raise(ce.ConstructorClassField,{at:t.key}),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),kt,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){let e=t.key;("constructor"===e.name||"constructor"===e.value)&&this.raise(ce.ConstructorClassField,{at:e})}let n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),kt,n.key.loc.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let s="get"===i.kind?i.static?Ct:Pt:"set"===i.kind?i.static?At:wt:kt;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(qe|Ue),this.expressionScope.enter(xr()),this.prodParam.enter(Er),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:at;if(A(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(ce.MissingClassName,{at:this.state.startLoc});e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.maybeParseExportDefaultSpecifier(e),n=!r||this.eat(12),i=n&&this.eatExportStar(e),s=i&&this.maybeParseExportNamespaceSpecifier(e),a=n&&(!s||this.eat(12)),o=r||i;if(i&&!s){if(r&&this.unexpected(),t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let u,l=this.maybeParseExportNamedSpecifiers(e);if(r&&n&&!i&&!l&&this.unexpected(null,5),s&&a&&this.unexpected(null,97),o||l){if(u=!1,t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});this.parseExportFrom(e,o)}else u=this.maybeParseExportDeclaration(e);if(o||l||u){var c;let r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(c=r.declaration)?void 0:c.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){let r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(ce.UnsupportedDecoratorExport,{at:e});return this.checkExport(r,!0,!0),this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenStart();return!$t.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ce.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(ce.UnsupportedDefaultExport,{at:this.state.startLoc});let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(A(e)){if(95===e&&!this.state.containsEsc||99===e)return!1;if((128===e||127===e)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(A(e)&&97!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||A(this.state.type)&&r)return!0;if(this.match(65)&&r){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){if(this.eatContextual(97)){e.source=this.parseImportSource(),this.checkExport(e);let t=this.maybeParseImportAssertions();t&&(e.assertions=t,this.checkJSONModuleImport(e))}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ce.DecoratorBeforeExport,{at:this.state.startLoc}),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;let t=e.declaration;"Identifier"===t.type&&"from"===t.name&&t.end-t.start==4&&(null==(i=t.extra)||!i.parenthesized)&&this.raise(ce.ExportDefaultFromAsIdentifier,{at:t})}}else if(e.specifiers&&e.specifiers.length)for(let t of e.specifiers){let{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(ce.ExportBindingIsString,{at:t,localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){let t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(let t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(ce.DuplicateDefaultExport,{at:e}):this.raise(ce.DuplicateExport,{at:e,exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(128),i=this.match(131),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=Or(e.local):e.exported||(e.exported=_r(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let e=this.parseStringLiteral(this.state.value),t=e.value.match(kn);return t&&this.raise(ce.ModuleExportNameHasLoneSurrogate,{at:e,surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){var t;e.module&&((1!==e.specifiers.length||"ImportDefaultSpecifier"!==e.specifiers[0].type)&&this.raise(ce.ImportReflectionNotBinding,{at:e.specifiers[0].loc.start}),(null==(t=e.assertions)?void 0:t.length)>0&&this.raise(ce.ImportReflectionHasAssertion,{at:e.specifiers[0].loc.start}))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(ce.ImportJSONBindingNotDefault,{at:e.loc.start})}}}parseMaybeImportReflection(e){let t=!1;if(this.isContextual(125)){let e=this.lookahead(),r=e.type;A(r)?(97!==r||102===this.input.charCodeAt(this.nextTokenStartSince(e.end)))&&(t=!0):12!==r&&(t=!0)}t?(this.expectPlugin("importReflection"),this.next(),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1)}parseImport(e){if(e.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(e);let t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(12),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(97)}e.source=this.parseImportSource();let t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{let t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return A(this.state.type)}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot;return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseAssertEntries(){let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(ce.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:n}),t.add(n),this.match(131)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(ce.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(ce.ModuleAttributeDifferentFromType,{at:r.key}),t.has(r.key.name)&&this.raise(ce.ModuleAttributesWithDuplicateKeys,{at:r.key,key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(131))throw this.raise(ce.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(12));return e}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);let e=this.parseAssertEntries();return this.eat(8),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(ce.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(131),i=this.isContextual(128);r.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:r}=e;if(t)throw this.raise(ce.ImportBindingIsString,{at:e,importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=_r(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},_n=class extends Nn{constructor(e,t){super(e=r(e),t),this.options=e,this.initializeScopes(),this.plugins=On(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return Ft}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e}};function On(e){let t=new Map;for(let r of e){let[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}return t}function Bn(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Rn(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let r=Rn(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",Rn(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Rn(t,e).parse()}catch{}throw r}}function jn(e,t){let r=Rn(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function Ln(e){let t={};for(let r of Object.keys(e))t[r]=z(e[r]);return t}var Mn=Ln(C);function Rn(e,t){let r=_n;return null!=e&&e.plugins&&(Dn(e.plugins),r=Un(e.plugins)),new r(e,t)}var $n={};function Un(e){let t=Cn.filter((t=>bn(e,t))),r=t.join("/"),n=$n[r];if(!n){n=_n;for(let e of t)n=Tn[e](n);$n[r]=n}return n}e.parse=Bn,e.parseExpression=jn,e.tokTypes=Mn}}),ne=o({"src/language-js/parse/json.js"(e,t){p();var r=W(),n=H(),i=K(),s=J();function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{allowComments:t=!0}=e;return function(e){let n,{parseExpression:i}=re();try{n=i(e,{tokens:!0,ranges:!0})}catch(e){throw s(e)}if(!t&&r(n.comments))throw o(n.comments[0],"Comment");return u(n),n}}function o(e,t){let[r,i]=[e.loc.start,e.loc.end].map((e=>{let{line:t,column:r}=e;return{line:t,column:r+1}}));return n(`${t} is not allowed in JSON.`,{start:r,end:i})}function u(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)null!==t&&u(t);return;case"ObjectExpression":for(let t of e.properties)u(t);return;case"ObjectProperty":if(e.computed)throw o(e.key,"Computed key");if(e.shorthand)throw o(e.key,"Shorthand property");return"Identifier"!==e.key.type&&u(e.key),void u(e.value);case"UnaryExpression":{let{operator:t,argument:r}=e;if("+"!==t&&"-"!==t)throw o(e,`Operator '${e.operator}'`);if("NumericLiteral"===r.type||"Identifier"===r.type&&("Infinity"===r.name||"NaN"===r.name))return;throw o(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if("Infinity"!==e.name&&"NaN"!==e.name&&"undefined"!==e.name)throw o(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(r(e.expressions))throw o(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)u(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw o(e,`'${e.type}'`)}}var l=a(),c={json:i({parse:l,hasPragma:()=>!0}),json5:i(l),"json-stringify":i({parse:a({allowComments:!1}),astFormat:"estree-json"})};t.exports=c}});p();var ie=d(),se=h(),ae=b(),oe=K(),ue=J(),le=te(),ce=ne(),pe={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},de=["recordAndTuple",{syntaxType:"hash"}],he="v8intrinsic",fe=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],ye=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe;return Object.assign(Object.assign({},t),{},{plugins:[...t.plugins,...e]})},ge=/@(?:no)?flow\b/;function ve(e,t){if(t.filepath&&t.filepath.endsWith(".js.flow"))return!0;let r=se(e);r&&(e=e.slice(r.length));let n=ae(e,0);return!1!==n&&(e=e.slice(0,n)),ge.test(e)}function xe(e,t,r){let n=(0,re()[e])(t,r),i=n.errors.find((e=>!we.has(e.reasonCode)));if(i)throw i;return n}function Ee(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(("babel"===i.parser||"__babel_estree"===i.parser)&&ve(t,i))return i.parser="babel-flow",De(t,n,i);let s=r;"script"===i.__babelSourceType&&(s=s.map((e=>Object.assign(Object.assign({},e),{},{sourceType:"script"})))),/#[[{]/.test(t)&&(s=s.map((e=>ye([de],e))));let a=/%[A-Z]/.test(t);t.includes("|>")?s=(a?[...fe,he]:fe).flatMap((e=>s.map((t=>ye([e],t))))):a&&(s=s.map((e=>ye([he],e))));let{result:o,error:u}=ie(...s.map((r=>()=>xe(e,t,r))));if(!o)throw ue(u);return i.originalText=t,le(o,i)}}var Se=Ee("parse",ye(["jsx","flow"])),De=Ee("parse",ye(["jsx",["flow",{all:!0,enums:!0}]])),Te=Ee("parse",ye(["jsx","typescript"]),ye(["typescript"])),Ce=Ee("parse",ye(["jsx","flow","estree"])),Ae=Ee("parseExpression",ye(["jsx"])),Pe=Ee("parseExpression",ye(["typescript"])),we=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Ie=oe(Se),Fe=oe(Te),Ne=oe(Ae),_e=oe(Pe);t.exports={parsers:Object.assign(Object.assign({babel:Ie,"babel-flow":oe(De),"babel-ts":Fe},ce),{},{__js_expression:Ne,__vue_expression:Ne,__vue_ts_expression:_e,__vue_event_binding:Ie,__vue_ts_event_binding:Fe,__babel_estree:oe(Ce)})}}));return Ie()}();var G9=g(X9.exports);function Y9(e,t={}){const r=function(...e){return RZ(...e)}(e,{isJSX:Boolean(t.filepath?.match(/\.[jt]sx$/)),isTS:!0,printer:"recast",plugins:[["remove-unused-variables",J8]]});return J9.format(r.code,{parser:"babel",plugins:[G9]})}function Q9(e,t={}){return e=e.replaceAll("import.meta","VIKE_META"),e=`var VIKE_META = ${JSON.stringify(t)};(${e})`,(0,eval)(e)}function Z9(e,t,r={}){const n=function(e,t){return b.visit(e,{visitJSXAttribute(e){const r=e.value.comments?.[0];r&&r.value.includes("import.meta.VIKE_")&&(Q9(r.value.replace("# ",""),t)?e.get("comments").prune():e.prune()),this.traverse(e)},visitImportDeclaration(e){if(b.namedTypes.ImportDeclaration.check(e.value)&&e.value.comments&&e.value.comments.some((e=>e.value.includes("import.meta.VIKE_")))){const r=e.value.comments.find((e=>e.value.includes("import.meta.VIKE_"))).value;Q9(r.replace("# ",""),t)?e.value.comments=[]:e.prune()}this.traverse(e)},visitIdentifier(e){if("VIKE_REMOVE"===e.value.name){if(!e.parent)throw new Error("VIKE_REMOVE cannot appear at top level");if(!b.namedTypes.ArrayExpression.check(e.parent?.parent?.value))throw new Error("VIKE_REMOVE can only be an array element for now");return e.parent.prune(),void this.traverse(e)}this.traverse(e)},visitConditionalExpression(e){this.visitIfStatement(e)},visitIfStatement(e){let r=!1;this.traverse(e.get("test"),{visitMemberExpression(e){oo(e.value).code.startsWith("import.meta.VIKE_")&&(r=!0),this.traverse(e)}}),this.traverse(e),r&&(Q9(oo(e.value.test).code,t)?b.namedTypes.BlockStatement.check(e.value.consequent)?e.replace(...e.value.consequent.body):e.replace(e.value.consequent):e.value.alternate?b.namedTypes.BlockStatement.check(e.value.alternate)?e.replace(...e.value.alternate.body):e.replace(e.value.alternate):e.prune())}}),e}(e,t);return Y9(oo(n).code,r)}function e7(e,t){if(!e)throw new Error(t)}async function t7(e){const t=await(e?.());return e7("string"==typeof t,"Unable to load previous JSON module"),JSON.parse(t)}async function r7(e){const t=await(e?.());return e7("string"==typeof t,"Unable to load previous module"),ao(t)}async function n7(e,t){const r=p(t.url),n=d(r);return uo(h(n,e))}function i7(e,t){const r=function(e){return"function-call"===e.exports.default.$type?e.exports.default.$args[0]:e.exports.default}(e),n=t.index??r.plugins?.length??0;return r.plugins||(r.plugins=[]),r.plugins.splice(n,0,t.options?co.functionCall(t.constructor,t.options):co.functionCall(t.constructor)),e.imports.$add({from:t.from,local:t.constructor,imported:t.imported||"default"}),!0}function*s7(e,t){for(const r of t){const t=e.get(r);if(!t)throw new Error(`key '${t}' not found in package.json`);yield[r,t]}}function a7(e,t,r){e.devDependencies??(e.devDependencies={}),e.dependencies??(e.dependencies={});const n=new Map(function*(e){if(e.devDependencies)for(const t in e.devDependencies)yield[t,e.devDependencies[t]];if(e.dependencies)for(const t in e.dependencies)yield[t,e.dependencies[t]]}(t));for(const[t,i]of s7(n,r.devDependencies??[]))t in e.dependencies||(e.devDependencies[t]=i);for(const[t,i]of s7(n,r.dependencies??[]))t in e.devDependencies&&delete e.devDependencies[t],e.dependencies[t]=i;return e}export{a7 as addDependency,i7 as addVitePlugin,f as features,m as flags,oo as generateCode,t7 as loadAsJson,r7 as loadAsMagicast,uo as loadFile,n7 as loadRelativeFileAsMagicast,ao as parseModule,Z9 as transformAndGenerate};
|