windcraft-editor 0.0.0-stage → 0.1.0
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/README.md +49 -2
- package/core/board-layout.js +71 -0
- package/core/class-groups.js +210 -0
- package/core/design-spec.js +303 -0
- package/core/exporters.js +156 -0
- package/core/pages.js +39 -0
- package/core/prop-tailwind.js +158 -0
- package/core/split-sections.js +99 -0
- package/core/theme.js +87 -0
- package/design/agent.js +2118 -0
- package/design/classes-section.js +103 -0
- package/design/code-editor.js +293 -0
- package/design/code-view.js +158 -0
- package/design/color-picker.js +107 -0
- package/design/config.js +5 -0
- package/design/controls.js +132 -0
- package/design/css-props.js +111 -0
- package/design/design-tab.js +120 -0
- package/design/device-frame.js +40 -0
- package/design/editor/add-menu.js +151 -0
- package/design/editor/api.js +47 -0
- package/design/editor/base.js +55 -0
- package/design/editor/code-panel.js +206 -0
- package/design/editor/color-ui.js +135 -0
- package/design/editor/designs.js +606 -0
- package/design/editor/docs.js +121 -0
- package/design/editor/frame-handles.js +223 -0
- package/design/editor/frame-messages.js +195 -0
- package/design/editor/inspector.js +461 -0
- package/design/editor/layers.js +61 -0
- package/design/editor/pages-panel.js +161 -0
- package/design/editor/panel-resize.js +47 -0
- package/design/editor/plane.js +132 -0
- package/design/editor/present.js +52 -0
- package/design/editor/toolbar.js +267 -0
- package/design/editor.js +47 -0
- package/design/figma-sections.js +440 -0
- package/design/float-toolbar.js +163 -0
- package/design/group-controls.js +52 -0
- package/design/host.js +22 -0
- package/design/panel-model.js +130 -0
- package/design/panel-state.js +40 -0
- package/design/panel.js +212 -0
- package/design/presenter.js +312 -0
- package/design/prop-sections.js +18 -0
- package/design/selection-overlay.js +93 -0
- package/design/store.js +29 -0
- package/design/style-sections.js +315 -0
- package/design/tailwind-classes.js +65 -0
- package/embed-frame.js +43 -0
- package/embed.html +15 -0
- package/embed.js +60 -0
- package/index.js +62 -0
- package/package.json +50 -5
- package/playground/component-source.js +124 -0
- package/styles.css +402 -0
- package/template.js +247 -0
- package/vendor/codemirror.js +24 -0
- package/vendor/preact-htm.js +1 -0
- package/vendor/prettier.js +171 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* Prettier (MIT), bundled by scripts/build-codemirror.mjs */
|
|
2
|
+
var cc=Object.defineProperty;var hc=e=>{throw TypeError(e)};var Og=(e,t,r)=>t in e?cc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wi=(e,t)=>{for(var r in t)cc(e,r,{get:t[r],enumerable:!0})};var U=(e,t,r)=>Og(e,typeof t!="symbol"?t+"":t,r),vo=(e,t,r)=>t.has(e)||hc("Cannot "+r);var Le=(e,t,r)=>(vo(e,t,"read from private field"),r?r.call(e):t.get(e)),kr=(e,t,r)=>t.has(e)?hc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Hi=(e,t,r,s)=>(vo(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r),Ot=(e,t,r)=>(vo(e,t,"access private method"),r);var Mg=Object.create,Ro=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,Rg=Object.getOwnPropertyNames,Ug=Object.getPrototypeOf,qg=Object.prototype.hasOwnProperty,$g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Uo=(e,t)=>{for(var r in t)Ro(e,r,{get:t[r],enumerable:!0})},Vg=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rg(t))!qg.call(e,n)&&n!==r&&Ro(e,n,{get:()=>t[n],enumerable:!(s=jg(t,n))||s.enumerable});return e},Wg=(e,t,r)=>(r=e!=null?Mg(Ug(e)):{},Vg(t||!e||!e.__esModule?Ro(r,"default",{value:e,enumerable:!0}):r,e)),Hg=$g((e,t)=>{var r,s,n,i,a,o,u,c,p,l,h,d,m,f,D,g,y,E,A,x;m=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,D=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,g=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,A=/[\t\v\f\ufeff\p{Zs}]+/yu,c=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,f=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,s=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,y=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,l=RegExp(c.source),t.exports=x=function*(T,{jsx:S=!1}={}){var v,k,N,B,q,j,I,W,X,Z,Se,ue,we,De;for({length:j}=T,B=0,q="",De=[{tag:"JS"}],v=[],Se=0,ue=!1;B<j;){switch(W=De[De.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(T[B]==="/"&&(E.test(q)||o.test(q))&&(m.lastIndex=B,I=m.exec(T))){B=m.lastIndex,q=I[0],ue=!0,yield{type:"RegularExpressionLiteral",value:I[0],closed:I[1]!==void 0&&I[1]!=="\\"};continue}if(d.lastIndex=B,I=d.exec(T)){switch(we=I[0],X=d.lastIndex,Z=we,we){case"(":q==="?NonExpressionParenKeyword"&&De.push({tag:"JSNonExpressionParen",nesting:Se}),Se++,ue=!1;break;case")":Se--,ue=!0,W.tag==="JSNonExpressionParen"&&Se===W.nesting&&(De.pop(),Z="?NonExpressionParenEnd",ue=!1);break;case"{":d.lastIndex=0,N=!y.test(q)&&(E.test(q)||o.test(q)),v.push(N),ue=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(v.length===W.nesting){g.lastIndex=B,I=g.exec(T),B=g.lastIndex,q=I[0],I[1]==="${"?(q="?InterpolationInTemplate",ue=!1,yield{type:"TemplateMiddle",value:I[0]}):(De.pop(),ue=!0,yield{type:"TemplateTail",value:I[0],closed:I[1]==="`"});continue}break;case"InterpolationInJSX":if(v.length===W.nesting){De.pop(),B+=1,q="}",yield{type:"JSXPunctuator",value:"}"};continue}}ue=v.pop(),Z=ue?"?ExpressionBraceEnd":"}";break;case"]":ue=!0;break;case"++":case"--":Z=ue?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(S&&(E.test(q)||o.test(q))){De.push({tag:"JSXTag"}),B+=1,q="<",yield{type:"JSXPunctuator",value:we};continue}ue=!1;break;default:ue=!1}B=X,q=Z,yield{type:"Punctuator",value:we};continue}if(r.lastIndex=B,I=r.exec(T)){switch(B=r.lastIndex,Z=I[0],I[0]){case"for":case"if":case"while":case"with":q!=="."&&q!=="?."&&(Z="?NonExpressionParenKeyword")}q=Z,ue=!o.test(I[0]),yield{type:I[1]==="#"?"PrivateIdentifier":"IdentifierName",value:I[0]};continue}if(D.lastIndex=B,I=D.exec(T)){B=D.lastIndex,q=I[0],ue=!0,yield{type:"StringLiteral",value:I[0],closed:I[2]!==void 0};continue}if(h.lastIndex=B,I=h.exec(T)){B=h.lastIndex,q=I[0],ue=!0,yield{type:"NumericLiteral",value:I[0]};continue}if(g.lastIndex=B,I=g.exec(T)){B=g.lastIndex,q=I[0],I[1]==="${"?(q="?InterpolationInTemplate",De.push({tag:"InterpolationInTemplate",nesting:v.length}),ue=!1,yield{type:"TemplateHead",value:I[0]}):(ue=!0,yield{type:"NoSubstitutionTemplate",value:I[0],closed:I[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=B,I=n.exec(T)){switch(B=n.lastIndex,Z=I[0],I[0]){case"<":De.push({tag:"JSXTag"});break;case">":De.pop(),q==="/"||W.tag==="JSXTagEnd"?(Z="?JSX",ue=!0):De.push({tag:"JSXChildren"});break;case"{":De.push({tag:"InterpolationInJSX",nesting:v.length}),Z="?InterpolationInJSX",ue=!1;break;case"/":q==="<"&&(De.pop(),De[De.length-1].tag==="JSXChildren"&&De.pop(),De.push({tag:"JSXTagEnd"}))}q=Z,yield{type:"JSXPunctuator",value:I[0]};continue}if(s.lastIndex=B,I=s.exec(T)){B=s.lastIndex,q=I[0],yield{type:"JSXIdentifier",value:I[0]};continue}if(i.lastIndex=B,I=i.exec(T)){B=i.lastIndex,q=I[0],yield{type:"JSXString",value:I[0],closed:I[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=B,I=a.exec(T)){B=a.lastIndex,q=I[0],yield{type:"JSXText",value:I[0]};continue}switch(T[B]){case"<":De.push({tag:"JSXTag"}),B++,q="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":De.push({tag:"InterpolationInJSX",nesting:v.length}),B++,q="?InterpolationInJSX",ue=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(A.lastIndex=B,I=A.exec(T)){B=A.lastIndex,yield{type:"WhiteSpace",value:I[0]};continue}if(c.lastIndex=B,I=c.exec(T)){B=c.lastIndex,ue=!1,u.test(q)&&(q="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:I[0]};continue}if(p.lastIndex=B,I=p.exec(T)){B=p.lastIndex,l.test(I[0])&&(ue=!1,u.test(q)&&(q="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:I[0],closed:I[1]!==void 0};continue}if(f.lastIndex=B,I=f.exec(T)){B=f.lastIndex,ue=!1,yield{type:"SingleLineComment",value:I[0]};continue}k=String.fromCodePoint(T.codePointAt(B)),B+=k.length,q=k,ue=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:k}}}}),zg={};Uo(zg,{__debug:()=>Ox,check:()=>_x,doc:()=>Oh,format:()=>ia,formatWithCursor:()=>Uh,getSupportInfo:()=>Lx,util:()=>Mh,version:()=>ox});var vn=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n),Jg=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Xg=vn("replaceAll",function(){if(typeof this=="string")return Jg}),Qi=Xg,Kg=class{diff(e,t,r={}){let s;typeof r=="function"?(s=r,r={}):"callback"in r&&(s=r.callback);let n=this.castInput(e,r),i=this.castInput(t,r),a=this.removeEmpty(this.tokenize(n,r)),o=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(a,o,r,s)}diffWithOptionsObj(e,t,r,s){var n;let i=g=>{if(g=this.postProcess(g,r),s){setTimeout(function(){s(g)},0);return}else return g},a=t.length,o=e.length,u=1,c=a+o;r.maxEditLength!=null&&(c=Math.min(c,r.maxEditLength));let p=(n=r.timeout)!==null&&n!==void 0?n:1/0,l=Date.now()+p,h=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(h[0],t,e,0,r);if(h[0].oldPos+1>=o&&d+1>=a)return i(this.buildValues(h[0].lastComponent,t,e));let m=-1/0,f=1/0,D=()=>{for(let g=Math.max(m,-u);g<=Math.min(f,u);g+=2){let y,E=h[g-1],A=h[g+1];E&&(h[g-1]=void 0);let x=!1;if(A){let S=A.oldPos-g;x=A&&0<=S&&S<a}let T=E&&E.oldPos+1<o;if(!x&&!T){h[g]=void 0;continue}if(!T||x&&E.oldPos<A.oldPos?y=this.addToPath(A,!0,!1,0,r):y=this.addToPath(E,!1,!0,1,r),d=this.extractCommon(y,t,e,g,r),y.oldPos+1>=o&&d+1>=a)return i(this.buildValues(y.lastComponent,t,e))||!0;h[g]=y,y.oldPos+1>=o&&(f=Math.min(f,g-1)),d+1>=a&&(m=Math.max(m,g+1))}u++};if(s)(function g(){setTimeout(function(){if(u>c||Date.now()>l)return s(void 0);D()||g()},0)})();else for(;u<=c&&Date.now()<=l;){let g=D();if(g)return g}}addToPath(e,t,r,s,n){let i=e.lastComponent;return i&&!n.oneChangePerToken&&i.added===t&&i.removed===r?{oldPos:e.oldPos+s,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+s,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}}extractCommon(e,t,r,s,n){let i=t.length,a=r.length,o=e.oldPos,u=o-s,c=0;for(;u+1<i&&o+1<a&&this.equals(r[o+1],t[u+1],n);)u++,o++,c++,n.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!n.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=o,u}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let s=[],n;for(;e;)s.push(e),n=e.previousComponent,delete e.previousComponent,e=n;s.reverse();let i=s.length,a=0,o=0,u=0;for(;a<i;a++){let c=s[a];if(c.removed)c.value=this.join(r.slice(u,u+c.count)),u+=c.count;else{if(!c.added&&this.useLongestToken){let p=t.slice(o,o+c.count);p=p.map(function(l,h){let d=r[u+h];return d.length>l.length?d:l}),c.value=this.join(p)}else c.value=this.join(t.slice(o,o+c.count));o+=c.count,c.added||(u+=c.count)}}return s}},Gg=class extends Kg{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Yg=new Gg;function Qg(e,t,r){return Yg.diff(e,t,r)}var Zg=()=>{},Br=Zg,Uc="cr",qc="crlf",e1="lf",t1=e1,qo="\r",$c=`\r
|
|
3
|
+
`,Zi=`
|
|
4
|
+
`,r1=Zi;function s1(e){let t=e.indexOf(qo);return t!==-1?e.charAt(t+1)===Zi?qc:Uc:t1}function $o(e){return e===Uc?qo:e===qc?$c:r1}var n1=new Map([[Zi,/\n/gu],[qo,/\r/gu],[$c,/\r\n/gu]]);function Vc(e,t){let r=n1.get(t);return e.match(r)?.length??0}var i1=/\r\n?/gu;function a1(e){return Qi(0,e,i1,Zi)}function o1(e){return this[e<0?this.length+e:e]}var u1=vn("at",function(){if(Array.isArray(this)||typeof this=="string")return o1}),Ne=u1,ss="string",ar="array",Ir="cursor",or="indent",ur="align",lr="trim",Qe="group",Ut="fill",ot="if-break",pr="indent-if-break",cr="line-suffix",hr="line-suffix-boundary",Ue="line",qt="label",mt="break-parent",Wc=new Set([Ir,or,ur,lr,Qe,Ut,ot,pr,cr,hr,Ue,qt,mt]);function l1(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
|
|
5
|
+
`);)t--;return t<e.length?e.slice(0,t):e}function p1(e){if(typeof e=="string")return ss;if(Array.isArray(e))return ar;if(!e)return;let{type:t}=e;if(Wc.has(t))return t}var ns=p1,c1=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function h1(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
6
|
+
Expected it to be 'string' or 'object'.`;if(ns(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=c1([...Wc].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
|
|
7
|
+
Expected it to be ${s}.`}var d1=class extends Error{constructor(t){super(h1(t));U(this,"name","InvalidDocError");this.doc=t}},Ls=d1,dc={};function f1(e,t,r,s){let n=[e];for(;n.length>0;){let i=n.pop();if(i===dc){r(n.pop());continue}r&&n.push(i,dc);let a=ns(i);if(!a)throw new Ls(i);if(t?.(i)!==!1)switch(a){case ar:case Ut:{let o=a===ar?i:i.parts;for(let u=o.length,c=u-1;c>=0;--c)n.push(o[c]);break}case ot:n.push(i.flatContents,i.breakContents);break;case Qe:if(s&&i.expandedStates)for(let o=i.expandedStates.length,u=o-1;u>=0;--u)n.push(i.expandedStates[u]);else n.push(i.contents);break;case ur:case or:case pr:case qt:case cr:n.push(i.contents);break;case ss:case Ir:case lr:case hr:case Ue:case mt:break;default:throw new Ls(i)}}}var Vo=f1;function ea(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(ns(i)){case ar:return t(i.map(s));case Ut:return t({...i,parts:i.parts.map(s)});case ot:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Qe:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case ur:case or:case pr:case qt:case cr:return t({...i,contents:s(i.contents)});case ss:case Ir:case lr:case hr:case Ue:case mt:return t(i);default:throw new Ls(i)}}}function Wo(e,t,r){let s=r,n=!1;function i(a){if(n)return!1;let o=t(a);o!==void 0&&(n=!0,s=o)}return Vo(e,i),s}function m1(e){if(e.type===Qe&&e.break||e.type===Ue&&e.hard||e.type===mt)return!0}function y1(e){return Wo(e,m1,!1)}function fc(e){if(e.length>0){let t=Ne(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function D1(e){let t=new Set,r=[];function s(i){if(i.type===mt&&fc(r),i.type===Qe){if(r.push(i),t.has(i))return!1;t.add(i)}}function n(i){i.type===Qe&&r.pop().break&&fc(r)}Vo(e,s,n,!0)}function g1(e){return e.type===Ue&&!e.hard?e.soft?"":" ":e.type===ot?e.flatContents:e}function E1(e){return ea(e,g1)}function mc(e){for(e=[...e];e.length>=2&&Ne(0,e,-2).type===Ue&&Ne(0,e,-1).type===mt;)e.length-=2;if(e.length>0){let t=Fn(Ne(0,e,-1));e[e.length-1]=t}return e}function Fn(e){switch(ns(e)){case or:case pr:case Qe:case cr:case qt:{let t=Fn(e.contents);return{...e,contents:t}}case ot:return{...e,breakContents:Fn(e.breakContents),flatContents:Fn(e.flatContents)};case Ut:return{...e,parts:mc(e.parts)};case ar:return mc(e);case ss:return l1(e);case ur:case Ir:case lr:case hr:case Ue:case mt:break;default:throw new Ls(e)}return e}function Hc(e){return Fn(A1(e))}function x1(e){switch(ns(e)){case Ut:if(e.parts.every(t=>t===""))return"";break;case Qe:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Qe&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ur:case or:case pr:case cr:if(!e.contents)return"";break;case ot:if(!e.flatContents&&!e.breakContents)return"";break;case ar:{let t=[];for(let r of e){if(!r)continue;let[s,...n]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof Ne(0,t,-1)=="string"?t[t.length-1]+=s:t.push(s),t.push(...n)}return t.length===0?"":t.length===1?t[0]:t}case ss:case Ir:case lr:case hr:case Ue:case qt:case mt:break;default:throw new Ls(e)}return e}function A1(e){return ea(e,t=>x1(t))}function C1(e,t=Zc){return ea(e,r=>typeof r=="string"?Gc(t,r.split(`
|
|
8
|
+
`)):r)}function F1(e){if(e.type===Ue)return!0}function b1(e){return Wo(e,F1,!1)}function Xi(e,t){return e.type===qt?{...e,contents:t(e.contents)}:t(e)}var Rt=Br,zc=Br,T1=Br,v1=Br;function Yi(e){return Rt(e),{type:or,contents:e}}function Os(e,t){return v1(e),Rt(t),{type:ur,contents:t,n:e}}function S1(e){return Os(Number.NEGATIVE_INFINITY,e)}function Jc(e){return Os({type:"root"},e)}function w1(e){return Os(-1,e)}function Xc(e,t,r){Rt(e);let s=e;if(t>0){for(let n=0;n<Math.floor(t/r);++n)s=Yi(s);s=Os(t%r,s),s=Os(Number.NEGATIVE_INFINITY,s)}return s}var ta={type:mt},ts={type:Ir};function k1(e){return T1(e),{type:Ut,parts:e}}function Kc(e,t={}){return Rt(e),zc(t.expandedStates,!0),{type:Qe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function P1(e,t){return Kc(e[0],{...t,expandedStates:e})}function B1(e,t="",r={}){return Rt(e),t!==""&&Rt(t),{type:ot,breakContents:e,flatContents:t,groupId:r.groupId}}function N1(e,t){return Rt(e),{type:pr,contents:e,groupId:t.groupId,negate:t.negate}}function Gc(e,t){Rt(e),zc(t);let r=[];for(let s=0;s<t.length;s++)s!==0&&r.push(e),r.push(t[s]);return r}function I1(e,t){return Rt(t),e?{type:qt,label:e,contents:t}:t}var Yc={type:Ue},_1={type:Ue,soft:!0},Ho={type:Ue,hard:!0},nr=[Ho,ta],Qc={type:Ue,hard:!0,literal:!0},Zc=[Qc,ta];function _o(e){return Rt(e),{type:cr,contents:e}}var L1={type:hr},O1={type:lr};function sr(e){if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...sr(r));else{let s=sr(r);s!==""&&t.push(s)}return t}return e.type===ot?{...e,breakContents:sr(e.breakContents),flatContents:sr(e.flatContents)}:e.type===Qe?{...e,contents:sr(e.contents),expandedStates:e.expandedStates?.map(sr)}:e.type===Ut?{type:"fill",parts:e.parts.map(sr)}:e.contents?{...e,contents:sr(e.contents)}:e}function M1(e){let t=Object.create(null),r=new Set;return s(sr(e));function s(i,a,o){if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let u=i.map(s).filter(Boolean);return u.length===1?u[0]:`[${u.join(", ")}]`}if(i.type===Ue){let u=o?.[a+1]?.type===mt;return i.literal?u?"literalline":"literallineWithoutBreakParent":i.hard?u?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===mt)return o?.[a-1]?.type===Ue&&o[a-1].hard?void 0:"breakParent";if(i.type===lr)return"trim";if(i.type===or)return"indent("+s(i.contents)+")";if(i.type===ur)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+s(i.contents)+")":i.n<0?"dedent("+s(i.contents)+")":i.n.type==="root"?"markAsRoot("+s(i.contents)+")":"align("+JSON.stringify(i.n)+", "+s(i.contents)+")";if(i.type===ot)return"ifBreak("+s(i.breakContents)+(i.flatContents?", "+s(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${n(i.groupId)} }`:"")+")";if(i.type===pr){let u=[];i.negate&&u.push("negate: true"),i.groupId&&u.push(`groupId: ${n(i.groupId)}`);let c=u.length>0?`, { ${u.join(", ")} }`:"";return`indentIfBreak(${s(i.contents)}${c})`}if(i.type===Qe){let u=[];i.break&&i.break!=="propagated"&&u.push("shouldBreak: true"),i.id&&u.push(`id: ${n(i.id)}`);let c=u.length>0?`, { ${u.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(p=>s(p)).join(",")}]${c})`:`group(${s(i.contents)}${c})`}if(i.type===Ut)return`fill([${i.parts.map(u=>s(u)).join(", ")}])`;if(i.type===cr)return"lineSuffix("+s(i.contents)+")";if(i.type===hr)return"lineSuffixBoundary";if(i.type===qt)return`label(${JSON.stringify(i.label)}, ${s(i.contents)})`;if(i.type===Ir)return"cursor";throw new Error("Unknown doc type "+i.type)}function n(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let a=i.description||"symbol";for(let o=0;;o++){let u=a+(o>0?` #${o}`:"");if(!r.has(u))return r.add(u),t[i]=`Symbol.for(${JSON.stringify(u)})`}}}var j1=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function R1(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function U1(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var q1="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",$1=/[^\x20-\x7F]/u,V1=new Set(q1);function W1(e){if(!e)return 0;if(!$1.test(e))return e.length;e=e.replace(j1(),r=>V1.has(r)?" ":" ");let t=0;for(let r of e){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(t+=R1(s)||U1(s)?2:1)}return t}var zo=W1,H1={type:0},z1={type:1},eh={value:"",length:0,queue:[],get root(){return eh}};function th(e,t,r){let s=t.type===1?e.queue.slice(0,-1):[...e.queue,t],n="",i=0,a=0,o=0;for(let m of s)switch(m.type){case 0:p(),r.useTabs?u(1):c(r.tabWidth);break;case 3:{let{string:f}=m;p(),n+=f,i+=f.length;break}case 2:{let{width:f}=m;a+=1,o+=f;break}default:throw new Error(`Unexpected indent comment '${m.type}'.`)}return h(),{...e,value:n,length:i,queue:s};function u(m){n+=" ".repeat(m),i+=r.tabWidth*m}function c(m){n+=" ".repeat(m),i+=m}function p(){r.useTabs?l():h()}function l(){a>0&&u(a),d()}function h(){o>0&&c(o),d()}function d(){a=0,o=0}}function J1(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let s;return typeof t=="number"?t<0?s=z1:s={type:2,width:t}:s={type:3,string:t},th(e,s,r)}function X1(e,t){return th(e,H1,t)}function K1(e){let t=0;for(let r=e.length-1;r>=0;r--){let s=e[r];if(s===" "||s===" ")t++;else break}return t}function rh(e){let t=K1(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Ye=Symbol("MODE_BREAK"),Mt=Symbol("MODE_FLAT"),Lo=Symbol("DOC_FILL_PRINTED_LENGTH");function zi(e,t,r,s,n,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,o=!1,u=[e],c="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(t[--a]);continue}let{mode:p,doc:l}=u.pop(),h=ns(l);switch(h){case ss:l&&(o&&(c+=" ",r-=1,o=!1),c+=l,r-=zo(l));break;case ar:case Ut:{let d=h===ar?l:l.parts,m=l[Lo]??0;for(let f=d.length-1;f>=m;f--)u.push({mode:p,doc:d[f]});break}case or:case ur:case pr:case qt:u.push({mode:p,doc:l.contents});break;case lr:{let{text:d,count:m}=rh(c);c=d,r+=m;break}case Qe:{if(i&&l.break)return!1;let d=l.break?Ye:p,m=l.expandedStates&&d===Ye?Ne(0,l.expandedStates,-1):l.contents;u.push({mode:d,doc:m});break}case ot:{let d=(l.groupId?n[l.groupId]||Mt:p)===Ye?l.breakContents:l.flatContents;d&&u.push({mode:p,doc:d});break}case Ue:if(p===Ye||l.hard)return!0;l.soft||(o=!0);break;case cr:s=!0;break;case hr:if(s)return!1;break}}return!1}function ra(e,t){let r=Object.create(null),s=t.printWidth,n=$o(t.endOfLine),i=0,a=[{indent:eh,mode:Ye,doc:e}],o="",u=!1,c=[],p=[],l=[],h=[],d=0;for(D1(e);a.length>0;){let{indent:y,mode:E,doc:A}=a.pop();switch(ns(A)){case ss:{let x=n!==`
|
|
9
|
+
`?Qi(0,A,`
|
|
10
|
+
`,n):A;x&&(o+=x,a.length>0&&(i+=zo(x)));break}case ar:for(let x=A.length-1;x>=0;x--)a.push({indent:y,mode:E,doc:A[x]});break;case Ir:if(p.length>=2)throw new Error("There are too many 'cursor' in doc.");p.push(d+o.length);break;case or:a.push({indent:X1(y,t),mode:E,doc:A.contents});break;case ur:a.push({indent:J1(y,A.n,t),mode:E,doc:A.contents});break;case lr:g();break;case Qe:switch(E){case Mt:if(!u){a.push({indent:y,mode:A.break?Ye:Mt,doc:A.contents});break}case Ye:{u=!1;let x={indent:y,mode:Mt,doc:A.contents},T=s-i,S=c.length>0;if(!A.break&&zi(x,a,T,S,r))a.push(x);else if(A.expandedStates){let v=Ne(0,A.expandedStates,-1);if(A.break){a.push({indent:y,mode:Ye,doc:v});break}else for(let k=1;k<A.expandedStates.length+1;k++)if(k>=A.expandedStates.length){a.push({indent:y,mode:Ye,doc:v});break}else{let N=A.expandedStates[k],B={indent:y,mode:Mt,doc:N};if(zi(B,a,T,S,r)){a.push(B);break}}}else a.push({indent:y,mode:Ye,doc:A.contents});break}}A.id&&(r[A.id]=Ne(0,a,-1).mode);break;case Ut:{let x=s-i,T=A[Lo]??0,{parts:S}=A,v=S.length-T;if(v===0)break;let k=S[T+0],N=S[T+1],B={indent:y,mode:Mt,doc:k},q={indent:y,mode:Ye,doc:k},j=zi(B,[],x,c.length>0,r,!0);if(v===1){j?a.push(B):a.push(q);break}let I={indent:y,mode:Mt,doc:N},W={indent:y,mode:Ye,doc:N};if(v===2){j?a.push(I,B):a.push(W,q);break}let X=S[T+2],Z={indent:y,mode:E,doc:{...A,[Lo]:T+2}},Se=zi({indent:y,mode:Mt,doc:[k,N,X]},[],x,c.length>0,r,!0);a.push(Z),Se?a.push(I,B):j?a.push(W,B):a.push(W,q);break}case ot:case pr:{let x=A.groupId?r[A.groupId]:E;if(x===Ye){let T=A.type===ot?A.breakContents:A.negate?A.contents:Yi(A.contents);T&&a.push({indent:y,mode:E,doc:T})}if(x===Mt){let T=A.type===ot?A.flatContents:A.negate?Yi(A.contents):A.contents;T&&a.push({indent:y,mode:E,doc:T})}break}case cr:c.push({indent:y,mode:E,doc:A.contents});break;case hr:c.length>0&&a.push({indent:y,mode:E,doc:Ho});break;case Ue:switch(E){case Mt:if(A.hard)u=!0;else{A.soft||(o+=" ",i+=1);break}case Ye:if(c.length>0){a.push({indent:y,mode:E,doc:A},...c.reverse()),c.length=0;break}A.literal?(o+=n,i=0,y.root&&(y.root.value&&(o+=y.root.value),i=y.root.length)):(g(),o+=n+y.value,i=y.length);break}break;case qt:a.push({indent:y,mode:E,doc:A.contents});break;case mt:break;default:throw new Ls(A)}a.length===0&&c.length>0&&(a.push(...c.reverse()),c.length=0)}let m=l.join("")+o,f=[...h,...p];if(f.length!==2)return{formatted:m};let D=f[0];return{formatted:m,cursorNodeStart:D,cursorNodeText:m.slice(D,Ne(0,f,-1))};function g(){let{text:y,count:E}=rh(o);y&&(l.push(y),d+=y.length),o="",i-=E,p.length>0&&(h.push(...p.map(A=>Math.min(A,d))),p.length=0)}}function G1(e,t,r=0){let s=0;for(let n=r;n<e.length;++n)e[n]===" "?s=s+t-s%t:s++;return s}var Jo=G1,ir,Oo,Ki,Rc,Y1=(Rc=class{constructor(e){kr(this,ir);this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ne(0,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ne(0,this.stack,-2)}get node(){return Ne(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Ne(0,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Ot(this,ir,Ki).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ne(0,e,-2):null}getValue(){return Ne(0,this.stack,-1)}getNode(e=0){let t=Ot(this,ir,Oo).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:s}=r,n=Ne(0,r,-1);for(let i of t)n=n?.[i],r.push(i,n);try{return e(this)}finally{r.length=s}}callParent(e,t=0){let r=Ot(this,ir,Oo).call(this,t+1),s=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...s)}}each(e,...t){let{stack:r}=this,{length:s}=r,n=Ne(0,r,-1);for(let i of t)n=n[i],r.push(i,n);try{for(let i=0;i<n.length;++i)r.push(i,n[i]),e(this,i,n),r.length-=2}finally{r.length=s}}map(e,...t){let r=[];return this.each((s,n,i)=>{r[n]=e(s,n,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,s=this.stack[t--];for(let n of e){if(s===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],s=this.stack[t--]),n&&!n(s,r,i))return!1;r=this.stack[t--],s=this.stack[t--]}return!0}findAncestor(e){for(let t of Ot(this,ir,Ki).call(this))if(e(t))return t}hasAncestor(e){for(let t of Ot(this,ir,Ki).call(this))if(e(t))return!0;return!1}},ir=new WeakSet,Oo=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},Ki=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}},Rc),Q1=Y1;function Z1(e){return e!==null&&typeof e=="object"}var Xo=Z1;function Sn(e){return(t,r,s)=>{let n=!!s?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let o=t.charAt(a);if(e instanceof RegExp){if(!e.test(o))return a}else if(!e.includes(o))return a;n?a--:a++}return a===-1||a===i?a:!1}}var e2=Sn(/\s/u),Nr=Sn(" "),sh=Sn(",; "),nh=Sn(/[^\n\r]/u),yc=e=>e===`
|
|
11
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function t2(e,t,r){let s=!!r?.backwards;if(t===!1)return!1;let n=e.charAt(t);if(s){if(e.charAt(t-1)==="\r"&&n===`
|
|
12
|
+
`)return t-2;if(yc(n))return t-1}else{if(n==="\r"&&e.charAt(t+1)===`
|
|
13
|
+
`)return t+2;if(yc(n))return t+1}return t}var rs=t2;function r2(e,t,r={}){let s=Nr(e,r.backwards?t-1:t,r),n=rs(e,s,r);return s!==n}var Pr=r2;function s2(e){return Array.isArray(e)&&e.length>0}var n2=s2;function*sa(e,t){let{getVisitorKeys:r,filter:s=()=>!0}=t,n=i=>Xo(i)&&s(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let o of a)n(o)&&(yield o);else n(a)&&(yield a)}}function*i2(e,t){let r=[e];for(let s=0;s<r.length;s++){let n=r[s];for(let i of sa(n,t))yield i,r.push(i)}}function a2(e,t){return sa(e,t).next().done}function ih(e,t,r){let{cache:s}=r;if(s.has(e))return s.get(e);let{filter:n}=r;if(!n)return[];let i,a=(r.getChildren?.(e,r)??[...sa(e,{getVisitorKeys:r.getVisitorKeys})]).flatMap(c=>(i??(i=[e,...t]),n(c,i)?[c]:ih(c,i,r))),{locStart:o,locEnd:u}=r;return a.sort((c,p)=>o(c)-o(p)||u(c)-u(p)),s.set(e,a),a}var ah=ih;function o2(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Ko(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=o2(e)}function bn(e,t){t.leading=!0,t.trailing=!1,Ko(e,t)}function Zr(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ko(e,t)}function Tn(e,t){t.leading=!1,t.trailing=!0,Ko(e,t)}var oh=new WeakMap;function uh(e,t,r,s,n=[]){let{locStart:i,locEnd:a}=r,o=i(t),u=a(t),c=ah(e,n,{cache:oh,locStart:i,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),p,l,h=0,d=c.length;for(;h<d;){let m=h+d>>1,f=c[m],D=i(f),g=a(f);if(D<=o&&u<=g)return uh(f,t,r,f,[f,...n]);if(g<=o){p=f,h=m+1;continue}if(u<=D){l=f,d=m;continue}throw new Error("Comment location overlaps with node location")}if(s?.type==="TemplateLiteral"){let{quasis:m}=s,f=wo(m,t,r);p&&wo(m,p,r)!==f&&(p=null),l&&wo(m,l,r)!==f&&(l=null)}return{enclosingNode:s,precedingNode:p,followingNode:l}}var So=()=>!1;function u2(e,t){let{comments:r}=e;if(delete e.comments,!n2(r)||!t.printer.canAttachComment)return;let s=[],{printer:{features:{experimental_avoidAstMutation:n},handleComments:i={}},originalText:a}=t,{ownLine:o=So,endOfLine:u=So,remaining:c=So}=i,p=r.map((l,h)=>({...uh(e,l,t),comment:l,text:a,options:t,ast:e,isLastComment:r.length-1===h}));for(let[l,h]of p.entries()){let{comment:d,precedingNode:m,enclosingNode:f,followingNode:D,text:g,options:y,ast:E,isLastComment:A}=h,x;if(n?x=[h]:(d.enclosingNode=f,d.precedingNode=m,d.followingNode=D,x=[d,g,y,E,A]),l2(g,y,p,l))d.placement="ownLine",o(...x)||(D?bn(D,d):m?Tn(m,d):Zr(f||E,d));else if(p2(g,y,p,l))d.placement="endOfLine",u(...x)||(m?Tn(m,d):D?bn(D,d):Zr(f||E,d));else if(d.placement="remaining",!c(...x))if(m&&D){let T=s.length;T>0&&s[T-1].followingNode!==D&&Dc(s,y),s.push(h)}else m?Tn(m,d):D?bn(D,d):Zr(f||E,d)}if(Dc(s,t),!n)for(let l of r)delete l.precedingNode,delete l.enclosingNode,delete l.followingNode}var lh=e=>!/[\S\n\u2028\u2029]/u.test(e);function l2(e,t,r,s){let{comment:n,precedingNode:i}=r[s],{locStart:a,locEnd:o}=t,u=a(n);if(i)for(let c=s-1;c>=0;c--){let{comment:p,precedingNode:l}=r[c];if(l!==i||!lh(e.slice(o(p),u)))break;u=a(p)}return Pr(e,u,{backwards:!0})}function p2(e,t,r,s){let{comment:n,followingNode:i}=r[s],{locStart:a,locEnd:o}=t,u=o(n);if(i)for(let c=s+1;c<r.length;c++){let{comment:p,followingNode:l}=r[c];if(l!==i||!lh(e.slice(u,a(p))))break;u=o(p)}return Pr(e,u)}function Dc(e,t){let r=e.length;if(r===0)return;let{precedingNode:s,followingNode:n}=e[0],i=t.locStart(n),a;for(a=r;a>0;--a){let{comment:o,precedingNode:u,followingNode:c}=e[a-1];Br(u,s),Br(c,n);let p=t.originalText.slice(t.locEnd(o),i);if(t.printer.isGap?.(p,t)??/^[\s(]*$/u.test(p))i=t.locStart(o);else break}for(let[o,{comment:u}]of e.entries())o<a?Tn(s,u):bn(n,u);for(let o of[s,n])o.comments&&o.comments.length>1&&o.comments.sort((u,c)=>t.locStart(u)-t.locStart(c));e.length=0}function wo(e,t,r){let s=r.locStart(t)-1;for(let n=1;n<e.length;++n)if(s<r.locStart(e[n]))return n-1;return 0}function c2(e,t){let r=t-1;r=Nr(e,r,{backwards:!0}),r=rs(e,r,{backwards:!0}),r=Nr(e,r,{backwards:!0});let s=rs(e,r,{backwards:!0});return r!==s}var Go=c2;function ph(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function h2(e,t){let r=e.node,s=[ph(e,t)],{printer:n,originalText:i,locStart:a,locEnd:o}=t;if(n.isBlockComment?.(r)){let c=Pr(i,o(r))?Pr(i,a(r),{backwards:!0})?nr:Yc:" ";s.push(c)}else s.push(nr);let u=rs(i,Nr(i,o(r)));return u!==!1&&Pr(i,u)&&s.push(nr),s}function d2(e,t,r){let s=e.node,n=ph(e,t),{printer:i,originalText:a,locStart:o}=t,u=i.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||Pr(a,o(s),{backwards:!0})){let c=Go(a,o(s));return{doc:_o([nr,c?nr:"",n]),isBlock:u,hasLineSuffix:!0}}return!u||r?.hasLineSuffix?{doc:[_o([" ",n]),ta],isBlock:u,hasLineSuffix:!0}:{doc:[" ",n],isBlock:u,hasLineSuffix:!1}}function f2(e,t){let r=e.node;if(!r)return{};let s=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!s.has(o)).length===0)return{leading:"",trailing:""};let n=[],i=[],a;return e.each(()=>{let o=e.node;if(s?.has(o))return;let{leading:u,trailing:c}=o;u?n.push(h2(e,t)):c&&(a=d2(e,t,a),i.push(a.doc))},"comments"),{leading:n,trailing:i}}function m2(e,t,r){let{leading:s,trailing:n}=f2(e,r);return!s&&!n?t:Xi(t,i=>[s,i,n])}function y2(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let s of t){if(!s.printed&&!r.has(s))throw new Error('Comment "'+s.value.trim()+'" was not printed. Please report this error!');delete s.printed}}var D2=()=>Br,ch=class extends Error{constructor(){super(...arguments);U(this,"name","ConfigError")}},gc=class extends Error{constructor(){super(...arguments);U(this,"name","UndefinedParserError")}},g2={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
14
|
+
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
15
|
+
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
16
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"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."}]}};function hh({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(n=>n.languages??[]),s=[];for(let n of x2(Object.assign({},...e.map(({options:i})=>i),g2)))!t&&n.deprecated||(Array.isArray(n.choices)&&(t||(n.choices=n.choices.filter(i=>!i.deprecated)),n.name==="parser"&&(n.choices=[...n.choices,...E2(n.choices,r,e)])),n.pluginDefaults=Object.fromEntries(e.filter(i=>i.defaultOptions?.[n.name]!==void 0).map(i=>[i.name,i.defaultOptions[n.name]])),s.push(n));return{languages:r,options:s}}function*E2(e,t,r){let s=new Set(e.map(n=>n.value));for(let n of t)if(n.parsers){for(let i of n.parsers)if(!s.has(i)){s.add(i);let a=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,i)),o=n.name;a?.name&&(o+=` (plugin: ${a.name})`),yield{value:i,description:o}}}}function x2(e){let t=[];for(let[r,s]of Object.entries(e)){let n={name:r,...s};Array.isArray(n.default)&&(n.default=Ne(0,n.default,-1).value),t.push(n)}return t}var A2=Array.prototype.toReversed??function(){return[...this].reverse()},C2=vn("toReversed",function(){if(Array.isArray(this))return A2}),F2=C2;function b2(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var T2=b2();function dh(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function v2(e){return e=dh(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function S2(e){e=dh(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function w2(e){return T2?S2(e):v2(e)}var k2=e=>String(e).split(/[/\\]/u).pop(),P2=e=>String(e).startsWith("file:");function Ec(e,t){if(!t)return;let r=k2(t).toLowerCase();return e.find(({filenames:s})=>s?.some(n=>n.toLowerCase()===r))??e.find(({extensions:s})=>s?.some(n=>r.endsWith(n)))}function B2(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var N2=void 0;function xc(e,t){if(t){if(P2(t))try{t=w2(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function I2(e,t){let r=F2(0,e.plugins).flatMap(s=>s.languages??[]);return(B2(r,t.language)??Ec(r,t.physicalFile)??Ec(r,t.file)??xc(r,t.physicalFile)??xc(r,t.file)??N2?.(r,t.physicalFile))?.parsers[0]}var fh=I2,_s={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>_s.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${_s.key(r)}: ${_s.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>_s.value({[e]:t})},Yo=new Proxy(String,{get:()=>Yo}),jt=Yo,mh=()=>Yo,_2=(e,t,{descriptor:r})=>{let s=[`${jt.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&s.push(`we now treat it as ${jt.blue(typeof t=="string"?r.key(t):r.pair(t))}`),s.join("; ")+"."},yh=Symbol.for("vnopts.VALUE_NOT_EXIST"),Gi=Symbol.for("vnopts.VALUE_UNCHANGED"),Ac=" ".repeat(2),L2=(e,t,r)=>{let{text:s,list:n}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return s&&i.push(Cc(e,t,s,r.descriptor)),n&&i.push([Cc(e,t,n.title,r.descriptor)].concat(n.values.map(a=>Dh(a,r.loggerPrintWidth))).join(`
|
|
17
|
+
`)),gh(i,r.loggerPrintWidth)};function Cc(e,t,r,s){return[`Invalid ${jt.red(s.key(e))} value.`,`Expected ${jt.blue(r)},`,`but received ${t===yh?jt.gray("nothing"):jt.red(s.value(t))}.`].join(" ")}function Dh({text:e,list:t},r){let s=[];return e&&s.push(`- ${jt.blue(e)}`),t&&s.push([`- ${jt.blue(t.title)}:`].concat(t.values.map(n=>Dh(n,r-Ac.length).replace(/^|\n/g,`$&${Ac}`))).join(`
|
|
18
|
+
`)),gh(s,r)}function gh(e,t){if(e.length===1)return e[0];let[r,s]=e,[n,i]=e.map(a=>a.split(`
|
|
19
|
+
`,1)[0].length);return n>t&&n>i?s:r}var Is=[],ko=[];function Po(e,t,r){if(e===t)return 0;let s=r?.maxDistance,n=e;e.length>t.length&&(e=t,t=n);let i=e.length,a=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;let o=0;for(;o<i&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(i-=o,a-=o,s!==void 0&&a-i>s)return s;if(i===0)return s!==void 0&&a>s?s:a;let u,c,p,l,h=0,d=0;for(;h<i;)ko[h]=e.charCodeAt(o+h),Is[h]=++h;for(;d<a;){for(u=t.charCodeAt(o+d),p=d++,c=d,h=0;h<i;h++)l=u===ko[h]?p:p+1,p=Is[h],c=Is[h]=p>c?l>c?c+1:l:l>p?p+1:l;if(s!==void 0){let m=c;for(h=0;h<i;h++)Is[h]<m&&(m=Is[h]);if(m>s)return s}}return Is.length=i,ko.length=i,s!==void 0&&c>s?s:c}function O2(e,t,r){if(!Array.isArray(t)||t.length===0)return;let s=r?.maxDistance,n=e.length;for(let u of t)if(u===e)return u;if(s===0)return;let i,a=Number.POSITIVE_INFINITY,o=new Set;for(let u of t){if(o.has(u))continue;o.add(u);let c=Math.abs(u.length-n);if(c>=a||s!==void 0&&c>s)continue;let p=Number.isFinite(a)?s===void 0?a:Math.min(a,s):s,l=p===void 0?Po(e,u):Po(e,u,{maxDistance:p});if(s!==void 0&&l>s)continue;let h=l;if(p!==void 0&&l===p&&p===s&&(h=Po(e,u)),h<a&&(a=h,i=u,a===0))break}if(!(s!==void 0&&a>s))return i}var Eh=(e,t,{descriptor:r,logger:s,schemas:n})=>{let i=[`Ignored unknown option ${jt.yellow(r.pair({key:e,value:t}))}.`],a=O2(e,Object.keys(n),{maxDistance:3});a&&i.push(`Did you mean ${jt.blue(r.key(a))}?`),s.warn(i.join(" "))},M2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function j2(e,t){let r=new e(t),s=Object.create(r);for(let n of M2)n in t&&(s[n]=R2(t[n],r,_r.prototype[n].length));return s}var _r=class{static create(e){return j2(this,e)}constructor(e){this.name=e.name}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 Gi}};function R2(e,t,r){return typeof e=="function"?(...s)=>e(...s.slice(0,r-1),t,...s.slice(r-1)):()=>e}var U2=class extends _r{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}},q2=class extends _r{expected(){return"anything"}validate(){return!0}},$2=class extends _r{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let s of e){let n=t.normalizeValidateResult(this._valueSchema.validate(s,t),s);n!==!0&&r.push(n.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let s of e){let n=t.normalizeDeprecatedResult(this._valueSchema.deprecated(s,t),s);n!==!1&&r.push(...n.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let s of e){let n=t.normalizeForwardResult(this._valueSchema.forward(s,t),s);r.push(...n.map(Fc))}return r}redirect(e,t){let r=[],s=[];for(let n of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(n,t),n);"remain"in i&&r.push(i.remain),s.push(...i.redirect.map(Fc))}return r.length===0?{redirect:s}:{redirect:s,remain:r}}overlap(e,t){return e.concat(t)}};function Fc({from:e,to:t}){return{from:[e],to:t}}var V2=class extends _r{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function W2(e,t){let r=Object.create(null);for(let s of e){let n=s[t];if(r[n])throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);r[n]=s}return r}function H2(e,t){let r=new Map;for(let s of e){let n=s[t];if(r.has(n))throw new Error(`Duplicate ${t} ${JSON.stringify(n)}`);r.set(n,s)}return r}function z2(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function J2(e,t){let r=[],s=[];for(let n of e)t(n)?r.push(n):s.push(n);return[r,s]}function X2(e){return e===Math.floor(e)}function K2(e,t){if(e===t)return 0;let r=typeof e,s=typeof t,n=["undefined","object","boolean","number","string"];return r!==s?n.indexOf(r)-n.indexOf(s):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function G2(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function bc(e){return e===void 0?{}:e}function xh(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Y2((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(xh)}}:{text:t}}function Tc(e,t){return e===!0?!0:e===!1?{value:t}:e}function vc(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Sc(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Mo(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Sc(r,t)):[Sc(e,t)]}function wc(e,t){let r=Mo(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Y2(e,t){if(!e)throw new Error(t)}var Q2=class extends _r{constructor(e){super(e),this._choices=H2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(n=>this._choices.get(n)).filter(({hidden:n})=>!n).map(n=>n.value).sort(K2).map(e.value),r=t.slice(0,-2),s=t.slice(-2);return{text:r.concat(s.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}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}},Z2=class extends _r{expected(){return"a number"}validate(e,t){return typeof e=="number"}},eE=class extends Z2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&X2(e)}},kc=class extends _r{expected(){return"a string"}validate(e){return typeof e=="string"}},tE=_s,rE=Eh,sE=L2,nE=_2,iE=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:s=80,descriptor:n=tE,unknown:i=rE,invalid:a=sE,deprecated:o=nE,missing:u=()=>!1,required:c=()=>!1,preprocess:p=h=>h,postprocess:l=()=>Gi}=t||{};this._utils={descriptor:n,logger:r||{warn:()=>{}},loggerPrintWidth:s,schemas:W2(e,"name"),normalizeDefaultResult:bc,normalizeExpectedResult:xh,normalizeDeprecatedResult:vc,normalizeForwardResult:Mo,normalizeRedirectResult:wc,normalizeValidateResult:Tc},this._unknownHandler=i,this._invalidHandler=G2(a),this._deprecatedHandler=o,this._identifyMissing=(h,d)=>!(h in d)||u(h,d),this._identifyRequired=c,this._preprocess=p,this._postprocess=l,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=z2()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],s=()=>{for(;r.length!==0;){let n=r.shift(),i=this._applyNormalization(n,t);r.push(...i)}};s();for(let n of Object.keys(this._utils.schemas)){let i=this._utils.schemas[n];if(!(n in t)){let a=bc(i.default(this._utils));"value"in a&&r.push({[n]:a.value})}}s();for(let n of Object.keys(this._utils.schemas)){if(!(n in t))continue;let i=this._utils.schemas[n],a=t[n],o=i.postprocess(a,this._utils);o!==Gi&&(this._applyValidation(o,n,i),t[n]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:s,unknownKeys:n}=this._partitionOptionKeys(e);for(let i of s){let a=this._utils.schemas[i],o=a.preprocess(e[i],this._utils);this._applyValidation(o,i,a);let u=({from:l,to:h})=>{r.push(typeof h=="string"?{[h]:l}:{[h.key]:h.value})},c=({value:l,redirectTo:h})=>{let d=vc(a.deprecated(l,this._utils),o,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,h,this._utils));else for(let{value:m}of d){let f={key:i,value:m};if(!this._hasDeprecationWarned(f)){let D=typeof h=="string"?{key:h,value:m}:h;this._utils.logger.warn(this._deprecatedHandler(f,D,this._utils))}}};Mo(a.forward(o,this._utils),o).forEach(u);let p=wc(a.redirect(o,this._utils),o);if(p.redirect.forEach(u),"remain"in p){let l=p.remain;t[i]=i in t?a.overlap(t[i],l,this._utils):l,c({value:l})}for(let{from:l,to:h}of p.redirect)c({value:l,redirectTo:h})}for(let i of n){let a=e[i];this._applyUnknownHandler(i,a,t,(o,u)=>{r.push({[o]:u})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,yh,this._utils)}_partitionOptionKeys(e){let[t,r]=J2(Object.keys(e).filter(s=>!this._identifyMissing(s,e)),s=>s in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let s=Tc(r.validate(e,this._utils),e);if(s!==!0)throw this._invalidHandler(t,s.value,this._utils)}_applyUnknownHandler(e,t,r,s){let n=this._unknownHandler(e,t,this._utils);if(n)for(let i of Object.keys(n)){if(this._identifyMissing(i,n))continue;let a=n[i];i in this._utils.schemas?s(i,a):r[i]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Gi){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:s}=this._partitionOptionKeys(t.override);for(let n of r){let i=t.override[n];this._applyValidation(i,n,this._utils.schemas[n]),e[n]=i}for(let n of s){let i=t.override[n];this._applyUnknownHandler(n,i,e,(a,o)=>{let u=this._utils.schemas[a];this._applyValidation(o,a,u),e[a]=o})}}}}},Bo;function aE(e,t,{logger:r=!1,isCLI:s=!1,passThrough:n=!1,FlagSchema:i,descriptor:a}={}){if(s){if(!i)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=_s;let o=n?Array.isArray(n)?(h,d)=>n.includes(h)?{[h]:d}:void 0:(h,d)=>({[h]:d}):(h,d,m)=>{let{_:f,...D}=m.schemas;return Eh(h,d,{...m,schemas:D})},u=oE(t,{isCLI:s,FlagSchema:i}),c=new iE(u,{logger:r,unknown:o,descriptor:a}),p=r!==!1;p&&Bo&&(c._hasDeprecationWarned=Bo);let l=c.normalize(e);return p&&(Bo=c._hasDeprecationWarned),l}function oE(e,{isCLI:t,FlagSchema:r}){let s=[];t&&s.push(q2.create({name:"_"}));for(let n of e)s.push(uE(n,{isCLI:t,optionInfos:e,FlagSchema:r})),n.alias&&t&&s.push(U2.create({name:n.alias,sourceName:n.name}));return s}function uE(e,{isCLI:t,optionInfos:r,FlagSchema:s}){let{name:n}=e,i={name:n},a,o={};switch(e.type){case"int":a=eE,t&&(i.preprocess=Number);break;case"string":a=kc;break;case"choice":a=Q2,i.choices=e.choices.map(u=>u?.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=V2;break;case"flag":a=s,i.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":a=kc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(u,c,p)=>e.exception(u)||c.validate(u,p):i.validate=(u,c,p)=>u===void 0||c.validate(u,p),e.redirect&&(o.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let u=i.preprocess||(c=>c);i.preprocess=(c,p,l)=>p.preprocess(u(Array.isArray(c)?Ne(0,c,-1):c),l)}return e.array?$2.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(i)}):a.create({...i,...o})}var lE=aE,pE=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},cE=vn("findLast",function(){if(Array.isArray(this))return pE}),Ah=cE,hE=Symbol.for("PRETTIER_IS_FRONT_MATTER"),dE=[];function fE(e){return!!e?.[hE]}var Qo=fE,Ch=new Set(["yaml","toml"]),Fh=({node:e})=>Qo(e)&&Ch.has(e.language);async function mE(e,t,r,s){let{node:n}=r,{language:i}=n;if(!Ch.has(i))return;let a=n.value.trim(),o;if(a){let u=i==="yaml"?i:fh(s,{language:i});if(!u)return;o=a?await e(a,{parser:u}):""}else o=a;return Jc([n.startDelimiter,n.explicitLanguage??"",nr,o,o?nr:"",n.endDelimiter])}function yE(e,t){return Fh({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var DE=yE;function gE({node:e}){return e.raw}var EE=gE,bh=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),xE=e=>Object.keys(e).filter(t=>!bh.has(t));function AE(e,t){let r=e?s=>e(s,bh):xE;return t?new Proxy(r,{apply:(s,n,i)=>Qo(i[0])?dE:Reflect.apply(s,n,i)}):r}var Pc=AE;function Th(e,t){if(!t)throw new Error("parserName is required.");let r=Ah(0,e,n=>n.parsers&&Object.prototype.hasOwnProperty.call(n.parsers,t));if(r)return r;let s=`Couldn't resolve parser "${t}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new ch(s)}function CE(e,t){if(!t)throw new Error("astFormat is required.");let r=Ah(0,e,n=>n.printers&&Object.prototype.hasOwnProperty.call(n.printers,t));if(r)return r;let s=`Couldn't find plugin for AST format "${t}".`;throw s+=" Plugins must be explicitly added to the standalone bundle.",new ch(s)}function Zo({plugins:e,parser:t}){let r=Th(e,t);return vh(r,t)}function vh(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function FE(e,t){let r=e.printers[t],s=typeof r=="function"?await r():r;return bE(s)}var No=new WeakMap;function bE(e){if(No.has(e))return No.get(e);let{features:t,getVisitorKeys:r,embed:s,massageAstNode:n,print:i,...a}=e;t=wE(t);let o=t.experimental_frontMatterSupport;r=Pc(r,o.massageAstNode||o.embed||o.print);let u=n;n&&o.massageAstNode&&(u=new Proxy(n,{apply(h,d,m){return DE(...m),Reflect.apply(h,d,m)}}));let c=s;if(s){let h;c=new Proxy(s,{get(d,m,f){return m==="getVisitorKeys"?(h??(h=s.getVisitorKeys?Pc(s.getVisitorKeys,o.massageAstNode||o.embed):r),h):Reflect.get(d,m,f)},apply:(d,m,f)=>o.embed&&Fh(...f)?mE:Reflect.apply(d,m,f)})}let p=i;o.print&&(p=new Proxy(i,{apply(h,d,m){let[f]=m;return Qo(f.node)?EE(f):Reflect.apply(h,d,m)}}));let l={features:t,getVisitorKeys:r,embed:c,massageAstNode:u,print:p,...a};return No.set(e,l),l}var TE=["clean","embed","print"],vE=Object.fromEntries(TE.map(e=>[e,!1]));function SE(e){return{...vE,...e}}function wE(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:SE(e?.experimental_frontMatterSupport)}}var Bc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function kE(e,t={}){let r={...e};if(!r.parser)if(r.filepath){if(r.parser=fh(r,{physicalFile:r.filepath}),!r.parser)throw new gc(`No parser could be inferred for file "${r.filepath}".`)}else throw new gc("No parser and no file path given, couldn't infer a parser.");let s=hh({plugins:e.plugins,showDeprecated:!0}).options,n={...Bc,...Object.fromEntries(s.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},i=Th(r.plugins,r.parser),a=await vh(i,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let o=i.printers?.[a.astFormat]?i:CE(r.plugins,a.astFormat),u=await FE(o,a.astFormat);r.printer=u,r.getVisitorKeys=u.getVisitorKeys;let c=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,l])=>l!==void 0)):{},p={...n,...c};for(let[l,h]of Object.entries(p))(r[l]===null||r[l]===void 0)&&(r[l]=h);return r.parser==="json"&&(r.trailingComma="none"),lE(r,s,{passThrough:Object.keys(Bc),...t})}var Ms=kE,i_=Wg(Hg(),1),eu="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",Sh="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",a_=new RegExp("["+eu+"]"),o_=new RegExp("["+eu+Sh+"]");eu=Sh=null;var tu={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"]},u_=new Set(tu.keyword),l_=new Set(tu.strict),p_=new Set(tu.strictBind),Ji=(e,t)=>r=>e(t(r));function wh(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Ji(Ji(e.white,e.bgRed),e.bold),gutter:e.gray,marker:Ji(e.red,e.bold),message:Ji(e.red,e.bold),reset:e.reset}}var c_=wh(mh(!0)),h_=wh(mh(!1));function PE(){return new Proxy({},{get:()=>e=>e})}var Nc=/\r\n|[\n\r\u2028\u2029]/;function BE(e,t,r){let s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=s.line,u=s.column,c=n.line,p=n.column,l=Math.max(o-(i+1),0),h=Math.min(t.length,c+a);o===-1&&(l=0),c===-1&&(h=t.length);let d=c-o,m={};if(d)for(let f=0;f<=d;f++){let D=f+o;if(!u)m[D]=!0;else if(f===0){let g=t[D-1].length;m[D]=[u,g-u+1]}else if(f===d)m[D]=[0,p];else{let g=t[D-f].length;m[D]=[0,g]}}else u===p?u?m[o]=[u,0]:m[o]=!0:m[o]=[u,p-u];return{start:l,end:h,markerLines:m}}function NE(e,t,r={}){let s=PE(!1),n=e.split(Nc),{start:i,end:a,markerLines:o}=BE(t,n,r),u=t.start&&typeof t.start.column=="number",c=String(a).length,p=e.split(Nc,a).slice(i,a).map((l,h)=>{let d=i+1+h,m=` ${` ${d}`.slice(-c)} |`,f=o[d],D=!o[d+1];if(f){let g="";if(Array.isArray(f)){let y=l.slice(0,Math.max(f[0]-1,0)).replace(/[^\t]/g," "),E=f[1]||1;g=[`
|
|
20
|
+
`,s.gutter(m.replace(/\d/g," "))," ",y,s.marker("^").repeat(E)].join(""),D&&r.message&&(g+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(m),l.length>0?` ${l}`:"",g].join("")}else return` ${s.gutter(m)}${l.length>0?` ${l}`:""}`}).join(`
|
|
21
|
+
`);return r.message&&!u&&(p=`${" ".repeat(c+1)}${r.message}
|
|
22
|
+
${p}`),p}async function IE(e,t){let r=await Zo(t),s=r.preprocess?await r.preprocess(e,t):e;t.originalText=s;let n;try{n=await r.parse(s,t,t)}catch(i){_E(i,e)}return{text:s,ast:n}}function _E(e,t){let{loc:r}=e;if(r){let s=NE(t,r,{highlightCode:!0});throw e.message+=`
|
|
23
|
+
`+s,e.codeFrame=s,e}throw e}var wn=IE;async function LE(e,t,r,s,n){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:i}=r,{embed:a}=i;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:o}=i,{getVisitorKeys:u}=a,c=[];h();let p=e.stack;for(let{print:d,node:m,pathStack:f}of c)try{e.stack=f;let D=await d(l,t,e,r);D&&n.set(m,D)}catch(D){if(globalThis.PRETTIER_DEBUG)throw D}e.stack=p;function l(d,m){return OE(d,m,r,s)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||o?.(e))return;for(let f of u(d))Array.isArray(d[f])?e.each(h,f):e.call(h,f);let m=a(e,r);if(m){if(typeof m=="function"){c.push({print:m,node:d,pathStack:[...e.stack]});return}n.set(d,m)}}}async function OE(e,t,r,s){let n=await Ms({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await wn(e,n),a=await s(i,n);return Hc(a)}function ME(e,t,r,s){let{originalText:n,[Symbol.for("comments")]:i,locStart:a,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:c}=e,p=a(c),l=o(c);for(let d of i)a(d)>=p&&o(d)<=l&&u.add(d);let{printPrettierIgnored:h}=t.printer;return h?h(e,t,r,s):n.slice(p,l)}var jE=ME;async function na(e,t){({ast:e}=await kh(e,t));let r=new Map,s=new Q1(e),n=D2(t),i=new Map;await LE(s,o,t,na,i);let a=await Ic(s,t,o,void 0,i);if(y2(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ts,a];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[a,ts]}return a;function o(c,p){return c===void 0||c===s?u(p):Array.isArray(c)?s.call(()=>u(p),...c):s.call(()=>u(p),c)}function u(c){n(s);let p=s.node;if(p==null)return"";let l=Xo(p)&&c===void 0;if(l&&r.has(p))return r.get(p);let h=Ic(s,t,o,c,i);return l&&r.set(p,h),h}}function Ic(e,t,r,s,n){let{node:i}=e,{printer:a}=t,o;switch(a.hasPrettierIgnore?.(e)?o=jE(e,t,r,s):n.has(i)?o=n.get(i):o=a.print(e,t,r,s),i){case t.cursorNode:o=Xi(o,u=>[ts,u,ts]);break;case t.nodeBeforeCursor:o=Xi(o,u=>[u,ts]);break;case t.nodeAfterCursor:o=Xi(o,u=>[ts,u]);break}return a.printComment&&!a.willPrintOwnComments?.(e,t)&&(o=m2(e,o,t)),o}async function kh(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,u2(e,t);let{printer:{preprocess:s}}=t;return e=s?await s(e,t):e,{ast:e,comments:r}}function RE(e,t){let{cursorOffset:r,locStart:s,locEnd:n,getVisitorKeys:i}=t,a=d=>s(d)<=r&&n(d)>=r,o=e,u=[e];for(let d of i2(e,{getVisitorKeys:i,filter:a}))u.push(d),o=d;if(a2(o,{getVisitorKeys:i}))return{cursorNode:o};let c,p,l=-1,h=Number.POSITIVE_INFINITY;for(;u.length>0&&(c===void 0||p===void 0);){o=u.pop();let d=c!==void 0,m=p!==void 0;for(let f of sa(o,{getVisitorKeys:i})){if(!d){let D=n(f);D<=r&&D>l&&(c=f,l=D)}if(!m){let D=s(f);D>=r&&D<h&&(p=f,h=D)}}}return{nodeBeforeCursor:c,nodeAfterCursor:p}}var Ph=RE;function UE(e,t){let{printer:r}=t,s=r.massageAstNode;if(!s)return e;let{getVisitorKeys:n}=r,{ignoredProperties:i}=s;return a(e);function a(o,u){if(!Xo(o))return o;if(Array.isArray(o))return o.map(h=>a(h,u)).filter(Boolean);let c={},p=new Set(n(o));for(let h in o)!Object.prototype.hasOwnProperty.call(o,h)||i?.has(h)||(p.has(h)?c[h]=a(o[h],o):c[h]=o[h]);let l=s(o,c,u);if(l!==null)return l??c}}var qE=UE,$E=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},VE=vn("findLastIndex",function(){if(Array.isArray(this))return $E}),WE=VE,HE=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function zE(e,t){return t=new Set(t),e.find(r=>Bh.has(r.type)&&t.has(r))}function _c(e){let t=WE(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function JE(e,t,{locStart:r,locEnd:s}){let[n,...i]=e,[a,...o]=t;if(n===a)return[n,a];let u=r(n);for(let p of _c(o))if(r(p)>=u)a=p;else break;let c=s(a);for(let p of _c(i)){if(s(p)<=c)n=p;else break;if(n===a)break}return[n,a]}function jo(e,t,r,s,n=[],i){let{locStart:a,locEnd:o}=r,u=a(e),c=o(e);if(t>c||t<u||i==="rangeEnd"&&t===u||i==="rangeStart"&&t===c)return;let p=[e,...n],l=ah(e,p,{cache:oh,locStart:a,locEnd:o,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let h of l){let d=jo(h,t,r,s,p,i);if(d)return d}if(s(e,n[0]))return p}function XE(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Bh=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),KE=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Lc(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return XE(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Bh.has(t.type);case"graphql":return KE.has(t.kind);case"vue":return t.tag!=="root"}return!1}function GE(e,t,r){let{rangeStart:s,rangeEnd:n,locStart:i,locEnd:a}=t;Br(n>s);let o=e.slice(s,n).search(/\S/u),u=o===-1;if(!u)for(s+=o;n>s&&!/\S/u.test(e[n-1]);--n);let c=jo(r,s,t,(d,m)=>Lc(t,d,m),[],"rangeStart");if(!c)return;let p=u?c:jo(r,n,t,d=>Lc(t,d),[],"rangeEnd");if(!p)return;let l,h;if(HE(t)){let d=zE(c,p);l=d,h=d}else[l,h]=JE(c,p,t);return[Math.min(i(l),i(h)),Math.max(a(l),a(h))]}var Nh="\uFEFF",Oc=Symbol("cursor");async function Ih(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:n}=await wn(e,t);t.cursorOffset>=0&&(t={...t,...Ph(s,t)});let i=await na(s,t,r);r>0&&(i=Xc([nr,i],r,t.tabWidth));let a=ra(i,t);if(r>0){let u=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(u),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>u.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=u+$o(t.endOfLine)}let o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,c,p,l;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(p=a.cursorNodeStart,l=a.cursorNodeText,t.cursorNode)u=t.locStart(t.cursorNode),c=n.slice(u,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");u=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let g=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):n.length;c=n.slice(u,g)}else u=0,c=n,p=0,l=a.formatted;let h=t.cursorOffset-u;if(c===l)return{formatted:a.formatted,cursorOffset:p+h,comments:o};let d=c.split("");d.splice(h,0,Oc);let m=l.split(""),f=Qg(d,m),D=p;for(let g of f)if(g.removed){if(g.value.includes(Oc))break}else D+=g.count;return{formatted:a.formatted,cursorOffset:D,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function YE(e,t){let{ast:r,text:s}=await wn(e,t),[n,i]=GE(s,t,r)??[0,0],a=s.slice(n,i),o=Math.min(n,s.lastIndexOf(`
|
|
24
|
+
`,n)+1),u=s.slice(o,n).match(/^\s*/u)[0],c=Jo(u,t.tabWidth),p=await Ih(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>n&&t.cursorOffset<=i?t.cursorOffset-n:-1,endOfLine:"lf"},c),l=p.formatted.trimEnd(),{cursorOffset:h}=t;h>i?h+=l.length-a.length:p.cursorOffset>=0&&(h=p.cursorOffset+n);let d=s.slice(0,n)+l+s.slice(i);if(t.endOfLine!=="lf"){let m=$o(t.endOfLine);h>=0&&m===`\r
|
|
25
|
+
`&&(h+=Vc(d.slice(0,h),`
|
|
26
|
+
`)),d=Qi(0,d,`
|
|
27
|
+
`,m)}return{formatted:d,cursorOffset:h,comments:p.comments}}function Io(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Mc(e,t){let{cursorOffset:r,rangeStart:s,rangeEnd:n}=t;return r=Io(e,r,-1),s=Io(e,s,0),n=Io(e,n,e.length),{...t,cursorOffset:r,rangeStart:s,rangeEnd:n}}function _h(e,t){let{cursorOffset:r,rangeStart:s,rangeEnd:n,endOfLine:i}=Mc(e,t),a=e.charAt(0)===Nh;if(a&&(e=e.slice(1),r--,s--,n--),i==="auto"&&(i=s1(e)),e.includes("\r")){let o=u=>Vc(e.slice(0,Math.max(u,0)),`\r
|
|
28
|
+
`);r-=o(r),s-=o(s),n-=o(n),e=a1(e)}return{hasBOM:a,text:e,options:Mc(e,{...t,cursorOffset:r,rangeStart:s,rangeEnd:n,endOfLine:i})}}async function jc(e,t){let r=await Zo(t);return!r.hasPragma||r.hasPragma(e)}async function QE(e,t){return(await Zo(t)).hasIgnorePragma?.(e)}async function Lh(e,t){let{hasBOM:r,text:s,options:n}=_h(e,await Ms(t));if(n.rangeStart>=n.rangeEnd&&s!==""||n.requirePragma&&!await jc(s,n)||n.checkIgnorePragma&&await QE(s,n))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return n.rangeStart>0||n.rangeEnd<s.length?i=await YE(s,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await jc(s,n)&&(s=n.printer.insertPragma(s)),i=await Ih(s,n)),r&&(i.formatted=Nh+i.formatted,i.cursorOffset>=0&&i.cursorOffset++),i}async function ZE(e,t,r){let{text:s,options:n}=_h(e,await Ms(t)),i=await wn(s,n);return r&&(r.preprocessForPrint&&(i.ast=await kh(i.ast,n)),r.massage&&(i.ast=qE(i.ast,n))),i}async function ex(e,t){t=await Ms(t);let r=await na(e,t);return ra(r,t)}async function tx(e,t){let r=M1(e),{formatted:s}=await Lh(r,{...t,parser:"__js_expression"});return s}async function rx(e,t){t=await Ms(t);let{ast:r}=await wn(e,t);return t.cursorOffset>=0&&(t={...t,...Ph(r,t)}),na(r,t)}async function sx(e,t){return ra(e,await Ms(t))}var Oh={};Uo(Oh,{builders:()=>nx,printer:()=>ix,utils:()=>ax});var nx={join:Gc,line:Yc,softline:_1,hardline:nr,literalline:Zc,group:Kc,conditionalGroup:P1,fill:k1,lineSuffix:_o,lineSuffixBoundary:L1,cursor:ts,breakParent:ta,ifBreak:B1,trim:O1,indent:Yi,indentIfBreak:N1,align:Os,addAlignmentToDoc:Xc,markAsRoot:Jc,dedentToRoot:S1,dedent:w1,hardlineWithoutBreakParent:Ho,literallineWithoutBreakParent:Qc,label:I1,concat:e=>e},ix={printDocToString:ra},ax={willBreak:y1,traverseDoc:Vo,findInDoc:Wo,mapDoc:ea,removeLines:E1,stripTrailingHardline:Hc,replaceEndOfLine:C1,canBreak:b1},ox="3.7.4",Mh={};Uo(Mh,{addDanglingComment:()=>Zr,addLeadingComment:()=>bn,addTrailingComment:()=>Tn,getAlignmentSize:()=>Jo,getIndentSize:()=>dx,getMaxContinuousCount:()=>yx,getNextNonSpaceNonCommentCharacter:()=>gx,getNextNonSpaceNonCommentCharacterIndex:()=>wx,getPreferredQuote:()=>Cx,getStringWidth:()=>zo,hasNewline:()=>Pr,hasNewlineInRange:()=>bx,hasSpaces:()=>vx,isNextLineEmpty:()=>Ix,isNextLineEmptyAfterIndex:()=>iu,isPreviousLineEmpty:()=>Px,makeString:()=>Nx,skip:()=>Sn,skipEverythingButNewLine:()=>nh,skipInlineComment:()=>ru,skipNewline:()=>rs,skipSpaces:()=>Nr,skipToLineEnd:()=>sh,skipTrailingComment:()=>su,skipWhitespace:()=>e2});function ux(e,t){if(t===!1)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}var ru=ux;function lx(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?nh(e,t):t}var su=lx;function px(e,t){let r=null,s=t;for(;s!==r;)r=s,s=Nr(e,s),s=ru(e,s),s=su(e,s),s=rs(e,s);return s}var nu=px;function cx(e,t){let r=null,s=t;for(;s!==r;)r=s,s=sh(e,s),s=ru(e,s),s=Nr(e,s);return s=su(e,s),s=rs(e,s),s!==!1&&Pr(e,s)}var iu=cx;function hx(e,t){let r=e.lastIndexOf(`
|
|
29
|
+
`);return r===-1?0:Jo(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var dx=hx;function fx(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mx(e,t){let r=e.matchAll(new RegExp(`(?:${fx(t)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((s,[n])=>Math.max(s,n.length),0)/t.length}var yx=mx;function Dx(e,t){let r=nu(e,t);return r===!1?"":e.charAt(r)}var gx=Dx,jh=Object.freeze({character:"'",codePoint:39}),Rh=Object.freeze({character:'"',codePoint:34}),Ex=Object.freeze({preferred:jh,alternate:Rh}),xx=Object.freeze({preferred:Rh,alternate:jh});function Ax(e,t){let{preferred:r,alternate:s}=t===!0||t==="'"?Ex:xx,{length:n}=e,i=0,a=0;for(let o=0;o<n;o++){let u=e.charCodeAt(o);u===r.codePoint?i++:u===s.codePoint&&a++}return(i>a?s:r).character}var Cx=Ax;function Fx(e,t,r){for(let s=t;s<r;++s)if(e.charAt(s)===`
|
|
30
|
+
`)return!0;return!1}var bx=Fx;function Tx(e,t,r={}){return Nr(e,r.backwards?t-1:t,r)!==t}var vx=Tx;function Sx(e,t,r){return nu(e,r(t))}function wx(e,t){return arguments.length===2||typeof t=="number"?nu(e,t):Sx(...arguments)}function kx(e,t,r){return Go(e,r(t))}function Px(e,t){return arguments.length===2||typeof t=="number"?Go(e,t):kx(...arguments)}function Bx(e,t,r){return iu(e,r(t))}function Nx(e,t,r){let s=t==='"'?"'":'"',n=Qi(0,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===s?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+n+t}function Ix(e,t){return arguments.length===2||typeof t=="number"?iu(e,t):Bx(...arguments)}function es(e,t=1){return async(...r)=>{let s=r[t]??{},n=s.plugins??[];return r[t]={...s,plugins:Array.isArray(n)?n:Object.values(n)},e(...r)}}var Uh=es(Lh);async function ia(e,t){let{formatted:r}=await Uh(e,{...t,cursorOffset:-1});return r}async function _x(e,t){return await ia(e,t)===e}var Lx=es(hh,0),Ox={parse:es(ZE),formatAST:es(ex),formatDoc:es(tx),printToDoc:es(rx),printDocToString:es(sx)};var $u={};Wi($u,{default:()=>Cd,languages:()=>yf,options:()=>Df,parsers:()=>Uu,printers:()=>Cf});var Ed=Object.defineProperty,xd=e=>{throw TypeError(e)},jx=(e,t,r)=>t in e?Ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ad=(e,t)=>{for(var r in t)Ed(e,r,{get:t[r],enumerable:!0})},qh=(e,t,r)=>jx(e,typeof t!="symbol"?t+"":t,r),Rx=(e,t,r)=>t.has(e)||xd("Cannot "+r),aa=(e,t,r)=>(Rx(e,t,"read from private field"),r?r.call(e):t.get(e)),Ux=(e,t,r)=>t.has(e)?xd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Cd={};Ad(Cd,{languages:()=>yf,options:()=>Df,parsers:()=>Uu,printers:()=>Cf});var Fu=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n),qx=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},$x=Fu("replaceAll",function(){if(typeof this=="string")return qx}),ze=$x;function Vx(e){return this[e<0?this.length+e:e]}var Wx=Fu("at",function(){if(Array.isArray(this)||typeof this=="string")return Vx}),$s=Wx,Hx=()=>{},Da=Hx,Fd="string",bd="array",Td="cursor",bu="indent",Tu="align",vd="trim",vu="group",Su="fill",wu="if-break",ku="indent-if-break",Sd="line-suffix",wd="line-suffix-boundary",Vs="line",kd="label",Pu="break-parent",Pd=new Set([Td,bu,Tu,vd,vu,Su,wu,ku,Sd,wd,Vs,kd,Pu]);function zx(e){if(typeof e=="string")return Fd;if(Array.isArray(e))return bd;if(!e)return;let{type:t}=e;if(Pd.has(t))return t}var Bd=zx,Jx=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Xx(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
31
|
+
Expected it to be 'string' or 'object'.`;if(Bd(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=Jx([...Pd].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
|
|
32
|
+
Expected it to be ${s}.`}var Kx=class extends Error{constructor(t){super(Xx(t));U(this,"name","InvalidDocError");this.doc=t}},Gx=Kx;function Nd(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(Bd(i)){case bd:return t(i.map(s));case Su:return t({...i,parts:i.parts.map(s)});case wu:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case vu:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Tu:case bu:case ku:case kd:case Sd:return t({...i,contents:s(i.contents)});case Fd:case Td:case vd:case wd:case Vs:case Pu:return t(i);default:throw new Gx(i)}}}function $t(e,t=nA){return Nd(e,r=>typeof r=="string"?Ws(t,r.split(`
|
|
33
|
+
`)):r)}var us=Da,Id=Da,Yx=Da,Qx=Da;function Vt(e){return us(e),{type:bu,contents:e}}function Zx(e,t){return Qx(e),us(t),{type:Tu,contents:t,n:e}}function eA(e){return Zx(Number.NEGATIVE_INFINITY,e)}var Wn={type:Pu};function _d(e){return Yx(e),{type:Su,parts:e}}function Ie(e,t={}){return us(e),Id(t.expandedStates,!0),{type:vu,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Un(e,t="",r={}){return us(e),t!==""&&us(t),{type:wu,breakContents:e,flatContents:t,groupId:r.groupId}}function tA(e,t){return us(e),{type:ku,contents:e,groupId:t.groupId,negate:t.negate}}function Ws(e,t){us(e),Id(t);let r=[];for(let s=0;s<t.length;s++)s!==0&&r.push(e),r.push(t[s]);return r}var ke={type:Vs},Ve={type:Vs,soft:!0},rA={type:Vs,hard:!0},ve=[rA,Wn],sA={type:Vs,hard:!0,literal:!0},nA=[sA,Wn],Ld=Object.freeze({character:"'",codePoint:39}),Od=Object.freeze({character:'"',codePoint:34}),iA=Object.freeze({preferred:Ld,alternate:Od}),aA=Object.freeze({preferred:Od,alternate:Ld});function oA(e,t){let{preferred:r,alternate:s}=t===!0||t==="'"?iA:aA,{length:n}=e,i=0,a=0;for(let o=0;o<n;o++){let u=e.charCodeAt(o);u===r.codePoint?i++:u===s.codePoint&&a++}return(i>a?s:r).character}var uA=oA;function lA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var yt,ya,Md,gd,pA=(gd=class{constructor(e){kr(this,ya);kr(this,yt);Hi(this,yt,new Set(e))}getLeadingWhitespaceCount(e){let t=Le(this,yt),r=0;for(let s=0;s<e.length&&t.has(e.charAt(s));s++)r++;return r}getTrailingWhitespaceCount(e){let t=Le(this,yt),r=0;for(let s=e.length-1;s>=0&&t.has(e.charAt(s));s--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return Le(this,yt).has(e.charAt(0))}hasTrailingWhitespace(e){return Le(this,yt).has($s(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${lA([...Le(this,yt)].join(""))}]+`,s=new RegExp(t?`(${r})`:r,"u");return e.split(s)}hasWhitespaceCharacter(e){let t=Le(this,yt);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=Le(this,yt);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=Le(this,yt);return Array.prototype.every.call(e,r=>t.has(r))}dedentString(e){let t=Ot(this,ya,Md).call(this,e);return t===0?e:e.split(`
|
|
34
|
+
`).map(r=>r.slice(t)).join(`
|
|
35
|
+
`)}},yt=new WeakMap,ya=new WeakSet,Md=function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
|
|
36
|
+
`)){if(r.length===0)continue;let s=this.getLeadingWhitespaceCount(r);if(s===0)return 0;r.length!==s&&s<t&&(t=s)}return t===Number.POSITIVE_INFINITY?0:t},gd),cA=pA,hA=[" ",`
|
|
37
|
+
`,"\f","\r"," "],dA=new cA(hA),gt=dA,fA=class extends Error{constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`);U(this,"name","UnexpectedNodeError");this.node=t}},mA=fA,yA=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),DA=new Set(["if","else if","for","switch","case"]);function jd(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:s,value:n}=e;s==="style"||s==="class"||s==="srcset"&&(r.fullName==="img"||r.fullName==="source")||s==="allow"&&r.fullName==="iframe"||s.startsWith("on")||s.startsWith("@")||s.startsWith(":")||s.startsWith(".")||s.startsWith("#")||s.startsWith("v-")||s==="vars"&&r.fullName==="style"||(s==="setup"||s==="generic")&&r.fullName==="script"||s==="slot-scope"||s.startsWith("(")||s.startsWith("[")||s.startsWith("*")||s.startsWith("bind")||s.startsWith("i18n")||s.startsWith("on-")||s.startsWith("ng-")||n?.includes("{{")?delete t.value:n&&(t.value=ze(0,n,/'|"|'/gu,'"'))}if(e.kind==="docType"&&(t.value=ze(0,e.value.toLowerCase(),/\s+/gu," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let s of t.parameters.children)DA.has(e.name)?delete s.expression:s.expression=s.expression.trim();e.kind==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.kind==="angularLetDeclarationInitializer"&&delete t.value,e.kind==="element"&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}jd.ignoredProperties=yA;var gA=jd;function Hn(e,t=!0){return[Vt([Ve,e]),t?Ve:""]}function Hs(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function Et(e,t,r,s){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let n=!0;s&&(r.__onHtmlBindingRoot=(a,o)=>{n=s(a,o)});let i=await t(e,r,t);return n?Ie(i):Hn(i)}function EA(e,t,r,s){let{node:n}=r,i=s.originalText.slice(n.sourceSpan.start.offset,n.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":Et(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Hs)}var xA=EA,AA=Array.prototype.toReversed??function(){return[...this].reverse()},CA=Fu("toReversed",function(){if(Array.isArray(this))return AA}),FA=CA;function bA(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var TA=bA();function Rd(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function vA(e){return e=Rd(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function SA(e){e=Rd(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function wA(e){return TA?SA(e):vA(e)}var kA=e=>String(e).split(/[/\\]/u).pop(),PA=e=>String(e).startsWith("file:");function BA(e){return Array.isArray(e)&&e.length>0}var Bu=BA;function $h(e,t){if(!t)return;let r=kA(t).toLowerCase();return e.find(({filenames:s})=>s?.some(n=>n.toLowerCase()===r))??e.find(({extensions:s})=>s?.some(n=>r.endsWith(n)))}function NA(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var IA=void 0;function Vh(e,t){if(t){if(PA(t))try{t=wA(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function _A(e,t){let r=FA(0,e.plugins).flatMap(s=>s.languages??[]);return(NA(r,t.language)??$h(r,t.physicalFile)??$h(r,t.file)??Vh(r,t.physicalFile)??Vh(r,t.file)??IA?.(r,t.physicalFile))?.parsers[0]}var Nu=_A,Ud=Symbol.for("PRETTIER_IS_FRONT_MATTER");function LA(e){return!!e?.[Ud]}var ga=LA,kn=3;function OA(e){let t=e.slice(0,kn);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
|
|
38
|
+
`,kn);if(r===-1)return;let s=e.slice(kn,r).trim(),n=e.indexOf(`
|
|
39
|
+
${t}`,r),i=s;if(i||(i=t==="+++"?"toml":"yaml"),n===-1&&t==="---"&&i==="yaml"&&(n=e.indexOf(`
|
|
40
|
+
...`,r)),n===-1)return;let a=n+1+kn,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let u=e.slice(0,a),c;return{language:i,explicitLanguage:s||null,value:e.slice(r+1,n),startDelimiter:t,endDelimiter:u.slice(-kn),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return c??(c=u.split(`
|
|
41
|
+
`)),c.length},get column(){return c??(c=u.split(`
|
|
42
|
+
`)),$s(0,c,-1).length}},[Ud]:!0}}function MA(e){let t=OA(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return ze(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var jA=MA,RA="inline",Wh={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"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",search:"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",menu:"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",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},UA="normal",Hh={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function qA(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var zn=qA,$A=e=>ze(0,e,/^[\t\f\r ]*\n/gu,""),qd=e=>$A(gt.trimEnd(e)),VA=e=>{let t=e,r=gt.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let s=gt.getTrailingWhitespace(t);return s&&(t=t.slice(0,-s.length)),{leadingWhitespace:r,trailingWhitespace:s,text:t}};function $d(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||qs(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||_u(e,t)&&!fr(e,t)&&e.kind!=="interpolation")}function Ea(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:WA(e.prev)}function WA(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function Dt(e){return e.kind==="text"||e.kind==="comment"}function fr(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||zn(e)&&(e.name==="script"||e.name==="style"))}function HA(e,t){return e.children&&!fr(e,t)}function zA(e,t){return fr(e,t)||e.kind==="interpolation"||Vd(e)}function Vd(e){return Gd(e).startsWith("pre")}function JA(e,t){let r=s();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function s(){return ga(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:qs(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||qs(e)&&e.parent||fr(e.parent,t)||xa(e.parent,t)||!rC(e.parent.cssDisplay))||e.prev&&!iC(e.prev.cssDisplay))}}function XA(e,t){return ga(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:qs(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||qs(e)&&e.parent||fr(e.parent,t)||xa(e.parent,t)||!sC(e.parent.cssDisplay))||e.next&&!nC(e.next.cssDisplay))}function KA(e,t){return aC(e.cssDisplay)&&!fr(e,t)}function oa(e){return ga(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function GA(e){return Wd(e)||e.kind==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>QA(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&zd(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Jd(e.lastChild))}function Wd(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function au(e){return Xd(e)||e.prev&&YA(e.prev)||Hd(e)}function YA(e){return Xd(e)||e.kind==="element"&&e.fullName==="br"||Hd(e)}function Hd(e){return zd(e)&&Jd(e)}function zd(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Jd(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Xd(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Iu(e){return e.lastChild?Iu(e.lastChild):e}function QA(e){return e.children?.some(t=>t.kind!=="text")}function Kd(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function ZA(e,t){let{name:r,attrMap:s}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(s,"src"))return;let{type:n,lang:i}=e.attrMap;return!i&&!n?"babel":Nu(t,{language:i})??Kd(n)}function eC(e,t){if(!_u(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:s,lang:n}=r;return Nu(t,{language:n})??Kd(s)}function tC(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?Nu(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function zh(e,t){return ZA(e,t)??tC(e,t)??eC(e,t)}function Jn(e){return e==="block"||e==="list-item"||e.startsWith("table")}function rC(e){return!Jn(e)&&e!=="inline-block"}function sC(e){return!Jn(e)&&e!=="inline-block"}function nC(e){return!Jn(e)}function iC(e){return!Jn(e)}function aC(e){return!Jn(e)&&e!=="inline-block"}function qs(e){return Gd(e).startsWith("pre")}function oC(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function uC(e,t){if(zs(e,t))return"block";if(e.prev?.kind==="comment"){let s=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if(oC(e,s=>s.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||zn(e))&&Object.prototype.hasOwnProperty.call(Wh,e.name))return Wh[e.name]}return RA}function Gd(e){return e.kind==="element"&&(!e.namespace||zn(e))&&Object.prototype.hasOwnProperty.call(Hh,e.name)?Hh[e.name]:UA}function Yd(e){return ze(0,ze(0,e,"'","'"),""",'"')}function Ze(e){return Yd(e.value)}var lC=new Set(["template","style","script"]);function xa(e,t){return zs(e,t)&&!lC.has(e.fullName)}function zs(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function _u(e,t){return zs(e,t)&&(xa(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function pC(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function cC(e,t){let r=e.parent;if(!zs(r,t))return!1;let s=r.fullName,n=e.fullName;return s==="script"&&n==="setup"||s==="style"&&n==="vars"}function Qd(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?$t(t):$t(gt.dedentString(qd(t)),ve):Ws(ke,gt.split(t))}function Zd(e,t){return zs(e,t)&&e.name==="script"}function hC(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function ef(e,t){if(hC(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var tf=/\{\{(.+?)\}\}/su,dC=({node:{value:e}})=>tf.test(e);async function fC(e,t,r){let s=Ze(r.node),n=[];for(let[i,a]of s.split(tf).entries())if(i%2===0)n.push($t(a));else try{n.push(Ie(["{{",Vt([ke,await Et(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),ke,"}}"]))}catch{n.push("{{",$t(a),"}}")}return n}var ou=e=>(t,r,s)=>Et(Ze(s.node),t,{parser:e},Hs),mC=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ou("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:ou("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ou("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:yC},{test:dC,print:fC}].map(({test:e,print:t})=>({test:(r,s)=>s.parser==="angular"&&e(r),print:t}));function yC(e,t,{node:r}){let s=Ze(r);return Hn(_d(Qd(r,s.trim())),!s.includes("@@"))}var DC=mC,gC=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),EC=(e,t,r)=>Ze(r.node).trim().split(/\s+/u).join(" "),xC=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],AC=new Set(xC),CC=({node:e},t)=>AC.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),FC=(e,t,r)=>Et(Ze(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function bC(e){let t=[];for(let r of e.split(";")){if(r=gt.trim(r),!r)continue;let[s,...n]=gt.split(r);t.push({name:s,value:n})}return t}var TC=bC,vC=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function SC(e,t,r){let{node:s}=r,n=TC(Ze(s));return n.length===0?[""]:Hn(n.map(({name:i,value:a},o)=>[[i,...a].join(" "),o===n.length-1?Un(";"):[";",ke]]))}function Jh(e){return e===" "||e===`
|
|
43
|
+
`||e==="\f"||e==="\r"||e===" "}var wC=/^[ \t\n\r\u000c]+/,kC=/^[, \t\n\r\u000c]+/,PC=/^[^ \t\n\r\u000c]+/,BC=/[,]+$/,Xh=/^\d+$/,NC=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function IC(e){let t=e.length,r,s,n,i,a,o=0,u;function c(d){let m,f=d.exec(e.substring(o));if(f)return[m]=f,o+=m.length,m}let p=[];for(;;){if(c(kC),o>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}u=o,r=c(PC),s=[],r.slice(-1)===","?(r=r.replace(BC,""),h()):l()}function l(){for(c(wC),n="",i="in descriptor";;){if(a=e.charAt(o),i==="in descriptor")if(Jh(a))n&&(s.push(n),n="",i="after descriptor");else if(a===","){o+=1,n&&s.push(n),h();return}else if(a==="(")n+=a,i="in parens";else if(a===""){n&&s.push(n),h();return}else n+=a;else if(i==="in parens")if(a===")")n+=a,i="in descriptor";else if(a===""){s.push(n),h();return}else n+=a;else if(i==="after descriptor"&&!Jh(a))if(a===""){h();return}else i="in descriptor",o-=1;o+=1}}function h(){let d=!1,m,f,D,g,y={},E,A,x,T,S;for(g=0;g<s.length;g++)E=s[g],A=E[E.length-1],x=E.substring(0,E.length-1),T=parseInt(x,10),S=parseFloat(x),Xh.test(x)&&A==="w"?((m||f)&&(d=!0),T===0?d=!0:m=T):NC.test(x)&&A==="x"?((m||f||D)&&(d=!0),S<0?d=!0:f=S):Xh.test(x)&&A==="h"?((D||f)&&(d=!0),T===0?d=!0:D=T):d=!0;if(!d)y.source={value:r,startOffset:u},m&&(y.width={value:m}),f&&(y.density={value:f}),D&&(y.height={value:D}),p.push(y);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${E}".`)}}var _C=IC,LC=e=>e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),rf={width:"w",height:"h",density:"x"},OC=Object.keys(rf);function MC(e,t,r){let s=Ze(r.node),n=_C(s),i=OC.filter(d=>n.some(m=>Object.prototype.hasOwnProperty.call(m,d)));if(i.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=i,o=rf[a],u=n.map(d=>d.source.value),c=Math.max(...u.map(d=>d.length)),p=n.map(d=>d[a]?String(d[a].value):""),l=p.map(d=>{let m=d.indexOf(".");return m===-1?d.length:m}),h=Math.max(...l);return Hn(Ws([",",ke],u.map((d,m)=>{let f=[d],D=p[m];if(D){let g=c-d.length+1,y=h-l[m],E=" ".repeat(g+y);f.push(Un(E," "),D+o)}return f})))}var jC=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),RC=async(e,t,r)=>Hn(await e(Ze(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),uu=new WeakMap;function UC(e,t){let{root:r}=e;return uu.has(r)||uu.set(r,r.children.some(s=>Zd(s,t)&&["ts","typescript"].includes(s.attrMap.lang))),uu.get(r)}var Js=UC;function qC(e,t,r){let s=Ze(r.node);return Et(`type T<${s}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Hs)}function $C(e,t,r,s){let n=Ze(r.node),i=Js(r,s)?"babel-ts":"babel";return Et(`function _(${n}) {}`,e,{parser:i,__isVueBindings:!0})}async function VC(e,t,r,s){let n=Ze(r.node),{left:i,operator:a,right:o}=WC(n),u=Js(r,s);return[Ie(await Et(`function _(${i}) {}`,e,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await Et(o,e,{parser:u?"__ts_expression":"__js_expression"})]}function WC(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,s=/^\(|\)$/gu,n=e.match(t);if(!n)return;let i={for:n[3].trim()};if(!i.for)return;let a=ze(0,n[1].trim(),s,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((c,p)=>!c&&(p===0||u.slice(p+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:n[2],right:i.for}}var HC=[{test:e=>e.node.fullName==="v-for",print:VC},{test:(e,t)=>e.node.fullName==="generic"&&Zd(e.parent,t),print:qC},{test:({node:e},t)=>pC(e)||cC(e,t),print:$C},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:zC},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:JC},{test:e=>e.node.fullName.startsWith("v-"),print:sf}].map(({test:e,print:t})=>({test:(r,s)=>s.parser==="vue"&&e(r,s),print:t}));async function zC(e,t,r,s){try{return await sf(e,t,r,s)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let n=Ze(r.node),i=Js(r,s)?"__vue_ts_event_binding":"__vue_event_binding";return Et(n,e,{parser:i},Hs)}function JC(e,t,r,s){let n=Ze(r.node),i=Js(r,s)?"__vue_ts_expression":"__vue_expression";return Et(n,e,{parser:i},Hs)}function sf(e,t,r,s){let n=Ze(r.node),i=Js(r,s)?"__ts_expression":"__js_expression";return Et(n,e,{parser:i},Hs)}var XC=HC,KC=[{test:LC,print:MC},{test:jC,print:RC},{test:CC,print:FC},{test:gC,print:EC},{test:vC,print:SC},...XC,...DC].map(({test:e,print:t})=>({test:e,print:YC(t)}));function GC(e,t){let{node:r}=e,{value:s}=r;if(s)return ef(r,t)?[r.rawName,"=",s]:KC.find(({test:n})=>n(e,t))?.print}function YC(e){return async(t,r,s,n)=>{let i=await e(t,r,s,n);if(i)return i=Nd(i,a=>typeof a=="string"?ze(0,a,'"',"""):a),[s.node.rawName,'="',Ie(i),'"']}}var QC=GC,Xn=e=>e.sourceSpan.start.offset,Aa=e=>e.sourceSpan.end.offset;function hu(e,t){return[e.isSelfClosing?"":ZC(e,t),On(e,t)]}function ZC(e,t){return e.lastChild&&qn(e.lastChild)?"":[eF(e,t),Lu(e,t)]}function On(e,t){return(e.next?ps(e.next):Gn(e.parent))?"":[Kn(e,t),ls(e,t)]}function eF(e,t){return Gn(e)?Kn(e.lastChild,t):""}function ls(e,t){return qn(e)?Lu(e.parent,t):Ca(e)?Ou(e.next,t):""}function Lu(e,t){if(nf(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function Kn(e,t){if(nf(e,t))return"";switch(e.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function nf(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Ea(e)||$d(e.parent,t))}function ps(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!Dt(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Gn(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Dt(Iu(e.lastChild))&&!qs(e)}function qn(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Dt(Iu(e))}function Ca(e){return e.next&&!Dt(e.next)&&Dt(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function tF(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Fa(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function rF(e,t,r){let{node:s}=e;if(!Bu(s.attrs))return s.isSelfClosing?" ":"";let n=s.prev?.kind==="comment"&&tF(s.prev.value),i=typeof n=="boolean"?()=>n:Array.isArray(n)?p=>n.includes(p.rawName):()=>!1,a=e.map(({node:p})=>i(p)?$t(t.originalText.slice(Xn(p),Aa(p))):r(),"attrs"),o=s.kind==="element"&&s.fullName==="script"&&s.attrs.length===1&&s.attrs[0].fullName==="src"&&s.children.length===0,u=t.singleAttributePerLine&&s.attrs.length>1&&!zs(s,t)?ve:ke,c=[Vt([o?" ":ke,Ws(u,a)])];return s.firstChild&&Fa(s.firstChild)||s.isSelfClosing&&Gn(s.parent)||o?c.push(s.isSelfClosing?" ":""):c.push(t.bracketSameLine?s.isSelfClosing?" ":"":s.isSelfClosing?ke:Ve),c}function sF(e){return e.firstChild&&Fa(e.firstChild)?"":Mu(e)}function du(e,t,r){let{node:s}=e;return[Mn(s,t),rF(e,t,r),s.isSelfClosing?"":sF(s)]}function Mn(e,t){return e.prev&&Ca(e.prev)?"":[cs(e,t),Ou(e,t)]}function cs(e,t){return Fa(e)?Mu(e.parent):ps(e)?Kn(e.prev,t):""}var Kh="<!doctype";function Ou(e,t){switch(e.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(e.value==="html"){let{filepath:s}=t;if(s&&/\.html?$/u.test(s))return Kh}let r=Xn(e);return t.originalText.slice(r,r+Kh.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Mu(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function nF(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Fa(e.firstChild)&&(r-=Mu(e).length);let s=e.endSourceSpan.start.offset;return e.lastChild&&qn(e.lastChild)?s+=Lu(e,t).length:Gn(e)&&(s-=Kn(e.lastChild,t).length),t.originalText.slice(r,s)}var af=nF,iF=new Set(["if","else if","for","switch","case"]);function aF(e,t){let{node:r}=e;switch(r.kind){case"element":if(fr(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&_u(r,t)){let s=zh(r,t);return s?async(n,i)=>{let a=af(r,t),o=/^\s*$/u.test(a),u="";return o||(u=await n(qd(a),{parser:s,__embeddedInHtml:!0}),o=u===""),[cs(r,t),Ie(du(e,t,i)),o?"":ve,u,o?"":ve,hu(r,t),ls(r,t)]}:void 0}break;case"text":if(fr(r.parent,t)){let s=zh(r.parent,t);if(s)return async n=>{let i=s==="markdown"?gt.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:s,__embeddedInHtml:!0};if(t.parser==="html"&&s==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||(u.type==="text/babel"||u.type==="text/jsx")&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Wn,cs(r,t),await n(i,a),ls(r,t)]}}else if(r.parent.kind==="interpolation")return async s=>{let n={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?n.parser="__ng_interpolation":t.parser==="vue"?n.parser=Js(e,t)?"__vue_ts_expression":"__vue_expression":n.parser="__js_expression",[Vt([ke,await s(r.value,n)]),r.parent.next&&ps(r.parent.next)?" ":ke]};break;case"attribute":return QC(e,t);case"angularControlFlowBlockParameters":return iF.has(e.parent.name)?xA:void 0;case"angularLetDeclarationInitializer":return s=>Et(r.value,s,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var oF=aF,Pn=null;function jn(e){if(Pn!==null&&typeof Pn.property){let t=Pn;return Pn=jn.prototype=null,t}return Pn=jn.prototype=e??Object.create(null),new jn}var uF=10;for(let e=0;e<=uF;e++)jn();function lF(e){return jn(e)}function pF(e,t="type"){lF(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var cF=pF,ut=[["children"],[]],hF={root:ut[0],element:["attrs","children"],ieConditionalComment:ut[0],ieConditionalStartComment:ut[1],ieConditionalEndComment:ut[1],interpolation:ut[0],text:ut[0],docType:ut[1],comment:ut[1],attribute:ut[1],cdata:ut[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:ut[0],angularControlFlowBlockParameter:ut[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:ut[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},dF=cF(hF,"kind"),fF=dF,mF="format",yF=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,DF=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,gF=e=>DF.test(e),EF=e=>yF.test(e),xF=e=>`<!-- @${mF} -->
|
|
44
|
+
|
|
45
|
+
${e}`,AF=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function of(e){let t=Aa(e);return e.kind==="element"&&!e.endSourceSpan&&Bu(e.children)?Math.max(t,of($s(0,e.children,-1))):t}function Bn(e,t,r){let s=e.node;if(Ea(s)){let n=of(s);return[cs(s,t),$t(gt.trimEnd(t.originalText.slice(Xn(s)+(s.prev&&Ca(s.prev)?Ou(s).length:0),n-(s.next&&ps(s.next)?Kn(s,t).length:0)))),ls(s,t)]}return r()}function ua(e,t){return Dt(e)&&Dt(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?au(t)?ve:ke:"":au(t)?ve:Ve:Ca(e)&&(Ea(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&ps(t)?"":!t.isLeadingSpaceSensitive||au(t)||ps(t)&&e.lastChild&&qn(e.lastChild)&&e.lastChild.lastChild&&qn(e.lastChild.lastChild)?ve:t.hasLeadingSpaces?ke:Ve}function ju(e,t,r){let{node:s}=e;if(Wd(s))return[Wn,...e.map(()=>{let i=e.node,a=i.prev?ua(i.prev,i):"";return[a?[a,oa(i.prev)?ve:""]:"",Bn(e,t,r)]},"children")];let n=s.children.map(()=>Symbol(""));return e.map(({node:i,index:a})=>{if(Dt(i)){if(i.prev&&Dt(i.prev)){let d=ua(i.prev,i);if(d)return oa(i.prev)?[ve,ve,Bn(e,t,r)]:[d,Bn(e,t,r)]}return Bn(e,t,r)}let o=[],u=[],c=[],p=[],l=i.prev?ua(i.prev,i):"",h=i.next?ua(i,i.next):"";return l&&(oa(i.prev)?o.push(ve,ve):l===ve?o.push(ve):Dt(i.prev)?u.push(l):u.push(Un("",Ve,{groupId:n[a-1]}))),h&&(oa(i)?Dt(i.next)&&p.push(ve,ve):h===ve?Dt(i.next)&&p.push(ve):c.push(h)),[...o,Ie([...u,Ie([Bn(e,t,r),...c],{id:n[a]})]),...p]},"children")}function CF(e,t,r){let{node:s}=e,n=[];FF(e)&&n.push("} "),n.push("@",s.name),s.parameters&&n.push(" (",Ie(r("parameters")),")"),n.push(" {");let i=uf(s);return s.children.length>0?(s.firstChild.hasLeadingSpaces=!0,s.lastChild.hasTrailingSpaces=!0,n.push(Vt([ve,ju(e,t,r)])),i&&n.push(ve,"}")):i&&n.push("}"),Ie(n,{shouldBreak:!0})}function uf(e){return!(e.next?.kind==="angularControlFlowBlock"&&AF.get(e.name)?.has(e.next.name))}function FF(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!Ea(t)&&!uf(t)}function bF(e,t,r){return[Vt([Ve,Ws([";",ke],e.map(r,"children"))]),Ve]}function TF(e,t,r){let{node:s}=e;return[Mn(s,t),Ie([s.switchValue.trim(),", ",s.type,s.cases.length>0?[",",Vt([ke,Ws(ke,e.map(r,"cases"))])]:"",Ve]),On(s,t)]}function vF(e,t,r){let{node:s}=e;return[s.value," {",Ie([Vt([Ve,e.map(({node:n,isLast:i})=>{let a=[r()];return n.kind==="text"&&(n.hasLeadingSpaces&&a.unshift(ke),n.hasTrailingSpaces&&!i&&a.push(ke)),a},"expression")]),Ve]),"}"]}function SF(e,t,r){let{node:s}=e;if($d(s,t))return[cs(s,t),Ie(du(e,t,r)),$t(af(s,t)),...hu(s,t),ls(s,t)];let n=s.children.length===1&&(s.firstChild.kind==="interpolation"||s.firstChild.kind==="angularIcuExpression")&&s.firstChild.isLeadingSpaceSensitive&&!s.firstChild.hasLeadingSpaces&&s.lastChild.isTrailingSpaceSensitive&&!s.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=p=>Ie([Ie(du(e,t,r),{id:i}),p,hu(s,t)]),o=p=>n?tA(p,{groupId:i}):(fr(s,t)||xa(s,t))&&s.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:Vt(p),u=()=>n?Un(Ve,"",{groupId:i}):s.firstChild.hasLeadingSpaces&&s.firstChild.isLeadingSpaceSensitive?ke:s.firstChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive?eA(Ve):Ve,c=()=>(s.next?ps(s.next):Gn(s.parent))?s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?" ":"":n?Un(Ve,"",{groupId:i}):s.lastChild.hasTrailingSpaces&&s.lastChild.isTrailingSpaceSensitive?ke:(s.lastChild.kind==="comment"||s.lastChild.kind==="text"&&s.isWhitespaceSensitive&&s.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(s.lastChild.value)?"":Ve;return s.children.length===0?a(s.hasDanglingSpaces&&s.isDanglingSpaceSensitive?ke:""):a([GA(s)?Wn:"",o([u(),ju(e,t,r)]),c()])}var dr=(function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e})({});function ba(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function Gh(e){return ba(e)[1]==="ng-container"}function Yh(e){return ba(e)[1]==="ng-content"}function ha(e){return e===null?null:ba(e)[0]}function Rn(e,t){return e?`:${e}:${t}`:t}var Qh={name:"custom-elements"},Zh={name:"no-errors-schema"},_n=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})({}),wF=/-+([a-z0-9])/g;function kF(e){return e.replace(wF,(...t)=>t[1].toUpperCase())}var da;function ed(){return da||(da={},la(_n.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),la(_n.STYLE,["*|style"]),la(_n.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),la(_n.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),da}function la(e,t){for(let r of t)da[r.toLowerCase()]=e}var PF=class{},BF="boolean",NF="number",IF="string",_F="object",LF=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],lf=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),OF=Array.from(lf).reduce((e,[t,r])=>(e.set(t,r),e),new Map),MF=class extends PF{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,LF.forEach(e=>{let t=new Map,r=new Set,[s,n]=e.split("|"),i=n.split(","),[a,o]=s.split("^");a.split(",").forEach(c=>{this._schema.set(c.toLowerCase(),t),this._eventSchema.set(c.toLowerCase(),r)});let u=o&&this._schema.get(o.toLowerCase());if(u){for(let[c,p]of u)t.set(c,p);for(let c of this._eventSchema.get(o.toLowerCase()))r.add(c)}i.forEach(c=>{if(c.length>0)switch(c[0]){case"*":r.add(c.substring(1));break;case"!":t.set(c.substring(1),BF);break;case"#":t.set(c.substring(1),NF);break;case"%":t.set(c.substring(1),_F);break;default:t.set(c,IF)}})})}hasProperty(e,t,r){if(r.some(s=>s.name===Zh.name))return!0;if(e.indexOf("-")>-1){if(Gh(e)||Yh(e))return!1;if(r.some(s=>s.name===Qh.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===Zh.name)||e.indexOf("-")>-1&&(Gh(e)||Yh(e)||t.some(r=>r.name===Qh.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let s=ed()[e+"|"+t];return s||(s=ed()["*|"+t],s||_n.NONE)}getMappedPropName(e){return lf.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
46
|
+
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>OF.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return kF(e)}normalizeAnimationStyleValue(e,t,r){let s="",n=r.toString().trim(),i=null;if(jF(e)&&r!==0&&r!=="0")if(typeof r=="number")s="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(i=`Please provide a CSS unit value for ${t}:${r}`)}return{error:i,value:n+s}}};function jF(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var se=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=dr.PARSABLE_DATA,closedByParent:s=!1,isVoid:n=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=n,this.closedByParent=s||n,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i,this.preventNamespaceInheritance=a,this.canSelfClose=o??n}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},td,Nn;function fu(e){return Nn||(td=new se({canSelfClose:!0}),Nn=Object.assign(Object.create(null),{base:new se({isVoid:!0}),meta:new se({isVoid:!0}),area:new se({isVoid:!0}),embed:new se({isVoid:!0}),link:new se({isVoid:!0}),img:new se({isVoid:!0}),input:new se({isVoid:!0}),param:new se({isVoid:!0}),hr:new se({isVoid:!0}),br:new se({isVoid:!0}),source:new se({isVoid:!0}),track:new se({isVoid:!0}),wbr:new se({isVoid:!0}),p:new se({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new se({closedByChildren:["tbody","tfoot"]}),tbody:new se({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new se({closedByChildren:["tbody"],closedByParent:!0}),tr:new se({closedByChildren:["tr"],closedByParent:!0}),td:new se({closedByChildren:["td","th"],closedByParent:!0}),th:new se({closedByChildren:["td","th"],closedByParent:!0}),col:new se({isVoid:!0}),svg:new se({implicitNamespacePrefix:"svg"}),foreignObject:new se({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new se({implicitNamespacePrefix:"math"}),li:new se({closedByChildren:["li"],closedByParent:!0}),dt:new se({closedByChildren:["dt","dd"]}),dd:new se({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new se({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new se({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new se({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new se({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new se({closedByChildren:["optgroup"],closedByParent:!0}),option:new se({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new se({ignoreFirstLf:!0}),listing:new se({ignoreFirstLf:!0}),style:new se({contentType:dr.RAW_TEXT}),script:new se({contentType:dr.RAW_TEXT}),title:new se({contentType:{default:dr.ESCAPABLE_RAW_TEXT,svg:dr.PARSABLE_DATA}}),textarea:new se({contentType:dr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new MF().allKnownElementNames().forEach(t=>{!Nn[t]&&ha(t)===null&&(Nn[t]=new se({canSelfClose:!1}))})),Nn[e]??td}function fa(e){return e>=9&&e<=32||e==160}function Ta(e){return 48<=e&&e<=57}function $n(e){return e>=97&&e<=122||e>=65&&e<=90}function RF(e){return e>=97&&e<=102||e>=65&&e<=70||Ta(e)}function ma(e){return e===10||e===13}function rd(e){return 48<=e&&e<=55}function lu(e){return e===39||e===34||e===96}var mu=class pf{constructor(t,r,s,n){this.file=t,this.offset=r,this.line=s,this.col=n}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,s=r.length,n=this.offset,i=this.line,a=this.col;for(;n>0&&t<0;)if(n--,t++,r.charCodeAt(n)==10){i--;let o=r.substring(0,n-1).lastIndexOf(`
|
|
47
|
+
`);a=o>0?n-o:n}else a--;for(;n<s&&t>0;){let o=r.charCodeAt(n);n++,t--,o==10?(i++,a=0):a++}return new pf(this.file,n,i,a)}getContext(t,r){let s=this.file.content,n=this.offset;if(n!=null){n>s.length-1&&(n=s.length-1);let i=n,a=0,o=0;for(;a<t&&n>0&&(n--,a++,!(s[n]==`
|
|
48
|
+
`&&++o==r)););for(a=0,o=0;a<t&&i<s.length-1&&(i++,a++,!(s[i]==`
|
|
49
|
+
`&&++o==r)););return{before:s.substring(n,this.offset),after:s.substring(this.offset,i+1)}}return null}},cf=class{constructor(e,t){this.content=e,this.url=t}},re=class{constructor(e,t,r=e,s=null){this.start=e,this.end=t,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},sd=(function(e){return e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR",e})({}),Rs=class extends Error{constructor(e,t,r=sd.ERROR,s){super(t),this.span=e,this.msg=t,this.level=r,this.relatedError=s,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${sd[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},hs=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},UF=class extends hs{constructor(e,t,r,s){super(t,s),this.value=e,this.tokens=r,this.kind="text"}visit(e,t){return e.visitText(this,t)}},qF=class extends hs{constructor(e,t,r,s){super(t,s),this.value=e,this.tokens=r,this.kind="cdata"}visit(e,t){return e.visitCdata(this,t)}},$F=class extends hs{constructor(e,t,r,s,n,i){super(s,i),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=n,this.kind="expansion"}visit(e,t){return e.visitExpansion(this,t)}},VF=class{constructor(e,t,r,s,n){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=n,this.kind="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},WF=class extends hs{constructor(e,t,r,s,n,i,a){super(r,a),this.name=e,this.value=t,this.keySpan=s,this.valueSpan=n,this.valueTokens=i,this.kind="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},is=class extends hs{constructor(e,t,r,s,n,i,a,o=null,u=null,c,p){super(i,p),this.name=e,this.attrs=t,this.directives=r,this.children=s,this.isSelfClosing=n,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=u,this.isVoid=c,this.kind="element"}visit(e,t){return e.visitElement(this,t)}},HF=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="comment"}visit(e,t){return e.visitComment(this,t)}},zF=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="docType"}visit(e,t){return e.visitDocType(this,t)}},js=class extends hs{constructor(e,t,r,s,n,i,a=null,o){super(s,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=n,this.startSourceSpan=i,this.endSourceSpan=a,this.kind="block"}visit(e,t){return e.visitBlock(this,t)}},Lr=class extends hs{constructor(e,t,r,s,n,i,a,o,u,c=null,p){super(o,p),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=s,this.directives=n,this.children=i,this.isSelfClosing=a,this.startSourceSpan=u,this.endSourceSpan=c,this.kind="component"}visit(e,t){return e.visitComponent(this,t)}},JF=class{constructor(e,t,r,s,n=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=n,this.kind="directive"}visit(e,t){return e.visitDirective(this,t)}},nd=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.kind="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},id=class{constructor(e,t,r,s,n){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=n,this.kind="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function hf(e,t,r=null){let s=[],n=e.visit?i=>e.visit(i,r)||i.visit(e,r):i=>i.visit(e,r);return t.forEach(i=>{let a=n(i);a&&s.push(a)}),s}var XF=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.directives),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitDirective(e,t){this.visitChildren(t,r=>{r(e.attrs)})}visitChildren(e,t){let r=[],s=this;function n(i){i&&r.push(hf(s,i,e))}return t(n),Array.prototype.concat.apply([],r)}},Vn={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:`
|
|
50
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},KF="\uE500";Vn.ngsp=KF;var P=(function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e})({}),GF=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function YF(e,t,r,s={}){let n=new tb(new cf(e,t),r,s);return n.tokenize(),new GF(ub(n.tokens),n.errors,n.nonNormalizedIcuExpressions)}var QF=/\r\n?/g;function as(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function ad(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function ZF(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var yu=(function(e){return e.HEX="hexadecimal",e.DEC="decimal",e})(yu||{}),eb=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],In={start:"{{",end:"}}"},tb=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(n=>n.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new lb(e,s):new df(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(n){this.handleError(n)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(QF,`
|
|
51
|
+
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(P.TEXT,P.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(P.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>fa(r)?!e:ob(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(P.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Ee);else{t.type=P.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(P.BLOCK_OPEN_END),this._endToken([])):t.type=P.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(P.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ud);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(P.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===t)t=null;else if(t===null&&lu(s))t=s;else if(s===40&&t===null)r++;else if(s===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ud)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(P.LET_START,e),fa(this._cursor.peek()))this._attemptCharCodeUntilFn(Ee);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=P.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ee),!this._attemptCharCode(61)){t.type=P.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>Ee(r)&&!ma(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(P.LET_END),this._endToken([]),this._cursor.advance()):(t.type=P.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>$n(r)||r===36||r===95||t&&Ta(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(P.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;lu(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(ib(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Rs(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new Rs(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new Rs(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Ru&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Rs)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return ab(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(as(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let r=this._cursor.clone();for(let s=0;s<t;s++)if(!this._attemptCharCode(e.charCodeAt(s)))return this._cursor=r,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(as(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(as(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<t)throw this._createError(as(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let r=this._cursor.clone();for(let s=0;s<t;s++){if(r.peek()!==e.charCodeAt(s))return!1;r.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&eb.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(P.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(sb),this._cursor.peek()!=59){this._cursor.advance();let i=r?yu.HEX:yu.DEC;throw this._createError(ZF(i,this._cursor.getChars(t)),this._cursor.getSpan())}let n=this._cursor.getChars(s);this._cursor.advance();try{let i=parseInt(n,r?16:10);this._endToken([String.fromCodePoint(i),this._cursor.getChars(t)])}catch{throw this._createError(ad(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(nb),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let n=Vn.hasOwnProperty(s)&&Vn[s];if(!n)throw this._createError(ad(s),this._cursor.getSpan(t));this._endToken([n,`&${s};`])}}}_consumeRawText(e,t){this._beginToken(e?P.ESCAPABLE_RAW_TEXT:P.RAW_TEXT);let r=[];for(;;){let s=this._cursor.clone(),n=t();if(this._cursor=s,n)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(P.ESCAPABLE_RAW_TEXT),this._beginToken(P.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(P.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(P.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(P.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(P.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(P.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(P.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(P.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(P.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!rb(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===58?(r=this._cursor.getChars(t),this._cursor.advance(),s=this._cursor.clone()):s=t,this._requireCharCodeUntilFn(e,r===""?0:1);let n=this._cursor.getChars(s);return[r,n]}_consumeTagOpen(e){let t,r,s,n,i=[];try{if(this._selectorlessEnabled&&pa(this._cursor.peek()))n=this._consumeComponentOpenStart(e),[s,r,t]=n.parts,r&&(s+=`:${r}`),t&&(s+=`:${t}`),this._attemptCharCodeUntilFn(Ee);else{if(!$n(this._cursor.peek()))throw this._createError(as(this._cursor.peek()),this._cursor.getSpan(e));n=this._consumeTagOpenStart(e),r=n.parts[0],t=s=n.parts[1],this._attemptCharCodeUntilFn(Ee)}for(;!pd(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),u=o.clone();u.advance(),pa(u.peek())&&this._consumeDirective(o,u)}else{let o=this._consumeAttribute();i.push(o)}n.type===P.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof Rs){n?n.type=n.type===P.COMPONENT_OPEN_START?P.INCOMPLETE_COMPONENT_OPEN:P.INCOMPLETE_TAG_OPEN:(this._beginToken(P.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===P.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(r,t),a===dr.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,s,!1):a===dr.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,s,!0)}_consumeRawTextWithTagClose(e,t,r,s){this._consumeRawText(s,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Ee),!this._attemptStrCaseInsensitive(e&&t.type!==P.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(62))),this._beginToken(t.type===P.COMPONENT_OPEN_START?P.COMPONENT_CLOSE:P.TAG_CLOSE),this._requireCharCodeUntilFn(n=>n===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(P.TAG_OPEN_START,e);let t=this._consumePrefixAndName(os);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(P.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;ld(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",s="";return this._cursor.peek()===58&&(this._cursor.advance(),[r,s]=this._consumePrefixAndName(os)),[t,r,s]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Ee),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ee),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(as(e),this._cursor.getSpan());this._beginToken(P.ATTR_NAME);let t;if(this._openDirectiveCount>0){let s=0;t=n=>{if(this._openDirectiveCount>0){if(n===40)s++;else if(n===41){if(s===0)return!0;s--}}return os(n)}}else if(e===91){let s=0;t=n=>(n===91?s++:n===93&&s--,s<=0?os(n):ma(n))}else t=os;let r=this._consumePrefixAndName(t);return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(P.ATTR_VALUE_TEXT,P.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>os(this._cursor.peek());e=this._consumeWithInterpolation(P.ATTR_VALUE_TEXT,P.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(P.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?P.TAG_OPEN_END_VOID:P.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?P.COMPONENT_OPEN_END_VOID:P.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!pa(t.peek());)t.advance();if(pa(t.peek())){this._beginToken(P.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Ee),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(P.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Ee),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Ee),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(os);this._attemptCharCodeUntilFn(Ee),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(P.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(P.EXPANSION_FORM_START),this._beginToken(P.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let s=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Ee),this._beginToken(P.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ee)}_consumeExpansionCaseStart(){this._beginToken(P.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ee),this._beginToken(P.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Ee),this._expansionCaseStack.push(P.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(P.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Ee),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(P.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,s){this._beginToken(e);let n=[];for(;!r();){let a=this._cursor.clone();this._attemptStr(In.start)?(this._endToken([this._processCarriageReturns(n.join(""))],a),n.length=0,this._consumeInterpolation(t,a,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(""))]),n.length=0,this._consumeEntity(e),this._beginToken(e)):n.push(this._readChar())}this._inInterpolation=!1;let i=this._processCarriageReturns(n.join(""));return this._endToken([i]),i}_consumeInterpolation(e,t,r){let s=[];this._beginToken(e,t),s.push(In.start);let n=this._cursor.clone(),i=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,s.push(this._getProcessedChars(n,o)),this._endToken(s);return}if(i===null)if(this._attemptStr(In.end)){s.push(this._getProcessedChars(n,o)),s.push(In.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let u=this._cursor.peek();this._cursor.advance(),u===92?this._cursor.advance():u===i?i=null:!a&&i===null&&lu(u)&&(i=u)}s.push(this._getProcessedChars(n,this._cursor)),this._endToken(s)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();ld(this._cursor.peek());)this._cursor.advance();this._beginToken(P.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(Ee),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(P.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ee);!pd(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ee),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(as(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(P.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ee)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===P.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===P.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(In.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=Rn(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=Rn(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function Ee(e){return!fa(e)||e===0}function os(e){return fa(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function rb(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function sb(e){return e===59||e===0||!RF(e)}function nb(e){return e===59||e===0||!$n(e)}function ib(e){return e!==125}function ab(e,t){return od(e)===od(t)}function od(e){return e>=97&&e<=122?e-97+65:e}function ob(e){return $n(e)||Ta(e)||e===95}function ud(e){return e!==59&&Ee(e)}function pa(e){return e===95||e>=65&&e<=90}function ld(e){return $n(e)||Ta(e)||e===95}function pd(e){return e===47||e===62||e===60||e===0}function ub(e){let t=[],r;for(let s=0;s<e.length;s++){let n=e[s];r&&r.type===P.TEXT&&n.type===P.TEXT||r&&r.type===P.ATTR_VALUE_TEXT&&n.type===P.ATTR_VALUE_TEXT?(r.parts[0]+=n.parts[0],r.sourceSpan.end=n.sourceSpan.end):(r=n,t.push(r))}return t}var df=class Du{constructor(t,r){if(t instanceof Du){this.file=t.file,this.input=t.input,this.end=t.end;let s=t.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new Du(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,r){t=t||this;let s=t;if(r)for(;this.diff(t)>0&&r.indexOf(t.peek())!==-1;)s===t&&(t=t.clone()),t.advance();let n=this.locationFromCursor(t);return new re(n,this.locationFromCursor(this),s!==t?this.locationFromCursor(s):n)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Ru('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):ma(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new mu(t.file,t.state.offset,t.state.line,t.state.column)}},lb=class gu extends df{constructor(t,r){t instanceof gu?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new gu(this)}getChars(t){let r=t.clone(),s="";for(;r.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(r.peek()),r.advance();return s}processEscapeSequence(){let t=()=>this.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;t()!==125;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(r,s)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(rd(t())){let r="",s=0,n=this.clone();for(;rd(t())&&s<3;)n=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(r,8),this.internalState=n.internalState}else ma(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let s=this.input.slice(t.internalState.offset,t.internalState.offset+r),n=parseInt(s,16);if(isNaN(n))throw t.state=t.internalState,new Ru("Invalid hexadecimal escape sequence",t);return n}},Ru=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Oe=class ff extends Rs{static create(t,r,s){return new ff(t,r,s)}constructor(t,r,s){super(r,s),this.elementName=t}},pb=class{constructor(e,t){this.rootNodes=e,this.errors=t}},cb=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,s=!1,n){let i=d=>(m,...f)=>d(m.toLowerCase(),...f),a=s?this.getTagDefinition:i(this.getTagDefinition),o=d=>a(d).getContentType(),u=s?n:i(n),c=YF(e,t,n?(d,m,f,D)=>{let g=u(d,m,f,D);return g!==void 0?g:o(d)}:o,r),p=r&&r.canSelfClose||!1,l=r&&r.allowHtmComponentClosingTags||!1,h=new hb(c.tokens,a,p,l,s);return h.build(),new pb(h.rootNodes,[...c.errors,...h.errors])}},hb=class mf{constructor(t,r,s,n,i){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=s,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==P.EOF;)this._peek.type===P.TAG_OPEN_START||this._peek.type===P.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===P.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===P.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===P.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===P.TEXT||this._peek.type===P.RAW_TEXT||this._peek.type===P.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===P.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===P.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===P.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===P.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===P.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===P.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===P.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===P.COMPONENT_OPEN_START||this._peek.type===P.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===P.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof js&&this.errors.push(Oe.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t}_advanceIf(t){return this._peek.type===t?this._advance():null}_consumeCdata(t){let r=this._advance(),s=this._getText(r),n=this._advanceIf(P.CDATA_END);this._addToParent(new qF(s,new re(t.sourceSpan.start,(n||r).sourceSpan.end),[r]))}_consumeComment(t){let r=this._advanceIf(P.RAW_TEXT),s=this._advanceIf(P.COMMENT_END),n=r!=null?r.parts[0].trim():null,i=s==null?t.sourceSpan:new re(t.sourceSpan.start,s.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new HF(n,i))}_consumeDocType(t){let r=this._advanceIf(P.RAW_TEXT),s=this._advanceIf(P.DOC_TYPE_END),n=r!=null?r.parts[0].trim():null,i=new re(t.sourceSpan.start,(s||r||t).sourceSpan.end);this._addToParent(new zF(n,i))}_consumeExpansion(t){let r=this._advance(),s=this._advance(),n=[];for(;this._peek.type===P.EXPANSION_CASE_VALUE;){let a=this._parseExpansionCase();if(!a)return;n.push(a)}if(this._peek.type!==P.EXPANSION_FORM_END){this.errors.push(Oe.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new re(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new $F(r.parts[0],s.parts[0],n,i,r.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==P.EXPANSION_CASE_EXP_START)return this.errors.push(Oe.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),s=this._collectExpansionExpTokens(r);if(!s)return null;let n=this._advance();s.push({type:P.EOF,parts:[],sourceSpan:n.sourceSpan});let i=new mf(s,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let a=new re(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart),o=new re(r.sourceSpan.start,n.sourceSpan.end,r.sourceSpan.fullStart);return new VF(t.parts[0],i.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],s=[P.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===P.EXPANSION_FORM_START||this._peek.type===P.EXPANSION_CASE_EXP_START)&&s.push(this._peek.type),this._peek.type===P.EXPANSION_CASE_EXP_END)if(cd(s,P.EXPANSION_CASE_EXP_START)){if(s.pop(),s.length===0)return r}else return this.errors.push(Oe.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===P.EXPANSION_FORM_END)if(cd(s,P.EXPANSION_FORM_START))s.pop();else return this.errors.push(Oe.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===P.EOF)return this.errors.push(Oe.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==`
|
|
52
|
+
`){var s;let n=this._getClosestElementLikeParent();n!=null&&n.children.length==0&&!((s=this._getTagDefinition(n))===null||s===void 0)&&s.ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],s=t.sourceSpan,n=t.parts[0];if(n.length>0&&n[0]===`
|
|
53
|
+
`){var i;let a=this._getContainer();a!=null&&a.children.length===0&&!((i=this._getTagDefinition(a))===null||i===void 0)&&i.ignoreFirstLf&&(n=n.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[n]})}for(;this._peek.type===P.INTERPOLATION||this._peek.type===P.TEXT||this._peek.type===P.ENCODED_ENTITY;)t=this._advance(),r.push(t),t.type===P.INTERPOLATION?n+=t.parts.join("").replace(/&([^;]+);/g,hd):t.type===P.ENCODED_ENTITY?n+=t.parts[0]:n+=t.parts.join("");if(n.length>0){let a=t.sourceSpan;this._addToParent(new UF(n,new re(s.start,a.end,s.fullStart,s.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&!((t=this._getTagDefinition(r))===null||t===void 0)&&t.isVoid&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let s=[],n=[];this._consumeAttributesAndDirectives(s,n);let i=this._getElementFullName(t,this._getClosestElementLikeParent()),a=this._getTagDefinition(i),o=!1;if(this._peek.type===P.TAG_OPEN_END_VOID){this._advance(),o=!0;let f=this._getTagDefinition(i);this.canSelfClose||f?.canSelfClose||ha(i)!==null||f?.isVoid||this.errors.push(Oe.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===P.TAG_OPEN_END&&(this._advance(),o=!1);let u=this._peek.sourceSpan.fullStart,c=new re(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new re(t.sourceSpan.start,u,t.sourceSpan.fullStart),l=new re(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new is(i,s,n,[],o,c,p,void 0,l,a?.isVoid??!1),d=this._getContainer(),m=d!==null&&!!(!((r=this._getTagDefinition(d))===null||r===void 0)&&r.isClosedByChild(h.name));this._pushContainer(h,m),o?this._popContainer(i,is,c):t.type===P.INCOMPLETE_TAG_OPEN&&(this._popContainer(i,is,null),this.errors.push(Oe.create(i,c,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(t){var r;let s=t.parts[0],n=[],i=[];this._consumeAttributesAndDirectives(n,i);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,a),u=this._getComponentFullName(t,a),c=this._peek.type===P.COMPONENT_OPEN_END_VOID;this._advance();let p=this._peek.sourceSpan.fullStart,l=new re(t.sourceSpan.start,p,t.sourceSpan.fullStart),h=new re(t.sourceSpan.start,p,t.sourceSpan.fullStart),d=new Lr(s,o,u,n,i,[],c,l,h,void 0),m=this._getContainer(),f=m!==null&&d.tagName!==null&&!!(!((r=this._getTagDefinition(m))===null||r===void 0)&&r.isClosedByChild(d.tagName));this._pushContainer(d,f),c?this._popContainer(u,Lr,l):t.type===P.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(u,Lr,null),this.errors.push(Oe.create(u,l,`Opening tag "${u}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===P.ATTR_NAME||this._peek.type===P.DIRECTIVE_NAME;)this._peek.type===P.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,Lr,t.sourceSpan)){let s=this._containerStack[this._containerStack.length-1],n;s instanceof Lr&&s.componentName===t.parts[0]?n=`, did you mean "${s.fullName}"?`:n=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${r}"${n}`;this.errors.push(Oe.create(r,t.sourceSpan,i))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof is?this.tagDefinitionResolver(t.name):t instanceof Lr&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){var r;let s=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t,this._getClosestElementLikeParent());if(s&&!((r=this._getTagDefinition(s))===null||r===void 0)&&r.isVoid)this.errors.push(Oe.create(s,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(s,is,t.sourceSpan)){let n=`Unexpected closing tag "${s}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Oe.create(s,t.sourceSpan,n))}}_popContainer(t,r,s){let n=!1;for(let a=this._containerStack.length-1;a>=0;a--){var i;let o=this._containerStack[a],u=o instanceof Lr?o.fullName:o.name;if(ha(u)?u===t:(u===t||t===null)&&o instanceof r)return o.endSourceSpan=s,o.sourceSpan.end=s!==null?s.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!n;(o instanceof js||!(!((i=this._getTagDefinition(o))===null||i===void 0)&&i.closedByParent))&&(n=!0)}return!1}_consumeAttr(t){let r=Rn(t.parts[0],t.parts[1]),s=t.sourceSpan.end,n;this._peek.type===P.ATTR_QUOTE&&(n=this._advance());let i="",a=[],o,u;if(this._peek.type===P.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===P.ATTR_VALUE_TEXT||this._peek.type===P.ATTR_VALUE_INTERPOLATION||this._peek.type===P.ENCODED_ENTITY;){let p=this._advance();a.push(p),p.type===P.ATTR_VALUE_INTERPOLATION?i+=p.parts.join("").replace(/&([^;]+);/g,hd):p.type===P.ENCODED_ENTITY?i+=p.parts[0]:i+=p.parts.join(""),u=s=p.sourceSpan.end}this._peek.type===P.ATTR_QUOTE&&(u=s=this._advance().sourceSpan.end);let c=o&&u&&new re(n?.sourceSpan.start??o.start,u,n?.sourceSpan.fullStart??o.fullStart);return new WF(r,i,new re(t.sourceSpan.start,s,t.sourceSpan.fullStart),t.sourceSpan,c,a.length>0?a:void 0,void 0)}_consumeDirective(t){let r=[],s=t.sourceSpan.end,n=null;if(this._advance(),this._peek.type===P.DIRECTIVE_OPEN){for(s=this._peek.sourceSpan.end,this._advance();this._peek.type===P.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===P.DIRECTIVE_CLOSE?(n=this._peek.sourceSpan,this._advance()):this.errors.push(Oe.create(null,t.sourceSpan,"Unterminated directive definition"))}let i=new re(t.sourceSpan.start,s,t.sourceSpan.fullStart),a=new re(i.start,n===null?t.sourceSpan.end:n.end,i.fullStart);return new JF(t.parts[0],r,a,i,n)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===P.BLOCK_PARAMETER;){let o=this._advance();r.push(new nd(o.parts[0],o.sourceSpan))}this._peek.type===P.BLOCK_OPEN_END&&this._advance();let s=this._peek.sourceSpan.fullStart,n=new re(t.sourceSpan.start,s,t.sourceSpan.fullStart),i=new re(t.sourceSpan.start,s,t.sourceSpan.fullStart),a=new js(t.parts[0],r,[],n,t.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,js,t.sourceSpan)||this.errors.push(Oe.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===P.BLOCK_PARAMETER;){let o=this._advance();r.push(new nd(o.parts[0],o.sourceSpan))}let s=this._peek.sourceSpan.fullStart,n=new re(t.sourceSpan.start,s,t.sourceSpan.fullStart),i=new re(t.sourceSpan.start,s,t.sourceSpan.fullStart),a=new js(t.parts[0],r,[],n,t.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,js,null),this.errors.push(Oe.create(t.parts[0],n,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],s,n;if(this._peek.type!==P.LET_VALUE){this.errors.push(Oe.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==P.LET_END){this.errors.push(Oe.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else n=this._advance();let i=n.sourceSpan.fullStart,a=new re(t.sourceSpan.start,i,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),u=new re(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),c=new id(r,s.parts[0],a,u,s.sourceSpan);this._addToParent(c)}_consumeIncompleteLet(t){let r=t.parts[0]??"",s=r?` "${r}"`:"";if(r.length>0){let n=t.sourceSpan.toString().lastIndexOf(r),i=new re(t.sourceSpan.start.moveBy(n),t.sourceSpan.end),a=new re(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new id(r,"",t.sourceSpan,i,a);this._addToParent(o)}this.errors.push(Oe.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let r=this._containerStack[t];if(r instanceof is||r instanceof Lr)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return Rn(this._getPrefix(t,r),t.parts[1])}_getComponentFullName(t,r){let s=t.parts[0],n=this._getComponentTagName(t,r);return n===null?s:n.startsWith(":")?s+n:`${s}:${n}`}_getComponentTagName(t,r){let s=this._getPrefix(t,r),n=t.parts[2];return!s&&!n?null:!s&&n?n:Rn(s,n||"ng-component")}_getPrefix(t,r){var s;let n,i;if(t.type===P.COMPONENT_OPEN_START||t.type===P.INCOMPLETE_COMPONENT_OPEN||t.type===P.COMPONENT_CLOSE?(n=t.parts[1],i=t.parts[2]):(n=t.parts[0],i=t.parts[1]),n=n||((s=this._getTagDefinition(i))===null||s===void 0?void 0:s.implicitNamespacePrefix)||"",!n&&r){let a=r instanceof is?r.name:r.tagName;if(a!==null){let o=ba(a)[1],u=this._getTagDefinition(o);u!==null&&!u.preventNamespaceInheritance&&(n=ha(a))}}return n}};function cd(e,t){return e.length>0&&e[e.length-1]===t}function hd(e,t){return Vn[t]!==void 0?Vn[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var db=class extends cb{constructor(){super(fu)}parse(e,t,r,s=!1,n){return super.parse(e,t,r,s,n)}},pu=null,fb=()=>(pu||(pu=new db),pu);function Eu(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:n=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:u=!1}=t;return fb().parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:s,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:u},n,i)}var mb=[Db,gb,xb,Cb,Fb,vb,bb,Tb,Sb,Ab];function yb(e,t){for(let r of mb)r(e,t);return e}function Db(e){e.walk(t=>{if(t.kind==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].kind==="text"&&t.children[0].value[0]===`
|
|
54
|
+
`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function gb(e){let t=r=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk(r=>{if(r.children)for(let s=0;s<r.children.length;s++){let n=r.children[s];if(!t(n))continue;let i=n.prev,a=n.firstChild;r.removeChild(i),s--;let o=new re(i.sourceSpan.start,a.sourceSpan.end),u=new re(o.start,n.sourceSpan.end);n.condition=i.condition,n.sourceSpan=u,n.startSourceSpan=o,n.removeChild(a)}})}function Eb(e,t,r){e.walk(s=>{if(s.children)for(let n=0;n<s.children.length;n++){let i=s.children[n];if(i.kind!=="text"&&!t(i))continue;i.kind!=="text"&&(i.kind="text",i.value=r(i));let a=i.prev;!a||a.kind!=="text"||(a.value+=i.value,a.sourceSpan=new re(a.sourceSpan.start,i.sourceSpan.end),s.removeChild(i),n--)}})}function xb(e){return Eb(e,t=>t.kind==="cdata",t=>`<![CDATA[${t.value}]]>`)}function Ab(e){let t=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!gt.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";e.walk(r=>{if(r.children)for(let s=0;s<r.children.length;s++){let n=r.children[s];if(!t(n))continue;let i=n.prev,a=n.next;i.value+=`<${n.rawName}>`+n.firstChild.value+`</${n.rawName}>`+a.value,i.sourceSpan=new re(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(n),s--,r.removeChild(a)}})}function Cb(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(s=>{if(HA(s,t))for(let n of s.children){if(n.kind!=="text")continue;let i=n.sourceSpan.start,a=null,o=n.value.split(r);for(let u=0;u<o.length;u++,i=a){let c=o[u];if(u%2===0){a=i.moveBy(c.length),c.length>0&&s.insertChildBefore(n,{kind:"text",value:c,sourceSpan:new re(i,a)});continue}a=i.moveBy(c.length+4),s.insertChildBefore(n,{kind:"interpolation",sourceSpan:new re(i,a),children:c.length===0?[]:[{kind:"text",value:c,sourceSpan:new re(i.moveBy(2),a.moveBy(-2))}]})}s.removeChild(n)}})}function Fb(e,t){e.walk(r=>{let s=r.$children;if(!s)return;if(s.length===0||s.length===1&&s[0].kind==="text"&>.trim(s[0].value).length===0){r.hasDanglingSpaces=s.length>0,r.$children=[];return}let n=zA(r,t),i=Vd(r);if(!n)for(let a=0;a<s.length;a++){let o=s[a];if(o.kind!=="text")continue;let{leadingWhitespace:u,text:c,trailingWhitespace:p}=VA(o.value),l=o.prev,h=o.next;c?(o.value=c,o.sourceSpan=new re(o.sourceSpan.start.moveBy(u.length),o.sourceSpan.end.moveBy(-p.length)),u&&(l&&(l.hasTrailingSpaces=!0),o.hasLeadingSpaces=!0),p&&(o.hasTrailingSpaces=!0,h&&(h.hasLeadingSpaces=!0))):(r.removeChild(o),a--,(u||p)&&(l&&(l.hasTrailingSpaces=!0),h&&(h.hasLeadingSpaces=!0)))}r.isWhitespaceSensitive=n,r.isIndentationSensitive=i})}function bb(e){e.walk(t=>{t.isSelfClosing=!t.children||t.kind==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function Tb(e,t){e.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function vb(e,t){e.walk(r=>{r.cssDisplay=uC(r,t)})}function Sb(e,t){e.walk(r=>{let{children:s}=r;if(s){if(s.length===0){r.isDanglingSpaceSensitive=KA(r,t);return}for(let n of s)n.isLeadingSpaceSensitive=JA(n,t),n.isTrailingSpaceSensitive=XA(n,t);for(let n=0;n<s.length;n++){let i=s[n];i.isLeadingSpaceSensitive=(n===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(n===s.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}var wb=yb;function kb(e,t,r){let{node:s}=e;switch(s.kind){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(s),[Ie(ju(e,t,r)),ve];case"element":case"ieConditionalComment":return SF(e,t,r);case"angularControlFlowBlock":return CF(e,t,r);case"angularControlFlowBlockParameters":return bF(e,t,r);case"angularControlFlowBlockParameter":return gt.trim(s.expression);case"angularLetDeclaration":return Ie(["@let ",Ie([s.id," =",Ie(Vt([ke,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return s.value;case"angularIcuExpression":return TF(e,t,r);case"angularIcuCase":return vF(e,t,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Mn(s),On(s)];case"interpolation":return[Mn(s,t),...e.map(r,"children"),On(s,t)];case"text":{if(s.parent.kind==="interpolation"){let o=/\n[^\S\n]*$/u,u=o.test(s.value),c=u?s.value.replace(o,""):s.value;return[$t(c),u?ve:""]}let n=cs(s,t),i=Qd(s),a=ls(s,t);return i[0]=[n,i[0]],i.push([i.pop(),a]),_d(i)}case"docType":return[Ie([Mn(s,t)," ",ze(0,s.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),On(s,t)];case"comment":return[cs(s,t),$t(t.originalText.slice(Xn(s),Aa(s))),ls(s,t)];case"attribute":{if(s.value===null)return s.rawName;let n=Yd(s.value),i=ef(s,t)?"":uA(n,'"');return[s.rawName,"=",i,$t(i==='"'?ze(0,n,'"',"""):ze(0,n,"'","'")),i]}default:throw new mA(s,"HTML")}}var Pb={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:wb,print:kb,insertPragma:xF,massageAstNode:gA,embed:oF,getVisitorKeys:fF},Bb=Pb,yf=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],dd={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},fd="HTML",Nb={bracketSameLine:dd.bracketSameLine,htmlWhitespaceSensitivity:{category:fd,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:dd.singleAttributePerLine,vueIndentScriptAndStyle:{category:fd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Df=Nb,Uu={};Ad(Uu,{angular:()=>aT,html:()=>sT,lwc:()=>uT,mjml:()=>iT,vue:()=>oT});function Ib(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var _b=Ib,Lb={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function gf(e){return{...Lb,...e}}function Ef(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:s,shouldParseAsRawText:n,tokenizeAngularBlocks:i,tokenizeAngularLetDeclaration:a}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:s,getTagContentType:n?(...o)=>n(...o)?dr.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:i,tokenizeAngularLetDeclaration:a}}var cu=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Ob=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),ca={attrs:!0,children:!0,cases:!0,expression:!0},md=new Set(["parent"]),Us,xu,Au,Mb=class Ln{constructor(t={}){Ux(this,Us),qh(this,"kind"),qh(this,"parent");for(let r of new Set([...md,...Object.keys(t)]))this.setProperty(r,t[r]);if(ga(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in ca&&(r=r.map(s=>this.createChild(s))),!md.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let s in ca){let n=this[s];if(n){let i=Rb(n,a=>a.map(t));r!==n&&(r||(r=new Ln({parent:this.parent})),r.setProperty(s,i))}}if(r)for(let s in this)s in ca||(r[s]=this[s]);return t(r||this)}walk(t){for(let r in ca){let s=this[r];if(s)for(let n=0;n<s.length;n++)s[n].walk(t)}t(this)}createChild(t){let r=t instanceof Ln?t.clone():new Ln(t);return r.setProperty("parent",this),r}insertChildBefore(t,r){let s=this.$children;s.splice(s.indexOf(t),0,this.createChild(r))}removeChild(t){let r=this.$children;r.splice(r.indexOf(t),1)}replaceChild(t,r){let s=this.$children;s[s.indexOf(t)]=this.createChild(r)}clone(){return new Ln(this)}get $children(){return this[aa(this,Us,xu)]}set $children(t){this[aa(this,Us,xu)]=t}get firstChild(){return this.$children?.[0]}get lastChild(){return $s(1,this.$children,-1)}get prev(){let t=aa(this,Us,Au);return t[t.indexOf(this)-1]}get next(){let t=aa(this,Us,Au);return t[t.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(t=>[t.fullName,t.value]))}};Us=new WeakSet,xu=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Au=function(){return this.parent?.$children??[]};var jb=Mb;function Rb(e,t){let r=e.map(t);return r.some((s,n)=>s!==e[n])?r:e}var Ub=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:$b},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:Vb},{regex:/^<!\s*\[endif\]$/u,parse:Wb}];function qb(e,t){if(e.value)for(let{regex:r,parse:s}of Ub){let n=e.value.match(r);if(n)return s(e,n,t)}return null}function $b(e,t,r){let{openingTagSuffix:s,condition:n,data:i}=t.groups,a=4+s.length,o=e.sourceSpan.start.moveBy(a),u=o.moveBy(i.length),[c,p]=(()=>{try{return[!0,r(i,o).children]}catch{return[!1,[{kind:"text",value:i,sourceSpan:new re(o,u)}]]}})();return{kind:"ieConditionalComment",complete:c,children:p,condition:ze(0,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new re(e.sourceSpan.start,o),endSourceSpan:new re(u,e.sourceSpan.end)}}function Vb(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:ze(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function Wb(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var Hb=class extends XF{visitExpansionCase(e,t){t.parseOptions.name==="angular"&&this.visitChildren(t,r=>{r(e.expression)})}visit(e,{parseOptions:t}){Gb(e),Yb(e,t),Zb(e,t),Qb(e)}};function zb(e,t,r,s){hf(new Hb,e.children,{parseOptions:r}),t&&e.children.unshift(t);let n=new jb(e);return n.walk(i=>{if(i.kind==="comment"){let a=qb(i,s);a&&i.parent.replaceChild(i,a)}Jb(i),Xb(i),Kb(i)}),n}function Jb(e){if(e.kind==="block"){if(e.name=ze(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!Bu(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new re(e.parameters[0].sourceSpan.start,$s(0,e.parameters,-1).sourceSpan.end)}}}function Xb(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new re(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function Kb(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function yd(e,t){let r=e.toLowerCase();return t(r)?r:e}function Dd(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),s=t!==null&&r.startsWith(`${t}:`),n=s?r.slice(t.length+1):r;e.name=n,e.namespace=t,e.hasExplicitNamespace=s}function Gb(e){switch(e.kind){case"element":Dd(e);for(let t of e.attrs)Dd(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString();break}}function Yb(e,t){if(e.kind==="element"){let r=fu(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||zn(e)?e.tagDefinition=r:e.tagDefinition=fu("")}}function Qb(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new re(e.sourceSpan.start,e.endSourceSpan.end))}function Zb(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||zn(e))&&(e.name=yd(e.name,r=>Ob.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=yd(r.name,s=>cu.has(e.name)&&(cu.get("*").has(s)||cu.get(e.name).has(s))))}function xf(e,t){let{rootNodes:r,errors:s}=Eu(e,Ef(t));return s.length>0&&Cu(s[0]),{parseOptions:t,rootNodes:r}}function eT(e,t){let r=Ef(t),{rootNodes:s,errors:n}=Eu(e,r);if(s.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return xf(e,qu);let i,a=()=>i??(i=Eu(e,{...r,getTagContentType:void 0})),o=u=>{let{offset:c}=u.startSourceSpan.start;return a().rootNodes.find(p=>p.kind==="element"&&p.startSourceSpan.start.offset===c)??u};for(let[u,c]of s.entries())if(c.kind==="element"){if(c.isVoid)n=a().errors,s[u]=o(c);else if(tT(c)){let{endSourceSpan:p,startSourceSpan:l}=c,h=a().errors.find(d=>d.span.start.offset>l.start.offset&&d.span.start.offset<p.end.offset);h&&Cu(h),s[u]=o(c)}}return n.length>0&&Cu(n[0]),{parseOptions:t,rootNodes:s}}function tT(e){if(e.kind!=="element"||e.name!=="template")return!1;let t=e.attrs.find(r=>r.name==="lang")?.value;return!t||t==="html"}function Cu(e){let{msg:t,span:{start:r,end:s}}=e;throw _b(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:s.line+1,column:s.col+1}},cause:e})}function rT(e,t,r,s,n,i){let{offset:a}=s,o=ze(0,t.slice(0,a),/[^\n]/gu," ")+r,u=Af(o,e,{...n,shouldParseFrontMatter:!1},i);u.sourceSpan=new re(s,$s(0,u.children,-1).sourceSpan.end);let c=u.children[0];return c.length===a?u.children.shift():(c.sourceSpan=new re(c.sourceSpan.start.moveBy(a),c.sourceSpan.end),c.value=c.value.slice(a)),u}function Af(e,t,r,s={}){let{frontMatter:n,content:i}=r.shouldParseFrontMatter?jA(e):{content:e},a=new cf(e,s.filepath),o=new mu(a,0,0,0),u=o.moveBy(e.length),{parseOptions:c,rootNodes:p}=t(i,r),l={kind:"root",sourceSpan:new re(o,u),children:p},h;if(n){let[d,m]=[n.start,n.end].map(f=>new mu(a,f.index,f.line-1,f.column));h={...n,kind:"frontMatter",sourceSpan:new re(d,m)}}return zb(l,h,c,(d,m)=>rT(t,e,d,m,c,s))}var qu=gf({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Yn(e){let t=gf(e),r=t.name==="vue"?eT:xf;return{parse:(s,n)=>Af(s,r,t,n),hasPragma:gF,hasIgnorePragma:EF,astFormat:"html",locStart:Xn,locEnd:Aa}}var sT=Yn(qu),nT=new Set(["mj-style","mj-raw"]),iT=Yn({...qu,name:"mjml",shouldParseAsRawText:e=>nT.has(e)}),aT=Yn({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),oT=Yn({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,s){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||s.some(({name:n,value:i})=>n==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),uT=Yn({name:"lwc",canSelfClose:!1}),Cf={html:Bb};var Fl={};Wi(Fl,{default:()=>Jf,languages:()=>Sm,options:()=>wm,parsers:()=>xl,printers:()=>Om});var lT=Object.create,el=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,cT=Object.getOwnPropertyNames,hT=Object.getPrototypeOf,dT=Object.prototype.hasOwnProperty,$=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bf=(e,t)=>{for(var r in t)el(e,r,{get:t[r],enumerable:!0})},fT=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cT(t))!dT.call(e,n)&&n!==r&&el(e,n,{get:()=>t[n],enumerable:!(s=pT(t,n))||s.enumerable});return e},Ys=(e,t,r)=>(r=e!=null?lT(hT(e)):{},fT(t||!e||!e.__esModule?el(r,"default",{value:e,enumerable:!0}):r,e)),mT=$((e,t)=>{var r=String,s=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=s(),t.exports.createColors=s}),Nf=$(()=>{}),tl=$((e,t)=>{"use strict";var r=mT(),s=Nf(),n=class If extends Error{constructor(a,o,u,c,p,l){super(a),this.name="CssSyntaxError",this.reason=a,p&&(this.file=p),c&&(this.source=c),l&&(this.plugin=l),typeof o<"u"&&typeof u<"u"&&(typeof o=="number"?(this.line=o,this.column=u):(this.line=o.line,this.column=o.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,If)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=r.isColorSupported);let u=f=>f,c=f=>f,p=f=>f;if(a){let{bold:f,gray:D,red:g}=r.createColors(!0);c=y=>f(g(y)),u=y=>D(y),s&&(p=y=>s(y))}let l=o.split(/\r?\n/),h=Math.max(this.line-3,0),d=Math.min(this.line+2,l.length),m=String(d).length;return l.slice(h,d).map((f,D)=>{let g=h+1+D,y=" "+(" "+g).slice(-m)+" | ";if(g===this.line){if(f.length>160){let A=20,x=Math.max(0,this.column-A),T=Math.max(this.column+A,this.endColumn+A),S=f.slice(x,T),v=u(y.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,A-1)).replace(/[^\t]/g," ");return c(">")+u(y)+p(S)+`
|
|
55
|
+
`+v+c("^")}let E=u(y.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+u(y)+p(f)+`
|
|
56
|
+
`+E+c("^")}return" "+u(y)+p(f)}).join(`
|
|
57
|
+
`)}toString(){let a=this.showSourceCode();return a&&(a=`
|
|
58
|
+
|
|
59
|
+
`+a+`
|
|
60
|
+
`),this.name+": "+this.message+a}};t.exports=n,n.default=n}),rl=$((e,t)=>{"use strict";var r={after:`
|
|
61
|
+
`,beforeClose:`
|
|
62
|
+
`,beforeComment:`
|
|
63
|
+
`,beforeDecl:`
|
|
64
|
+
`,beforeOpen:" ",beforeRule:`
|
|
65
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function s(i){return i[0].toUpperCase()+i.slice(1)}var n=class{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,u=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?o+=i.raws.afterName:u&&(o+=" "),i.nodes)this.block(i,o+u);else{let c=(i.raws.between||"")+(a?";":"");this.builder(o+u+c,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let u=i.parent,c=0;for(;u&&u.type!=="root";)c+=1,u=u.parent;if(o.includes(`
|
|
66
|
+
`)){let p=this.raw(i,null,"indent");if(p.length)for(let l=0;l<c;l++)o+=p}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let u;i.nodes&&i.nodes.length?(this.body(i),u=this.raw(i,"after")):u=this.raw(i,"after","emptyBody"),u&&this.builder(u),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let u=0;u<i.nodes.length;u++){let c=i.nodes[u],p=this.raw(c,"before");p&&this.builder(p),this.stringify(c,a!==u||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),u=i.prop+o+this.rawValue(i,"value");i.important&&(u+=i.raws.important||" !important"),a&&(u+=";"),this.builder(u,i)}document(i){this.body(i)}raw(i,a,o){let u;if(o||(o=a),a&&(u=i.raws[a],typeof u<"u"))return u;let c=i.parent;if(o==="before"&&(!c||c.type==="root"&&c.first===i||c&&c.type==="document"))return"";if(!c)return r[o];let p=i.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[o]<"u")return p.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let l="raw"+s(o);this[l]?u=this[l](p,i):p.walk(h=>{if(u=h.raws[a],typeof u<"u")return!1})}return typeof u>"u"&&(u=r[o]),p.rawCache[o]=u,u}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return a=o.raws.after,a.includes(`
|
|
67
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(u=>{if(typeof u.raws.before<"u")return o=u.raws.before,o.includes(`
|
|
68
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(u=>{if(typeof u.raws.before<"u")return o=u.raws.before,o.includes(`
|
|
69
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(i){let a;return i.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(i){let a;return i.walk(o=>{if(o.nodes&&(o.parent!==i||i.first!==o)&&typeof o.raws.before<"u")return a=o.raws.before,a.includes(`
|
|
70
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between<"u")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a<"u"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let u=o.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof o.raws.before<"u"){let c=o.raws.before.split(`
|
|
71
|
+
`);return a=c[c.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(i,a){let o=i[a],u=i.raws[a];return u&&u.value===o?u.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}};t.exports=n,n.default=n}),Na=$((e,t)=>{"use strict";var r=rl();function s(n,i){new r(i).stringify(n)}t.exports=s,s.default=s}),sl=$((e,t)=>{"use strict";t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")}),Ia=$((e,t)=>{"use strict";var r=tl(),s=rl(),n=Na(),{isClean:i,my:a}=sl();function o(p,l){let h=new p.constructor;for(let d in p){if(!Object.prototype.hasOwnProperty.call(p,d)||d==="proxyCache")continue;let m=p[d],f=typeof m;d==="parent"&&f==="object"?l&&(h[d]=l):d==="source"?h[d]=m:Array.isArray(m)?h[d]=m.map(D=>o(D,h)):(f==="object"&&m!==null&&(m=o(m)),h[d]=m)}return h}function u(p,l){if(l&&typeof l.offset<"u")return l.offset;let h=1,d=1,m=0;for(let f=0;f<p.length;f++){if(d===l.line&&h===l.column){m=f;break}p[f]===`
|
|
72
|
+
`?(h=1,d+=1):h+=1}return m}var c=class{get proxyOf(){return this}constructor(p={}){this.raws={},this[i]=!1,this[a]=!0;for(let l in p)if(l==="nodes"){this.nodes=[];for(let h of p[l])typeof h.clone=="function"?this.append(h.clone()):this.append(h)}else this[l]=p[l]}addToError(p){if(p.postcssNode=this,p.stack&&this.source&&/\n\s{4}at /.test(p.stack)){let l=this.source;p.stack=p.stack.replace(/\n\s{4}at /,`$&${l.input.from}:${l.start.line}:${l.start.column}$&`)}return p}after(p){return this.parent.insertAfter(this,p),this}assign(p={}){for(let l in p)this[l]=p[l];return this}before(p){return this.parent.insertBefore(this,p),this}cleanRaws(p){delete this.raws.before,delete this.raws.after,p||delete this.raws.between}clone(p={}){let l=o(this);for(let h in p)l[h]=p[h];return l}cloneAfter(p={}){let l=this.clone(p);return this.parent.insertAfter(this,l),l}cloneBefore(p={}){let l=this.clone(p);return this.parent.insertBefore(this,l),l}error(p,l={}){if(this.source){let{end:h,start:d}=this.rangeBy(l);return this.source.input.error(p,{column:d.column,line:d.line},{column:h.column,line:h.line},l)}return new r(p)}getProxyProcessor(){return{get(p,l){return l==="proxyOf"?p:l==="root"?()=>p.root().toProxy():p[l]},set(p,l,h){return p[l]===h||(p[l]=h,(l==="prop"||l==="value"||l==="name"||l==="params"||l==="important"||l==="text")&&p.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let p=this;for(;p=p.parent;)p[i]=!1}}next(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p+1]}positionBy(p={}){let l=this.source.start;if(p.index)l=this.positionInside(p.index);else if(p.word){let h="document"in this.source.input?this.source.input.document:this.source.input.css,d=h.slice(u(h,this.source.start),u(h,this.source.end)).indexOf(p.word);d!==-1&&(l=this.positionInside(d))}return l}positionInside(p){let l=this.source.start.column,h=this.source.start.line,d="document"in this.source.input?this.source.input.document:this.source.input.css,m=u(d,this.source.start),f=m+p;for(let D=m;D<f;D++)d[D]===`
|
|
73
|
+
`?(l=1,h+=1):l+=1;return{column:l,line:h,offset:f}}prev(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p-1]}rangeBy(p={}){let l="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:u(l,this.source.start)},d=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:u(l,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(p.word){let m=l.slice(u(l,this.source.start),u(l,this.source.end)).indexOf(p.word);m!==-1&&(h=this.positionInside(m),d=this.positionInside(m+p.word.length))}else p.start?h={column:p.start.column,line:p.start.line,offset:u(l,p.start)}:p.index&&(h=this.positionInside(p.index)),p.end?d={column:p.end.column,line:p.end.line,offset:u(l,p.end)}:typeof p.endIndex=="number"?d=this.positionInside(p.endIndex):p.index&&(d=this.positionInside(p.index+1));return(d.line<h.line||d.line===h.line&&d.column<=h.column)&&(d={column:h.column+1,line:h.line,offset:h.offset+1}),{end:d,start:h}}raw(p,l){return new s().raw(this,p,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...p){if(this.parent){let l=this,h=!1;for(let d of p)d===this?h=!0:h?(this.parent.insertAfter(l,d),l=d):this.parent.insertBefore(l,d);h||this.remove()}return this}root(){let p=this;for(;p.parent&&p.parent.type!=="document";)p=p.parent;return p}toJSON(p,l){let h={},d=l==null;l=l||new Map;let m=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let D=this[f];if(Array.isArray(D))h[f]=D.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,l):g);else if(typeof D=="object"&&D.toJSON)h[f]=D.toJSON(null,l);else if(f==="source"){if(D==null)continue;let g=l.get(D.input);g==null&&(g=m,l.set(D.input,m),m++),h[f]={end:D.end,inputId:g,start:D.start}}else h[f]=D}return d&&(h.inputs=[...l.keys()].map(f=>f.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(p=n){p.stringify&&(p=p.stringify);let l="";return p(this,h=>{l+=h}),l}warn(p,l,h={}){let d={node:this};for(let m in h)d[m]=h[m];return p.warn(l,d)}};t.exports=c,c.default=c}),oi=$((e,t)=>{"use strict";var r=Ia(),s=class extends r{constructor(n){super(n),this.type="comment"}};t.exports=s,s.default=s}),_a=$((e,t)=>{"use strict";var r=Ia(),s=class extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}};t.exports=s,s.default=s}),Ds=$((e,t)=>{"use strict";var r=oi(),s=_a(),n=Ia(),{isClean:i,my:a}=sl(),o,u,c,p;function l(m){return m.map(f=>(f.nodes&&(f.nodes=l(f.nodes)),delete f.source,f))}function h(m){if(m[i]=!1,m.proxyOf.nodes)for(let f of m.proxyOf.nodes)h(f)}var d=class _f extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...f){for(let D of f){let g=this.normalize(D,this.last);for(let y of g)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let D of this.nodes)D.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let D=this.getIterator(),g,y;for(;this.indexes[D]<this.proxyOf.nodes.length&&(g=this.indexes[D],y=f(this.proxyOf.nodes[g],g),y!==!1);)this.indexes[D]+=1;return delete this.indexes[D],y}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,D){return D==="proxyOf"?f:f[D]?D==="each"||typeof D=="string"&&D.startsWith("walk")?(...g)=>f[D](...g.map(y=>typeof y=="function"?(E,A)=>y(E.toProxy(),A):y)):D==="every"||D==="some"?g=>f[D]((y,...E)=>g(y.toProxy(),...E)):D==="root"?()=>f.root().toProxy():D==="nodes"?f.nodes.map(g=>g.toProxy()):D==="first"||D==="last"?f[D].toProxy():f[D]:f[D]},set(f,D,g){return f[D]===g||(f[D]=g,(D==="name"||D==="params"||D==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,D){let g=this.index(f),y=this.normalize(D,this.proxyOf.nodes[g]).reverse();g=this.index(f);for(let A of y)this.proxyOf.nodes.splice(g+1,0,A);let E;for(let A in this.indexes)E=this.indexes[A],g<E&&(this.indexes[A]=E+y.length);return this.markDirty(),this}insertBefore(f,D){let g=this.index(f),y=g===0?"prepend":!1,E=this.normalize(D,this.proxyOf.nodes[g],y).reverse();g=this.index(f);for(let x of E)this.proxyOf.nodes.splice(g,0,x);let A;for(let x in this.indexes)A=this.indexes[x],g<=A&&(this.indexes[x]=A+E.length);return this.markDirty(),this}normalize(f,D){if(typeof f=="string")f=l(u(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let g of f)g.parent&&g.parent.removeChild(g,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new s(f)]}else if(f.selector||f.selectors)f=[new p(f)];else if(f.name)f=[new o(f)];else if(f.text)f=[new r(f)];else throw new Error("Unknown node type in node creation");return f.map(g=>(g[a]||_f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&h(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&D&&typeof D.raws.before<"u"&&(g.raws.before=D.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...f){f=f.reverse();for(let D of f){let g=this.normalize(D,this.first,"prepend").reverse();for(let y of g)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+g.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let D;for(let g in this.indexes)D=this.indexes[g],D>=f&&(this.indexes[g]=D-1);return this.markDirty(),this}replaceValues(f,D,g){return g||(g=D,D={}),this.walkDecls(y=>{D.props&&!D.props.includes(y.prop)||D.fast&&!y.value.includes(D.fast)||(y.value=y.value.replace(f,g))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((D,g)=>{let y;try{y=f(D,g)}catch(E){throw D.addToError(E)}return y!==!1&&D.walk&&(y=D.walk(f)),y})}walkAtRules(f,D){return D?f instanceof RegExp?this.walk((g,y)=>{if(g.type==="atrule"&&f.test(g.name))return D(g,y)}):this.walk((g,y)=>{if(g.type==="atrule"&&g.name===f)return D(g,y)}):(D=f,this.walk((g,y)=>{if(g.type==="atrule")return D(g,y)}))}walkComments(f){return this.walk((D,g)=>{if(D.type==="comment")return f(D,g)})}walkDecls(f,D){return D?f instanceof RegExp?this.walk((g,y)=>{if(g.type==="decl"&&f.test(g.prop))return D(g,y)}):this.walk((g,y)=>{if(g.type==="decl"&&g.prop===f)return D(g,y)}):(D=f,this.walk((g,y)=>{if(g.type==="decl")return D(g,y)}))}walkRules(f,D){return D?f instanceof RegExp?this.walk((g,y)=>{if(g.type==="rule"&&f.test(g.selector))return D(g,y)}):this.walk((g,y)=>{if(g.type==="rule"&&g.selector===f)return D(g,y)}):(D=f,this.walk((g,y)=>{if(g.type==="rule")return D(g,y)}))}};d.registerParse=m=>{u=m},d.registerRule=m=>{p=m},d.registerAtRule=m=>{o=m},d.registerRoot=m=>{c=m},t.exports=d,d.default=d,d.rebuild=m=>{m.type==="atrule"?Object.setPrototypeOf(m,o.prototype):m.type==="rule"?Object.setPrototypeOf(m,p.prototype):m.type==="decl"?Object.setPrototypeOf(m,s.prototype):m.type==="comment"?Object.setPrototypeOf(m,r.prototype):m.type==="root"&&Object.setPrototypeOf(m,c.prototype),m[a]=!0,m.nodes&&m.nodes.forEach(f=>{d.rebuild(f)})}}),yT=$((e,t)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",s=(i,a=21)=>(o=a)=>{let u="",c=o|0;for(;c--;)u+=i[Math.random()*i.length|0];return u},n=(i=21)=>{let a="",o=i|0;for(;o--;)a+=r[Math.random()*64|0];return a};t.exports={nanoid:n,customAlphabet:s}}),DT=$(()=>{}),Lf=$((e,t)=>{t.exports=class{}}),ui=$((e,t)=>{"use strict";var{nanoid:r}=yT(),{isAbsolute:s,resolve:n}={},{SourceMapConsumer:i,SourceMapGenerator:a}=DT(),{fileURLToPath:o,pathToFileURL:u}={},c=tl(),p=Lf(),l=Nf(),h=Symbol("lineToIndexCache"),d=!!(i&&a),m=!!(n&&s);function f(g){if(g[h])return g[h];let y=g.css.split(`
|
|
74
|
+
`),E=new Array(y.length),A=0;for(let x=0,T=y.length;x<T;x++)E[x]=A,A+=y[x].length+1;return g[h]=E,E}var D=class{get from(){return this.file||this.id}constructor(g,y={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,y.document&&(this.document=y.document.toString()),y.from&&(!m||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=n(y.from)),m&&d){let E=new p(this.css,y);if(E.text){this.map=E;let A=E.consumer().file;!this.file&&A&&(this.file=this.mapResolve(A))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(g,y,E,A={}){let x,T,S,v,k;if(y&&typeof y=="object"){let B=y,q=E;if(typeof B.offset=="number"){v=B.offset;let j=this.fromOffset(v);y=j.line,E=j.col}else y=B.line,E=B.column,v=this.fromLineAndColumn(y,E);if(typeof q.offset=="number"){S=q.offset;let j=this.fromOffset(S);T=j.line,x=j.col}else T=q.line,x=q.column,S=this.fromLineAndColumn(q.line,q.column)}else if(E)v=this.fromLineAndColumn(y,E);else{v=y;let B=this.fromOffset(v);y=B.line,E=B.col}let N=this.origin(y,E,T,x);return N?k=new c(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,A.plugin):k=new c(g,T===void 0?y:{column:E,line:y},T===void 0?E:{column:x,line:T},this.css,this.file,A.plugin),k.input={column:E,endColumn:x,endLine:T,endOffset:S,line:y,offset:v,source:this.css},this.file&&(u&&(k.input.url=u(this.file).toString()),k.input.file=this.file),k}fromLineAndColumn(g,y){return f(this)[g-1]+y-1}fromOffset(g){let y=f(this),E=y[y.length-1],A=0;if(g>=E)A=y.length-1;else{let x=y.length-2,T;for(;A<x;)if(T=A+(x-A>>1),g<y[T])x=T-1;else if(g>=y[T+1])A=T+1;else{A=T;break}}return{col:g-y[A]+1,line:A+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:n(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,y,E,A){if(!this.map)return!1;let x=this.map.consumer(),T=x.originalPositionFor({column:y,line:g});if(!T.source)return!1;let S;typeof E=="number"&&(S=x.originalPositionFor({column:A,line:E}));let v;s(T.source)?v=u(T.source):v=new URL(T.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let k={column:T.column,endColumn:S&&S.column,endLine:S&&S.line,line:T.line,url:v.toString()};if(v.protocol==="file:")if(o)k.file=o(v);else throw new Error("file: protocol is not available in this PostCSS build");let N=x.sourceContentFor(T.source);return N&&(k.source=N),k}toJSON(){let g={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(g[y]=this[y]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}};t.exports=D,D.default=D,l&&l.registerInput&&l.registerInput(D)}),nl=$((e,t)=>{"use strict";var r=Ds(),s=class extends r{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}};t.exports=s,s.default=s,r.registerAtRule(s)}),li=$((e,t)=>{"use strict";var r=Ds(),s,n,i=class extends r{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,u){let c=super.normalize(a);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let p of c)p.raws.before=o.raws.before}return c}removeChild(a,o){let u=this.index(a);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new s(new n,this,a).stringify()}};i.registerLazyResult=a=>{s=a},i.registerProcessor=a=>{n=a},t.exports=i,i.default=i,r.registerRoot(i)}),Of=$((e,t)=>{"use strict";var r={comma(s){return r.split(s,[","],!0)},space(s){let n=[" ",`
|
|
75
|
+
`," "];return r.split(s,n)},split(s,n,i){let a=[],o="",u=!1,c=0,p=!1,l="",h=!1;for(let d of s)h?h=!1:d==="\\"?h=!0:p?d===l&&(p=!1):d==='"'||d==="'"?(p=!0,l=d):d==="("?c+=1:d===")"?c>0&&(c-=1):c===0&&n.includes(d)&&(u=!0),u?(o!==""&&a.push(o.trim()),o="",u=!1):o+=d;return(i||o!=="")&&a.push(o.trim()),a}};t.exports=r,r.default=r}),il=$((e,t)=>{"use strict";var r=Ds(),s=Of(),n=class extends r{get selectors(){return s.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}};t.exports=n,n.default=n,r.registerRule(n)}),al=$((e,t)=>{"use strict";var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i;t.exports=function(a,o={}){let u=a.css.valueOf(),c=o.ignoreErrors,p,l,h,d,m,f,D,g,y,E,A=u.length,x=0,T=[],S=[];function v(){return x}function k(j){throw a.error("Unclosed "+j,x)}function N(){return S.length===0&&x>=A}function B(j){if(S.length)return S.pop();if(x>=A)return;let I=j?j.ignoreUnclosed:!1;switch(p=u.charCodeAt(x),p){case 10:case 32:case 9:case 13:case 12:{d=x;do d+=1,p=u.charCodeAt(d);while(p===32||p===10||p===9||p===13||p===12);f=["space",u.slice(x,d)],x=d-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let W=String.fromCharCode(p);f=[W,W,x];break}case 40:{if(E=T.length?T.pop()[1]:"",y=u.charCodeAt(x+1),E==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){d=x;do{if(D=!1,d=u.indexOf(")",d+1),d===-1)if(c||I){d=x;break}else k("bracket");for(g=d;u.charCodeAt(g-1)===92;)g-=1,D=!D}while(D);f=["brackets",u.slice(x,d+1),x,d],x=d}else d=u.indexOf(")",x+1),l=u.slice(x,d+1),d===-1||n.test(l)?f=["(","(",x]:(f=["brackets",l,x,d],x=d);break}case 39:case 34:{m=p===39?"'":'"',d=x;do{if(D=!1,d=u.indexOf(m,d+1),d===-1)if(c||I){d=x+1;break}else k("string");for(g=d;u.charCodeAt(g-1)===92;)g-=1,D=!D}while(D);f=["string",u.slice(x,d+1),x,d],x=d;break}case 64:{r.lastIndex=x+1,r.test(u),r.lastIndex===0?d=u.length-1:d=r.lastIndex-2,f=["at-word",u.slice(x,d+1),x,d],x=d;break}case 92:{for(d=x,h=!0;u.charCodeAt(d+1)===92;)d+=1,h=!h;if(p=u.charCodeAt(d+1),h&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(d+=1,i.test(u.charAt(d)))){for(;i.test(u.charAt(d+1));)d+=1;u.charCodeAt(d+1)===32&&(d+=1)}f=["word",u.slice(x,d+1),x,d],x=d;break}default:{p===47&&u.charCodeAt(x+1)===42?(d=u.indexOf("*/",x+2)+1,d===0&&(c||I?d=u.length:k("comment")),f=["comment",u.slice(x,d+1),x,d],x=d):(s.lastIndex=x+1,s.test(u),s.lastIndex===0?d=u.length-1:d=s.lastIndex-2,f=["word",u.slice(x,d+1),x,d],T.push(f),x=d);break}}return x++,f}function q(j){S.push(j)}return{back:q,endOfFile:N,nextToken:B,position:v}}}),ol=$((e,t)=>{"use strict";var r=nl(),s=oi(),n=_a(),i=li(),a=il(),o=al(),u={empty:!0,space:!0};function c(l){for(let h=l.length-1;h>=0;h--){let d=l[h],m=d[3]||d[2];if(m)return m}}var p=class{constructor(l){this.input=l,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let h=new r;h.name=l[1].slice(1),h.name===""&&this.unnamedAtrule(h,l),this.init(h,l[2]);let d,m,f,D=!1,g=!1,y=[],E=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),d=l[0],d==="("||d==="["?E.push(d==="("?")":"]"):d==="{"&&E.length>0?E.push("}"):d===E[E.length-1]&&E.pop(),E.length===0)if(d===";"){h.source.end=this.getPosition(l[2]),h.source.end.offset++,this.semicolon=!0;break}else if(d==="{"){g=!0;break}else if(d==="}"){if(y.length>0){for(f=y.length-1,m=y[f];m&&m[0]==="space";)m=y[--f];m&&(h.source.end=this.getPosition(m[3]||m[2]),h.source.end.offset++)}this.end(l);break}else y.push(l);else y.push(l);if(this.tokenizer.endOfFile()){D=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(y),y.length?(h.raws.afterName=this.spacesAndCommentsFromStart(y),this.raw(h,"params",y),D&&(l=y[y.length-1],h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(l){let h=this.colon(l);if(h===!1)return;let d=0,m;for(let f=h-1;f>=0&&(m=l[f],!(m[0]!=="space"&&(d+=1,d===2)));f--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}colon(l){let h=0,d,m,f;for(let[D,g]of l.entries()){if(m=g,f=m[0],f==="("&&(h+=1),f===")"&&(h-=1),h===0&&f===":")if(!d)this.doubleColon(m);else{if(d[0]==="word"&&d[1]==="progid")continue;return D}d=m}return!1}comment(l){let h=new s;this.init(h,l[2]),h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++;let d=l[1].slice(2,-2);if(/^\s*$/.test(d))h.text="",h.raws.left=d,h.raws.right="";else{let m=d.match(/^(\s*)([^]*\S)(\s*)$/);h.text=m[2],h.raws.left=m[1],h.raws.right=m[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(l,h){let d=new n;this.init(d,l[0][2]);let m=l[l.length-1];for(m[0]===";"&&(this.semicolon=!0,l.pop()),d.source.end=this.getPosition(m[3]||m[2]||c(l)),d.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),d.raws.before+=l.shift()[1];for(d.source.start=this.getPosition(l[0][2]),d.prop="";l.length;){let y=l[0][0];if(y===":"||y==="space"||y==="comment")break;d.prop+=l.shift()[1]}d.raws.between="";let f;for(;l.length;)if(f=l.shift(),f[0]===":"){d.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),d.raws.between+=f[1];(d.prop[0]==="_"||d.prop[0]==="*")&&(d.raws.before+=d.prop[0],d.prop=d.prop.slice(1));let D=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)D.push(l.shift());this.precheckMissedSemicolon(l);for(let y=l.length-1;y>=0;y--){if(f=l[y],f[1].toLowerCase()==="!important"){d.important=!0;let E=this.stringFrom(l,y);E=this.spacesFromEnd(l)+E,E!==" !important"&&(d.raws.important=E);break}else if(f[1].toLowerCase()==="important"){let E=l.slice(0),A="";for(let x=y;x>0;x--){let T=E[x][0];if(A.trim().startsWith("!")&&T!=="space")break;A=E.pop()[1]+A}A.trim().startsWith("!")&&(d.important=!0,d.raws.important=A,l=E)}if(f[0]!=="space"&&f[0]!=="comment")break}l.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(d.raws.between+=D.map(y=>y[1]).join(""),D=[]),this.raw(d,"value",D.concat(l),h),d.value.includes(":")&&!h&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let h=new a;this.init(h,l[2]),h.selector="",h.raws.between="",this.current=h}end(l){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(l){if(this.spaces+=l[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(l[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(l){let h=this.input.fromOffset(l);return{column:h.col,line:h.line,offset:l}}init(l,h){this.current.push(l),l.source={input:this.input,start:this.getPosition(h)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let h=!1,d=null,m=!1,f=null,D=[],g=l[1].startsWith("--"),y=[],E=l;for(;E;){if(d=E[0],y.push(E),d==="("||d==="[")f||(f=E),D.push(d==="("?")":"]");else if(g&&m&&d==="{")f||(f=E),D.push("}");else if(D.length===0)if(d===";")if(m){this.decl(y,g);return}else break;else if(d==="{"){this.rule(y);return}else if(d==="}"){this.tokenizer.back(y.pop()),h=!0;break}else d===":"&&(m=!0);else d===D[D.length-1]&&(D.pop(),D.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),D.length>0&&this.unclosedBracket(f),h&&m){if(!g)for(;y.length&&(E=y[y.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(y.pop());this.decl(y,g)}else this.unknownWord(y)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,h,d,m){let f,D,g=d.length,y="",E=!0,A,x;for(let T=0;T<g;T+=1)f=d[T],D=f[0],D==="space"&&T===g-1&&!m?E=!1:D==="comment"?(x=d[T-1]?d[T-1][0]:"empty",A=d[T+1]?d[T+1][0]:"empty",!u[x]&&!u[A]?y.slice(-1)===","?E=!1:y+=f[1]:E=!1):y+=f[1];if(!E){let T=d.reduce((S,v)=>S+v[1],"");l.raws[h]={raw:T,value:y}}l[h]=y}rule(l){l.pop();let h=new a;this.init(h,l[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(h,"selector",l),this.current=h}spacesAndCommentsFromEnd(l){let h,d="";for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)d=l.pop()[1]+d;return d}spacesAndCommentsFromStart(l){let h,d="";for(;l.length&&(h=l[0][0],!(h!=="space"&&h!=="comment"));)d+=l.shift()[1];return d}spacesFromEnd(l){let h,d="";for(;l.length&&(h=l[l.length-1][0],h==="space");)d=l.pop()[1]+d;return d}stringFrom(l,h){let d="";for(let m=h;m<l.length;m++)d+=l[m][1];return l.splice(h,l.length-h),d}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word "+l[0][1],{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}};t.exports=p}),La=$((e,t)=>{"use strict";var r=Ds(),s=ui(),n=ol();function i(a,o){let u=new s(a,o),c=new n(u);try{c.parse()}catch(p){throw p}return c.root}t.exports=i,i.default=i,r.registerParse(i)}),gT=$((e,t)=>{var r=al(),s=ui();t.exports={isInlineComment(n){if(n[0]==="word"&&n[1].slice(0,2)==="//"){let i=n,a=[],o,u;for(;n;){if(/\r?\n/.test(n[1])){if(/['"].*\r?\n/.test(n[1])){a.push(n[1].substring(0,n[1].indexOf(`
|
|
76
|
+
`))),u=n[1].substring(n[1].indexOf(`
|
|
77
|
+
`));let p=this.input.css.valueOf().substring(this.tokenizer.position());u+=p,o=n[3]+p.length-u.length}else this.tokenizer.back(n);break}a.push(n[1]),o=n[2],n=this.tokenizer.nextToken({ignoreUnclosed:!0})}let c=["comment",a.join(""),i[2],o];return this.inlineComment(c),u&&(this.input=new s(u),this.tokenizer=r(this.input)),!0}else if(n[1]==="/"){let i=this.tokenizer.nextToken({ignoreUnclosed:!0});if(i[0]==="comment"&&/^\/\*/.test(i[1]))return i[0]="word",i[1]=i[1].slice(1),n[1]="//",this.tokenizer.back(i),t.exports.isInlineComment.bind(this)(n)}return!1}}}),ET=$((e,t)=>{t.exports={interpolation(r){let s=[r,this.tokenizer.nextToken()],n=["word","}"];if(s[0][1].length>1||s[1][0]!=="{")return this.tokenizer.back(s[1]),!1;for(r=this.tokenizer.nextToken();r&&n.includes(r[0]);)s.push(r),r=this.tokenizer.nextToken();let i=s.map(c=>c[1]),[a]=s,o=s.pop(),u=["word",i.join(""),a[2],o[2]];return this.tokenizer.back(r),this.tokenizer.back(u),!0}}}),xT=$((e,t)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,s=/\.[0-9]/,n=i=>{let[,a]=i,[o]=a;return(o==="."||o==="#")&&r.test(a)===!1&&s.test(a)===!1};t.exports={isMixinToken:n}}),AT=$((e,t)=>{var r=al(),s=/^url\((.+)\)/;t.exports=n=>{let{name:i,params:a=""}=n;if(i==="import"&&a.length){n.import=!0;let o=r({css:a});for(n.filename=a.replace(s,"$1");!o.endOfFile();){let[u,c]=o.nextToken();if(u==="word"&&c==="url")return;if(u==="brackets"){n.options=c,n.filename=a.replace(c,"").trim();break}}}}}),CT=$((e,t)=>{var r=/:$/,s=/^:(\s+)?/;t.exports=n=>{let{name:i,params:a=""}=n;if(n.name.slice(-1)===":"){if(r.test(i)){let[o]=i.match(r);n.name=i.replace(o,""),n.raws.afterName=o+(n.raws.afterName||""),n.variable=!0,n.value=n.params}if(s.test(a)){let[o]=a.match(s);n.value=a.replace(o,""),n.raws.afterName=(n.raws.afterName||"")+o,n.variable=!0}}}}),FT=$((e,t)=>{var r=oi(),s=ol(),{isInlineComment:n}=gT(),{interpolation:i}=ET(),{isMixinToken:a}=xT(),o=AT(),u=CT(),c=/(!\s*important)$/i;t.exports=class extends s{constructor(...p){super(...p),this.lastNode=null}atrule(p){i.bind(this)(p)||(super.atrule(p),o(this.lastNode),u(this.lastNode))}decl(...p){super.decl(...p),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(p){p[0][1]=` ${p[0][1]}`;let l=p.findIndex(f=>f[0]==="("),h=p.reverse().find(f=>f[0]===")"),d=p.reverse().indexOf(h),m=p.splice(l,d).map(f=>f[1]).join("");for(let f of p.reverse())this.tokenizer.back(f);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=m}init(p,l,h){super.init(p,l,h),this.lastNode=p}inlineComment(p){let l=new r,h=p[1].slice(2);if(this.init(l,p[2]),l.source.end=this.getPosition(p[3]||p[2]),l.inline=!0,l.raws.begin="//",/^\s*$/.test(h))l.text="",l.raws.left=h,l.raws.right="";else{let d=h.match(/^(\s*)([^]*[^\s])(\s*)$/);[,l.raws.left,l.text,l.raws.right]=d}}mixin(p){let[l]=p,h=l[1].slice(0,1),d=p.findIndex(y=>y[0]==="brackets"),m=p.findIndex(y=>y[0]==="("),f="";if((d<0||d>3)&&m>0){let y=p.reduce((B,q,j)=>q[0]===")"?j:B),E=p.slice(m,y+m).map(B=>B[1]).join(""),[A]=p.slice(m),x=[A[2],A[3]],[T]=p.slice(y,y+1),S=[T[2],T[3]],v=["brackets",E].concat(x,S),k=p.slice(0,m),N=p.slice(y+1);p=k,p.push(v),p=p.concat(N)}let D=[];for(let y of p)if((y[1]==="!"||D.length)&&D.push(y),y[1]==="important")break;if(D.length){let[y]=D,E=p.indexOf(y),A=D[D.length-1],x=[y[2],y[3]],T=[A[4],A[5]],S=["word",D.map(v=>v[1]).join("")].concat(x,T);p.splice(E,D.length,S)}let g=p.findIndex(y=>c.test(y[1]));g>0&&([,f]=p[g],p.splice(g,1));for(let y of p.reverse())this.tokenizer.back(y);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=h,f&&(this.lastNode.important=!0,this.lastNode.raws.important=f)}other(p){n.bind(this)(p)||super.other(p)}rule(p){let l=p[p.length-1],h=p[p.length-2];if(h[0]==="at-word"&&l[0]==="{"&&(this.tokenizer.back(l),i.bind(this)(h))){let d=this.tokenizer.nextToken();p=p.slice(0,p.length-2).concat([d]);for(let m of p.reverse())this.tokenizer.back(m);return}super.rule(p),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(p){let[l]=p;if(p[0][1]==="each"&&p[1][0]==="("){this.each(p);return}if(a(l)){this.mixin(p);return}super.unknownWord(p)}}}),bT=$((e,t)=>{var r=rl();t.exports=class extends r{atrule(s,n){if(!s.mixin&&!s.variable&&!s.function){super.atrule(s,n);return}let i=`${s.function?"":s.raws.identifier||"@"}${s.name}`,a=s.params?this.rawValue(s,"params"):"",o=s.raws.important||"";if(s.variable&&(a=s.value),typeof s.raws.afterName<"u"?i+=s.raws.afterName:a&&(i+=" "),s.nodes)this.block(s,i+a+o);else{let u=(s.raws.between||"")+o+(n?";":"");this.builder(i+a+u,s)}}comment(s){if(s.inline){let n=this.raw(s,"left","commentLeft"),i=this.raw(s,"right","commentRight");this.builder(`//${n}${s.text}${i}`,s)}else super.comment(s)}}}),TT=$((e,t)=>{var r=ui(),s=FT(),n=bT();t.exports={parse(i,a){let o=new r(i,a),u=new s(o);return u.parse(),u.root.walk(c=>{let p=o.css.lastIndexOf(c.source.input.css);if(p===0)return;if(p+c.source.input.css.length!==o.css.length)throw new Error("Invalid state detected in postcss-less");let l=p+c.source.start.offset,h=o.fromOffset(p+c.source.start.offset);if(c.source.start={offset:l,line:h.line,column:h.col},c.source.end){let d=p+c.source.end.offset,m=o.fromOffset(p+c.source.end.offset);c.source.end={offset:d,line:m.line,column:m.col}}}),u.root},stringify(i,a){new n(a).stringify(i)},nodeToString(i){let a="";return t.exports.stringify(i,o=>{a+=o}),a}}}),ul=$((e,t)=>{"use strict";var r=Ds(),s,n,i=class extends r{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new s(new n,this,a).stringify()}};i.registerLazyResult=a=>{s=a},i.registerProcessor=a=>{n=a},t.exports=i,i.default=i}),vT=$((e,t)=>{"use strict";var r=nl(),s=oi(),n=_a(),i=ui(),a=Lf(),o=li(),u=il();function c(p,l){if(Array.isArray(p))return p.map(m=>c(m));let{inputs:h,...d}=p;if(h){l=[];for(let m of h){let f={...m,__proto__:i.prototype};f.map&&(f.map={...f.map,__proto__:a.prototype}),l.push(f)}}if(d.nodes&&(d.nodes=p.nodes.map(m=>c(m,l))),d.source){let{inputId:m,...f}=d.source;d.source=f,m!=null&&(d.source.input=l[m])}if(d.type==="root")return new o(d);if(d.type==="decl")return new n(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new s(d);if(d.type==="atrule")return new r(d);throw new Error("Unknown node type: "+p.type)}t.exports=c,c.default=c}),Mf=$((e,t)=>{t.exports=class{generate(){}}}),jf=$((e,t)=>{"use strict";var r=class{constructor(s,n={}){if(this.type="warning",this.text=s,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};t.exports=r,r.default=r}),ll=$((e,t)=>{"use strict";var r=jf(),s=class{get content(){return this.css}constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new r(n,i);return this.messages.push(a),a}warnings(){return this.messages.filter(n=>n.type==="warning")}};t.exports=s,s.default=s}),Rf=$((e,t)=>{"use strict";var r={};t.exports=function(s){r[s]||(r[s]=!0,typeof console<"u"&&console.warn&&console.warn(s))}}),Uf=$((e,t)=>{"use strict";var r=Ds(),s=ul(),n=Mf(),i=La(),a=ll(),o=li(),u=Na(),{isClean:c,my:p}=sl(),l=Rf(),h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function D(T){return typeof T=="object"&&typeof T.then=="function"}function g(T){let S=!1,v=h[T.type];return T.type==="decl"?S=T.prop.toLowerCase():T.type==="atrule"&&(S=T.name.toLowerCase()),S&&T.append?[v,v+"-"+S,f,v+"Exit",v+"Exit-"+S]:S?[v,v+"-"+S,v+"Exit",v+"Exit-"+S]:T.append?[v,f,v+"Exit"]:[v,v+"Exit"]}function y(T){let S;return T.type==="document"?S=["Document",f,"DocumentExit"]:T.type==="root"?S=["Root",f,"RootExit"]:S=g(T),{eventIndex:0,events:S,iterator:0,node:T,visitorIndex:0,visitors:[]}}function E(T){return T[c]=!1,T.nodes&&T.nodes.forEach(S=>E(S)),T}var A={},x=class qf{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(S,v,k){this.stringified=!1,this.processed=!1;let N;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))N=E(v);else if(v instanceof qf||v instanceof a)N=E(v.root),v.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=v.map);else{let B=i;k.syntax&&(B=k.syntax.parse),k.parser&&(B=k.parser),B.parse&&(B=B.parse);try{N=B(v,k)}catch(q){this.processed=!0,this.error=q}N&&!N[p]&&r.rebuild(N)}this.result=new a(S,N,k),this.helpers={...A,postcss:A,result:this.result},this.plugins=this.processor.plugins.map(B=>typeof B=="object"&&B.prepare?{...B,...B.prepare(this.result)}:B)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(S){return this.async().catch(S)}finally(S){return this.async().then(S,S)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(S,v){let k=this.result.lastPlugin;try{v&&v.addToError(S),this.error=S,S.name==="CssSyntaxError"&&!S.plugin?(S.plugin=k.postcssPlugin,S.setMessage()):k.postcssVersion}catch(N){console&&console.error&&console.error(N)}return S}prepareVisitors(){this.listeners={};let S=(v,k,N)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([v,N])};for(let v of this.plugins)if(typeof v=="object")for(let k in v){if(!d[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[k])if(typeof v[k]=="object")for(let N in v[k])N==="*"?S(v,k,v[k][N]):S(v,k+"-"+N.toLowerCase(),v[k][N]);else typeof v[k]=="function"&&S(v,k,v[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let S=0;S<this.plugins.length;S++){let v=this.plugins[S],k=this.runOnRoot(v);if(D(k))try{await k}catch(N){throw this.handleError(N)}}if(this.prepareVisitors(),this.hasListener){let S=this.result.root;for(;!S[c];){S[c]=!0;let v=[y(S)];for(;v.length>0;){let k=this.visitTick(v);if(D(k))try{await k}catch(N){let B=v[v.length-1].node;throw this.handleError(N,B)}}}if(this.listeners.OnceExit)for(let[v,k]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(S.type==="document"){let N=S.nodes.map(B=>k(B,this.helpers));await Promise.all(N)}else await k(S,this.helpers)}catch(N){throw this.handleError(N)}}}return this.processed=!0,this.stringify()}runOnRoot(S){this.result.lastPlugin=S;try{if(typeof S=="object"&&S.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(k=>S.Once(k,this.helpers));return D(v[0])?Promise.all(v):v}return S.Once(this.result.root,this.helpers)}else if(typeof S=="function")return S(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let S=this.result.opts,v=u;S.syntax&&(v=S.syntax.stringify),S.stringifier&&(v=S.stringifier),v.stringify&&(v=v.stringify);let k=new n(v,this.result.root,this.result.opts).generate();return this.result.css=k[0],this.result.map=k[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let S of this.plugins){let v=this.runOnRoot(S);if(D(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let S=this.result.root;for(;!S[c];)S[c]=!0,this.walkSync(S);if(this.listeners.OnceExit)if(S.type==="document")for(let v of S.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,S)}return this.result}then(S,v){return this.async().then(S,v)}toString(){return this.css}visitSync(S,v){for(let[k,N]of S){this.result.lastPlugin=k;let B;try{B=N(v,this.helpers)}catch(q){throw this.handleError(q,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(D(B))throw this.getAsyncError()}}visitTick(S){let v=S[S.length-1],{node:k,visitors:N}=v;if(k.type!=="root"&&k.type!=="document"&&!k.parent){S.pop();return}if(N.length>0&&v.visitorIndex<N.length){let[q,j]=N[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===N.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=q;try{return j(k.toProxy(),this.helpers)}catch(I){throw this.handleError(I,k)}}if(v.iterator!==0){let q=v.iterator,j;for(;j=k.nodes[k.indexes[q]];)if(k.indexes[q]+=1,!j[c]){j[c]=!0,S.push(y(j));return}v.iterator=0,delete k.indexes[q]}let B=v.events;for(;v.eventIndex<B.length;){let q=B[v.eventIndex];if(v.eventIndex+=1,q===f){k.nodes&&k.nodes.length&&(k[c]=!0,v.iterator=k.getIterator());return}else if(this.listeners[q]){v.visitors=this.listeners[q];return}}S.pop()}walkSync(S){S[c]=!0;let v=g(S);for(let k of v)if(k===f)S.nodes&&S.each(N=>{N[c]||this.walkSync(N)});else{let N=this.listeners[k];if(N&&this.visitSync(N,S.toProxy()))return}}warnings(){return this.sync().warnings()}};x.registerPostcss=T=>{A=T},t.exports=x,x.default=x,o.registerLazyResult(x),s.registerLazyResult(x)}),ST=$((e,t)=>{"use strict";var r=Mf(),s=La(),n=ll(),i=Na(),a=Rf(),o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,c=s;try{u=c(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,c,p){c=c.toString(),this.stringified=!1,this._processor=u,this._css=c,this._opts=p,this._map=void 0;let l,h=i;this.result=new n(this._processor,l,this._opts),this.result.css=c;let d=this;Object.defineProperty(this.result,"root",{get(){return d.root}});let m=new r(h,l,this._opts,c);if(m.isMap()){let[f,D]=m.generate();f&&(this.result.css=f),D&&(this.result.map=D)}else m.clearAnnotation(),this.result.css=m.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,c){return this.async().then(u,c)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o}),wT=$((e,t)=>{"use strict";var r=ul(),s=Uf(),n=ST(),i=li(),a=class{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let c of o)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))u=u.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)u.push(c);else if(typeof c=="function")u.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new n(this,o,u):new s(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}};t.exports=a,a.default=a,i.registerProcessor(a),r.registerProcessor(a)}),pl=$((e,t)=>{"use strict";var r=nl(),s=oi(),n=Ds(),i=tl(),a=_a(),o=ul(),u=vT(),c=ui(),p=Uf(),l=Of(),h=Ia(),d=La(),m=wT(),f=ll(),D=li(),g=il(),y=Na(),E=jf();function A(...x){return x.length===1&&Array.isArray(x[0])&&(x=x[0]),new m(x)}A.plugin=function(x,T){let S=!1;function v(...N){console&&console.warn&&!S&&(S=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
|
|
78
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let B=T(...N);return B.postcssPlugin=x,B.postcssVersion=new m().version,B}let k;return Object.defineProperty(v,"postcss",{get(){return k||(k=v()),k}}),v.process=function(N,B,q){return A([v(q)]).process(N,B)},v},A.stringify=y,A.parse=d,A.fromJSON=u,A.list=l,A.comment=x=>new s(x),A.atRule=x=>new r(x),A.decl=x=>new a(x),A.rule=x=>new g(x),A.root=x=>new D(x),A.document=x=>new o(x),A.CssSyntaxError=i,A.Declaration=a,A.Container=n,A.Processor=m,A.Document=o,A.Comment=s,A.Warning=E,A.AtRule=r,A.Result=f,A.Input=c,A.Rule=g,A.Root=D,A.Node=h,p.registerPostcss(A),t.exports=A,A.default=A}),kT=$((e,t)=>{var{Container:r}=pl(),s=class extends r{constructor(n){super(n),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};t.exports=s}),PT=$((e,t)=>{"use strict";var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,s=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i,a=/[\n\f\r]/g;t.exports=function(o,u={}){let c=o.css.valueOf(),p=u.ignoreErrors,l,h,d,m,f,D,g,y,E,A=c.length,x=0,T=[],S=[],v;function k(){return x}function N(W){throw o.error("Unclosed "+W,x)}function B(){return S.length===0&&x>=A}function q(){let W=1,X=!1,Z=!1;for(;W>0;)h+=1,c.length<=h&&N("interpolation"),l=c.charCodeAt(h),y=c.charCodeAt(h+1),X?!Z&&l===X?(X=!1,Z=!1):l===92?Z=!Z:Z&&(Z=!1):l===39||l===34?X=l:l===125?W-=1:l===35&&y===123&&(W+=1)}function j(W){if(S.length)return S.pop();if(x>=A)return;let X=W?W.ignoreUnclosed:!1;switch(l=c.charCodeAt(x),l){case 10:case 32:case 9:case 13:case 12:{h=x;do h+=1,l=c.charCodeAt(h);while(l===32||l===10||l===9||l===13||l===12);E=["space",c.slice(x,h)],x=h-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Z=String.fromCharCode(l);E=[Z,Z,x];break}case 44:{E=["word",",",x,x+1];break}case 40:{if(g=T.length?T.pop()[1]:"",y=c.charCodeAt(x+1),g==="url"&&y!==39&&y!==34){for(v=1,D=!1,h=x+1;h<=c.length-1;){if(y=c.charCodeAt(h),y===92)D=!D;else if(y===40)v+=1;else if(y===41&&(v-=1,v===0))break;h+=1}m=c.slice(x,h+1),E=["brackets",m,x,h],x=h}else h=c.indexOf(")",x+1),m=c.slice(x,h+1),h===-1||n.test(m)?E=["(","(",x]:(E=["brackets",m,x,h],x=h);break}case 39:case 34:{for(d=l,h=x,D=!1;h<A&&(h++,h===A&&N("string"),l=c.charCodeAt(h),y=c.charCodeAt(h+1),!(!D&&l===d));)l===92?D=!D:D?D=!1:l===35&&y===123&&q();E=["string",c.slice(x,h+1),x,h],x=h;break}case 64:{r.lastIndex=x+1,r.test(c),r.lastIndex===0?h=c.length-1:h=r.lastIndex-2,E=["at-word",c.slice(x,h+1),x,h],x=h;break}case 92:{for(h=x,f=!0;c.charCodeAt(h+1)===92;)h+=1,f=!f;if(l=c.charCodeAt(h+1),f&&l!==47&&l!==32&&l!==10&&l!==9&&l!==13&&l!==12&&(h+=1,i.test(c.charAt(h)))){for(;i.test(c.charAt(h+1));)h+=1;c.charCodeAt(h+1)===32&&(h+=1)}E=["word",c.slice(x,h+1),x,h],x=h;break}default:y=c.charCodeAt(x+1),l===35&&y===123?(h=x,q(),m=c.slice(x,h+1),E=["word",m,x,h],x=h):l===47&&y===42?(h=c.indexOf("*/",x+2)+1,h===0&&(p||X?h=c.length:N("comment")),E=["comment",c.slice(x,h+1),x,h],x=h):l===47&&y===47?(a.lastIndex=x+1,a.test(c),a.lastIndex===0?h=c.length-1:h=a.lastIndex-2,m=c.slice(x,h+1),E=["comment",m,x,h,"inline"],x=h):(s.lastIndex=x+1,s.test(c),s.lastIndex===0?h=c.length-1:h=s.lastIndex-2,E=["word",c.slice(x,h+1),x,h],T.push(E),x=h);break}return x++,E}function I(W){S.push(W)}return{back:I,endOfFile:B,nextToken:j,position:k}}}),BT=$((e,t)=>{var{Comment:r}=pl(),s=ol(),n=kT(),i=PT(),a=class extends s{atrule(o){let u=o[1],c=o;for(;!this.tokenizer.endOfFile();){let p=this.tokenizer.nextToken();if(p[0]==="word"&&p[2]===c[3]+1)u+=p[1],c=p;else{this.tokenizer.back(p);break}}super.atrule(["at-word",u,o[2],c[3]])}comment(o){if(o[4]==="inline"){let u=new r;this.init(u,o[2]),u.raws.inline=!0;let c=this.input.fromOffset(o[3]);u.source.end={column:c.col,line:c.line,offset:o[3]+1};let p=o[1].slice(2);if(/^\s*$/.test(p))u.text="",u.raws.left=p,u.raws.right="";else{let l=p.match(/^(\s*)([^]*\S)(\s*)$/),h=l[2].replace(/(\*\/|\/\*)/g,"*//*");u.text=h,u.raws.left=l[1],u.raws.right=l[3],u.raws.text=l[2]}}else super.comment(o)}createTokenizer(){this.tokenizer=i(this.input)}raw(o,u,c,p){if(super.raw(o,u,c,p),o.raws[u]){let l=o.raws[u].raw;o.raws[u].raw=c.reduce((h,d)=>{if(d[0]==="comment"&&d[4]==="inline"){let m=d[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return h+"/*"+m+"*/"}else return h+d[1]},""),l!==o.raws[u].raw&&(o.raws[u].scss=l)}}rule(o){let u=!1,c=0,p="";for(let l of o)if(u)l[0]!=="comment"&&l[0]!=="{"&&(p+=l[1]);else{if(l[0]==="space"&&l[1].includes(`
|
|
79
|
+
`))break;l[0]==="("?c+=1:l[0]===")"?c-=1:c===0&&l[0]===":"&&(u=!0)}if(!u||p.trim()===""||/^[#:A-Za-z-]/.test(p))super.rule(o);else{o.pop();let l=new n;this.init(l,o[0][2]);let h;for(let m=o.length-1;m>=0;m--)if(o[m][0]!=="space"){h=o[m];break}if(h[3]){let m=this.input.fromOffset(h[3]);l.source.end={column:m.col,line:m.line,offset:h[3]+1}}else{let m=this.input.fromOffset(h[2]);l.source.end={column:m.col,line:m.line,offset:h[2]+1}}for(;o[0][0]!=="word";)l.raws.before+=o.shift()[1];if(o[0][2]){let m=this.input.fromOffset(o[0][2]);l.source.start={column:m.col,line:m.line,offset:o[0][2]}}for(l.prop="";o.length;){let m=o[0][0];if(m===":"||m==="space"||m==="comment")break;l.prop+=o.shift()[1]}l.raws.between="";let d;for(;o.length;)if(d=o.shift(),d[0]===":"){l.raws.between+=d[1];break}else l.raws.between+=d[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1)),l.raws.between+=this.spacesAndCommentsFromStart(o),this.precheckMissedSemicolon(o);for(let m=o.length-1;m>0;m--){if(d=o[m],d[1]==="!important"){l.important=!0;let f=this.stringFrom(o,m);f=this.spacesFromEnd(o)+f,f!==" !important"&&(l.raws.important=f);break}else if(d[1]==="important"){let f=o.slice(0),D="";for(let g=m;g>0;g--){let y=f[g][0];if(D.trim().indexOf("!")===0&&y!=="space")break;D=f.pop()[1]+D}D.trim().indexOf("!")===0&&(l.important=!0,l.raws.important=D,o=f)}if(d[0]!=="space"&&d[0]!=="comment")break}this.raw(l,"value",o),l.value.includes(":")&&this.checkMissedSemicolon(o),this.current=l}}};t.exports=a}),NT=$((e,t)=>{var{Input:r}=pl(),s=BT();t.exports=function(n,i){let a=new r(n,i),o=new s(a);return o.parse(),o.root}}),$f=$(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}e.default=t}),Vf=$(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=$f(),r=s(t);function s(i){return i&&i.__esModule?i:{default:i}}function n(i){var a=this;this.constructor(i),this.nodes=i.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(o){o.parent=a})}n.prototype=Object.create(r.default.prototype),n.constructor=r.default,n.prototype.walk=function(i,a){for(var o=typeof i=="string"||i instanceof RegExp,u=o?a:i,c=typeof i=="string"?new RegExp(i):i,p=0;p<this.nodes.length;p++){var l=this.nodes[p],h=o?c.test(l.type):!0;if(h&&u&&u(l,p,this.nodes)===!1||l.nodes&&l.walk(i,a)===!1)return!1}return!0},n.prototype.each=function(){for(var i=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],a=0;a<this.nodes.length;a++){var o=this.nodes[a];if(i(o,a,this.nodes)===!1)return!1}return!0},e.default=n}),IT=$(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=a,e.parseMediaQuery=o,e.parseMediaList=u;var t=$f(),r=i(t),s=Vf(),n=i(s);function i(c){return c&&c.__esModule?c:{default:c}}function a(c){var p=arguments.length<=1||arguments[1]===void 0?0:arguments[1],l=[{mode:"normal",character:null}],h=[],d=0,m="",f=null,D=null,g=p,y=c;c[0]==="("&&c[c.length-1]===")"&&(y=c.substring(1,c.length-1),g++);for(var E=0;E<y.length;E++){var A=y[E];if((A==="'"||A==='"')&&(l[d].isCalculationEnabled===!0?(l.push({mode:"string",isCalculationEnabled:!1,character:A}),d++):l[d].mode==="string"&&l[d].character===A&&y[E-1]!=="\\"&&(l.pop(),d--)),A==="{"?(l.push({mode:"interpolation",isCalculationEnabled:!0}),d++):A==="}"&&(l.pop(),d--),l[d].mode==="normal"&&A===":"){var x=y.substring(E+1);D={type:"value",before:/^(\s*)/.exec(x)[1],after:/(\s*)$/.exec(x)[1],value:x.trim()},D.sourceIndex=D.before.length+E+1+g,f={type:"colon",sourceIndex:E+g,after:D.before,value:":"};break}m+=A}return m={type:"media-feature",before:/^(\s*)/.exec(m)[1],after:/(\s*)$/.exec(m)[1],value:m.trim()},m.sourceIndex=m.before.length+g,h.push(m),f!==null&&(f.before=m.after,h.push(f)),D!==null&&h.push(D),h}function o(c){var p=arguments.length<=1||arguments[1]===void 0?0:arguments[1],l=[],h=0,d=!1,m=void 0;function f(){return{before:"",after:"",value:""}}m=f();for(var D=0;D<c.length;D++){var g=c[D];d?(m.value+=g,(g==="{"||g==="(")&&h++,(g===")"||g==="}")&&h--):g.search(/\s/)!==-1?m.before+=g:(g==="("&&(m.type="media-feature-expression",h++),m.value=g,m.sourceIndex=p+D,d=!0),d&&h===0&&(g===")"||D===c.length-1||c[D+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(m.value)!==-1&&(m.type="keyword"),m.type==="media-feature-expression"&&(m.nodes=a(m.value,m.sourceIndex)),l.push(Array.isArray(m.nodes)?new n.default(m):new r.default(m)),m=f(),d=!1)}for(var y=0;y<l.length;y++)if(m=l[y],y>0&&(l[y-1].after=m.before),m.type===void 0){if(y>0){if(l[y-1].type==="media-feature-expression"){m.type="keyword";continue}if(l[y-1].value==="not"||l[y-1].value==="only"){m.type="media-type";continue}if(l[y-1].value==="and"){m.type="media-feature-expression";continue}l[y-1].type==="media-type"&&(l[y+1]?m.type=l[y+1].type==="media-feature-expression"?"keyword":"media-feature-expression":m.type="media-feature-expression")}if(y===0){if(!l[y+1]){m.type="media-type";continue}if(l[y+1]&&(l[y+1].type==="media-feature-expression"||l[y+1].type==="keyword")){m.type="media-type";continue}if(l[y+2]){if(l[y+2].type==="media-feature-expression"){m.type="media-type",l[y+1].type="keyword";continue}if(l[y+2].type==="keyword"){m.type="keyword",l[y+1].type="media-type";continue}}if(l[y+3]&&l[y+3].type==="media-feature-expression"){m.type="keyword",l[y+1].type="media-type",l[y+2].type="keyword";continue}}}return l}function u(c){var p=[],l=0,h=0,d=/^(\s*)url\s*\(/.exec(c);if(d!==null){for(var m=d[0].length,f=1;f>0;){var D=c[m];D==="("&&f++,D===")"&&f--,m++}p.unshift(new r.default({type:"url",value:c.substring(0,m).trim(),sourceIndex:d[1].length,before:d[1],after:/^(\s*)/.exec(c.substring(m))[1]})),l=m}for(var g=l;g<c.length;g++){var y=c[g];if(y==="("&&h++,y===")"&&h--,h===0&&y===","){var E=c.substring(l,g),A=/^(\s*)/.exec(E)[1];p.push(new n.default({type:"media-query",value:E.trim(),sourceIndex:l+A.length,nodes:o(E,l),before:A,after:/(\s*)$/.exec(E)[1]})),l=g+1}}var x=c.substring(l),T=/^(\s*)/.exec(x)[1];return p.push(new n.default({type:"media-query",value:x.trim(),sourceIndex:l+T.length,nodes:o(x,l),before:T,after:/(\s*)$/.exec(x)[1]})),p}}),_T=$(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=Vf(),r=n(t),s=IT();function n(a){return a&&a.__esModule?a:{default:a}}function i(a){return new r.default({nodes:(0,s.parseMediaList)(a),type:"media-query-list",value:a.trim()})}}),Wf=$((e,t)=>{t.exports=function(r,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(r)?r.map(function(i){return i}):r;return n(r,1);function n(i,a){return i.reduce(function(o,u){return Array.isArray(u)&&a<s?o.concat(n(u,a+1)):o.concat(u)},[])}}}),Hf=$((e,t)=>{t.exports=function(r,s){for(var n=-1,i=[];(n=r.indexOf(s,n+1))!==-1;)i.push(n);return i}}),zf=$((e,t)=>{"use strict";function r(i,a){for(var o=1,u=i.length,c=i[0],p=i[0],l=1;l<u;++l)if(p=c,c=i[l],a(c,p)){if(l===o){o++;continue}i[o++]=c}return i.length=o,i}function s(i){for(var a=1,o=i.length,u=i[0],c=i[0],p=1;p<o;++p,c=u)if(c=u,u=i[p],u!==c){if(p===a){a++;continue}i[a++]=u}return i.length=a,i}function n(i,a,o){return i.length===0?i:a?(o||i.sort(a),r(i,a)):(o||i.sort(),s(i))}t.exports=n}),Qs=$((e,t)=>{"use strict";e.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function s(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}var n=function a(o,u){if((typeof o>"u"?"undefined":r(o))!=="object")return o;var c=new o.constructor;for(var p in o)if(o.hasOwnProperty(p)){var l=o[p],h=typeof l>"u"?"undefined":r(l);p==="parent"&&h==="object"?u&&(c[p]=u):l instanceof Array?c[p]=l.map(function(d){return a(d,c)}):c[p]=a(l,c)}return c},i=(function(){function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s(this,a);for(var u in o)this[u]=o[u];var c=o.spaces;c=c===void 0?{}:c;var p=c.before,l=p===void 0?"":p,h=c.after,d=h===void 0?"":h;this.spaces={before:l,after:d}}return a.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},a.prototype.replaceWith=function(){if(this.parent){for(var o in arguments)this.parent.insertBefore(this,arguments[o]);this.remove()}return this},a.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},a.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},a.prototype.clone=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=n(this);for(var c in o)u[c]=o[c];return u},a.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},a})();e.default=i,t.exports=e.default}),rt=$(e=>{"use strict";e.__esModule=!0;var t=e.TAG="tag",r=e.STRING="string",s=e.SELECTOR="selector",n=e.ROOT="root",i=e.PSEUDO="pseudo",a=e.NESTING="nesting",o=e.ID="id",u=e.COMMENT="comment",c=e.COMBINATOR="combinator",p=e.CLASS="class",l=e.ATTRIBUTE="attribute",h=e.UNIVERSAL="universal"}),cl=$((e,t)=>{"use strict";e.__esModule=!0;var r=(function(){function d(m,f){for(var D=0;D<f.length;D++){var g=f[D];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,f,D){return f&&d(m.prototype,f),D&&d(m,D),m}})(),s=Qs(),n=u(s),i=rt(),a=o(i);function o(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(m[f]=d[f]);return m.default=d,m}function u(d){return d&&d.__esModule?d:{default:d}}function c(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function p(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function l(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var h=(function(d){l(m,d);function m(f){c(this,m);var D=p(this,d.call(this,f));return D.nodes||(D.nodes=[]),D}return m.prototype.append=function(f){return f.parent=this,this.nodes.push(f),this},m.prototype.prepend=function(f){return f.parent=this,this.nodes.unshift(f),this},m.prototype.at=function(f){return this.nodes[f]},m.prototype.index=function(f){return typeof f=="number"?f:this.nodes.indexOf(f)},m.prototype.removeChild=function(f){f=this.index(f),this.at(f).parent=void 0,this.nodes.splice(f,1);var D=void 0;for(var g in this.indexes)D=this.indexes[g],D>=f&&(this.indexes[g]=D-1);return this},m.prototype.removeAll=function(){for(var g=this.nodes,f=Array.isArray(g),D=0,g=f?g:g[Symbol.iterator]();;){var y;if(f){if(D>=g.length)break;y=g[D++]}else{if(D=g.next(),D.done)break;y=D.value}var E=y;E.parent=void 0}return this.nodes=[],this},m.prototype.empty=function(){return this.removeAll()},m.prototype.insertAfter=function(f,D){var g=this.index(f);this.nodes.splice(g+1,0,D);var y=void 0;for(var E in this.indexes)y=this.indexes[E],g<=y&&(this.indexes[E]=y+this.nodes.length);return this},m.prototype.insertBefore=function(f,D){var g=this.index(f);this.nodes.splice(g,0,D);var y=void 0;for(var E in this.indexes)y=this.indexes[E],g<=y&&(this.indexes[E]=y+this.nodes.length);return this},m.prototype.each=function(f){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var D=this.lastEach;if(this.indexes[D]=0,!!this.length){for(var g=void 0,y=void 0;this.indexes[D]<this.length&&(g=this.indexes[D],y=f(this.at(g),g),y!==!1);)this.indexes[D]+=1;if(delete this.indexes[D],y===!1)return!1}},m.prototype.walk=function(f){return this.each(function(D,g){var y=f(D,g);if(y!==!1&&D.length&&(y=D.walk(f)),y===!1)return!1})},m.prototype.walkAttributes=function(f){var D=this;return this.walk(function(g){if(g.type===a.ATTRIBUTE)return f.call(D,g)})},m.prototype.walkClasses=function(f){var D=this;return this.walk(function(g){if(g.type===a.CLASS)return f.call(D,g)})},m.prototype.walkCombinators=function(f){var D=this;return this.walk(function(g){if(g.type===a.COMBINATOR)return f.call(D,g)})},m.prototype.walkComments=function(f){var D=this;return this.walk(function(g){if(g.type===a.COMMENT)return f.call(D,g)})},m.prototype.walkIds=function(f){var D=this;return this.walk(function(g){if(g.type===a.ID)return f.call(D,g)})},m.prototype.walkNesting=function(f){var D=this;return this.walk(function(g){if(g.type===a.NESTING)return f.call(D,g)})},m.prototype.walkPseudos=function(f){var D=this;return this.walk(function(g){if(g.type===a.PSEUDO)return f.call(D,g)})},m.prototype.walkTags=function(f){var D=this;return this.walk(function(g){if(g.type===a.TAG)return f.call(D,g)})},m.prototype.walkUniversals=function(f){var D=this;return this.walk(function(g){if(g.type===a.UNIVERSAL)return f.call(D,g)})},m.prototype.split=function(f){var D=this,g=[];return this.reduce(function(y,E,A){var x=f.call(D,E);return g.push(E),x?(y.push(g),g=[]):A===D.length-1&&y.push(g),y},[])},m.prototype.map=function(f){return this.nodes.map(f)},m.prototype.reduce=function(f,D){return this.nodes.reduce(f,D)},m.prototype.every=function(f){return this.nodes.every(f)},m.prototype.some=function(f){return this.nodes.some(f)},m.prototype.filter=function(f){return this.nodes.filter(f)},m.prototype.sort=function(f){return this.nodes.sort(f)},m.prototype.toString=function(){return this.map(String).join("")},r(m,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),m})(n.default);e.default=h,t.exports=e.default}),LT=$((e,t)=>{"use strict";e.__esModule=!0;var r=cl(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.ROOT,d}return l.prototype.toString=function(){var h=this.reduce(function(d,m){var f=String(m);return f?d+f+",":""},"").slice(0,-1);return this.trailingComma?h+",":h},l})(s.default);e.default=c,t.exports=e.default}),OT=$((e,t)=>{"use strict";e.__esModule=!0;var r=cl(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.SELECTOR,d}return l})(s.default);e.default=c,t.exports=e.default}),pi=$((e,t)=>{"use strict";e.__esModule=!0;var r=(function(){function p(l,h){for(var d=0;d<h.length;d++){var m=h[d];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}return function(l,h,d){return h&&p(l.prototype,h),d&&p(l,d),l}})(),s=Qs(),n=i(s);function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(){return a(this,l),o(this,p.apply(this,arguments))}return l.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},r(l,[{key:"ns",get:function(){var h=this.namespace;return h?(typeof h=="string"?h:"")+"|":""}}]),l})(n.default);e.default=c,t.exports=e.default}),MT=$((e,t)=>{"use strict";e.__esModule=!0;var r=pi(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.CLASS,d}return l.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},l})(s.default);e.default=c,t.exports=e.default}),jT=$((e,t)=>{"use strict";e.__esModule=!0;var r=Qs(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.COMMENT,d}return l})(s.default);e.default=c,t.exports=e.default}),RT=$((e,t)=>{"use strict";e.__esModule=!0;var r=pi(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.ID,d}return l.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},l})(s.default);e.default=c,t.exports=e.default}),UT=$((e,t)=>{"use strict";e.__esModule=!0;var r=pi(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.TAG,d}return l})(s.default);e.default=c,t.exports=e.default}),qT=$((e,t)=>{"use strict";e.__esModule=!0;var r=Qs(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.STRING,d}return l})(s.default);e.default=c,t.exports=e.default}),$T=$((e,t)=>{"use strict";e.__esModule=!0;var r=cl(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.PSEUDO,d}return l.prototype.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),h,this.spaces.after].join("")},l})(s.default);e.default=c,t.exports=e.default}),VT=$((e,t)=>{"use strict";e.__esModule=!0;var r=pi(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.ATTRIBUTE,d.raws={},d}return l.prototype.toString=function(){var h=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&h.push(this.operator),this.value&&h.push(this.value),this.raws.insensitive?h.push(this.raws.insensitive):this.insensitive&&h.push(" i"),h.push("]"),h.concat(this.spaces.after).join("")},l})(s.default);e.default=c,t.exports=e.default}),WT=$((e,t)=>{"use strict";e.__esModule=!0;var r=pi(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.UNIVERSAL,d.value="*",d}return l})(s.default);e.default=c,t.exports=e.default}),HT=$((e,t)=>{"use strict";e.__esModule=!0;var r=Qs(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.COMBINATOR,d}return l})(s.default);e.default=c,t.exports=e.default}),zT=$((e,t)=>{"use strict";e.__esModule=!0;var r=Qs(),s=i(r),n=rt();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function o(p,l){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:p}function u(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}var c=(function(p){u(l,p);function l(h){a(this,l);var d=o(this,p.call(this,h));return d.type=n.NESTING,d.value="&",d}return l})(s.default);e.default=c,t.exports=e.default}),JT=$((e,t)=>{"use strict";e.__esModule=!0,e.default=r;function r(s){return s.sort(function(n,i){return n-i})}t.exports=e.default}),XT=$((e,t)=>{"use strict";e.__esModule=!0,e.default=B;var r=39,s=34,n=92,i=47,a=10,o=32,u=12,c=9,p=13,l=43,h=62,d=126,m=124,f=44,D=40,g=41,y=91,E=93,A=59,x=42,T=58,S=38,v=64,k=/[ \n\t\r\{\(\)'"\\;/]/g,N=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function B(q){for(var j=[],I=q.css.valueOf(),W=void 0,X=void 0,Z=void 0,Se=void 0,ue=void 0,we=void 0,De=void 0,br=void 0,vt=void 0,be=void 0,Tr=void 0,An=I.length,J=-1,_=1,O=0,ie=function(he,ge){if(q.safe)I+=ge,X=I.length-1;else throw q.error("Unclosed "+he,_,O-J,O)};O<An;){switch(W=I.charCodeAt(O),W===a&&(J=O,_+=1),W){case a:case o:case c:case p:case u:X=O;do X+=1,W=I.charCodeAt(X),W===a&&(J=X,_+=1);while(W===o||W===a||W===c||W===p||W===u);j.push(["space",I.slice(O,X),_,O-J,O]),O=X-1;break;case l:case h:case d:case m:X=O;do X+=1,W=I.charCodeAt(X);while(W===l||W===h||W===d||W===m);j.push(["combinator",I.slice(O,X),_,O-J,O]),O=X-1;break;case x:j.push(["*","*",_,O-J,O]);break;case S:j.push(["&","&",_,O-J,O]);break;case f:j.push([",",",",_,O-J,O]);break;case y:j.push(["[","[",_,O-J,O]);break;case E:j.push(["]","]",_,O-J,O]);break;case T:j.push([":",":",_,O-J,O]);break;case A:j.push([";",";",_,O-J,O]);break;case D:j.push(["(","(",_,O-J,O]);break;case g:j.push([")",")",_,O-J,O]);break;case r:case s:Z=W===r?"'":'"',X=O;do for(be=!1,X=I.indexOf(Z,X+1),X===-1&&ie("quote",Z),Tr=X;I.charCodeAt(Tr-1)===n;)Tr-=1,be=!be;while(be);j.push(["string",I.slice(O,X+1),_,O-J,_,X-J,O]),O=X;break;case v:k.lastIndex=O+1,k.test(I),k.lastIndex===0?X=I.length-1:X=k.lastIndex-2,j.push(["at-word",I.slice(O,X+1),_,O-J,_,X-J,O]),O=X;break;case n:for(X=O,De=!0;I.charCodeAt(X+1)===n;)X+=1,De=!De;W=I.charCodeAt(X+1),De&&W!==i&&W!==o&&W!==a&&W!==c&&W!==p&&W!==u&&(X+=1),j.push(["word",I.slice(O,X+1),_,O-J,_,X-J,O]),O=X;break;default:W===i&&I.charCodeAt(O+1)===x?(X=I.indexOf("*/",O+2)+1,X===0&&ie("comment","*/"),we=I.slice(O,X+1),Se=we.split(`
|
|
80
|
+
`),ue=Se.length-1,ue>0?(br=_+ue,vt=X-Se[ue].length):(br=_,vt=J),j.push(["comment",we,_,O-J,br,X-vt,O]),J=vt,_=br,O=X):(N.lastIndex=O+1,N.test(I),N.lastIndex===0?X=I.length-1:X=N.lastIndex-2,j.push(["word",I.slice(O,X+1),_,O-J,_,X-J,O]),O=X);break}O++}return j}t.exports=e.default}),KT=$((e,t)=>{"use strict";e.__esModule=!0;var r=(function(){function J(_,O){for(var ie=0;ie<O.length;ie++){var he=O[ie];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(_,he.key,he)}}return function(_,O,ie){return O&&J(_.prototype,O),ie&&J(_,ie),_}})(),s=Wf(),n=be(s),i=Hf(),a=be(i),o=zf(),u=be(o),c=LT(),p=be(c),l=OT(),h=be(l),d=MT(),m=be(d),f=jT(),D=be(f),g=RT(),y=be(g),E=UT(),A=be(E),x=qT(),T=be(x),S=$T(),v=be(S),k=VT(),N=be(k),B=WT(),q=be(B),j=HT(),I=be(j),W=zT(),X=be(W),Z=JT(),Se=be(Z),ue=XT(),we=be(ue),De=rt(),br=vt(De);function vt(J){if(J&&J.__esModule)return J;var _={};if(J!=null)for(var O in J)Object.prototype.hasOwnProperty.call(J,O)&&(_[O]=J[O]);return _.default=J,_}function be(J){return J&&J.__esModule?J:{default:J}}function Tr(J,_){if(!(J instanceof _))throw new TypeError("Cannot call a class as a function")}var An=(function(){function J(_){Tr(this,J),this.input=_,this.lossy=_.options.lossless===!1,this.position=0,this.root=new p.default;var O=new h.default;return this.root.append(O),this.current=O,this.lossy?this.tokens=(0,we.default)({safe:_.safe,css:_.css.trim()}):this.tokens=(0,we.default)(_),this.loop()}return J.prototype.attribute=function(){var _="",O=void 0,ie=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)_+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~_.indexOf("]")&&this.error("Expected a closing square bracket.");var he=_.split(/((?:[*~^$|]?=))([^]*)/),ge=he[0].split(/(\|)/g),Lt={operator:he[1],value:he[2],source:{start:{line:ie[2],column:ie[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:ie[4]};if(ge.length>1?(ge[0]===""&&(ge[0]=!0),Lt.attribute=this.parseValue(ge[2]),Lt.namespace=this.parseNamespace(ge[0])):Lt.attribute=this.parseValue(he[0]),O=new N.default(Lt),he[2]){var vr=he[2].split(/(\s+i\s*?)$/),Sr=vr[0].trim();O.value=this.lossy?Sr:vr[0],vr[1]&&(O.insensitive=!0,this.lossy||(O.raws.insensitive=vr[1])),O.quoted=Sr[0]==="'"||Sr[0]==='"',O.raws.unquoted=O.quoted?Sr.slice(1,-1):Sr}this.newNode(O),this.position++},J.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var _=new I.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(_.spaces.before=this.parseSpace(this.currToken[1]),_.source.start.line=this.nextToken[2],_.source.start.column=this.nextToken[3],_.source.end.column=this.nextToken[3],_.source.end.line=this.nextToken[2],_.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?_.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?_.value=this.currToken[1]:this.currToken[0]==="space"&&(_.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(_)},J.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var _=new h.default;this.current.parent.append(_),this.current=_,this.position++},J.prototype.comment=function(){var _=new D.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(_),this.position++},J.prototype.error=function(_){throw new this.input.error(_)},J.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},J.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},J.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},J.prototype.namespace=function(){var _=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(_);if(this.nextToken[0]==="*")return this.position++,this.universal(_)},J.prototype.nesting=function(){this.newNode(new X.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},J.prototype.parentheses=function(){var _=this.current.last;if(_&&_.type===br.PSEUDO){var O=new h.default,ie=this.current;_.append(O),this.current=O;var he=1;for(this.position++;this.position<this.tokens.length&&he;)this.currToken[0]==="("&&he++,this.currToken[0]===")"&&he--,he?this.parse():(O.parent.source.end.line=this.currToken[2],O.parent.source.end.column=this.currToken[3],this.position++);he&&this.error("Expected closing parenthesis."),this.current=ie}else{var ge=1;for(this.position++,_.value+="(";this.position<this.tokens.length&≥)this.currToken[0]==="("&&ge++,this.currToken[0]===")"&&ge--,_.value+=this.parseParenthesisToken(this.currToken),this.position++;ge&&this.error("Expected closing parenthesis.")}},J.prototype.pseudo=function(){for(var _=this,O="",ie=this.currToken;this.currToken&&this.currToken[0]===":";)O+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var he=void 0;this.splitWord(!1,function(ge,Lt){O+=ge,he=new v.default({value:O,source:{start:{line:ie[2],column:ie[3]},end:{line:_.currToken[4],column:_.currToken[5]}},sourceIndex:ie[4]}),_.newNode(he),Lt>1&&_.nextToken&&_.nextToken[0]==="("&&_.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},J.prototype.space=function(){var _=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(_[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(_[1]),this.position++):this.combinator()},J.prototype.string=function(){var _=this.currToken;this.newNode(new T.default({value:this.currToken[1],source:{start:{line:_[2],column:_[3]},end:{line:_[4],column:_[5]}},sourceIndex:_[6]})),this.position++},J.prototype.universal=function(_){var O=this.nextToken;if(O&&O[1]==="|")return this.position++,this.namespace();this.newNode(new q.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),_),this.position++},J.prototype.splitWord=function(_,O){for(var ie=this,he=this.nextToken,ge=this.currToken[1];he&&he[0]==="word";){this.position++;var Lt=this.currToken[1];if(ge+=Lt,Lt.lastIndexOf("\\")===Lt.length-1){var vr=this.nextToken;vr&&vr[0]==="space"&&(ge+=this.parseSpace(vr[1]," "),this.position++)}he=this.nextToken}var Sr=(0,a.default)(ge,"."),Ui=(0,a.default)(ge,"#"),pc=(0,a.default)(ge,"#{");pc.length&&(Ui=Ui.filter(function(wr){return!~pc.indexOf(wr)}));var Ns=(0,Se.default)((0,u.default)((0,n.default)([[0],Sr,Ui])));Ns.forEach(function(wr,Cn){var qi=Ns[Cn+1]||ge.length,$i=ge.slice(wr,qi);if(Cn===0&&O)return O.call(ie,$i,Ns.length);var Vi=void 0;~Sr.indexOf(wr)?Vi=new m.default({value:$i.slice(1),source:{start:{line:ie.currToken[2],column:ie.currToken[3]+wr},end:{line:ie.currToken[4],column:ie.currToken[3]+(qi-1)}},sourceIndex:ie.currToken[6]+Ns[Cn]}):~Ui.indexOf(wr)?Vi=new y.default({value:$i.slice(1),source:{start:{line:ie.currToken[2],column:ie.currToken[3]+wr},end:{line:ie.currToken[4],column:ie.currToken[3]+(qi-1)}},sourceIndex:ie.currToken[6]+Ns[Cn]}):Vi=new A.default({value:$i,source:{start:{line:ie.currToken[2],column:ie.currToken[3]+wr},end:{line:ie.currToken[4],column:ie.currToken[3]+(qi-1)}},sourceIndex:ie.currToken[6]+Ns[Cn]}),ie.newNode(Vi,_)}),this.position++},J.prototype.word=function(_){var O=this.nextToken;return O&&O[1]==="|"?(this.position++,this.namespace()):this.splitWord(_)},J.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},J.prototype.parse=function(_){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":_&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},J.prototype.parseNamespace=function(_){if(this.lossy&&typeof _=="string"){var O=_.trim();return O.length?O:!0}return _},J.prototype.parseSpace=function(_,O){return this.lossy?O||"":_},J.prototype.parseValue=function(_){return this.lossy&&_&&typeof _=="string"?_.trim():_},J.prototype.parseParenthesisToken=function(_){return this.lossy?_[0]==="space"?this.parseSpace(_[1]," "):this.parseValue(_[1]):_[1]},J.prototype.newNode=function(_,O){return O&&(_.namespace=this.parseNamespace(O)),this.spaces&&(_.spaces.before=this.spaces,this.spaces=""),this.current.append(_)},r(J,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),J})();e.default=An,t.exports=e.default}),GT=$((e,t)=>{"use strict";e.__esModule=!0;var r=(function(){function u(c,p){for(var l=0;l<p.length;l++){var h=p[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,p,l){return p&&u(c.prototype,p),l&&u(c,l),c}})(),s=KT(),n=i(s);function i(u){return u&&u.__esModule?u:{default:u}}function a(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}var o=(function(){function u(c){return a(this,u),this.func=c||function(){},this}return u.prototype.process=function(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=new n.default({css:c,error:function(h){throw new Error(h)},options:p});return this.res=l,this.func(l),this},r(u,[{key:"result",get:function(){return String(this.res)}}]),u})();e.default=o,t.exports=e.default}),Ht=$((e,t)=>{"use strict";var r=function(s,n){let i=new s.constructor;for(let a in s){if(!s.hasOwnProperty(a))continue;let o=s[a],u=typeof o;a==="parent"&&u==="object"?n&&(i[a]=n):a==="source"?i[a]=o:o instanceof Array?i[a]=o.map(c=>r(c,i)):a!=="before"&&a!=="after"&&a!=="between"&&a!=="semicolon"&&(u==="object"&&o!==null&&(o=r(o)),i[a]=o)}return i};t.exports=class{constructor(s){s=s||{},this.raws={before:"",after:""};for(let n in s)this[n]=s[n]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(s){s=s||{};let n=r(this);for(let i in s)n[i]=s[i];return n}cloneBefore(s){s=s||{};let n=this.clone(s);return this.parent.insertBefore(this,n),n}cloneAfter(s){s=s||{};let n=this.clone(s);return this.parent.insertAfter(this,n),n}replaceWith(){let s=Array.prototype.slice.call(arguments);if(this.parent){for(let n of s)this.parent.insertBefore(this,n);this.remove()}return this}moveTo(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.append(this),this}moveBefore(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertBefore(s,this),this}moveAfter(s){return this.cleanRaws(this.root()===s.root()),this.remove(),s.parent.insertAfter(s,this),this}next(){let s=this.parent.index(this);return this.parent.nodes[s+1]}prev(){let s=this.parent.index(this);return this.parent.nodes[s-1]}toJSON(){let s={};for(let n in this){if(!this.hasOwnProperty(n)||n==="parent")continue;let i=this[n];i instanceof Array?s[n]=i.map(a=>typeof a=="object"&&a.toJSON?a.toJSON():a):typeof i=="object"&&i.toJSON?s[n]=i.toJSON():s[n]=i}return s}root(){let s=this;for(;s.parent;)s=s.parent;return s}cleanRaws(s){delete this.raws.before,delete this.raws.after,s||delete this.raws.between}positionInside(s){let n=this.toString(),i=this.source.start.column,a=this.source.start.line;for(let o=0;o<s;o++)n[o]===`
|
|
81
|
+
`?(i=1,a+=1):i+=1;return{line:a,column:i}}positionBy(s){let n=this.source.start;if(Object(s).index)n=this.positionInside(s.index);else if(Object(s).word){let i=this.toString().indexOf(s.word);i!==-1&&(n=this.positionInside(i))}return n}}}),pt=$((e,t)=>{"use strict";var r=Ht(),s=class extends r{constructor(n){super(n),this.nodes||(this.nodes=[])}push(n){return n.parent=this,this.nodes.push(n),this}each(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach,a,o;if(this.indexes[i]=0,!!this.nodes){for(;this.indexes[i]<this.nodes.length&&(a=this.indexes[i],o=n(this.nodes[a],a),o!==!1);)this.indexes[i]+=1;return delete this.indexes[i],o}}walk(n){return this.each((i,a)=>{let o=n(i,a);return o!==!1&&i.walk&&(o=i.walk(n)),o})}walkType(n,i){if(!n||!i)throw new Error("Parameters {type} and {callback} are required.");let a=typeof n=="function";return this.walk((o,u)=>{if(a&&o instanceof n||!a&&o.type===n)return i.call(this,o,u)})}append(n){return n.parent=this,this.nodes.push(n),this}prepend(n){return n.parent=this,this.nodes.unshift(n),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let i of this.nodes)i.cleanRaws(n)}insertAfter(n,i){let a=this.index(n),o;this.nodes.splice(a+1,0,i);for(let u in this.indexes)o=this.indexes[u],a<=o&&(this.indexes[u]=o+this.nodes.length);return this}insertBefore(n,i){let a=this.index(n),o;this.nodes.splice(a,0,i);for(let u in this.indexes)o=this.indexes[u],a<=o&&(this.indexes[u]=o+this.nodes.length);return this}removeChild(n){n=this.index(n),this.nodes[n].parent=void 0,this.nodes.splice(n,1);let i;for(let a in this.indexes)i=this.indexes[a],i>=n&&(this.indexes[a]=i-1);return this}removeAll(){for(let n of this.nodes)n.parent=void 0;return this.nodes=[],this}every(n){return this.nodes.every(n)}some(n){return this.nodes.some(n)}index(n){return typeof n=="number"?n:this.nodes.indexOf(n)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let n=this.nodes.map(String).join("");return this.value&&(n=this.value+n),this.raws.before&&(n=this.raws.before+n),this.raws.after&&(n+=this.raws.after),n}};s.registerWalker=n=>{let i="walk"+n.name;i.lastIndexOf("s")!==i.length-1&&(i+="s"),!s.prototype[i]&&(s.prototype[i]=function(a){return this.walkType(n,a)})},t.exports=s}),YT=$((e,t)=>{"use strict";var r=pt();t.exports=class extends r{constructor(s){super(s),this.type="root"}}}),QT=$((e,t)=>{"use strict";var r=pt();t.exports=class extends r{constructor(s){super(s),this.type="value",this.unbalanced=0}}}),ZT=$((e,t)=>{"use strict";var r=pt(),s=class extends r{constructor(n){super(n),this.type="atword"}toString(){let n=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(s),t.exports=s}),ev=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="colon"}};r.registerWalker(n),t.exports=n}),tv=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="comma"}};r.registerWalker(n),t.exports=n}),rv=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="comment",this.inline=Object(i).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(n),t.exports=n}),sv=$((e,t)=>{"use strict";var r=pt(),s=class extends r{constructor(n){super(n),this.type="func",this.unbalanced=-1}};r.registerWalker(s),t.exports=s}),nv=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="number",this.unit=Object(i).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(n),t.exports=n}),iv=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="operator"}};r.registerWalker(n),t.exports=n}),av=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="paren",this.parenType=""}};r.registerWalker(n),t.exports=n}),ov=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="string"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,i,this.value+"",i,this.raws.after].join("")}};r.registerWalker(n),t.exports=n}),uv=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="word"}};r.registerWalker(n),t.exports=n}),lv=$((e,t)=>{"use strict";var r=pt(),s=Ht(),n=class extends s{constructor(i){super(i),this.type="unicode-range"}};r.registerWalker(n),t.exports=n}),pv=$((e,t)=>{"use strict";var r=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};t.exports=r}),cv=$((e,t)=>{"use strict";var r=/[ \n\t\r\{\(\)'"\\;,/]/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,i=/^[a-z0-9]/i,a=/^[a-f0-9?\-]/i,o=pv();t.exports=function(u,c){c=c||{};let p=[],l=u.valueOf(),h=l.length,d=-1,m=1,f=0,D=0,g=null,y,E,A,x,T,S,v,k,N,B,q,j;function I(X){let Z=`Unclosed ${X} at line: ${m}, column: ${f-d}, token: ${f}`;throw new o(Z)}function W(){let X=`Syntax error at line: ${m}, column: ${f-d}, token: ${f}`;throw new o(X)}for(;f<h;){switch(y=l.charCodeAt(f),y===10&&(d=f,m+=1),y){case 10:case 32:case 9:case 13:case 12:E=f;do E+=1,y=l.charCodeAt(E),y===10&&(d=E,m+=1);while(y===32||y===10||y===9||y===13||y===12);p.push(["space",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;break;case 58:E=f+1,p.push(["colon",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;break;case 44:E=f+1,p.push(["comma",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;break;case 123:p.push(["{","{",m,f-d,m,E-d,f]);break;case 125:p.push(["}","}",m,f-d,m,E-d,f]);break;case 40:D++,g=!g&&D===1&&p.length>0&&p[p.length-1][0]==="word"&&p[p.length-1][1]==="url",p.push(["(","(",m,f-d,m,E-d,f]);break;case 41:D--,g=g&&D>0,p.push([")",")",m,f-d,m,E-d,f]);break;case 39:case 34:A=y===39?"'":'"',E=f;do for(B=!1,E=l.indexOf(A,E+1),E===-1&&I("quote",A),q=E;l.charCodeAt(q-1)===92;)q-=1,B=!B;while(B);p.push(["string",l.slice(f,E+1),m,f-d,m,E-d,f]),f=E;break;case 64:r.lastIndex=f+1,r.test(l),r.lastIndex===0?E=l.length-1:E=r.lastIndex-2,p.push(["atword",l.slice(f,E+1),m,f-d,m,E-d,f]),f=E;break;case 92:E=f,y=l.charCodeAt(E+1),v&&y!==47&&y!==32&&y!==10&&y!==9&&y!==13&&y!==12&&(E+=1),p.push(["word",l.slice(f,E+1),m,f-d,m,E-d,f]),f=E;break;case 43:case 45:case 42:E=f+1,j=l.slice(f+1,E+1);let X=l.slice(f-1,f);if(y===45&&j.charCodeAt(0)===45){E++,p.push(["word",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;break}p.push(["operator",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;break;default:if(y===47&&(l.charCodeAt(f+1)===42||c.loose&&!g&&l.charCodeAt(f+1)===47)){if(l.charCodeAt(f+1)===42)E=l.indexOf("*/",f+2)+1,E===0&&I("comment","*/");else{let Z=l.indexOf(`
|
|
82
|
+
`,f+2);E=Z!==-1?Z-1:h}S=l.slice(f,E+1),x=S.split(`
|
|
83
|
+
`),T=x.length-1,T>0?(k=m+T,N=E-x[T].length):(k=m,N=d),p.push(["comment",S,m,f-d,k,E-N,f]),d=N,m=k,f=E}else if(y===35&&!i.test(l.slice(f+1,f+2)))E=f+1,p.push(["#",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;else if((y===117||y===85)&&l.charCodeAt(f+1)===43){E=f+2;do E+=1,y=l.charCodeAt(E);while(E<h&&a.test(l.slice(E,E+1)));p.push(["unicoderange",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1}else if(y===47)E=f+1,p.push(["operator",l.slice(f,E),m,f-d,m,E-d,f]),f=E-1;else{let Z=s;if(y>=48&&y<=57&&(Z=n),Z.lastIndex=f+1,Z.test(l),Z.lastIndex===0?E=l.length-1:E=Z.lastIndex-2,Z===n||y===46){let Se=l.charCodeAt(E),ue=l.charCodeAt(E+1),we=l.charCodeAt(E+2);(Se===101||Se===69)&&(ue===45||ue===43)&&we>=48&&we<=57&&(n.lastIndex=E+2,n.test(l),n.lastIndex===0?E=l.length-1:E=n.lastIndex-2)}p.push(["word",l.slice(f,E+1),m,f-d,m,E-d,f]),f=E}break}f++}return p}}),hv=$((e,t)=>{"use strict";var r=class extends Error{constructor(s){super(s),this.name=this.constructor.name,this.message=s||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(s).stack}};t.exports=r}),dv=$((e,t)=>{"use strict";var r=YT(),s=QT(),n=ZT(),i=ev(),a=tv(),o=rv(),u=sv(),c=nv(),p=iv(),l=av(),h=ov(),d=uv(),m=lv(),f=cv(),D=Wf(),g=Hf(),y=zf(),E=hv();function A(x){return x.sort((T,S)=>T-S)}t.exports=class{constructor(x,T){let S={loose:!1};this.cache=[],this.input=x,this.options=Object.assign({},S,T),this.position=0,this.unbalanced=0,this.root=new r;let v=new s;this.root.append(v),this.current=v,this.tokens=f(x,this.options)}parse(){return this.loop()}colon(){let x=this.currToken;this.newNode(new i({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++}comma(){let x=this.currToken;this.newNode(new a({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++}comment(){let x=!1,T=this.currToken[1].replace(/\/\*|\*\//g,""),S;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),x=!0),S=new o({value:T,inline:x,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(S),this.position++}error(x,T){throw new E(x+` at line: ${T[2]}, column ${T[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let x=this.currToken[1],T;if(x==="+"||x==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return T=new p({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(T)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let x=1,T=this.position+1,S=this.currToken,v;for(;T<this.tokens.length&&x;){let k=this.tokens[T];k[0]==="("&&x++,k[0]===")"&&x--,T++}if(x&&this.error("Expected closing parenthesis",S),v=this.current.last,v&&v.type==="func"&&v.unbalanced<0&&(v.unbalanced=0,this.current=v),this.current.unbalanced++,this.newNode(new l({value:S[1],source:{start:{line:S[2],column:S[3]},end:{line:S[4],column:S[5]}},sourceIndex:S[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let k=this.nextToken,N=this.currToken[1],B={line:this.currToken[2],column:this.currToken[3]};for(;k&&k[0]!==")"&&this.current.unbalanced;)this.position++,N+=this.currToken[1],k=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new d({value:N,source:{start:B,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let x=this.currToken;this.newNode(new l({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",x),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let x=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=x[1],this.position++):(this.spaces=x[1],this.position++)}unicodeRange(){let x=this.currToken;this.newNode(new m({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++}splitWord(){let x=this.nextToken,T=this.currToken[1],S=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,v=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,k,N;if(!v.test(T))for(;x&&x[0]==="word";){this.position++;let B=this.currToken[1];T+=B,x=this.nextToken}k=g(T,"@"),N=A(y(D([[0],k]))),N.forEach((B,q)=>{let j=N[q+1]||T.length,I=T.slice(B,j),W;if(~k.indexOf(B))W=new n({value:I.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+B},end:{line:this.currToken[4],column:this.currToken[3]+(j-1)}},sourceIndex:this.currToken[6]+N[q]});else if(S.test(this.currToken[1])){let X=I.replace(S,"");W=new c({value:I.replace(X,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+B},end:{line:this.currToken[4],column:this.currToken[3]+(j-1)}},sourceIndex:this.currToken[6]+N[q],unit:X})}else W=new(x&&x[0]==="("?u:d)({value:I,source:{start:{line:this.currToken[2],column:this.currToken[3]+B},end:{line:this.currToken[4],column:this.currToken[3]+(j-1)}},sourceIndex:this.currToken[6]+N[q]}),W.type==="word"?(W.isHex=/^#(.+)/.test(I),W.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(I)):this.cache.push(this.current);this.newNode(W)}),this.position++}string(){let x=this.currToken,T=this.currToken[1],S=/^(\"|\')/,v=S.test(T),k="",N;v&&(k=T.match(S)[0],T=T.slice(1,T.length-1)),N=new h({value:T,source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6],quoted:v}),N.raws.quote=k,this.newNode(N),this.position++}word(){return this.splitWord()}newNode(x){return this.spaces&&(x.raws.before+=this.spaces,this.spaces=""),this.current.append(x)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),Jf={};Bf(Jf,{languages:()=>Sm,options:()=>wm,parsers:()=>xl,printers:()=>Om});var Xf=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n),fv=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},mv=Xf("replaceAll",function(){if(typeof this=="string")return fv}),Pe=mv;function yv(e){return this[e<0?this.length+e:e]}var Dv=Xf("at",function(){if(Array.isArray(this)||typeof this=="string")return yv}),ms=Dv,gv=()=>{},ci=gv,Kf="string",Gf="array",Yf="cursor",Oa="indent",hl="align",Qf="trim",Ma="group",ja="fill",Ra="if-break",Zf="indent-if-break",dl="line-suffix",em="line-suffix-boundary",Zs="line",tm="label",fl="break-parent",rm=new Set([Yf,Oa,hl,Qf,Ma,ja,Ra,Zf,dl,em,Zs,tm,fl]);function Ev(e){if(typeof e=="string")return Kf;if(Array.isArray(e))return Gf;if(!e)return;let{type:t}=e;if(rm.has(t))return t}var si=Ev,xv=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Av(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
84
|
+
Expected it to be 'string' or 'object'.`;if(si(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=xv([...rm].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
|
|
85
|
+
Expected it to be ${s}.`}var Cv=class extends Error{constructor(t){super(Av(t));U(this,"name","InvalidDocError");this.doc=t}},Fv=Cv;function bv(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(si(i)){case Gf:return t(i.map(s));case ja:return t({...i,parts:i.parts.map(s)});case Ra:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Ma:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case hl:case Oa:case Zf:case tm:case dl:return t({...i,contents:s(i.contents)});case Kf:case Yf:case Qf:case em:case Zs:case fl:return t(i);default:throw new Fv(i)}}}function Tv(e){return e.type===Zs&&!e.hard?e.soft?"":" ":e.type===Ra?e.flatContents:e}function vv(e){return bv(e,Tv)}var ys=ci,ml=ci,Sv=ci,wv=ci;function lt(e){return ys(e),{type:Oa,contents:e}}function kv(e,t){return wv(e),ys(t),{type:hl,contents:t,n:e}}function ai(e){return kv(-1,e)}var yl={type:fl};function Pa(e){return Sv(e),{type:ja,parts:e}}function At(e,t={}){return ys(e),ml(t.expandedStates,!0),{type:Ma,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function sm(e,t="",r={}){return ys(e),t!==""&&ys(t),{type:Ra,breakContents:e,flatContents:t,groupId:r.groupId}}function jr(e,t){ys(e),ml(t);let r=[];for(let s=0;s<t.length;s++)s!==0&&r.push(e),r.push(t[s]);return r}var We={type:Zs},xt={type:Zs,soft:!0},Pv={type:Zs,hard:!0},_e=[Pv,yl];function Bv(e){return ys(e),{type:dl,contents:e}}function Nv(e){return Array.isArray(e)&&e.length>0}var Ua=Nv,nm=Object.freeze({character:"'",codePoint:39}),im=Object.freeze({character:'"',codePoint:34}),Iv=Object.freeze({preferred:nm,alternate:im}),_v=Object.freeze({preferred:im,alternate:nm});function Lv(e,t){let{preferred:r,alternate:s}=t===!0||t==="'"?Iv:_v,{length:n}=e,i=0,a=0;for(let o=0;o<n;o++){let u=e.charCodeAt(o);u===r.codePoint?i++:u===s.codePoint&&a++}return(i>a?s:r).character}var Ov=Lv,Mv=/\\(["'\\])|(["'])/gu;function jv(e,t){let r=t==='"'?"'":'"',s=Pe(0,e,Mv,(n,i,a)=>i?i===r?r:n:a===t?"\\"+a:a);return t+s+t}var Rv=jv;function Uv(e,t){ci(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),s=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Ov(r,t.singleQuote);return e.charAt(0)===s?e:Rv(r,s)}var am=Uv,qv=class extends Error{constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`);U(this,"name","UnexpectedNodeError");this.node=t}},$v=qv,om=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Vv(e){return!!e?.[om]}var Xu=Vv,Qn=3;function Wv(e){let t=e.slice(0,Qn);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
|
|
86
|
+
`,Qn);if(r===-1)return;let s=e.slice(Qn,r).trim(),n=e.indexOf(`
|
|
87
|
+
${t}`,r),i=s;if(i||(i=t==="+++"?"toml":"yaml"),n===-1&&t==="---"&&i==="yaml"&&(n=e.indexOf(`
|
|
88
|
+
...`,r)),n===-1)return;let a=n+1+Qn,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let u=e.slice(0,a),c;return{language:i,explicitLanguage:s||null,value:e.slice(r+1,n),startDelimiter:t,endDelimiter:u.slice(-Qn),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return c??(c=u.split(`
|
|
89
|
+
`)),c.length},get column(){return c??(c=u.split(`
|
|
90
|
+
`)),ms(0,c,-1).length}},[om]:!0}}function Hv(e){let t=Wv(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return Pe(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var qa=Hv,zv=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function um(e,t,r){if(e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===e||Xu(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||r.type==="css-root"&&ms(0,r.nodes,-1)===e))return null;if(e.type==="value-root"&&delete t.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete t.value,e.type==="css-rule"&&delete t.params,(e.type==="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.value&&(t.value=Jv(e.value)),e.type==="selector-combinator"&&(t.value=Pe(0,t.value,/\s+/gu," ")),e.type==="media-feature"&&(t.value=Pe(0,t.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(t.name=e.name.toLowerCase()),e.type==="value-number"&&(t.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(t.value=Pe(0,t.value,/;$/gu,"")),e.type==="selector-attribute"&&(t.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(t.namespace=e.namespace.trim()||!0),e.value)){let{value:s}=t;/\s[a-zA-Z]$/u.test(s)&&(t.__prettier_attribute_selector_flag=ms(0,s,-1),s=s.slice(0,-1)),s=s.trim(),s=s.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),t.value=s,delete t.quoted}if((e.type==="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.value&&(t.value=Pe(0,t.value,/([\d+.e-]+)([a-z]*)/giu,(s,n,i)=>{let a=Number(n);return Number.isNaN(a)?s:a+i.toLowerCase()})),e.type==="selector-tag"){let s=t.value.toLowerCase();["from","to"].includes(s)&&(t.value=s)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value,e.type==="value-comma_group"){let s=e.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");s!==-1&&(t.groups[s].unit="",t.groups.splice(s+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(s=>s.type==="value-atword"&&(s.value.endsWith("[")||s.value.endsWith("]"))||s.type==="value-word"&&(s.value.startsWith("]")||s.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(s=>s.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}um.ignoredProperties=zv;function Jv(e){return Pe(0,Pe(0,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var Xv=um;function lm(){}lm.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Kv=lm,Zn=null;function ni(e){if(Zn!==null&&typeof Zn.property){let t=Zn;return Zn=ni.prototype=null,t}return Zn=ni.prototype=e??Object.create(null),new ni}var Gv=10;for(let e=0;e<=Gv;e++)ni();function Yv(e){return ni(e)}function Qv(e,t="type"){Yv(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Zv=Qv,pe=[[],["nodes"],["group"]],eS={"css-root":["frontMatter","nodes"],"css-comment":pe[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":pe[1],"media-query":pe[1],"media-type":pe[0],"media-feature-expression":pe[1],"media-feature":pe[0],"media-colon":pe[0],"media-value":pe[0],"media-keyword":pe[0],"media-url":pe[0],"media-unknown":pe[0],"selector-root":pe[1],"selector-selector":pe[1],"selector-comment":pe[0],"selector-string":pe[0],"selector-tag":pe[0],"selector-id":pe[0],"selector-class":pe[0],"selector-attribute":pe[0],"selector-combinator":pe[1],"selector-universal":pe[0],"selector-pseudo":pe[1],"selector-nesting":pe[0],"selector-unknown":pe[0],"value-value":pe[2],"value-root":pe[2],"value-comment":pe[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":pe[2],"value-paren":pe[0],"value-number":pe[0],"value-operator":pe[0],"value-word":pe[0],"value-colon":pe[0],"value-comma":pe[0],"value-string":pe[0],"value-atword":pe[0],"value-unicode-range":pe[0],"value-unknown":pe[0]},tS=Zv(eS),rS=tS;function sS(e,t){let r=0;for(let s=0;s<e.line-1;++s)r=t.indexOf(`
|
|
91
|
+
`,r)+1;return r+e.column}var pm=sS;function $a(e){return(t,r,s)=>{let n=!!s?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let o=t.charAt(a);if(e instanceof RegExp){if(!e.test(o))return a}else if(!e.includes(o))return a;n?a--:a++}return a===-1||a===i?a:!1}}var u7=$a(/\s/u),cm=$a(" "),nS=$a(",; "),hm=$a(/[^\n\r]/u);function dm(e,t){let{value:r}=e;return r==="-"||r==="--"||r.charAt(0)!=="-"?t:t-(r.charAt(1)==="-"?2:1)}function fm(e,t){if(typeof e.source?.start?.offset=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?dm(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return pm(e.source.start,t);throw Object.assign(new Error("Can not locate node."),{node:e})}function Dl(e,t){if(e.type==="css-comment"&&e.inline)return hm(t,e.source.startOffset);if(typeof e.source?.end?.offset=="number")return e.source.end.offset;if(e.source){if(e.source.end){let r=pm(e.source.end,t);return e.type==="value-word"?dm(e,r):r}if(Ua(e.nodes))return Dl(ms(0,e.nodes,-1),t)}return null}function mm(e,t){e.source&&(e.source.startOffset=fm(e,t),e.source.endOffset=Dl(e,t));for(let r in e){let s=e[r];r==="source"||!s||typeof s!="object"||(s.type==="value-root"||s.type==="value-unknown"?ym(s,iS(e),s.text||s.value):mm(s,t))}}function ym(e,t,r){e.source&&(e.source.startOffset=fm(e,r)+t,e.source.endOffset=Dl(e,r)+t);for(let s in e){let n=e[s];s==="source"||!n||typeof n!="object"||ym(n,t,r)}}function iS(e){let t=e.source.startOffset;return typeof e.prop=="string"&&(t+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!=="css-atrule"&&typeof e.raws?.between=="string"&&(t+=e.raws.between.length),t}function aS(e){let t="initial",r="initial",s,n=!1,i=[];for(let a=0;a<e.length;a++){let o=e[a];switch(t){case"initial":if(o==="'"){t="single-quotes";continue}if(o==='"'){t="double-quotes";continue}if((o==="u"||o==="U")&&e.slice(a,a+4).toLowerCase()==="url("){t="url",a+=3;continue}if(o==="*"&&e[a-1]==="/"){t="comment-block";continue}if(o==="/"&&e[a-1]==="/"){t="comment-inline",s=a-1;continue}continue;case"single-quotes":if(o==="'"&&e[a-1]!=="\\"&&(t=r,r="initial"),o===`
|
|
92
|
+
`||o==="\r")return e;continue;case"double-quotes":if(o==='"'&&e[a-1]!=="\\"&&(t=r,r="initial"),o===`
|
|
93
|
+
`||o==="\r")return e;continue;case"url":if(o===")"&&(t="initial"),o===`
|
|
94
|
+
`||o==="\r")return e;if(o==="'"){t="single-quotes",r="url";continue}if(o==='"'){t="double-quotes",r="url";continue}continue;case"comment-block":o==="/"&&e[a-1]==="*"&&(t="initial");continue;case"comment-inline":(o==='"'||o==="'"||o==="*")&&(n=!0),(o===`
|
|
95
|
+
`||o==="\r")&&(n&&i.push([s,a]),t="initial",n=!1);continue}}for(let[a,o]of i)e=e.slice(0,a)+Pe(0,e.slice(a,o),/["'*]/gu," ")+e.slice(o);return e}var et=e=>e.source?.startOffset,tt=e=>e.source?.endOffset,oS=/\*\/$/,uS=/^\/\*\*?/,Dm=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,lS=/(^|\s+)\/\/([^\n\r]*)/g,Ff=/^(\r?\n)+/,pS=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,bf=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,cS=/(\r?\n|^) *\* ?/g,gm=[];function hS(e){let t=e.match(Dm);return t?t[0].trimStart():""}function dS(e){let t=e.match(Dm)?.[0];return t==null?e:e.slice(t.length)}function fS(e){e=Pe(0,e.replace(uS,"").replace(oS,""),cS,"$1");let t="";for(;t!==e;)t=e,e=Pe(0,e,pS,`
|
|
96
|
+
$1 $2
|
|
97
|
+
`);e=e.replace(Ff,"").trimEnd();let r=Object.create(null),s=Pe(0,e,bf,"").replace(Ff,"").trimEnd(),n;for(;n=bf.exec(e);){let i=Pe(0,n[2],lS,"");if(typeof r[n[1]]=="string"||Array.isArray(r[n[1]])){let a=r[n[1]];r[n[1]]=[...gm,...Array.isArray(a)?a:[a],i]}else r[n[1]]=i}return{comments:s,pragmas:r}}function mS({comments:e="",pragmas:t={}}){let r=Object.keys(t),s=r.flatMap(i=>Tf(i,t[i])).map(i=>` * ${i}
|
|
98
|
+
`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${Tf(r[0],i)[0]} */`}}let n=e.split(`
|
|
99
|
+
`).map(i=>` * ${i}`).join(`
|
|
100
|
+
`)+`
|
|
101
|
+
`;return`/**
|
|
102
|
+
`+(e?n:"")+(e&&r.length>0?` *
|
|
103
|
+
`:"")+s+" */"}function Tf(e,t){return[...gm,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var yS=["noformat","noprettier"],DS=["format","prettier"],gS="format";function ES(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
104
|
+
`);return t===-1?e:e.slice(0,t)}var xS=ES;function gl(e){let t=xS(e);t&&(e=e.slice(t.length+1));let r=hS(e),{pragmas:s,comments:n}=fS(r);return{shebang:t,text:e,pragmas:s,comments:n}}function AS(e){let{pragmas:t}=gl(e);return DS.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function CS(e){let{pragmas:t}=gl(e);return yS.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function FS(e){let{shebang:t,text:r,pragmas:s,comments:n}=gl(e),i=dS(r),a=mS({pragmas:{[gS]:"",...s},comments:n.trimStart()});return(t?`${t}
|
|
105
|
+
`:"")+a+(i.startsWith(`
|
|
106
|
+
`)?`
|
|
107
|
+
`:`
|
|
108
|
+
|
|
109
|
+
`)+i}var bS=e=>AS(qa(e).content),TS=e=>CS(qa(e).content),vS=e=>{let{frontMatter:t,content:r}=qa(e);return(t?t.raw+`
|
|
110
|
+
|
|
111
|
+
`:"")+FS(r)},SS=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 wS(e){return e.findAncestor(t=>t.type==="css-decl")?.prop?.toLowerCase()}var kS=new Set(["initial","inherit","unset","revert"]);function PS(e){return kS.has(e.toLowerCase())}function BS(e,t){return e.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function ei(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ba(e,t){return e.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===t}function NS(e){return e.hasAncestor(t=>{if(t.type!=="css-rule")return!1;let r=t.raws?.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))})}function ii(e,t){let r=Array.isArray(t)?t:[t],s=e.findAncestor(n=>n.type==="css-atrule");return s&&r.includes(s.name.toLowerCase())}function IS(e){let{node:t}=e;return t.groups[0]?.value==="url"&&t.groups.length===2&&e.findAncestor(r=>r.type==="css-atrule")?.name==="import"}function _S(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function LS(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function OS(e){let{selector:t}=e;return t?typeof t=="string"&&/^@.+:.*$/u.test(t)||t.value&&/^@.+:.*$/u.test(t.value):!1}function MS(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function jS(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function RS(e){return e.type==="value-word"&&e.value==="in"}function Ku(e){return e.type==="value-operator"&&e.value==="*"}function Ks(e){return e?.type==="value-operator"&&e.value==="/"}function Mr(e){return e.type==="value-operator"&&e.value==="+"}function Gs(e){return e.type==="value-operator"&&e.value==="-"}function US(e){return e.type==="value-operator"&&e.value==="%"}function Vu(e){return Ku(e)||Ks(e)||Mr(e)||Gs(e)||US(e)}function qS(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function $S(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function Gu(e,t){return t.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function vf(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function Wu(e){return e.name.startsWith("prettier-placeholder")}function VS(e){return e.prop.startsWith("@prettier-placeholder")}function WS(e,t){return e.value==="$$"&&e.type==="value-func"&&t?.type==="value-word"&&!t.raws.before}function HS(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function zS(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Or(e){return e?.raws?.before===""}function El(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function Hu(e){return e.type==="value-paren_group"&&e.groups?.[0]&&El(e.groups[0])}function Em(e,t){if(t.parser!=="scss")return!1;let{node:r}=e;if(r.groups.length===0)return!1;let s=e.grandparent;return!Hu(r)&&!(s&&Hu(s))?!1:!!(e.findAncestor(n=>n.type==="css-decl")?.prop?.startsWith("$")||Hu(s)||s.type==="value-func")}function va(e){return e.type==="value-comment"&&e.inline}function zu(e){return e.type==="value-word"&&e.value==="#"}function Sf(e){return e.type==="value-word"&&e.value==="{"}function Ju(e){return e.type==="value-word"&&e.value==="}"}function Sa(e){return["value-word","value-atword"].includes(e.type)}function Yu(e){return e?.type==="value-colon"}function JS(e,t){if(!El(t))return!1;let{groups:r}=t,s=r.indexOf(e);return s===-1?!1:Yu(r[s+1])}function XS(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function KS(e){return e.type!=="value-func"?!1:SS.has(e.value.toLowerCase())}function ti(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function wa(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function GS(e,t){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(r=>r.type!=="value-comma_group"))return!1;if(t.type==="value-comma_group"){let r=t.groups.indexOf(e)-1,s=t.groups[r];if(s?.type==="value-word"&&s.value==="with")return!0}return!1}function ka(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function YS(e,t,r){let{node:s}=e,n=e.parent,i=e.grandparent,a=wS(e),o=a&&n.type==="value-value"&&(a==="grid"||a.startsWith("grid-template")),u=e.findAncestor(D=>D.type==="css-atrule"),c=u&&Gu(u,t),p=s.groups.some(D=>va(D)),l=e.map(r,"groups"),h=[""],d=Ba(e,"url"),m=!1,f=!1;for(let D=0;D<s.groups.length;++D){let g=s.groups[D-1],y=s.groups[D],E=s.groups[D+1],A=s.groups[D+2];if(va(y)&&!E){h.push([h.pop(),Bv([" ",l[D]])]);continue}if(h.push([h.pop(),l[D]]),d){(E&&Mr(E)||Mr(y))&&h.push([h.pop()," "]);continue}if(ii(e,"forward")&&y.type==="value-word"&&y.value&&g!==void 0&&g.type==="value-word"&&g.value==="as"&&E.type==="value-operator"&&E.value==="*"||ii(e,"utility")&&y.type==="value-word"&&E&&E.type==="value-operator"&&E.value==="*"||!E||y.type==="value-word"&&wa(E)&&tt(y)===et(E))continue;if(y.type==="value-string"&&y.quoted){let N=y.value.lastIndexOf("#{"),B=y.value.lastIndexOf("}");N!==-1&&B!==-1?m=N>B:N!==-1?m=!0:B!==-1&&(m=!1)}if(m||Yu(y)||Yu(E)||y.type==="value-atword"&&(y.value===""||y.value.endsWith("["))||E.type==="value-word"&&E.value.startsWith("]")||y.value==="~"||t.parser==="less"&&(E?.type==="value-word"&&E.value==="["||y.type==="value-word"&&y.value==="["&&(E?.type==="value-atword"||E?.type==="value-word")||y.type==="value-word"&&y.value==="]["&&E?.type==="value-word")||y.type!=="value-string"&&y.value&&y.value.includes("\\")&&E&&E.type!=="value-comment"||g?.value&&g.value.indexOf("\\")===g.value.length-1&&y.type==="value-operator"&&y.value==="/"||y.value==="\\"||WS(y,E)||zu(y)||Sf(y)||Ju(E)||Sf(E)&&Or(E)||Ju(y)&&Or(E)||y.value==="--"&&zu(E))continue;let x=Vu(y),T=Vu(E);if((x&&zu(E)||T&&Ju(y))&&Or(E)||!g&&Ks(y)||Ba(e,"calc")&&(Mr(y)||Mr(E)||Gs(y)||Gs(E))&&Or(E))continue;let S=(Mr(y)||Gs(y))&&D===0&&(E.type==="value-number"||E.isHex)&&i&&KS(i)&&!Or(E);if(t.parser==="scss"&&x&&y.value==="-"&&E.type==="value-func"&&tt(y)!==et(E)){h.push([h.pop()," "]);continue}let v=A?.type==="value-func"||A&&Sa(A)||y.type==="value-func"||Sa(y),k=E.type==="value-func"||Sa(E)||g?.type==="value-func"||g&&Sa(g);if(!(!(Ku(E)||Ku(y))&&!Ba(e,"calc")&&!S&&(Ks(E)&&!v||Ks(y)&&!k||Mr(E)&&!v||Mr(y)&&!k||Gs(E)||Gs(y))&&(Or(E)||x&&(!g||g&&Vu(g))))&&!((t.parser==="scss"||t.parser==="less")&&x&&y.value==="-"&&ka(E)&&tt(y)===et(E.open)&&E.open.value==="(")){if(va(y)){if(n.type==="value-paren_group"){h.push(ai(_e),"");continue}h.push(_e,"");continue}if(c&&(qS(E)||$S(E)||jS(E)||RS(y)||MS(y))){h.push([h.pop()," "]);continue}if(u&&u.name.toLowerCase()==="namespace"){h.push([h.pop()," "]);continue}if(o){y.source&&E.source&&y.source.start.line!==E.source.start.line?(h.push(_e,""),f=!0):h.push([h.pop()," "]);continue}if(!(a&&(a==="font"||a.startsWith("--"))&&(Ks(E)&&Or(E)&&wf(y)||Ks(y)&&Or(y)&&wf(g)))){if(T){h.push([h.pop()," "]);continue}if(E?.value!=="..."&&!(wa(y)&&wa(E)&&tt(y)===et(E))){if(wa(y)&&ka(E)&&tt(y)===et(E.open)){h.push(xt,"");continue}if(y.value==="with"&&ka(E)){h=[[Pa(h)," "]];continue}if(!(y.value?.endsWith("#")&&E.value==="{"&&ka(E.group))&&!(va(E)&&!A)){if(!u&&y.type==="value-comment"&&!y.inline&&s.groups.slice(0,D).every(N=>N.type==="value-comment")){h.push(ai(We),"");continue}h.push(We,"")}}}}}return p&&h.push([h.pop(),yl]),f&&h.unshift("",_e),c?At(lt(h)):IS(e)?At(Pa(h)):At(lt(Pa(h)))}function wf(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let t=e.value.toLowerCase();return t==="var"||t==="calc"||t==="min"||t==="max"||t==="clamp"||t.startsWith("--")}var QS=YS;function ZS(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ew=ZS,Qu=new Map([["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"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function xm(e){let t=e.toLowerCase();return Qu.has(t)?Qu.get(t):e}var Am=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,tw=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,rw=/[a-z]+/giu,sw=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,nw=new RegExp(Am.source+`|(${sw.source})?(${tw.source})(${rw.source})?`,"giu");function Wt(e,t){return Pe(0,e,Am,r=>am(r,t))}function iw(e,t){let r=t.singleQuote?"'":'"',s="",n=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return n&&({value:e,flag:s}=n.groups),(e.includes('"')||e.includes("'")?e:r+e+r)+(s?` ${s}`:"")}function Xs(e){return Pe(0,e,nw,(t,r,s,n,i)=>!s&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Qu.has(i))?Cm(n)+(i?xm(i):""):t)}function Cm(e){return ew(e).replace(/\.0(?=$|e)/u,"")}function aw(e){return e.trailingComma==="es5"||e.trailingComma==="all"}var kf=e=>e===`
|
|
112
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function ow(e,t,r){let s=!!r?.backwards;if(t===!1)return!1;let n=e.charAt(t);if(s){if(e.charAt(t-1)==="\r"&&n===`
|
|
113
|
+
`)return t-2;if(kf(n))return t-1}else{if(n==="\r"&&e.charAt(t+1)===`
|
|
114
|
+
`)return t+2;if(kf(n))return t+1}return t}var Fm=ow;function uw(e,t,r={}){let s=cm(e,r.backwards?t-1:t,r),n=Fm(e,s,r);return s!==n}var bm=uw;function lw(e,t){if(t===!1)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}var pw=lw;function cw(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?hm(e,t):t}var hw=cw;function dw(e,t){let r=null,s=t;for(;s!==r;)r=s,s=nS(e,s),s=pw(e,s),s=cm(e,s);return s=hw(e,s),s=Fm(e,s),s!==!1&&bm(e,s)}var Tm=dw;function fw({node:e,parent:t},r){return!!(e.source&&r.originalText.slice(et(e),et(t.close)).trimEnd().endsWith(","))}function mw(e,t){return LS(e.grandparent)&&fw(e,t)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(r=>r.type==="value-comment"))&&aw(t)&&e.callParent(()=>Em(e,t))?sm(","):""}function yw(e,t,r){let{node:s,parent:n}=e,i=e.map(({node:d})=>typeof d=="string"?d:r(),"groups");if(n&&_S(n)&&(s.groups.length===1||s.groups.length>0&&s.groups[0].type==="value-comma_group"&&s.groups[0].groups.length>0&&s.groups[0].groups[0].type==="value-word"&&s.groups[0].groups[0].value.startsWith("data:")))return[s.open?r("open"):"",jr(",",i),s.close?r("close"):""];if(!s.open){let d=vm(e);ml(i);let m=gw(jr(",",i),2),f=jr(d?_e:We,m);return lt(d?[_e,f]:At([Dw(e)?xt:"",Pa(f)]))}let a=e.map(({node:d,isLast:m,index:f})=>{let D=i[f];El(d)&&d.type==="value-comma_group"&&d.groups&&d.groups[0].type!=="value-paren_group"&&d.groups[2]?.type==="value-paren_group"&&si(D)===Ma&&si(D.contents)===Oa&&si(D.contents.contents)===ja&&(D=At(ai(D)));let g=[D,m?mw(e,t):","];if(!m&&d.type==="value-comma_group"&&Ua(d.groups)){let y=ms(0,d.groups,-1);!y.source&&y.close&&(y=y.close),y.source&&Tm(t.originalText,tt(y))&&g.push(_e)}return g},"groups"),o=JS(s,n),u=GS(s,n),c=Em(e,t),p=u||c&&!o,l=u||o,h=At([s.open?r("open"):"",lt([xt,jr(We,a)]),xt,s.close?r("close"):""],{shouldBreak:p});return l?ai(h):h}function vm(e){return e.match(t=>t.type==="value-paren_group"&&!t.open&&t.groups.some(r=>r.type==="value-comma_group"),(t,r)=>r==="group"&&t.type==="value-value",(t,r)=>r==="group"&&t.type==="value-root",(t,r)=>r==="value"&&(t.type==="css-decl"&&!t.prop.startsWith("--")||t.type==="css-atrule"&&t.variable))}function Dw(e){return e.match(t=>t.type==="value-paren_group"&&!t.open,(t,r)=>r==="group"&&t.type==="value-value",(t,r)=>r==="group"&&t.type==="value-root",(t,r)=>r==="value"&&t.type==="css-decl")}function gw(e,t){let r=[];for(let s=0;s<e.length;s+=t)r.push(e.slice(s,s+t));return r}function Ew(e,t,r){let s=[];return e.each(()=>{let{node:n,previous:i}=e;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?s.push(t.originalText.slice(et(n),tt(n))):s.push(r()),e.isLast)return;let{next:a}=e;a.type==="css-comment"&&!bm(t.originalText,et(a),{backwards:!0})&&!Xu(n)||a.type==="css-atrule"&&a.name==="else"&&n.type!=="css-comment"?s.push(" "):(s.push(t.__isHTMLStyleAttribute?We:_e),Tm(t.originalText,tt(n))&&!Xu(n)&&s.push(_e))},"nodes"),s}var ri=Ew;function xw(e,t,r){let{node:s}=e;switch(s.type){case"css-root":{let n=ri(e,t,r),i=s.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[s.frontMatter?[r("frontMatter"),_e,s.nodes.length>0?_e:""]:"",n,i?` ${i}`:"",s.nodes.length>0?_e:""]}case"css-comment":{let n=s.inline||s.raws.inline,i=t.originalText.slice(et(s),tt(s));return n?i.trimEnd():i}case"css-rule":return[r("selector"),s.important?" !important":"",s.nodes?[s.selector?.type==="selector-unknown"&&ti(s.selector.value)?We:s.selector?" ":"","{",s.nodes.length>0?lt([_e,ri(e,t,r)]):"",_e,"}",OS(s)?";":""]:";"];case"css-decl":{let n=e.parent,{between:i}=s.raws,a=i.trim(),o=a===":",u=typeof s.value=="string"&&/^ *$/u.test(s.value),c=typeof s.value=="string"?s.value:r("value");return c=HS(s)?vv(c):c,!o&&ti(a)&&!e.call(()=>vm(e),"value","group","group")&&(c=lt([_e,ai(c)])),[Pe(0,s.raws.before,/[\s;]/gu,""),n.type==="css-atrule"&&n.variable||NS(e)?s.prop:ei(s.prop),a.startsWith("//")?" ":"",a,s.extend||u?"":" ",t.parser==="less"&&s.extend&&s.selector?["extend(",r("selector"),")"]:"",c,s.raws.important?s.raws.important.replace(/\s*!\s*important/iu," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/iu," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/iu," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",lt([xt,ri(e,t,r)]),xt,"}"]:VS(s)&&!n.raws.semicolon&&t.originalText[tt(s)-1]!==";"?"":t.__isHTMLStyleAttribute&&e.isLast?sm(";"):";"]}case"css-atrule":{let n=e.parent,i=Wu(s)&&!n.raws.semicolon&&t.originalText[tt(s)-1]!==";";if(t.parser==="less"){if(s.mixin)return[r("selector"),s.important?" !important":"",i?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:r("params"),i?"":";"];if(s.variable)return["@",s.name,": ",s.value?r("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",lt([s.nodes.length>0?xt:"",ri(e,t,r)]),xt,"}"]:"",i?"":";"]}let a=s.name==="import"&&s.params?.type==="value-unknown"&&s.params.value.endsWith(";");return["@",vf(s)||s.name.endsWith(":")||Wu(s)?s.name:ei(s.name),s.params?[vf(s)?"":Wu(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(s.raws.afterName)?[_e,_e]:/^\s*\n/u.test(s.raws.afterName)?_e:" ":" ",typeof s.params=="string"?s.params:r("params")]:"",s.selector?lt([" ",r("selector")]):"",s.value?At([" ",r("value"),Gu(s,t)?zS(s)?" ":We:""]):s.name==="else"?" ":"",s.nodes?[Gu(s,t)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&ti(s.selector.value)||!s.selector&&typeof s.params=="string"&&ti(s.params)?We:" ","{",lt([s.nodes.length>0?xt:"",ri(e,t,r)]),xt,"}"]:i||a?"":";"]}case"media-query-list":{let n=[];return e.each(({node:i})=>{i.type==="media-query"&&i.value===""||n.push(r())},"nodes"),At(lt(jr(We,n)))}case"media-query":return[jr(" ",e.map(r,"nodes")),e.isLast?"":","];case"media-type":return Xs(Wt(s.value,t));case"media-feature-expression":return s.nodes?["(",...e.map(r,"nodes"),")"]:s.value;case"media-feature":return ei(Wt(Pe(0,s.value,/ +/gu," "),t));case"media-colon":return[s.value," "];case"media-value":return Xs(Wt(s.value,t));case"media-keyword":return Wt(s.value,t);case"media-url":return Wt(Pe(0,Pe(0,s.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),t);case"media-unknown":return s.value;case"selector-root":return At([ii(e,"custom-selector")?[e.findAncestor(n=>n.type==="css-atrule").customSelector,We]:"",jr([",",ii(e,["extend","custom-selector","nest"])?We:_e],e.map(r,"nodes"))]);case"selector-selector":{let n=s.nodes.length>2;return At((n?lt:i=>i)(e.map(r,"nodes")))}case"selector-comment":return s.value;case"selector-string":return Wt(s.value,t);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?s.value:Xs(BS(e,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",Xs(Wt(s.value,t))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?iw(Wt(s.value.trim(),t),t):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let a=e.parent;return[a.type==="selector-selector"&&a.nodes[0]===s?"":We,s.value,e.isLast?"":" "]}let n=s.value.trim().startsWith("(")?We:"",i=Xs(Wt(s.value.trim(),t))||We;return[n,i]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[ei(s.value),Ua(s.nodes)?At(["(",lt([xt,jr([",",We],e.map(r,"nodes"))]),xt,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{if(e.findAncestor(a=>a.type==="css-rule")?.isSCSSNesterProperty)return Xs(Wt(ei(s.value),t));let n=e.parent;if(n.raws?.selector){let a=et(n),o=a+n.raws.selector.length;return t.originalText.slice(a,o).trim()}let i=e.grandparent;if(n.type==="value-paren_group"&&i?.type==="value-func"&&i.value==="selector"){let a=tt(n.open)+1,o=et(n.close),u=t.originalText.slice(a,o).trim();return ti(u)?[yl,u]:u}return s.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(et(s),tt(s));case"value-comma_group":return QS(e,t,r);case"value-paren_group":return yw(e,t,r);case"value-func":return[s.value,ii(e,"supports")&&XS(s)?" ":"",r("group")];case"value-paren":return s.value;case"value-number":return[Cm(s.value),xm(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||PS(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:n}=e;return At([s.value,typeof n?.value=="string"&&n.value.endsWith("\\")||Ba(e,"url")?"":We])}case"value-string":return am(s.raws.quote+s.value+s.raws.quote,t);case"value-atword":return["@",s.value];case"value-unicode-range":return s.value;case"value-unknown":return s.value;default:throw new $v(s,"PostCSS")}}var Aw={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:xw,embed:Kv,insertPragma:vS,massageAstNode:Xv,getVisitorKeys:rS},Cw=Aw,Sm=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Fw={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},bw={singleQuote:Fw.singleQuote},wm=bw,xl={};Bf(xl,{css:()=>rk,less:()=>sk,scss:()=>nk});var Tw=Ys(La(),1),vw=Ys(TT(),1),Sw=Ys(NT(),1);function ww(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var kw=ww;function Pw(e){return e!==null&&typeof e=="object"}var Va=Pw,Bw=Ys(_T(),1);function hi(e,t,r){if(Va(e)){delete e.parent;for(let s in e)hi(e[s],t,r),s==="type"&&typeof e[s]=="string"&&!e[s].startsWith(t)&&(!r||!r.test(e[s]))&&(e[s]=t+e[s])}return e}function km(e){if(Va(e)){delete e.parent;for(let t in e)km(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Nw=Bw.default.default;function Iw(e){let t;try{t=Nw(e)}catch{return{type:"selector-unknown",value:e}}return hi(km(t),"media-")}var _w=Iw,Lw=Ys(GT(),1);function Ow(e){if(/\/[/*]/u.test(Pe(0,e,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:e.trim()};let t;try{new Lw.default(r=>{t=r}).process(e)}catch{return{type:"selector-unknown",value:e}}return hi(t,"selector-")}var fs=Ow,Mw=Ys(dv(),1),jw=e=>{for(;e.parent;)e=e.parent;return e},Pm=jw;function Rw(e){return Pm(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Uw=Rw;function qw(e){if(Ua(e)){for(let t=e.length-1;t>0;t--)if(e[t].type==="word"&&e[t].value==="{"&&e[t-1].type==="word"&&e[t-1].value.endsWith("#"))return!0}return!1}var $w=qw;function Vw(e){return e.some(t=>t.type==="string"||t.type==="func"&&!t.value.endsWith("\\"))}var Ww=Vw;function Hw(e,t){return!!(t.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var zw=Hw,Pf=e=>e.type==="paren"&&e.value===")";function Jw(e,t){let{nodes:r}=e,s={open:null,close:null,groups:[],type:"paren_group"},n=[s],i=s,a={groups:[],type:"comma_group"},o=[a];for(let u=0;u<r.length;++u){let c=r[u];if(t.parser==="scss"&&c.type==="number"&&c.unit===".."&&c.value.endsWith(".")&&(c.value=c.value.slice(0,-1),c.unit="..."),c.type==="func"&&c.value==="selector"&&(c.group.groups=[fs(Pm(e).text.slice(c.group.open.sourceIndex+1,c.group.close.sourceIndex))]),c.type==="func"&&c.value==="url"){let p=c.group?.groups??[],l=[];for(let h=0;h<p.length;h++){let d=p[h];d.type==="comma_group"?l=[...l,...d.groups]:l.push(d)}($w(l)||!Ww(l)&&!zw(l[0],t))&&(c.group.groups=[Uw(c)])}if(c.type==="paren"&&c.value==="(")s={open:c,close:null,groups:[],type:"paren_group"},n.push(s),a={groups:[],type:"comma_group"},o.push(a);else if(Pf(c)){if(a.groups.length>0&&s.groups.push(a),s.close=c,o.length===1)throw new Error("Unbalanced parenthesis");o.pop(),a=ms(0,o,-1),a.groups.push(s),n.pop(),s=ms(0,n,-1)}else if(c.type==="comma"){if(u===r.length-3&&r[u+1].type==="comment"&&Pf(r[u+2]))continue;s.groups.push(a),a={groups:[],type:"comma_group"},o[o.length-1]=a}else a.groups.push(c)}return a.groups.length>0&&s.groups.push(a),i}function Zu(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?Zu(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(Zu)}:e}function Bm(e,t){if(Va(e))for(let r in e)r!=="parent"&&(Bm(e[r],t),r==="nodes"&&(e.group=Zu(Jw(e,t)),delete e[r]));return e}function Xw(e,t){if(t.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let r=null;try{r=new Mw.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}r.text=e;let s=Bm(r,t);return hi(s,"value-",/^selector-/u)}var ds=Xw,Kw=new Set(["import","use","forward"]);function Gw(e){return Kw.has(e)}var Yw=Gw;function Qw(e,t){return t.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Zw=Qw,ek=/(\s*)(!default).*$/u,tk=/(\s*)(!global).*$/u;function Nm(e,t){if(Va(e)){delete e.parent;for(let i in e)Nm(e[i],t);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let i;if(e.value.trimEnd().endsWith("}")){let a=t.originalText.slice(0,e.source.start.offset),o="a".repeat(e.prop.length)+t.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),u=Pe(0,a,/[^\n]/gu," ")+o,c;t.parser==="scss"?c=Lm:t.parser==="less"?c=_m:c=Im;let p;try{p=c(u,{...t})}catch{}p?.nodes?.length===1&&p.nodes[0].type==="css-rule"&&(i=p.nodes[0].nodes)}return i?e.value={type:"css-rule",nodes:i}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let r="";typeof e.selector=="string"&&(r=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(r+=e.raws.between),e.raws.selector=r);let s="";typeof e.value=="string"&&(s=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=s.trim());let n="";if(typeof e.params=="string"&&(n=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(n=e.raws.afterName+n),e.raws.between&&e.raws.between.trim().length>0&&(n=n+e.raws.between),n=n.trim(),e.raws.params=n),r.trim().length>0)return r.startsWith("@")&&r.endsWith(":")?e:e.mixin?(e.selector=ds(r,t),e):(Zw(e,t)&&(e.isSCSSNesterProperty=!0),e.selector=fs(r),e);if(s.trim().length>0){let i=s.match(ek);i&&(s=s.slice(0,i.index),e.scssDefault=!0,i[0].trim()!=="!default"&&(e.raws.scssDefault=i[0]));let a=s.match(tk);if(a&&(s=s.slice(0,a.index),e.scssGlobal=!0,a[0].trim()!=="!global"&&(e.raws.scssGlobal=a[0])),s.startsWith("progid:"))return{type:"value-unknown",value:s};e.value=ds(s,t)}if(t.parser==="less"&&e.type==="css-decl"&&s.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=fs(s.slice(7,-1)))),e.type==="css-atrule"){if(t.parser==="less"){if(e.mixin){let i=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=fs(i),delete e.params,e}if(e.function)return e}if(t.parser==="css"&&e.name==="custom-selector"){let i=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=i,e.selector=fs(e.params.slice(i.length).trim()),delete e.params,e}if(t.parser==="less"){if(e.name.includes(":")){e.variable=!0;let i=e.name.split(":");e.name=i[0];let a=i.slice(1).join(":");e.params&&(a+=e.params),e.value=ds(a,t)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let i=e.params.slice(1);i&&(e.value=ds(i,t)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&n.length>0){let{name:i}=e,a=e.name.toLowerCase();return i==="warn"||i==="error"?(e.params={type:"media-unknown",value:n},e):i==="extend"||i==="nest"?(e.selector=fs(n),delete e.params,e):i==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(n)?e.params=ds(n,t):(e.selector=fs(n),delete e.params),e):Yw(a)?(e.import=!0,delete e.filename,e.params=ds(n,t),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(i)?(n=n.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),n=n.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),e.value=ds(n,t),delete e.params,e):["media","custom-media"].includes(a)?n.includes("#{")?{type:"media-unknown",value:n}:(e.params=_w(n),e):(e.params=n,e)}}return e}function Al(e,t,r){let{frontMatter:s,content:n}=qa(t),i;try{i=e(n,{map:!1})}catch(a){let{name:o,reason:u,line:c,column:p}=a;throw typeof c!="number"?a:kw(`${o}: ${u}`,{loc:{start:{line:c,column:p}},cause:a})}return r.originalText=t,i=Nm(hi(i,"css-"),r),mm(i,t),s&&(i.frontMatter={...s,type:"front-matter",source:{startOffset:s.start.index,endOffset:s.end.index}}),i}function Im(e,t={}){return Al(Tw.default.default,e,t)}function _m(e,t={}){return Al(r=>vw.default.parse(aS(r)),e,t)}function Lm(e,t={}){return Al(Sw.default,e,t)}var Cl={astFormat:"postcss",hasPragma:bS,hasIgnorePragma:TS,locStart:et,locEnd:tt},rk={...Cl,parse:Im},sk={...Cl,parse:_m},nk={...Cl,parse:Lm},Om={postcss:Cw};var rp={};Wi(rp,{default:()=>py,parsers:()=>Hy});var ik=Object.defineProperty,Rl=(e,t)=>{for(var r in t)ik(e,r,{get:t[r],enumerable:!0})},py={};Rl(py,{parsers:()=>Hy});var cy={};Rl(cy,{__babel_estree:()=>G3,__js_expression:()=>uy,__ts_expression:()=>ly,__vue_event_binding:()=>ay,__vue_expression:()=>uy,__vue_ts_event_binding:()=>oy,__vue_ts_expression:()=>ly,babel:()=>ay,"babel-flow":()=>qy,"babel-ts":()=>oy});function ak(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}var $r=class{constructor(e,t,r){U(this,"line");U(this,"column");U(this,"index");this.line=e,this.column=t,this.index=r}},Za=class{constructor(e,t){U(this,"start");U(this,"end");U(this,"filename");U(this,"identifierName");this.start=e,this.end=t}};function Ct(e,t){let{line:r,column:s,index:n}=e;return new $r(r,s+t,n+t)}var Mm="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",ok={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Mm},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Mm}},jm={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"},Xa=e=>e.type==="UpdateExpression"?jm.UpdateExpression[`${e.prefix}`]:jm[e.type],uk={AccessorIsGenerator:({kind:e})=>`A ${e}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.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",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:({kind:e})=>`Missing initializer in ${e} 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.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',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:({exportName:e})=>`\`${e}\` 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:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
115
|
+
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"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:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
116
|
+
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly 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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Xa(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Xa(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Xa(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} 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:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",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:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).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:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' 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:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,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.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',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:({keyword:e})=>`Unexpected keyword '${e}'.`,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:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,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` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,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.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},lk={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' 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."},pk={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},ck=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),hk=Object.assign({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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Xa({type:e})}; please wrap it in parentheses.`},{}),dk=["message"];function Rm(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function fk({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){let n=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function i(a,o){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=s,n&&(u.missingPlugin=o.missingPlugin),Rm(u,"clone",function(c={}){let{line:p,column:l,index:h}=c.loc??a;return i(new $r(p,l,h),Object.assign({},o,c.details))}),Rm(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){let c=`${e(o)} (${a.line}:${a.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),u}}function zt(e,t){if(Array.isArray(e))return s=>zt(s,e[0]);let r={};for(let s of Object.keys(e)){let n=e[s],i=typeof n=="string"?{message:()=>n}:typeof n=="function"?{message:n}:n,{message:a}=i,o=ak(i,dk),u=typeof a=="string"?()=>a:a;r[s]=fk(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var b=Object.assign({},zt(ok),zt(uk),zt(lk),zt(pk),zt`pipelineOperator`(hk));function mk(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function yk(e){let t=mk();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Dk}=Object,Um=(e,t)=>{e&&Dk(e,t,{enumerable:!1,value:e[t]})};function di(e){return Um(e.loc.start,"index"),Um(e.loc.end,"index"),e}var gk=e=>class extends e{parse(){let t=di(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(di)),t}parseRegExpLiteral({pattern:t,flags:r}){let s=null;try{s=new RegExp(t,r)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:t,flags:r},n}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let s=this.estreeParseLiteral(r);return s.bigint=String(s.value||t),s}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let s=this.startNodeAtNode(t);return s.expression=t,this.finishNodeAt(s,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let s=this.castNodeTo(t,"ExpressionStatement");return s.expression=r,s.directive=r.extra.rawValue,delete r.extra,s}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:s,loc:n,range:i,raw:a,value:o}=t,u=Object.create(t.constructor.prototype);return u.type="Literal",u.start=r,u.end=s,u.loc=n,u.range=i,u.raw=a,u.value=o,u}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!t.expression.extra?.parenthesized}parseBlockBody(t,r,s,n,i){super.parseBlockBody(t,r,s,n,i);let a=t.directives.map(o=>this.directiveToStmt(o));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let s=super.parseLiteral(t,r);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(t,r,s=!1){super.parseFunctionBody(t,r,s),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,s,n,i,a,o=!1){let u=this.startNode();u.kind=t.kind,u=super.parseMethod(u,r,s,n,i,a,o),delete u.kind;let{typeParameters:c}=t;c&&(delete t.typeParameters,u.typeParameters=c,this.resetStartLocationFromNode(u,c));let p=this.castNodeTo(u,this.hasPlugin("typescript")&&!u.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=p,a==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,s,n){let i=super.parseObjectProperty(t,r,s,n);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,s,n){return t==="Property"?"value":super.isValidLVal(t,r,s,n)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:s,value:n}=t;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,s){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(b.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(b.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,s)}finishCallExpression(t,r){let s=super.finishCallExpression(t,r);return s.callee.type==="Import"?(this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=s.arguments[1]??null,delete s.arguments,delete s.callee):s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1,s}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){let s=this.state.lastTokStartLoc,n=super.parseExport(t,r);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{let{declaration:i}=n;i?.type==="ClassDeclaration"&&i.decorators?.length>0&&i.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(t,r){let s=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(s,t.loc.end):s}parseMember(t,r,s,n,i){let a=super.parseMember(t,r,s,n,i);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let s=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,s){return di(super.finishNodeAt(t,r,s))}finishNode(t,r){let s=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(t,r){super.resetStartLocation(t,r),di(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),di(t)}},Wa=class{constructor(e,t){U(this,"token");U(this,"preserveSpace");this.token=e,this.preserveSpace=!!t}},xe={brace:new Wa("{"),j_oTag:new Wa("<tag"),j_cTag:new Wa("</tag"),j_expr:new Wa("<tag>...</tag>",!0)},ae=!0,z=!0,bl=!0,fi=!0,Rr=!0,Ek=!0,hy=class{constructor(e,t={}){U(this,"label");U(this,"keyword");U(this,"beforeExpr");U(this,"startsExpr");U(this,"rightAssociative");U(this,"isLoop");U(this,"isAssign");U(this,"prefix");U(this,"postfix");U(this,"binop");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=t.binop!=null?t.binop:null}},Ul=new Map;function de(e,t={}){t.keyword=e;let r=Y(e,t);return Ul.set(e,r),r}function Je(e,t){return Y(e,{beforeExpr:ae,binop:t})}var Ei=-1,ql=[],$l=[],Vl=[],Wl=[],Hl=[],zl=[];function Y(e,t={}){return++Ei,$l.push(e),Vl.push(t.binop??-1),Wl.push(t.beforeExpr??!1),Hl.push(t.startsExpr??!1),zl.push(t.prefix??!1),ql.push(new hy(e,t)),Ei}function le(e,t={}){return++Ei,Ul.set(e,Ei),$l.push(e),Vl.push(t.binop??-1),Wl.push(t.beforeExpr??!1),Hl.push(t.startsExpr??!1),zl.push(t.prefix??!1),ql.push(new hy("name",t)),Ei}var xk={bracketL:Y("[",{beforeExpr:ae,startsExpr:z}),bracketHashL:Y("#[",{beforeExpr:ae,startsExpr:z}),bracketBarL:Y("[|",{beforeExpr:ae,startsExpr:z}),bracketR:Y("]"),bracketBarR:Y("|]"),braceL:Y("{",{beforeExpr:ae,startsExpr:z}),braceBarL:Y("{|",{beforeExpr:ae,startsExpr:z}),braceHashL:Y("#{",{beforeExpr:ae,startsExpr:z}),braceR:Y("}"),braceBarR:Y("|}"),parenL:Y("(",{beforeExpr:ae,startsExpr:z}),parenR:Y(")"),comma:Y(",",{beforeExpr:ae}),semi:Y(";",{beforeExpr:ae}),colon:Y(":",{beforeExpr:ae}),doubleColon:Y("::",{beforeExpr:ae}),dot:Y("."),question:Y("?",{beforeExpr:ae}),questionDot:Y("?."),arrow:Y("=>",{beforeExpr:ae}),template:Y("template"),ellipsis:Y("...",{beforeExpr:ae}),backQuote:Y("`",{startsExpr:z}),dollarBraceL:Y("${",{beforeExpr:ae,startsExpr:z}),templateTail:Y("...`",{startsExpr:z}),templateNonTail:Y("...${",{beforeExpr:ae,startsExpr:z}),at:Y("@"),hash:Y("#",{startsExpr:z}),interpreterDirective:Y("#!..."),eq:Y("=",{beforeExpr:ae,isAssign:fi}),assign:Y("_=",{beforeExpr:ae,isAssign:fi}),slashAssign:Y("_=",{beforeExpr:ae,isAssign:fi}),xorAssign:Y("_=",{beforeExpr:ae,isAssign:fi}),moduloAssign:Y("_=",{beforeExpr:ae,isAssign:fi}),incDec:Y("++/--",{prefix:Rr,postfix:Ek,startsExpr:z}),bang:Y("!",{beforeExpr:ae,prefix:Rr,startsExpr:z}),tilde:Y("~",{beforeExpr:ae,prefix:Rr,startsExpr:z}),doubleCaret:Y("^^",{startsExpr:z}),doubleAt:Y("@@",{startsExpr:z}),pipeline:Je("|>",0),nullishCoalescing:Je("??",1),logicalOR:Je("||",1),logicalAND:Je("&&",2),bitwiseOR:Je("|",3),bitwiseXOR:Je("^",4),bitwiseAND:Je("&",5),equality:Je("==/!=/===/!==",6),lt:Je("</>/<=/>=",7),gt:Je("</>/<=/>=",7),relational:Je("</>/<=/>=",7),bitShift:Je("<</>>/>>>",8),bitShiftL:Je("<</>>/>>>",8),bitShiftR:Je("<</>>/>>>",8),plusMin:Y("+/-",{beforeExpr:ae,binop:9,prefix:Rr,startsExpr:z}),modulo:Y("%",{binop:10,startsExpr:z}),star:Y("*",{binop:10}),slash:Je("/",10),exponent:Y("**",{beforeExpr:ae,binop:11,rightAssociative:!0}),_in:de("in",{beforeExpr:ae,binop:7}),_instanceof:de("instanceof",{beforeExpr:ae,binop:7}),_break:de("break"),_case:de("case",{beforeExpr:ae}),_catch:de("catch"),_continue:de("continue"),_debugger:de("debugger"),_default:de("default",{beforeExpr:ae}),_else:de("else",{beforeExpr:ae}),_finally:de("finally"),_function:de("function",{startsExpr:z}),_if:de("if"),_return:de("return",{beforeExpr:ae}),_switch:de("switch"),_throw:de("throw",{beforeExpr:ae,prefix:Rr,startsExpr:z}),_try:de("try"),_var:de("var"),_const:de("const"),_with:de("with"),_new:de("new",{beforeExpr:ae,startsExpr:z}),_this:de("this",{startsExpr:z}),_super:de("super",{startsExpr:z}),_class:de("class",{startsExpr:z}),_extends:de("extends",{beforeExpr:ae}),_export:de("export"),_import:de("import",{startsExpr:z}),_null:de("null",{startsExpr:z}),_true:de("true",{startsExpr:z}),_false:de("false",{startsExpr:z}),_typeof:de("typeof",{beforeExpr:ae,prefix:Rr,startsExpr:z}),_void:de("void",{beforeExpr:ae,prefix:Rr,startsExpr:z}),_delete:de("delete",{beforeExpr:ae,prefix:Rr,startsExpr:z}),_do:de("do",{isLoop:bl,beforeExpr:ae}),_for:de("for",{isLoop:bl}),_while:de("while",{isLoop:bl}),_as:le("as",{startsExpr:z}),_assert:le("assert",{startsExpr:z}),_async:le("async",{startsExpr:z}),_await:le("await",{startsExpr:z}),_defer:le("defer",{startsExpr:z}),_from:le("from",{startsExpr:z}),_get:le("get",{startsExpr:z}),_let:le("let",{startsExpr:z}),_meta:le("meta",{startsExpr:z}),_of:le("of",{startsExpr:z}),_sent:le("sent",{startsExpr:z}),_set:le("set",{startsExpr:z}),_source:le("source",{startsExpr:z}),_static:le("static",{startsExpr:z}),_using:le("using",{startsExpr:z}),_yield:le("yield",{startsExpr:z}),_asserts:le("asserts",{startsExpr:z}),_checks:le("checks",{startsExpr:z}),_exports:le("exports",{startsExpr:z}),_global:le("global",{startsExpr:z}),_implements:le("implements",{startsExpr:z}),_intrinsic:le("intrinsic",{startsExpr:z}),_infer:le("infer",{startsExpr:z}),_is:le("is",{startsExpr:z}),_mixins:le("mixins",{startsExpr:z}),_proto:le("proto",{startsExpr:z}),_require:le("require",{startsExpr:z}),_satisfies:le("satisfies",{startsExpr:z}),_keyof:le("keyof",{startsExpr:z}),_readonly:le("readonly",{startsExpr:z}),_unique:le("unique",{startsExpr:z}),_abstract:le("abstract",{startsExpr:z}),_declare:le("declare",{startsExpr:z}),_enum:le("enum",{startsExpr:z}),_module:le("module",{startsExpr:z}),_namespace:le("namespace",{startsExpr:z}),_interface:le("interface",{startsExpr:z}),_type:le("type",{startsExpr:z}),_opaque:le("opaque",{startsExpr:z}),name:Y("name",{startsExpr:z}),placeholder:Y("%%",{startsExpr:z}),string:Y("string",{startsExpr:z}),num:Y("num",{startsExpr:z}),bigint:Y("bigint",{startsExpr:z}),decimal:Y("decimal",{startsExpr:z}),regexp:Y("regexp",{startsExpr:z}),privateName:Y("#name",{startsExpr:z}),eof:Y("eof"),jsxName:Y("jsxName"),jsxText:Y("jsxText",{beforeExpr:ae}),jsxTagStart:Y("jsxTagStart",{startsExpr:z}),jsxTagEnd:Y("jsxTagEnd")};function ye(e){return e>=93&&e<=133}function Ak(e){return e<=92}function St(e){return e>=58&&e<=133}function dy(e){return e>=58&&e<=137}function Ck(e){return Wl[e]}function Di(e){return Hl[e]}function Fk(e){return e>=29&&e<=33}function qm(e){return e>=129&&e<=131}function bk(e){return e>=90&&e<=92}function Jl(e){return e>=58&&e<=92}function Tk(e){return e>=39&&e<=59}function vk(e){return e===34}function Sk(e){return zl[e]}function wk(e){return e>=121&&e<=123}function kk(e){return e>=124&&e<=130}function Vr(e){return $l[e]}function Ka(e){return Vl[e]}function Pk(e){return e===57}function Nl(e){return e>=24&&e<=25}function fy(e){return ql[e]}var Xl="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",my="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Bk=new RegExp("["+Xl+"]"),Nk=new RegExp("["+Xl+my+"]");Xl=my=null;var yy=[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,4,51,13,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,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ik=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Il(e,t){let r=65536;for(let s=0,n=t.length;s<n;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function Jt(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Bk.test(String.fromCharCode(e)):Il(e,yy)}function Es(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Nk.test(String.fromCharCode(e)):Il(e,yy)||Il(e,Ik)}var Kl={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"]},_k=new Set(Kl.keyword),Lk=new Set(Kl.strict),Ok=new Set(Kl.strictBind);function Dy(e,t){return t&&e==="await"||e==="enum"}function gy(e,t){return Dy(e,t)||Lk.has(e)}function Ey(e){return Ok.has(e)}function xy(e,t){return gy(e,t)||Ey(e)}function Mk(e){return _k.has(e)}function jk(e,t,r){return e===64&&t===64&&Jt(r)}var Rk=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 Uk(e){return Rk.has(e)}var Gl=class{constructor(e){U(this,"flags",0);U(this,"names",new Map);U(this,"firstLexicalName","");this.flags=e}},Yl=class{constructor(e,t){U(this,"parser");U(this,"scopeStack",[]);U(this,"inModule");U(this,"undefinedExports",new Map);this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Gl(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let s=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(s,e,t,r);let n=s.names.get(e)||0;t&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=e),n=n|2),s.names.set(e,n),t&8&&this.maybeExportDefined(s,e)}else if(t&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,t,r),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,s){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(b.VarRedeclaration,s,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(r&1))return!1;if(r&8)return e.names.has(t);let s=e.names.get(t)||0;return r&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.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&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},qk=class extends Gl{constructor(){super(...arguments);U(this,"declareFunctions",new Set)}},$k=class extends Yl{createScope(e){return new qk(e)}declareName(e,t,r){let s=this.currentScope();if(t&2048){this.checkRedeclarationInScope(s,e,t,r),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(r&2048&&!e.declareFunctions.has(t)){let s=e.names.get(t);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Vk=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Q=zt`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:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,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:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,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."},{}),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:({reservedType:e})=>`Unexpected reserved type ${e}.`,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:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Wk(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function $m(e){return e.importKind==="type"||e.importKind==="typeof"}var Hk={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function zk(e,t){let r=[],s=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?r:s).push(e[n]);return[r,s]}var Jk=/\*?\s*@((?:no)?flow)\b/,Xk=e=>class extends e{constructor(){super(...arguments);U(this,"flowPragma")}getScopeHandler(){return $k}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,s){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,s)}addComment(r){if(this.flowPragma===void 0){let s=Jk.exec(r.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let s=this.state.inType;this.state.inType=!0,this.expect(r||14);let n=this.flowParseType();return this.state.inType=s,n}flowParsePredicate(){let r=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(Q.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,n=null;return this.match(54)?(this.state.inType=r,n=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=r,this.match(54)&&(n=this.flowParsePredicate())),[s,n]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let s=r.id=this.parseIdentifier(),n=this.startNode(),i=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return n.params=a.params,n.rest=a.rest,n.this=a._this,this.expect(11),[n.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,s){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(s&&this.raise(Q.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,s);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let s=r.body=this.startNode(),n=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Q.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(o))):(this.expectContextual(125,Q.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let i=null,a=!1;return n.forEach(o=>{Wk(o)?(i==="CommonJS"&&this.raise(Q.AmbiguousDeclareModuleKind,o),i="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(Q.DuplicateDeclareModuleExports,o),i==="ES"&&this.raise(Q.AmbiguousDeclareModuleKind,o),i="CommonJS",a=!0)}),r.kind=i||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let n=this.state.value;throw this.raise(Q.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:Hk[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let s=this.flowParseTypeAlias(r);return this.castNodeTo(s,"DeclareTypeAlias"),s}flowParseDeclareOpaqueType(r){this.next();let s=this.flowParseOpaqueType(r,!0);return this.castNodeTo(s,"DeclareOpaqueType"),s}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,s){if(r.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(r.id.name,s?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(Q.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,s,n){Vk.has(r)&&this.raise(n?Q.AssignReservedType:Q.UnexpectedReservedType,s,{reservedType:r})}flowParseRestrictedIdentifier(r,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,s){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,s||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let s=this.state.startLoc,n=this.startNode(),i=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return n.name=a.name,n.variance=i,n.bound=a.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):r&&this.raise(Q.MissingTypeParamDefault,s),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let i=this.flowParseTypeParameter(n);s.params.push(i),i.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(s,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==xe.brace){let s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),s=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=s,!this.state.inType&&this.curContext()===xe.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),s=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,s,n){return r.static=s,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=n,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,s){return r.static=s,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,s){let n=this.startNode();return r.static=s,r.value=this.flowParseObjectTypeMethodish(n),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:s,allowSpread:n,allowProto:i,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let c,p,l=!1;for(s&&this.match(6)?(this.expect(6),c=9,p=!0):(this.expect(5),c=8,p=!1),u.exact=p;!this.match(c);){let d=!1,m=null,f=null,D=this.startNode();if(i&&this.isContextual(118)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),m=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),d=!0)}let g=this.flowParseVariance();if(this.eat(0))m!=null&&this.unexpected(m),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(D,d))):u.indexers.push(this.flowParseObjectTypeIndexer(D,d,g));else if(this.match(10)||this.match(47))m!=null&&this.unexpected(m),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(D,d));else{let y="init";if(this.isContextual(99)||this.isContextual(104)){let A=this.lookahead();dy(A.type)&&(y=this.state.value,this.next())}let E=this.flowParseObjectTypeProperty(D,d,m,g,y,n,a??!p);E===null?(l=!0,f=this.state.lastTokStartLoc):u.properties.push(E)}this.flowObjectTypeSemicolon(),f&&!this.match(8)&&!this.match(9)&&this.raise(Q.UnexpectedExplicitInexactInObject,f)}this.expect(c),n&&(u.inexact=l);let h=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,s,n,i,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(Q.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Q.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(Q.InexactVariance,i),null):(o||this.raise(Q.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),i&&this.raise(Q.SpreadVariance,i),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=s,r.proto=n!=null,r.kind=a;let c=!1;return this.match(47)||this.match(10)?(r.method=!0,n!=null&&this.unexpected(n),i&&this.unexpected(i.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(Q.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),r.value=this.flowParseTypeInitialiser(),r.variance=i),r.optional=c,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let s=r.kind==="get"?0:1,n=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?Q.GetterMayNotHaveThisParam:Q.SetterMayNotHaveThisParam,r.value.this),n!==s&&this.raise(r.kind==="get"?b.BadGetterArity:b.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(b.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,s){r??(r=this.state.startLoc);let n=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let i=this.startNodeAt(r);i.qualification=n,i.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(i,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,s){let n=this.startNodeAt(r);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(r,s),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let s=null,n=!1,i=null,a=this.startNode(),o=this.lookahead(),u=this.state.type===78;return o.type===14||o.type===17?(u&&!r&&this.raise(Q.ThisParamMustBeFirst,a),s=this.parseIdentifier(u),this.eat(17)&&(n=!0,u&&this.raise(Q.ThisParamMayNotBeOptional,a)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),a.name=s,a.optional=n,a.typeAnnotation=i,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let s=this.startNodeAt(r.loc.start);return s.name=null,s.optional=!1,s.typeAnnotation=r,this.finishNode(s,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let s=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(s=this.flowParseFunctionTypeParam(!1)),{params:r,rest:s,_this:n}}flowIdentToTypeAnnotation(r,s,n){switch(n.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(r,n)}}flowParsePrimaryType(){let r=this.state.startLoc,s=this.startNode(),n,i,a=!1,o=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,i=this.flowParseTupleType(),this.state.noAnonFunctionType=o,i;case 47:{let u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),u.params=n.params,u.rest=n.rest,u.this=n._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 10:{let u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(ye(this.state.type)||this.match(78)){let c=this.lookahead().type;a=c!==17&&c!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),i;this.eat(12)}return i?n=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):n=this.flowParseFunctionTypeParams(),u.params=n.params,u.rest=n.rest,u.this=n._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(Q.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Jl(this.state.type)){let u=Vr(this.state.type);return this.next(),super.createIdentifier(s,u)}else if(ye(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,s,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,s=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let i=this.startNodeAt(r),a=this.eat(18);n=n||a,this.expect(0),!a&&this.match(3)?(i.elementType=s,this.next(),s=this.finishNode(i,"ArrayTypeAnnotation")):(i.objectType=s,i.indexType=this.flowParseType(),this.expect(3),n?(i.optional=a,s=this.finishNode(i,"OptionalIndexedAccessType")):s=this.finishNode(i,"IndexedAccessType"))}return s}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let s=this.startNodeAt(r.loc.start);return s.params=[this.reinterpretTypeAsFunctionTypeParam(r)],s.rest=null,s.this=null,s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let s=this.flowParseAnonFunctionWithoutParens();for(r.types=[s];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?s:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let s=this.flowParseIntersectionType();for(r.types=[s];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?s:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let s=this.flowParseUnionType();return this.state.inType=r,s}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(r,s)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){let s=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(s)),s}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,s,n=!1){if(s){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,n));return}super.parseFunctionBody(r,!1,n)}parseFunctionBodyAndFinish(r,s,n=!1){if(this.match(14)){let i=this.startNode();[i.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,s,n)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(St(n.type)){let i=this.startNode();return this.next(),this.flowParseInterface(i)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let s=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(r,s,n){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||ye(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ye(this.state.type)){if(s.name==="interface")return this.flowParseInterface(r);if(s.name==="type")return this.flowParseTypeAlias(r);if(s.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,s,n)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||qm(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||qm(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,s,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(n),r}this.expect(17);let i=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:u,failed:c}=this.tryParseConditionalConsequent(),[p,l]=this.getArrowLikeExpressions(u);if(c||l.length>0){let h=[...a];if(l.length>0){this.state=i,this.state.noArrowAt=h;for(let d=0;d<l.length;d++)h.push(l[d].start);({consequent:u,failed:c}=this.tryParseConditionalConsequent()),[p,l]=this.getArrowLikeExpressions(u)}c&&p.length>1&&this.raise(Q.AmbiguousConditionalArrow,i.startLoc),c&&p.length===1&&(this.state=i,h.push(p[0].start),this.state.noArrowAt=h,{consequent:u,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:s}}getArrowLikeExpressions(r,s){let n=[r],i=[];for(;n.length!==0;){let a=n.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),n.push(a.body)):a.type==="ConditionalExpression"&&(n.push(a.consequent),n.push(a.alternate))}return s?(i.forEach(a=>this.finishArrowValidation(a)),[i,[]]):zk(i,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){this.toAssignableList(r.params,r.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,s){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=s(),this.state.noArrowParamsConversionAt.pop()):n=s(),n}parseParenItem(r,s){let n=super.parseParenItem(r,s);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let i=this.startNodeAt(s);return i.expression=n,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return n}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){r.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){r.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){r.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:s}=this.state,n=super.maybeParseExportNamespaceSpecifier(r);return n&&r.exportKind==="type"&&this.unexpected(s),n}parseClassId(r,s,n){super.parseClassId(r,s,n),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,s,n){let{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,s))return;s.declare=!0}super.parseClassMember(r,s,n),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(Q.DeclareClassElement,i):s.value&&this.raise(Q.DeclareClassFieldInitializer,s.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),s="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(r){let s=this.input.charCodeAt(this.state.pos+1);r===123&&s===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?s===46?this.finishOp(18,2):this.finishOp(17,1):jk(r,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,s){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,s):super.isAssignable(r,s)}toAssignable(r,s=!1){!s&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,s)}toAssignableList(r,s,n){for(let i=0;i<r.length;i++){let a=r[i];a?.type==="TypeCastExpression"&&(r[i]=this.typeCastToParameter(a))}super.toAssignableList(r,s,n)}toReferencedList(r,s){for(let n=0;n<r.length;n++){let i=r[n];i&&i.type==="TypeCastExpression"&&!i.extra?.parenthesized&&(r.length>1||!s)&&this.raise(Q.TypeCastInPattern,i.typeAnnotation)}return r}parseArrayLike(r,s,n){let i=super.parseArrayLike(r,s,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(r,s,n,i){return r==="TypeCastExpression"||super.isValidLVal(r,s,n,i)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,s,n,i,a,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,s,n,i,a,o),s.params&&a){let u=s.params;u.length>0&&this.isThisParam(u[0])&&this.raise(Q.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&a&&s.value.params){let u=s.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(Q.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(r,s,n,i){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,s,n,i)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let s=r.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,s.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let s=this.getObjectOrClassMethodParams(r);if(s.length>0){let n=s[0];this.isThisParam(n)&&r.kind==="get"?this.raise(Q.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Q.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,s,n,i,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let p=super.parseObjPropValue(r,s,n,i,a,o,u);return c&&((p.value||p).typeParameters=c),p}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(Q.PatternIsOptional,r),this.isThisParam(r)&&this.raise(Q.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(Q.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(Q.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,s){let n=super.parseMaybeDefault(r,s);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Q.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(Q.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,s,n){s.local=$m(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(s,n))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let s=this.lookaheadCharCode();return s===123||s===42}return!r&&this.isContextual(87)}applyImportPhase(r,s,n,i){if(super.applyImportPhase(r,s,n,i),s){if(!n&&this.match(65))return;r.exportKind=n==="type"?n:"value"}else n==="type"&&this.match(55)&&this.unexpected(),r.importKind=n==="type"||n==="typeof"?n:"value"}parseImportSpecifier(r,s,n,i,a){let o=r.imported,u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let c=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let l=this.parseIdentifier(!0);u!==null&&!St(this.state.type)?(r.imported=l,r.importKind=u,r.local=this.cloneIdentifier(l)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(u!==null&&St(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=u;else{if(s)throw this.raise(b.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(c=!0,r.local=this.cloneIdentifier(r.imported))}let p=$m(r);return n&&p&&this.raise(Q.ImportTypeShorthandOnlyInPureImport,r),(n||p)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),c&&!n&&!p&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(r,s){let n=r.kind;n!=="get"&&n!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,s)}parseVarId(r,s){super.parseVarId(r,s),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,s){if(this.match(14)){let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return super.parseAsyncArrowFromCallExpression(r,s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,s){let n=null,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(r,s),n),!i.error)return i.node;let{context:a}=this.state,o=a[a.length-1];(o===xe.j_oTag||o===xe.j_expr)&&a.pop()}if(i?.error||this.match(47)){n=n||this.state.clone();let a,o=this.tryParse(c=>{a=this.flowParseTypeParameterDeclaration();let p=this.forwardNoArrowParamsConversionAt(a,()=>{let h=super.parseMaybeAssign(r,s);return this.resetStartLocationFromNode(h,a),h});p.extra?.parenthesized&&c();let l=this.maybeUnwrapTypeCastExpression(p);return l.type!=="ArrowFunctionExpression"&&c(),l.typeParameters=a,this.resetStartLocationFromNode(l,a),p},n),u=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Q.UnexpectedTypeParameterBeforeAsyncArrowFunction,a),o.node;u=o.node}if(i?.node)return this.state=i.failState,i.node;if(u)return this.state=o.failState,u;throw i?.thrown?i.error:o.thrown?o.error:this.raise(Q.UnexpectedTokenAfterTypeParameter,a)}return super.parseMaybeAssign(r,s)}parseArrow(r){if(this.match(14)){let s=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let i=this.startNode();return[i.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});if(s.thrown)return null;s.error&&(this.state=s.failState),r.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,s){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=s:super.setArrowFunctionParameters(r,s)}checkParams(r,s,n,i=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(Q.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,s,n,i)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,s,n){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let i=this.startNodeAt(s);i.callee=r,i.arguments=super.parseCallExpressionArguments(),r=this.finishNode(i,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let i=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(s)||u(),i);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,s,n),i);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,s,n)}parseSubscript(r,s,n,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,n)return i.stop=!0,r;this.next();let a=this.startNodeAt(s);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(s);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),i.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,i.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,s,n,i)}parseNewCallee(r){super.parseNewCallee(r);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=s}parseAsyncArrowWithTypeParameters(r){let s=this.startNodeAt(r);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,s){let n=super.parseTopLevel(r,s);return this.state.hasFlowComment&&this.raise(Q.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Q.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(r+s));)s++;let n=this.input.charCodeAt(s+r),i=this.input.charCodeAt(s+r+1);return n===58&&i===58?s+2:this.input.slice(s+r,s+r+12)==="flow-include"?s+12:n===58&&i!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:s,memberName:n}){this.raise(Q.EnumBooleanMemberNotInitialized,r,{memberName:n,enumName:s})}flowEnumErrorInvalidMemberInitializer(r,s){return this.raise(s.explicitType?s.explicitType==="symbol"?Q.EnumInvalidMemberInitializerSymbolType:Q.EnumInvalidMemberInitializerPrimaryType:Q.EnumInvalidMemberInitializerUnknownType,r,s)}flowEnumErrorNumberMemberNotInitialized(r,s){this.raise(Q.EnumNumberMemberNotInitialized,r,s)}flowEnumErrorStringMemberInconsistentlyInitialized(r,s){this.raise(Q.EnumStringMemberInconsistentlyInitialized,r,s)}flowEnumMemberInit(){let r=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 134:{let n=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,s=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:s,init:n}}flowEnumCheckExplicitTypeMismatch(r,s,n){let{explicitType:i}=s;i!==null&&i!==n&&this.flowEnumErrorInvalidMemberInitializer(r,s)}flowEnumMembers({enumName:r,explicitType:s}){let n=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:u,init:c}=this.flowEnumMemberRaw(),p=u.name;if(p==="")continue;/^[a-z]/.test(p)&&this.raise(Q.EnumInvalidMemberName,u,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:r}),n.has(p)&&this.raise(Q.EnumDuplicateMemberName,u,{memberName:p,enumName:r}),n.add(p);let l={enumName:r,explicitType:s,memberName:p};switch(o.id=u,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,l,"boolean"),o.init=c.value,i.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,l,"number"),o.init=c.value,i.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,l,"string"),o.init=c.value,i.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,l);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,l);break;default:i.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:a}}flowEnumStringMembers(r,s,{enumName:n}){if(r.length===0)return s;if(s.length===0)return r;if(s.length>r.length){for(let i of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:n});return s}else{for(let i of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:n});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!ye(this.state.type))throw this.raise(Q.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(Q.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:s}),s}flowEnumBody(r,s){let n=s.name,i=s.loc.start,a=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:n,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let p=o.booleanMembers.length,l=o.numberMembers.length,h=o.stringMembers.length,d=o.defaultedMembers.length;if(!p&&!l&&!h&&!d)return c();if(!p&&!l)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!l&&!h&&p>=d){for(let m of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!p&&!h&&l>=d){for(let m of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Q.EnumInconsistentMemberValues,i,{enumName:n}),c()}}}flowParseEnumDeclaration(r){let s=this.parseIdentifier();return r.id=s,r.body=this.flowEnumBody(this.startNode(),s),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let s=this.input.charCodeAt(r+1);return s!==60&&s!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},Kk=/\r\n|[\r\n\u2028\u2029]/,Ha=new RegExp(Kk.source,"g");function rn(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Vm(e,t,r){for(let s=t;s<r;s++)if(rn(e.charCodeAt(s)))return!0;return!1}var Tl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,vl=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Gk(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 mr=zt`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,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:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,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 Ur(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function tn(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return tn(e.object)+"."+tn(e.property);throw new Error("Node had unexpected type: "+e.type)}var Yk=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(mr.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(mr.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:s===125?"}":">"});default:rn(s)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=t?`
|
|
117
|
+
`:`\r
|
|
118
|
+
`):s=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(t){let r="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===t)break;n===38?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadEntity(),s=this.state.pos):rn(n)?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}r+=this.input.slice(s,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let s=this.readInt(r,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let r=0,s=!1;for(;r++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(t,this.state.pos),i;if(++this.state.pos,i)return i}}return this.state.pos=t,"&"}jsxReadWord(){let t,r=this.state.pos;do t=this.input.charCodeAt(++this.state.pos);while(Es(t)||t===45);this.finishToken(141,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){let t=this.startNode();return this.match(141)?t.name=this.state.value:Jl(this.state.type)?t.name=Vr(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){let t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let s=this.startNodeAt(t);return s.namespace=r,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let t=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let s=this.startNodeAt(t);s.object=r,s.property=this.jsxParseIdentifier(),r=this.finishNode(s,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(xe.brace),this.next(),t=this.jsxParseExpressionContainer(t,xe.j_oTag),t.expression.type==="JSXEmptyExpression"&&this.raise(mr.AttributeIsEmpty,t),t;case 143:case 134:return this.parseExprAtom();default:throw this.raise(mr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(xe.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,r){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();s.type==="SequenceExpression"&&!s.extra?.parenthesized&&this.raise(mr.UnexpectedSequenceExpression,s.expressions[1]),t.expression=s}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){let t=this.startNode();return this.match(5)?(this.setContext(xe.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(xe.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){let r=this.startNodeAt(t);return this.eat(144)?this.finishNode(r,"JSXOpeningFragment"):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(t){let r=[];for(;!this.match(56)&&!this.match(144);)r.push(this.jsxParseAttribute());return t.attributes=r,t.selfClosing=this.eat(56),this.expect(144),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){let r=this.startNodeAt(t);return this.eat(144)?this.finishNode(r,"JSXClosingFragment"):(r.name=this.jsxParseElementName(),this.expect(144),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(t){let r=this.startNodeAt(t),s=[],n=this.jsxParseOpeningElementAt(t),i=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(t=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(t);break e}s.push(this.jsxParseElementAt(t));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let a=this.startNode();this.setContext(xe.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(a)):s.push(this.jsxParseExpressionContainer(a,xe.j_expr));break}default:this.unexpected()}Ur(n)&&!Ur(i)&&i!==null?this.raise(mr.MissingClosingTagFragment,i):!Ur(n)&&Ur(i)?this.raise(mr.MissingClosingTagElement,i,{openingTagName:tn(n.name)}):!Ur(n)&&!Ur(i)&&tn(i.name)!==tn(n.name)&&this.raise(mr.MissingClosingTagElement,i,{openingTagName:tn(n.name)})}if(Ur(n)?(r.openingFragment=n,r.closingFragment=i):(r.openingElement=n,r.closingElement=i),r.children=s,this.match(47))throw this.raise(mr.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ur(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){let t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){let{context:r}=this.state;r[r.length-1]=t}parseExprAtom(t){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){let r=this.curContext();if(r===xe.j_expr){this.jsxReadToken();return}if(r===xe.j_oTag||r===xe.j_cTag){if(Jt(t)){this.jsxReadWord();return}if(t===62){++this.state.pos,this.finishToken(144);return}if((t===34||t===39)&&r===xe.j_oTag){this.jsxReadString(t);return}}if(t===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(t)}updateContext(t){let{context:r,type:s}=this.state;if(s===56&&t===143)r.splice(-2,2,xe.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)r.push(xe.j_oTag);else if(s===144){let n=r[r.length-1];n===xe.j_oTag&&t===56||n===xe.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===xe.j_expr):(this.setContext(xe.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Ck(s)}},Qk=class extends Gl{constructor(){super(...arguments);U(this,"tsNames",new Map)}},Zk=class extends Yl{constructor(){super(...arguments);U(this,"importsStack",[])}createScope(t){return this.importsStack.push(new Set),new Qk(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let s=this.importsStack.length;if(this.importsStack[s-1].has(t))return!0;if(!r&&s>1){for(let n=0;n<s-1;n++)if(this.importsStack[n].has(t))return!0}return!1}declareName(t,r,s){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(b.VarRedeclaration,s,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let n=this.currentScope(),i=n.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(n,t),n.tsNames.set(t,i|16);return}super.declareName(t,r,s),r&2&&(r&1||(this.checkRedeclarationInScope(n,t,r,s),this.maybeExportDefined(n,t)),i=i|1),r&256&&(i=i|2),r&512&&(i=i|4),r&128&&(i=i|8),i&&n.tsNames.set(t,i)}isRedeclaredInScope(t,r,s){let n=t.tsNames.get(r);if((n&2)>0){if(s&256){let i=!!(s&512),a=(n&4)>0;return i!==a}return!0}return s&128&&(n&8)>0?t.names.get(r)&2?!!(s&1):!1:s&2&&(n&1)>0?!0:super.isRedeclaredInScope(t,r,s)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let s=this.scopeStack.length;for(let n=s-1;n>=0;n--){let i=this.scopeStack[n].tsNames.get(r);if((i&1)>0||(i&16)>0)return}super.checkLocalExport(t)}},eP=class{constructor(){U(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()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ga(e,t){return(e?2:0)|(t?1:0)}var tP=class{constructor(){U(this,"sawUnambiguousESM",!1);U(this,"ambiguousScriptDifferentAst",!1)}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let s=this.plugins.get(t);for(let n of Object.keys(r))if(s?.[n]!==r[n])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function Ay(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function rP(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function sn(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function gs(e,t,r){let s=null,n=t.length;for(;s===null&&n>0;)s=t[--n];s===null||s.start>r.start?sn(e,r.comments):Ay(s,r.comments)}var sP=class extends tP{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(r===0)return;let s=r-1,n=t[s];n.start===e.end&&(n.leadingNode=e,s--);let{start:i}=e;for(;s>=0;s--){let a=t[s],o=a.end;if(o>i)a.containingNode=e,this.finalizeComment(a),t.splice(s,1);else{o===i&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Ay(e.leadingNode,t),e.trailingNode!==null&&rP(e.trailingNode,t);else{let r=e.containingNode,s=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44)switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":gs(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":gs(r,r.arguments,e);break;case"ImportExpression":gs(r,[r.source,r.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":gs(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":gs(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":gs(r,r.specifiers,e);break;case"TSEnumDeclaration":sn(r,t);break;case"TSEnumBody":gs(r,r.members,e);break;default:sn(r,t)}else sn(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(r===0)return;let s=t[r-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let i=n-1;for(;i>=0;i--){let a=s[i],o=a.end;if(a.start===r)a.leadingNode=e;else if(o===t)a.trailingNode=e;else if(o<t)break}}},nP=class Cy{constructor(){U(this,"flags",1024);U(this,"startIndex");U(this,"curLine");U(this,"lineStart");U(this,"startLoc");U(this,"endLoc");U(this,"errors",[]);U(this,"potentialArrowAt",-1);U(this,"noArrowAt",[]);U(this,"noArrowParamsConversionAt",[]);U(this,"topicContext",{maxNumOfResolvableTopics:0,maxTopicIndex:null});U(this,"labels",[]);U(this,"commentsLen",0);U(this,"commentStack",[]);U(this,"pos",0);U(this,"type",140);U(this,"value",null);U(this,"start",0);U(this,"end",0);U(this,"lastTokEndLoc",null);U(this,"lastTokStartLoc",null);U(this,"context",[xe.brace]);U(this,"firstInvalidTemplateEscapePos",null);U(this,"strictErrors",new Map);U(this,"tokensLength",0)}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:s,startLine:n,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=s,this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new $r(n,i,s)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new $r(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new Cy;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},iP=function(e){return e>=48&&e<=57},Wm={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},za={bin:e=>e===48||e===49,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 Hm(e,t,r,s,n,i){let a=r,o=s,u=n,c="",p=null,l=r,{length:h}=t;for(;;){if(r>=h){i.unterminated(a,o,u),c+=t.slice(l,r);break}let d=t.charCodeAt(r);if(aP(e,d,t,r)){c+=t.slice(l,r);break}if(d===92){c+=t.slice(l,r);let m=oP(t,r,s,n,e==="template",i);m.ch===null&&!p?p={pos:r,lineStart:s,curLine:n}:c+=m.ch,{pos:r,lineStart:s,curLine:n}=m,l=r}else d===8232||d===8233?(++r,++n,s=r):d===10||d===13?e==="template"?(c+=t.slice(l,r)+`
|
|
119
|
+
`,++r,d===13&&t.charCodeAt(r)===10&&++r,++n,l=s=r):i.unterminated(a,o,u):++r}return{pos:r,str:c,firstInvalidLoc:p,lineStart:s,curLine:n}}function aP(e,t,r,s){return e==="template"?t===96||t===36&&r.charCodeAt(s+1)===123:t===(e==="double"?34:39)}function oP(e,t,r,s,n,i){let a=!n;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:s}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
|
|
120
|
+
`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=_l(e,t,r,s,2,!1,a,i),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=by(e,t,r,s,a,i),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);i.strictNumericEscape(t-1,r,s);default:if(u>=48&&u<=55){let c=t-1,p=/^[0-7]+/.exec(e.slice(c,t+2))[0],l=parseInt(p,8);l>255&&(p=p.slice(0,-1),l=parseInt(p,8)),t+=p.length-1;let h=e.charCodeAt(t);if(p!=="0"||h===56||h===57){if(n)return o(null);i.strictNumericEscape(c,r,s)}return o(String.fromCharCode(l))}return o(String.fromCharCode(u))}}function _l(e,t,r,s,n,i,a,o){let u=t,c;return{n:c,pos:t}=Fy(e,t,r,s,16,n,i,!1,o,!a),c===null&&(a?o.invalidEscapeSequence(u,r,s):t=u-1),{code:c,pos:t}}function Fy(e,t,r,s,n,i,a,o,u,c){let p=t,l=n===16?Wm.hex:Wm.decBinOct,h=n===16?za.hex:n===10?za.dec:n===8?za.oct:za.bin,d=!1,m=0;for(let f=0,D=i??1/0;f<D;++f){let g=e.charCodeAt(t),y;if(g===95&&o!=="bail"){let E=e.charCodeAt(t-1),A=e.charCodeAt(t+1);if(o){if(Number.isNaN(A)||!h(A)||l.has(E)||l.has(A)){if(c)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,s)}}else{if(c)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,s)}++t;continue}if(g>=97?y=g-97+10:g>=65?y=g-65+10:iP(g)?y=g-48:y=1/0,y>=n){if(y<=9&&c)return{n:null,pos:t};if(y<=9&&u.invalidDigit(t,r,s,n))y=0;else if(a)y=0,d=!0;else break}++t,m=m*n+y}return t===p||i!=null&&t-p!==i||d?{n:null,pos:t}:{n:m,pos:t}}function by(e,t,r,s,n,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=_l(e,t,r,s,e.indexOf("}",t)-t,!0,n,i),++t,o!==null&&o>1114111)if(n)i.invalidCodePoint(t,r,s);else return{code:null,pos:t}}else({code:o,pos:t}=_l(e,t,r,s,4,!1,n,i));return{code:o,pos:t}}function mi(e,t,r){return new $r(r,e-t,e)}var uP=new Set([103,109,115,105,121,117,100,118]),lP=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new Za(e.startLoc,e.endLoc)}},pP=class extends sP{constructor(t,r){super();U(this,"isLookahead");U(this,"tokens",[]);U(this,"errorHandlers_readInt",{invalidDigit:(t,r,s,n)=>this.optionFlags&2048?(this.raise(b.InvalidDigit,mi(t,r,s),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)});U(this,"errorHandlers_readCodePoint",Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}));U(this,"errorHandlers_readStringContents_string",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,r,s)=>{this.recordStrictModeErrors(b.StrictNumericEscape,mi(t,r,s))},unterminated:(t,r,s)=>{throw this.raise(b.UnterminatedString,mi(t-1,r,s))}}));U(this,"errorHandlers_readStringContents_template",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(t,r,s)=>{throw this.raise(b.UnterminatedTemplate,mi(t,r,s))}}));this.state=new nP,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new lP(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Tl.lastIndex=t,Tl.test(this.input)?Tl.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return vl.lastIndex=t,vl.test(this.input)?vl.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let s=this.input.charCodeAt(t);(s&64512)===56320&&(r=65536+((r&1023)<<10)+(s&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,s])=>this.raise(r,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let s=this.state.pos,n=this.input.indexOf(t,s+2);if(n===-1)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+t.length,Ha.lastIndex=s+2;Ha.test(this.input)&&Ha.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Ha.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(s+2,n),start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(n+t.length),loc:new Za(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(i),i}skipLineComment(t){let r=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!rn(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,a={type:"CommentLine",value:this.input.slice(r+t,i),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i),loc:new Za(s,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let s=this.input.charCodeAt(this.state.pos);switch(s){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++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 n=this.skipBlockComment("*/");n!==void 0&&(this.addComment(n),r?.push(n));break}case 47:{let n=this.skipLineComment(2);n!==void 0&&(this.addComment(n),r?.push(n));break}default:break e}break;default:if(Gk(s))++this.state.pos;else if(s===45&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(t===0||this.state.lineStart>t)){let i=this.skipLineComment(3);i!==void 0&&(this.addComment(i),r?.push(i))}else break e}else if(s===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let i=this.skipLineComment(4);i!==void 0&&(this.addComment(i),r?.push(i))}else break e}else break e}}if(r?.length>0){let s=this.state.pos,n={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());Jt(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!rn(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let s=this.input.slice(r+2,this.state.pos);return this.finishToken(28,s),!0}readToken_mult_modulo(t){let r=t===42?55:54,s=1,n=this.input.charCodeAt(this.state.pos+1);t===42&&n===42&&(s++,n=this.input.charCodeAt(this.state.pos+2),r=57),n===61&&!this.state.inType&&(s++,r=t===37?33:30),this.finishOp(r,s)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124&&r===62){this.finishOp(39,2);return}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let s=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+s)===61){this.finishOp(30,s+1);return}this.finishOp(52,s);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Jt(t)){this.readWord(t);return}}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let s=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,s,n,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(b.UnterminatedRegExp,Ct(t,1));let c=this.input.charCodeAt(i);if(rn(c))throw this.raise(b.UnterminatedRegExp,Ct(t,1));if(s)s=!1;else{if(c===91)n=!0;else if(c===93&&n)n=!1;else if(c===47&&!n)break;s=c===92}}let a=this.input.slice(r,i);++i;let o="",u=()=>Ct(t,i+2-r);for(;i<this.length;){let c=this.codePointAtPos(i),p=String.fromCharCode(c);if(uP.has(c))c===118?o.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,u()):c===117&&o.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,u()),o.includes(p)&&this.raise(b.DuplicateRegExpFlags,u());else if(Es(c)||c===92)this.raise(b.MalformedRegExpFlags,u());else break;++i,o+=p}this.state.pos=i,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,s=!1,n=!0){let{n:i,pos:a}=Fy(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,s,n,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(t){let r=this.state.pos,s=this.state.curPosition(),n=!1;this.state.pos+=2;let i=this.readInt(t);i==null&&this.raise(b.InvalidDigit,Ct(s,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,n=!0;else if(a===109)throw this.raise(b.InvalidDecimal,s);if(Jt(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(n){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,i)}readNumber(t){let r=this.state.pos,s=this.state.curPosition(),n=!1,i=!1,a=!1;!t&&this.readInt(10)===null&&this.raise(b.InvalidNumber,this.state.curPosition());let o=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(o){let l=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,s),!this.state.strict){let h=l.indexOf("_");h>0&&this.raise(b.ZeroDigitNumericSeparator,Ct(s,h))}a=o&&!/[89]/.test(l)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!a&&(++this.state.pos,this.readInt(10),n=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!a&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(b.InvalidOrMissingExponent,s),n=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((n||o)&&this.raise(b.InvalidBigIntLiteral,s),++this.state.pos,i=!0),Jt(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());let c=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(136,c);return}let p=a?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(t){let{code:r,pos:s}=by(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,r}readString(t){let{str:r,pos:s,curLine:n,lineStart:i}=Hm(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:s,pos:n,curLine:i,lineStart:a}=Hm("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=a,this.state.curLine=i,s&&(this.state.firstInvalidTemplateEscapePos=new $r(s.curLine,s.pos-s.lineStart,this.sourceToOffsetPos(s.pos))),this.input.codePointAt(n)===96?this.finishToken(24,s?null:t+r+"`"):(this.state.pos++,this.finishToken(25,s?null:t+r+"${"))}recordStrictModeErrors(t,r){let s=r.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,r):this.state.strictErrors.set(s,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",s=this.state.pos,n=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let i=this.codePointAtPos(this.state.pos);if(Es(i))this.state.pos+=i<=65535?1:2;else if(i===92){this.state.containsEsc=!0,r+=this.input.slice(n,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===s?Jt:Es;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;let u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(b.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(u)),n=this.state.pos}else break}return r+this.input.slice(n,this.state.pos)}readWord(t){let r=this.readWord1(t),s=Ul.get(r);s!==void 0?this.finishToken(s,Vr(s)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;Jl(t)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Vr(t)})}raise(t,r,s={}){let n=r instanceof $r?r:r.loc.start,i=t(n,s);if(!(this.optionFlags&2048))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(t,r,s={}){let n=r instanceof $r?r:r.loc.start,i=n.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let u=a[o];if(u.loc.index===i)return a[o]=t(n,s);if(u.loc.index<i)break}return this.raise(t,r,s)}updateContext(t){}unexpected(t,r){throw this.raise(b.UnexpectedToken,t??this.state.startLoc,{expected:r?Vr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(b.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,s,n)=>{this.raise(t,mi(r,s,n))}}},cP=class{constructor(){U(this,"privateNames",new Set);U(this,"loneAccessors",new Map);U(this,"undefinedPrivateNames",new Map)}},hP=class{constructor(e){U(this,"parser");U(this,"stack",[]);U(this,"undefinedPrivateNames",new Map);this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new cP)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,s]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,s):this.parser.raise(b.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:i}=this.current(),a=s.has(e);if(t&3){let o=a&&n.get(e);if(o){let u=o&4,c=t&4,p=o&3,l=t&3;a=p===l||u!==c,a||n.delete(e)}else a||n.set(e,t)}a&&this.parser.raise(b.PrivateNameRedeclaration,r,{identifierName:e}),s.add(e),i.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(b.InvalidPrivateFieldResolution,t,{identifierName:e})}},eo=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ty=class extends eo{constructor(t){super(t);U(this,"declarationErrors",new Map)}recordDeclarationError(t,r){let s=r.index;this.declarationErrors.set(s,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},dP=class{constructor(e){U(this,"parser");U(this,"stack",[new eo]);this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:s}=this,n=s.length-1,i=s[n];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,r);else return;i=s[--n]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,s=r[r.length-1],n=t.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,s=t[r];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(b.AwaitBindingIdentifier,e),s=t[--r]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([r,s])=>{this.parser.raise(r,s);let n=e.length-2,i=e[n];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(s.index),i=e[--n]})}};function fP(){return new eo(3)}function mP(){return new Ty(1)}function yP(){return new Ty(2)}function vy(){return new eo}var DP=class extends pP{addExtra(e,t,r,s=!0){if(!e)return;let{extra:n}=e;n==null&&(n={},e.extra=n),s?n[t]=r:Object.defineProperty(n,t,{enumerable:s,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(Es(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Vm(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Vm(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let s=e((n=null)=>{throw r.node=n,r});if(this.state.errors.length>t.errors.length){let n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=t,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:i,voidPatternLoc:a}=e,o=!!r||!!s||!!i||!!n||!!a;if(!t)return o;r!=null&&this.raise(b.InvalidCoverInitializedName,r),s!=null&&this.raise(b.DuplicateProto,s),n!=null&&this.raise(b.UnexpectedPrivateField,n),i!=null&&this.unexpected(i),a!=null&&this.raise(b.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return dy(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let n=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);let a=this.prodParam;this.prodParam=new eP;let o=this.classScope;this.classScope=new hP(this);let u=this.expressionScope;return this.expressionScope=new dP(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=s,this.scope=n,this.prodParam=a,this.classScope=o,this.expressionScope=u}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType==="commonjs";(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;this.optionFlags&4&&(r|=512),this.optionFlags&16&&(r|=48),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin("destructuringPrivate",t)}},Ya=class{constructor(){U(this,"shorthandAssignLoc",null);U(this,"doubleProtoLoc",null);U(this,"privateKeyLoc",null);U(this,"optionalParametersLoc",null);U(this,"voidPatternLoc",null)}},Ll=class{constructor(e,t,r){U(this,"type","");this.start=t,this.end=0,this.loc=new Za(r),e?.optionFlags&128&&(this.range=[t,0]),e?.filename&&(this.loc.filename=e.filename)}},zm=Ll.prototype,gP=class extends DP{startNode(){let e=this.state.startLoc;return new Ll(this,e.index,e)}startNodeAt(e){return new Ll(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.optionFlags&128&&(e.range[1]=r.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:s,loc:n,range:i,name:a}=e,o=Object.create(zm);return o.type=t,o.start=r,o.end=s,o.loc=n,o.range=i,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){let{type:t,start:r,end:s,loc:n,range:i,extra:a}=e,o=Object.create(zm);return o.type=t,o.start=r,o.end=s,o.loc=n,o.range=i,o.extra=a,o.value=e.value,o}},Ol=e=>e.type==="ParenthesizedExpression"?Ol(e.expression):e,EP=class extends gP{toAssignable(e,t=!1){let r;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(r=Ol(e),t?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):r.type!=="CallExpression"&&r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(b.InvalidParenthesizedAssignment,e):this.raise(b.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let s=0,n=e.properties.length,i=n-1;s<n;s++){let a=e.properties[s],o=s===i;this.toAssignableObjectExpressionProp(a,o,t),o&&a.type==="RestElement"&&e.extra?.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:s,value:n}=e;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.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":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case"AssignmentExpression":e.operator!=="="&&this.raise(b.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(b.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(r,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?b.PatternHasAccessor:b.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,r),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){let s=e.length-1;for(let n=0;n<=s;n++){let i=e[n];i&&(this.toAssignableListItem(e,n,r),i.type==="RestElement"&&(n<s?this.raise(b.RestTrailingComma,i):t&&this.raise(b.RestTrailingComma,t)))}}toAssignableListItem(e,t,r){let s=e[t];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,r)}else this.toAssignable(s,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let r=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===r||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(r=>r===null||this.isAssignable(r));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 r of e)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.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();this.next();let t=this.parseBindingAtom();return t.type==="VoidPattern"&&this.raise(b.UnexpectedVoidPattern,t),e.argument=t,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);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){let s=r&1,n=[],i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){let a=this.parseRestBinding();if(r&2&&(a=this.parseFunctionParamType(a)),n.push(a),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let a=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)a.push(this.parseDecorator());n.push(this.parseBindingElement(r,a))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(b.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){let r=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??(e=this.state.startLoc),t=t??this.parseBindingAtom(),!this.eat(29))return t;let r=this.startNodeAt(e);return t.type==="VoidPattern"&&this.raise(b.VoidPatternInitializer,t),r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r,s){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,s=!1,n=!1,i=!1,a=!1){let o=e.type;if(this.isObjectMethod(e))return;let u=this.isOptionalMemberExpression(e);if(u||o==="MemberExpression"){u&&(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression"&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:t})),r!==64&&this.raise(b.InvalidPropertyBindingPattern,e);return}if(o==="Identifier"){this.checkIdentifier(e,r,n);let{name:f}=e;s&&(s.has(f)?this.raise(b.ParamDupe,e):s.add(f));return}else o==="VoidPattern"&&t.type==="CatchClause"&&this.raise(b.VoidPatternCatchClauseParam,e);let c=Ol(e);a||(a=c.type==="CallExpression"&&(c.callee.type==="Import"||c.callee.type==="Super"));let p=this.isValidLVal(o,a,!(i||e.extra?.parenthesized)&&t.type==="AssignmentExpression",r);if(p===!0)return;if(p===!1){let f=r===64?b.InvalidLhs:b.InvalidLhsBinding;this.raise(f,e,{ancestor:t});return}let l,h;typeof p=="string"?(l=p,h=o==="ParenthesizedExpression"):[l,h]=p;let d=o==="ArrayPattern"||o==="ObjectPattern"?{type:o}:t,m=e[l];if(Array.isArray(m))for(let f of m)f&&this.checkLVal(f,d,r,s,n,h,!0);else m&&this.checkLVal(m,d,r,s,n,h,a)}checkIdentifier(e,t,r=!1){this.state.strict&&(r?xy(e.name,this.inModule):Ey(e.name))&&(t===64?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name==="let"&&this.raise(b.LetInLexicalBinding,e),t&64||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(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0):!1}},Sl=/in(?:stanceof)?|as|satisfies/y;function xP(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Jm(e){if(!e)throw new Error("Assert fail")}var G=zt`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' 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:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,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.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[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.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'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:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,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.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,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:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function AP(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 Xm(e){return e==="private"||e==="public"||e==="protected"}function CP(e){return e==="in"||e==="out"}function Ml(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&Ml(e.object);case"TSInstantiationExpression":return Ml(e.expression);default:return!1}}var FP=e=>class extends e{constructor(){super(...arguments);U(this,"tsParseInOutModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:G.InvalidModifierOnTypeParameter}));U(this,"tsParseConstModifier",this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:G.InvalidModifierOnTypeParameterPositions}));U(this,"tsParseInOutConstModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:G.InvalidModifierOnTypeParameter}))}getScopeHandler(){return Zk}tsIsIdentifier(){return ye(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,s,n){if(!ye(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(r.includes(i)){if(n&&this.match(106)||s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:s,stopOnStartOfClassStaticBlock:n,errorTemplate:i=G.InvalidModifierOnTypeMember},a){let o=(c,p,l,h)=>{p===l&&a[h]&&this.raise(G.InvalidModifiersOrder,c,{orderedModifiers:[l,h]})},u=(c,p,l,h)=>{(a[l]&&p===h||a[h]&&p===l)&&this.raise(G.IncompatibleModifiers,c,{modifiers:[l,h]})};for(;;){let{startLoc:c}=this.state,p=this.tsParseModifier(r.concat(s??[]),n,a.static);if(!p)break;Xm(p)?a.accessibility?this.raise(G.DuplicateAccessibilityModifier,c,{modifier:p}):(o(c,p,p,"override"),o(c,p,p,"static"),o(c,p,p,"readonly"),a.accessibility=p):CP(p)?(a[p]&&this.raise(G.DuplicateModifier,c,{modifier:p}),a[p]=!0,o(c,p,"in","out")):(Object.prototype.hasOwnProperty.call(a,p)?this.raise(G.DuplicateModifier,c,{modifier:p}):(o(c,p,"static","readonly"),o(c,p,"static","override"),o(c,p,"override","readonly"),o(c,p,"abstract","override"),u(c,p,"declare","override"),u(c,p,"static","abstract")),a[p]=!0),s?.includes(p)&&this.raise(i,c,{modifier:p})}}tsIsListTerminator(r){switch(r){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(r,s){let n=[];for(;!this.tsIsListTerminator(r);)n.push(s());return n}tsParseDelimitedList(r,s,n){return xP(this.tsParseDelimitedListWorker(r,s,!0,n))}tsParseDelimitedListWorker(r,s,n,i){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let u=s();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;n&&this.expect(12);return}return i&&(i.value=o),a}tsParseBracketedList(r,s,n,i,a){i||(n?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,s,a);return n?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.tsParseLiteralTypeNode():(this.raise(G.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=this.tsParseNonConditionalType()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let s=this.startNode();return this.isContextual(76)?(s.method=!1,s.key=this.parseIdentifier(!0),s.computed=!1,s.shorthand=!1):this.unexpected(null,76),this.expect(14),s.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(s)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),s=[];for(this.expect(5);!this.match(8);){let n=this.state.type;ye(n)||n===134?s.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=s,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let s;if(r&1&&this.match(78))if(r&2)s=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),s=this.finishNode(n,"ThisExpression")}else s=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let n=this.startNodeAtNode(s);n.left=s,n.right=this.parseIdentifier(!!(r&1)),s=this.finishNode(n,"TSQualifiedName")}return s}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let s=this.startNodeAtNode(r);return s.parameterName=r,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let s=this.startNode();return r(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let s=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,n),s.params.length===0&&this.raise(G.EmptyTypeParameters,s),n.value!==-1&&this.addExtra(s,"trailingComma",n.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(r,s){let n=r===19,i="params",a="returnType";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[i]=this.tsParseBindingListForSignature(),n?s[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(s[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let s of r){let{type:n}=s;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(G.UnsupportedSignatureParameterKind,s,{type:n})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),ye(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),r.parameters=[s];let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,s){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){s&&this.raise(G.ReadonlyForMethodSignature,r);let n=r;n.kind&&this.match(47)&&this.raise(G.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let i="params",a="returnType";if(n.kind==="get")n[i].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(n[i][0])&&this.raise(G.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[i].length!==1)this.raise(b.BadSetterArity,this.state.curPosition());else{let o=n[i][0];this.isThisParam(o)&&this.raise(G.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(G.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(G.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[a]&&this.raise(G.SetAccessorCannotHaveReturnType,n[a])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=r;s&&(n.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(n.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r),this.tsTryParseIndexSignature(r)||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.key=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return r.elementTypes.forEach(n=>{let{type:i}=n;s&&i!=="TSRestType"&&i!=="TSOptionalType"&&!(i==="TSNamedTupleMember"&&n.optional)&&this.raise(G.OptionalTypeBeforeRequired,n),s||(s=i==="TSNamedTupleMember"&&n.optional||i==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,s=this.eat(21),{startLoc:n}=this.state,i,a,o,u,c=St(this.state.type)?this.lookaheadCharCode():null;if(c===58)i=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),u=this.tsParseType();else if(c===63){o=!0;let p=this.state.value,l=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,a=this.createIdentifier(this.startNodeAt(n),p),this.expect(17),this.expect(14),u=this.tsParseType()):(i=!1,u=l,this.expect(17))}else u=this.tsParseType(),o=this.eat(17),i=this.eat(14);if(i){let p;a?(p=this.startNodeAt(n),p.optional=o,p.label=a,p.elementType=u,this.eat(17)&&(p.optional=!0,this.raise(G.TupleOptionalAfterType,this.state.lastTokStartLoc))):(p=this.startNodeAt(n),p.optional=o,this.raise(G.InvalidTupleMemberLabel,u),p.label=u,p.elementType=this.tsParseType()),u=this.finishNode(p,"TSNamedTupleMember")}else if(o){let p=this.startNodeAt(n);p.typeAnnotation=u,u=this.finishNode(p,"TSOptionalType")}if(s){let p=this.startNodeAt(r);p.typeAnnotation=u,u=this.finishNode(p,"TSRestType")}return u}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,s){let n=this.startNode();return r==="TSConstructorType"&&(n.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.state.startLoc,s=this.parseTemplateElement(!1),n=[s];if(s.tail){let i=this.startNodeAt(r),a=this.startNodeAt(r);return a.expressions=[],a.quasis=n,i.literal=this.finishNode(a,"TemplateLiteral"),this.finishNode(i,"TSLiteralType")}else{let i=[];for(;!s.tail;)i.push(this.tsParseType()),this.readTemplateContinuation(),n.push(s=this.parseTemplateElement(!1));let a=this.startNodeAt(r);return a.types=i,a.quasis=n,this.finishNode(a,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),s=this.lookahead();return s.type!==135&&s.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"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:if(!(this.optionFlags&1024)){let r=this.state.startLoc;this.next();let s=this.tsParseType();return this.expect(11),this.addExtra(s,"parenthesized",!0),this.addExtra(s,"parenStart",r.index),s}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(ye(r)||r===88||r===84){let s=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":AP(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,s)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,s=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(r);n.elementType=s,this.expect(3),s=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(r);n.objectType=s,n.indexType=this.tsParseType(),this.expect(3),s=this.finishNode(n,"TSIndexedAccessType")}return s}tsParseTypeOperator(){let r=this.startNode(),s=this.state.value;return this.next(),r.operator=s,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(G.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return wk(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,s,n){let i=this.startNode(),a=this.eat(n),o=[];do o.push(s());while(this.eat(n));return o.length===1&&!a?o[0]:(i.types=o,this.finishNode(i,r))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ye(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,s=r.length;try{return this.parseObjectLike(8,!0),r.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,s=r.length;try{return super.parseBindingList(3,93,1),r.length===s}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(r){return this.tsInType(()=>{let s=this.startNode();this.expect(r);let n=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(n.parameterName=u,n.asserts=!0,n.typeAnnotation=null,u=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(u,n),u.asserts=!0),s.typeAnnotation=u,this.finishNode(s,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return i?(n.parameterName=this.parseIdentifier(),n.asserts=i,n.typeAnnotation=null,s.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return n.parameterName=a,n.typeAnnotation=o,n.asserts=i,s.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!ye(this.state.type)&&!this.match(78)?!1:(r&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,s=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Jm(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let s=this.startNodeAtNode(r);return s.checkType=r,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}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(G.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let s=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let i=super.parseExprSubscripts();Ml(i)||this.raise(G.InvalidHeritageClauseType,i.loc.start,{token:r});let a=r==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(i.type==="TSInstantiationExpression")return i.type=a,i;let o=this.startNodeAtNode(i);return o.expression=i,(this.match(47)||this.match(51))&&(o.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(o,a)}});return n.length||this.raise(G.EmptyHeritageClauseType,s,{token:r}),n}tsParseInterfaceDeclaration(r,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),s.declare&&(r.declare=!0),ye(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(G.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==xe.brace){let s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else return r()}tsInType(r){let s=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(r){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(r){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,s={}){return s.const&&(r.const=!0),s.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),r.body=this.tsParseEnumBody(),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,s=!1){return r.id=this.tsParseEntityName(1),r.id.type==="Identifier"&&this.checkIdentifier(r.id,1024),this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,s,n){r.id=s||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let i=this.tsParseModuleReference();return r.importKind==="type"&&i.type!=="TSExternalModuleReference"&&this.raise(G.ImportAliasHasImportType,i),r.moduleReference=i,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let s=this.state.clone(),n=r();return this.state=s,n}tsTryParseAndCatch(r){let s=this.tryParse(n=>r()||n());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(r){let s=this.state.clone(),n=r();if(n!==void 0&&n!==!1)return n;this.state=s}tsTryParseDeclare(r){if(this.isLineTerminator())return;let s=this.state.type;return this.tsInAmbientContext(()=>{switch(s){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(G.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(G.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(r,{declare:!0});if(n)return n}default:if(ye(s))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,s,n,i){switch(s){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||ye(this.state.type)))return this.tsParseAbstractDeclaration(r,i);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(ye(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(n)&&ye(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(n)&&ye(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let i=this.startNodeAt(r);return i.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(i),i.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),i});if(this.state.maybeInArrowParameters=s,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(G.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===xe.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return kk(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,s){let n=s.length?s[0].loc.start:this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);let a=i.accessibility,o=i.override,u=i.readonly;!(r&4)&&(a||u||o)&&this.raise(G.UnexpectedParameterModifier,n);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let p=this.parseMaybeDefault(c.loc.start,c);if(a||u||o){let l=this.startNodeAt(n);return s.length&&(l.decorators=s),a&&(l.accessibility=a),u&&(l.readonly=u),o&&(l.override=o),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(G.UnsupportedParameterPropertyKind,l),l.parameter=p,this.finishNode(l,"TSParameterProperty")}return s.length&&(c.decorators=s),p}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let s of r.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(G.PatternIsOptional,s)}setArrowFunctionParameters(r,s,n){super.setArrowFunctionParameters(r,s,n),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,s,n=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let i=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,i):i==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(G.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,i,n):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,s,n))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(s=>{s?.type==="TSTypeCastExpression"&&this.raise(G.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(r,s){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,s,n){let i=super.parseArrayLike(r,s,n);return i.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(r,s,n,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return i.stop=!0,r;i.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,u=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(s);if(h)return i.stop=!0,h}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Nl(this.state.type)){let h=super.parseTaggedTemplateExpression(r,s,i);return h.typeArguments=c,h}if(!n&&this.eat(10)){let h=this.startNodeAt(s);return h.callee=r,h.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeArguments=c,i.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,i.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&Di(p)&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(s);return l.expression=r,l.typeArguments=c,this.finishNode(l,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(G.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(u.expression=super.stopParseSubscript(r,i))),u}return super.parseSubscript(r,s,n,i)}parseNewCallee(r){super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!s.extra?.parenthesized&&(r.typeArguments=s.typeArguments,r.callee=s.expression)}parseExprOp(r,s,n){let i;if(Ka(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){let a=this.startNodeAt(s);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(i&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,s,n)}return super.parseExprOp(r,s,n)}checkReservedWord(r,s,n,i){this.state.isAmbientContext||super.checkReservedWord(r,s,n,i)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(G.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return r?s===123||s===42:s!==61}return!r&&this.isContextual(87)}applyImportPhase(r,s,n,i){super.applyImportPhase(r,s,n,i),s?r.exportKind=n==="type"?"type":"value":r.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let s;if(ye(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,n);s=super.parseImportSpecifiersAndAfter(r,n)}else s=super.parseImport(r);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(G.TypeImportCannotSpecifyDefaultAndNamed,s),s}parseExport(r,s){if(this.match(83)){let n=this.startNode();this.next();let i=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(n,!1):n.importKind="value";let a=this.tsParseImportEqualsDeclaration(n,i,!0);return r.attributes=[],r.declaration=a,r.exportKind="value",r.source=null,r.specifiers=[],this.finishNode(r,"ExportNamedDeclaration")}else if(this.eat(29)){let n=r;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=r;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(r,s)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,s,n=!1){let{isAmbientContext:i}=this.state,a=super.parseVarStatement(r,s,n||i);if(!i)return a;if(!r.declare&&(s==="using"||s==="await using"))return this.raiseOverwrite(G.UsingDeclarationInAmbientContext,r,s),a;for(let{id:o,init:u}of a.declarations)u&&(s==="var"||s==="let"||o.typeAnnotation?this.raise(G.InitializerNotAllowedInAmbientContext,u):TP(u,this.hasPlugin("estree"))||this.raise(G.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,s){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,i=this.startNode();this.next();let a=n===125?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,s);return a?(n===125&&(a.declare=!0),a):(i.expression=this.createIdentifier(this.startNodeAt(i.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(i,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,s)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,s)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(r,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,s){return s.some(n=>Xm(n)?r.accessibility===n:!!r[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,s,n){let i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:G.InvalidModifierOnTypeParameterPositions},s);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,i)&&this.raise(G.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,s)):this.parseClassMemberWithIsStatic(r,s,n,!!s.static)};s.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,s,n,i){let a=this.tsTryParseIndexSignature(s);if(a){r.body.push(a),s.abstract&&this.raise(G.IndexSignatureHasAbstract,s),s.accessibility&&this.raise(G.IndexSignatureHasAccessibility,s,{modifier:s.accessibility}),s.declare&&this.raise(G.IndexSignatureHasDeclare,s),s.override&&this.raise(G.IndexSignatureHasOverride,s);return}!this.state.inAbstractClass&&s.abstract&&this.raise(G.NonAbstractClassHasAbstractMethod,s),s.override&&(n.hadSuperClass||this.raise(G.OverrideNotInSubClass,s)),super.parseClassMemberWithIsStatic(r,s,n,i)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(G.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(G.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,s,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let i=this.lookaheadCharCode();if(i===44||i===61||i===58||i===41)return this.setOptionalParametersError(n),r}return super.parseConditional(r,s,n)}parseParenItem(r,s){let n=super.parseParenItem(r,s);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let i=this.startNodeAt(s);return i.expression=r,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let s=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(G.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let i=ye(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return i?((i.type==="TSInterfaceDeclaration"||i.type==="TSTypeAliasDeclaration"||n)&&(r.exportKind="type"),n&&i.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(i,s),i.declare=!0),i):null}parseClassId(r,s,n,i){if((!s||n)&&this.isContextual(113))return;super.parseClassId(r,s,n,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(r.typeAnnotation=s)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(G.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:s}=r;this.raise(G.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!r.computed?s.name:`[${this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(G.PrivateElementHasAbstract,r),r.accessibility&&this.raise(G.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(G.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,s,n,i,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(G.ConstructorHasTypeParameters,u);let{declare:c=!1,kind:p}=s;c&&(p==="get"||p==="set")&&this.raise(G.DeclareAccessor,s,{kind:p}),u&&(s.typeParameters=u),super.pushClassMethod(r,s,n,i,a,o)}pushClassPrivateMethod(r,s,n,i){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(s.typeParameters=a),super.pushClassPrivateMethod(r,s,n,i)}declareClassPrivateMethodInScope(r,s){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,s))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,s,n,i,a,o,u){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(r.typeParameters=c),super.parseObjPropValue(r,s,n,i,a,o,u)}parseFunctionParams(r,s){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(r.typeParameters=n),super.parseFunctionParams(r,s)}parseVarId(r,s){super.parseVarId(r,s),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(r.id.typeAnnotation=n,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,s){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,s)}parseMaybeAssign(r,s){let n,i,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(r,s),n),!i.error)return i.node;let{context:c}=this.state,p=c[c.length-1];(p===xe.j_oTag||p===xe.j_expr)&&c.pop()}if(!i?.error&&!this.match(47))return super.parseMaybeAssign(r,s);(!n||n===this.state)&&(n=this.state.clone());let o,u=this.tryParse(c=>{o=this.tsParseTypeParameters(this.tsParseConstModifier);let p=super.parseMaybeAssign(r,s);if((p.type!=="ArrowFunctionExpression"||p.extra?.parenthesized)&&c(),o?.params.length!==0&&this.resetStartLocationFromNode(p,o),p.typeParameters=o,this.hasPlugin("jsx")&&p.typeParameters.params.length===1&&!p.typeParameters.extra?.trailingComma){let l=p.typeParameters.params[0];l.constraint||this.raise(G.SingleTypeParameterWithoutTrailingComma,Ct(l.loc.end,1),{typeParameterName:l.name.name})}return p},n);if(!u.error&&!u.aborted)return o&&this.reportReservedArrowTypeParam(o),u.node;if(!i&&(Jm(!this.hasPlugin("jsx")),a=this.tryParse(()=>super.parseMaybeAssign(r,s),n),!a.error))return a.node;if(i?.node)return this.state=i.failState,i.node;if(u.node)return this.state=u.failState,o&&this.reportReservedArrowTypeParam(o),u.node;if(a?.node)return this.state=a.failState,a.node;throw i?.error||u.error||a?.error}reportReservedArrowTypeParam(r){r.params.length===1&&!r.params[0].constraint&&!r.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(G.ReservedArrowTypeParam,r)}parseMaybeUnary(r,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,s)}parseArrow(r){if(this.match(14)){let s=this.tryParse(n=>{let i=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),i});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),r.returnType=s.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.resetEndLocation(r),r}isAssignable(r,s){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(r,s)}}toAssignable(r,s=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(G.UnexpectedTypeCastInParameter,r):this.raise(G.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,s);break;case"AssignmentExpression":!s&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,s)}}toAssignableParenthesizedExpression(r,s){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,s);break;default:super.toAssignable(r,s)}}checkToRestConversion(r,s){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,s)}}isValidLVal(r,s,n,i){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,s,n,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,s){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(r,s);return i.typeArguments=n,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,s)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,s){let n=super.parseMaybeDefault(r,s);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(G.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,s,n){let i=r[s];i.type==="TSTypeCastExpression"&&(r[s]=this.typeCastToParameter(i)),super.toAssignableListItem(r,s,n)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(s=>this.isAssignable(s,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(r.typeArguments=s)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let s=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?s+1:s}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:s,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=s,this.state.strict=n}}parseClass(r,s,n){let i=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,s,n)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(r,s){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(G.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,s,n,i,a,o,u){let c=super.parseMethod(r,s,n,i,a,o,u);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:p}=c;this.raise(G.AbstractMethodHasImplementation,c,{methodName:p.type==="Identifier"&&!c.computed?p.name:`[${this.input.slice(this.offsetToSourcePos(p.start),this.offsetToSourcePos(p.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier()}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(r,s,n,i){return!s&&i?(this.parseTypeOnlyImportExportSpecifier(r,!1,n),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,s,n,i))}parseImportSpecifier(r,s,n,i,a){return!s&&i?(this.parseTypeOnlyImportExportSpecifier(r,!0,n),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,s,n,i,n?4098:4096))}parseTypeOnlyImportExportSpecifier(r,s,n){let i=s?"imported":"local",a=s?"local":"exported",o=r[i],u,c=!1,p=!0,l=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let m=this.parseIdentifier();St(this.state.type)?(c=!0,o=d,u=s?this.parseIdentifier():this.parseModuleExportName(),p=!1):(u=m,p=!1)}else St(this.state.type)?(p=!1,u=s?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=d)}else St(this.state.type)&&(c=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&n&&this.raise(s?G.TypeModifierIsUsedInTypeImports:G.TypeModifierIsUsedInTypeExports,l),r[i]=o,r[a]=u;let h=s?"importKind":"exportKind";r[h]=c?"type":"value",p&&this.eatContextual(93)&&(r[a]=s?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[i])),s&&this.checkIdentifier(r[a],c?4098:4096)}fillOptionalPropertiesForTSESLint(r){switch(r.type){case"ExpressionStatement":r.directive??(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":r.decorators??(r.decorators=[]),r.optional??(r.optional=!1),r.typeAnnotation??(r.typeAnnotation=void 0);return;case"TSParameterProperty":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":r.declare??(r.declare=!1),r.returnType??(r.returnType=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"Property":r.optional??(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":r.optional??(r.optional=!1);case"TSIndexSignature":r.accessibility??(r.accessibility=void 0),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":r.declare??(r.declare=!1),r.definite??(r.definite=!1),r.readonly??(r.readonly=!1),r.typeAnnotation??(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.optional??(r.optional=!1);return;case"ClassExpression":r.id??(r.id=null);case"ClassDeclaration":r.abstract??(r.abstract=!1),r.declare??(r.declare=!1),r.decorators??(r.decorators=[]),r.implements??(r.implements=[]),r.superTypeArguments??(r.superTypeArguments=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":r.declare??(r.declare=!1);return;case"VariableDeclarator":r.definite??(r.definite=!1);return;case"TSEnumDeclaration":r.const??(r.const=!1),r.declare??(r.declare=!1);return;case"TSEnumMember":r.computed??(r.computed=!1);return;case"TSImportType":r.qualifier??(r.qualifier=null),r.options??(r.options=null),r.typeArguments??(r.typeArguments=null);return;case"TSInterfaceDeclaration":r.declare??(r.declare=!1),r.extends??(r.extends=[]);return;case"TSMappedType":r.optional??(r.optional=!1),r.readonly??(r.readonly=void 0);return;case"TSModuleDeclaration":r.declare??(r.declare=!1),r.global??(r.global=r.kind==="global");return;case"TSTypeParameter":r.const??(r.const=!1),r.in??(r.in=!1),r.out??(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,s){if(Jt(r)){if(Sl.lastIndex=s,Sl.test(this.input)){let n=this.codePointAtPos(Sl.lastIndex);if(!Es(n)&&n!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),s=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(s,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),s=this.codePointAtPos(r);return this.chStartsBindingIdentifier(s,r)||s===34||s===39}};function bP(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:wy(e.object)}function TP(e,t){let{type:r}=e;if(e.extra?.parenthesized)return!1;if(t){if(r==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(Sy(e,t)||vP(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||bP(e))}function Sy(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function vP(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:s}=e;if(r==="-"&&Sy(s,t))return!0}return!1}function wy(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:wy(e.object)}var Km=zt`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),SP=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let s=t;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=r,s}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,s,n){t!==void 0&&super.checkReservedWord(t,r,s,n)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,s,n){return t==="Placeholder"||super.isValidLVal(t,r,s,n)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let s=t;return s.name=r.name,this.finishPlaceholder(s,"Statement")}parseBlock(t,r,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,s)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,s){let n=r?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else{if(s||!r)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,n);throw this.raise(Km.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,s);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,n)}parseExport(t,r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(t,r);let n=t;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=s,n.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(n,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Vr(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){return t.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r?.length&&(t.specifiers=r.filter(s=>s.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let s=this.startNodeAtNode(r);return s.local=r,t.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Km.UnexpectedSpace,this.state.lastTokEndLoc)}},wP=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),ye(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(r,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},Gm=["fsharp","hack"],Ym=["^^","@@","^","%","#"];function kP(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){let t=e.get("pipelineOperator").proposal;if(!Gm.includes(t)){let r=Gm.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=e.get("pipelineOperator").topicToken;if(!Ym.includes(r)){let s=Ym.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var ky={estree:gk,jsx:Yk,flow:Xk,typescript:FP,v8intrinsic:wP,placeholders:SP},PP=Object.keys(ky),BP=class extends EP{checkProto(e,t,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?t?(this.raise(b.RecordNoProto,n),!0):(r&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(b.DuplicateProto,n)),!0):r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(b.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(b.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(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 s=this.startNodeAt(t);for(s.expressions=[r];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"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){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let r=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let o=this.parseYield(r);return t&&(o=t.call(this,o,r)),o}let n;e?n=!1:(e=new Ya,n=!0);let{type:i}=this.state;(i===10||ye(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,r)),Fk(this.state.type)){let o=this.startNodeAt(r),u=this.state.value;if(o.operator=u,this.match(29)){this.toAssignable(a,!0),o.left=a;let c=r.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=c&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=c&&(e.voidPatternLoc=null)}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression"),void 0,void 0,void 0,void 0,u==="||="||u==="&&="||u==="??="),o}else n&&this.checkExpressionErrors(e,!0);if(s){let{type:o}=this.state;if((this.hasPlugin("v8intrinsic")?Di(o):Di(o)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(b.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,r)?s:this.parseConditional(s,t,e)}parseConditional(e,t,r){if(this.eat(17)){let s=this.startNodeAt(t);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,r)?s:this.parseExprOp(s,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(r>=Ka(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(Tk(s)&&(this.prodParam.hasIn||!this.match(58))){let n=Ka(s);if(n>r){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;let a=s===41||s===42,o=s===40;o&&(n=Ka(42)),this.next(),i.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(i,a||o?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(o&&(c===41||c===42)||a&&c===40)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,t,r)}}return e}parseExprOpRightExpr(e,t){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,Pk(e)?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return ck.has(t.type)&&!t.extra?.parenthesized&&this.raise(b.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let o=this.parseAwait(r);return t||this.checkExponentialAfterUnary(o),o}let n=this.match(34),i=this.startNode();if(Sk(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let o=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){let u=i.argument;u.type==="Identifier"?this.raise(b.StrictDelete,i):this.hasPropertyAsPrivateName(u)&&this.raise(b.DeletePrivateField,i)}if(!n)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}let a=this.parseUpdate(i,n,e);if(s){let{type:o}=this.state;if((this.hasPlugin("v8intrinsic")?Di(o):Di(o)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(b.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let i=e;return this.checkLVal(i.argument,this.finishNode(i,"UpdateExpression")),e}let s=this.state.startLoc,n=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return n;for(;vk(this.state.type)&&!this.canInsertSemicolon();){let i=this.startNodeAt(s);i.operator=this.state.value,i.prefix=!1,i.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(i,"UpdateExpression"))}return n}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,r)?s:this.parseSubscripts(s,t)}parseSubscripts(e,t,r){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,r,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,t,r,s){let{type:n}=this.state;if(!r&&n===15)return this.parseBind(e,t,r,s);if(Nl(n))return this.parseTaggedTemplateExpression(e,t,s);let i=!1;if(n===18){if(r&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,s,i);{let a=this.eat(0);return a||i||this.eat(16)?this.parseMember(e,t,s,a,i):this.stopParseSubscript(e,s)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,s,n){let i=this.startNodeAt(t);return i.object=e,i.computed=s,s?(i.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(b.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=n,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,s){let n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,s){let n=this.state.maybeInArrowParameters,i=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(yP()),i=new Ya),u&&(a.optional=s),s?a.arguments=this.parseCallExpressionArguments():a.arguments=this.parseCallExpressionArguments(e.type!=="Super",a,i);let c=this.finishCallExpression(a,u);return o&&this.shouldParseAsyncArrow()&&!s?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=n,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let s=this.startNodeAt(t);return s.tag=e,s.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(b.ImportCallArity,e);else for(let r of e.arguments)r.type==="SpreadElement"&&this.raise(b.ImportCallSpreadArgument,r);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let s=[],n=!0,i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}s.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=i,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&sn(e,t.innerComments),t.callee.trailingComments&&sn(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:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(b.UnsupportedImport,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 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134: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 n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,e);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 n=t.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(b.UnsupportedBind,n)}case 139:return this.raise(b.PrivateInExpectedIn,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 n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw Jt(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(ye(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,i=this.state.containsEsc,a=this.parseIdentifier();if(!i&&a.name==="async"&&!this.canInsertSemicolon()){let{type:o}=this.state;if(o===68)return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(a));if(ye(o))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a)):a;if(o===90)return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1)):a}else throw 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=Ct(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(t,r,e,s)}finishTopicReference(e,t,r,s){if(this.testTopicReferenceConfiguration(r,t,s))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:Vr(s)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Vr(r)}]);case"smart":return r===27;default:throw this.raise(b.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Ga(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,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(2),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.raise(b.SuperNotAllowed,e):this.scope.allowSuper||this.raise(b.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(b.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(Ct(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(103)?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 s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||s)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(b.ImportMetaOutsideModule,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(this.offsetToSourcePos(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){{let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}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=this.state.startLoc,r;this.next(),this.expressionScope.enter(mP());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let i=this.state.startLoc,a=[],o=new Ya,u=!0,c,p;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let d=this.state.startLoc;if(c=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),d)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}let l=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let h=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,a,!1),h):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),c&&this.unexpected(c),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(i),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,l)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))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.allowNewTarget||this.raise(b.UnexpectedNewTarget,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){let t=this.match(83),r=this.parseNoCallExpr();e.callee=r,t&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(b.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:s,value:n}=this.state,i=t+1,a=this.startNodeAt(Ct(r,1));n===null&&(e||this.raise(b.InvalidEscapeSequenceTemplate,Ct(this.state.firstInvalidTemplateEscapePos,1)));let o=this.match(24),u=o?-1:-2,c=s+u;a.value={raw:this.input.slice(i,c).replace(/\r\n?/g,`
|
|
121
|
+
`),cooked:n===null?null:n.slice(1,u)},a.tail=o,this.next();let p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,Ct(this.state.lastTokEndLoc,u)),p}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),s=[r],n=[];for(;!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=s,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,s){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=!1,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 c;t?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(s),i=this.checkProto(c,r,i,s)),r&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(b.InvalidRecordProperty,c),o.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(o,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let r=this.startNode(),s=!1,n=!1,i;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(i=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let{key:u}=r,c=u.name;c==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),a=this.eat(55),this.parsePropertyName(r)),(c==="get"||c==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),r.kind=c,this.match(55)&&(a=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,i,a,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==t&&this.raise(e.kind==="get"?b.BadGetterArity:b.BadSetterArity,e),e.kind==="set"&&r[r.length-1]?.type==="RestElement"&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,s,n){if(n){let i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}if(r||t||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,s){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,s,n,i,a){let o=this.parseObjectMethod(e,r,s,n,i)||this.parseObjectProperty(e,t,n,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{type:r,value:s}=this.state,n;if(St(r))n=this.parseIdentifier(!0);else switch(r){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let i=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=i):this.raise(b.UnexpectedPrivateField,i),n=this.parsePrivateName();break}default:this.unexpected()}e.key=n,r!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,s,n,i,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(n?32:0)),this.prodParam.enter(Ga(r,e.generator)),this.parseFunctionParams(e,s);let o=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r){t&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!t,r,n),this.state.inFSharpPipelineDirectBody=s,this.finishNode(n,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,s){this.scope.enter(518);let n=Ga(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);let i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){let s=t&&!this.match(5);if(this.expressionScope.enter(vy()),s)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()|4),e.body=this.parseBlock(!0,!1,a=>{let o=!this.isSimpleParamList(e.params);a&&o&&this.raise(b.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let u=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!o,t,u),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,u)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}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,s=!0){let n=!t&&new Set,i={type:"FormalParameters"};for(let a of e.params)this.checkLVal(a,i,5,n,s)}parseExprList(e,t,r,s){let n=[],i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(e,t,r))}return n}parseExprListItem(e,t,r,s){let n;if(this.match(12))t||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(r),i)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);let i=this.startNode();this.next(),n=this.finishNode(i,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,r,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")}createIdentifierAt(e,t,r){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t,{startLoc:r,type:s}=this.state;St(s)?t=this.state.value:this.unexpected();let n=Ak(s);return e?n&&this.replaceToken(132):this.checkReservedWord(t,r,n,!1),this.next(),t}checkReservedWord(e,t,r,s){if(!(e.length>10||!Uk(e))){if(r&&Mk(e)){this.raise(b.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?s?xy:gy:Dy)(e,this.inModule)){this.raise(b.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(b.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(b.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(b.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(b.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Nl(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(b.YieldInParameter,t);let r=!1,s=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}return t.delegate=r,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(b.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(b.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{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(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,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){return e()}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(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&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 s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,s}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")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(t!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}},wl={kind:1},NP={kind:2},IP=/[\uD800-\uDFFF]/u,kl=/in(?:stanceof)?/y;function _P(e,t,r){for(let s=0;s<e.length;s++){let n=e[s],{type:i}=n;typeof i=="number"&&(n.type=fy(i))}return e}var LP=class extends BP{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256&&(e.tokens=_P(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,i]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,i,{localName:n});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return t===140?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",Ct(this.state.startLoc,-1)),s}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),s=r.value,n=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),i=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",s),t.value=r,delete e.expression,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(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(Jt(e)){if(kl.lastIndex=t,kl.test(this.input)){let r=this.codePointAtPos(kl.lastIndex);if(!Es(r)&&r!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let 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,s=this.startNode(),n=!!(e&2),i=!!(e&4),a=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return i||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&i);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,s):this.raise(b.UnexpectedLexicalDeclaration,s):this.raise(b.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:n||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(s,c)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!(this.optionFlags&8)&&!a&&this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next();let c;return r===83?c=this.parseImport(s):c=this.parseExport(s,t),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return n||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&i)}let o=this.state.value,u=this.parseExpression();return ye(r)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,o,u,e):this.parseExpressionStatement(s,u,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(b.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,r){return e&&(t.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(b.DecoratorsBeforeAfterExport,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(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let s=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(s,r);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r&&this.raise(b.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(t);s.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,r=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"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 s=this.state.labels[r];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(t||s.kind===1)||e.label&&t))break}if(r===this.state.labels.length){let s=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:s})}}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(wl),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(wl);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(100);{let o=this.isAwaitUsing(),u=o||this.isForUsing(),c=r&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||c){let p=this.startNode(),l;o?(l="await using",this.recordAwaitIfAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):l=this.state.value,this.next(),this.parseVar(p,!0,l);let h=this.finishNode(p,"VariableDeclaration"),d=this.match(58);return d&&u&&this.raise(b.ForInUsing,h),(d||this.isContextual(102))&&h.declarations.length===1?this.parseForIn(e,h,t):(t!==null&&this.unexpected(t),this.parseFor(e,h))}}let s=this.isContextual(95),n=new Ya,i=this.parseExpression(!0,n),a=this.isContextual(102);if(a&&(r&&this.raise(b.ForOfLet,i),t===null&&s&&i.type==="Identifier"&&this.raise(b.ForOfAsync,i)),a||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(i,!0);let o=a?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:o}),this.parseForIn(e,i,t)}else this.checkExpressionErrors(n,!0);return t!==null&&this.unexpected(t),this.parseFor(e,i)}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.raise(b.IllegalReturn,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=e.cases=[];this.expect(5),this.state.labels.push(NP),this.scope.enter(256);let r;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(s&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,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&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),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(0)),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(b.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){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(wl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(b.StrictWith,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,s){for(let i of this.state.labels)i.name===t&&this.raise(b.LabelRedeclaration,r,{labelName:t});let n=bk(this.state.type)?1:this.match(71)?2:null;for(let i=this.state.labels.length-1;i>=0;i--){let a=this.state.labels[i];if(a.statementStart===e.start)a.statementStart=this.sourceToOffsetPos(this.state.start),a.kind=n;else break}return this.state.labels.push({name:t,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=s&8?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(e=!1,t=!0,r){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,r),t&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,s,n){let i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,r,s,n)}parseBlockOrModuleBlockBody(e,t,r,s,n){let i=this.state.strict,a=!1,o=!1;for(;!this.match(s);){let u=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(u)){let c=this.stmtToDirective(u);t.push(c),!a&&c.value.value==="use strict"&&(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(u)}n?.call(this,a),i||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 s=this.match(58);return this.next(),s?r!==null&&this.unexpected(r):e.await=r!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(b.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,s=!1){let n=e.declarations=[];for(e.kind=r;;){let i=this.startNode();if(this.parseVarId(i,r),i.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,i.init===null&&!s&&(i.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})),n.push(this.finishNode(i,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();t==="using"||t==="await using"?(r.type==="ArrayPattern"||r.type==="ObjectPattern")&&this.raise(b.UsingDeclarationHasBindingPattern,r.loc.start):r.type==="VoidPattern"&&this.raise(b.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=t&2,s=!!(t&1),n=s&&!(t&4),i=!!(t&8);this.initFunction(e,i),this.match(55)&&(r&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(n));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Ga(i,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||ye(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(fP()),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?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let i=this.startNode();s.length&&(i.decorators=s,this.resetStartLocationFromNode(i,s[0]),s=[]),this.parseClassMember(n,i,r),i.kind==="constructor"&&i.decorators&&i.decorators.length>0&&this.raise(b.DecoratorConstructor,i)}}),this.state.strict=t,this.next(),s.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let s=t;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=t;return s.computed=!1,s.key=r,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,s)}parseClassMemberWithIsStatic(e,t,r,s){let n=t,i=t,a=t,o=t,u=t,c=n,p=n;if(t.static=s,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";let D=this.match(139);if(this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),D){this.pushClassPrivateMethod(e,i,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsGenerator,n.key),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let l=!this.state.containsEsc&&ye(this.state.type),h=this.parseClassElementName(t),d=l?h.name:null,m=this.isPrivateName(h),f=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",m){this.pushClassPrivateMethod(e,i,!1,!1);return}let D=this.isNonstaticConstructor(n),g=!1;D&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,h),D&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,h),r.hadConstructor=!0,g=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,D,g)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(d==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);let D=this.eat(55);p.optional&&this.unexpected(f),c.kind="method";let g=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),g?this.pushClassPrivateMethod(e,i,D,!0):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,D,!0,!1,!1))}else if((d==="get"||d==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(h),c.kind=d;let D=this.match(139);this.parseClassElementName(n),D?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(b.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(d==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);let D=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,u,D)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"&&this.raise(b.StaticPrototype,this.state.startLoc),t===139){r==="constructor"&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),t.decorators?.length&&this.raise(b.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(b.ConstructorClassField,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),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){!r&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(b.ConstructorClassField,t.key);let s=this.parseClassAccessorProperty(t);e.body.push(s),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,t,r,s,n,i){e.body.push(this.parseMethod(t,r,s,n,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,s){let n=this.parseMethod(t,r,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);let i=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,i)}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(592),this.expressionScope.enter(vy()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,s=8331){if(ye(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,s);else if(r||!t)e.id=null;else throw this.raise(b.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,r),n=!s||this.eat(12),i=n&&this.eatExportStar(e),a=i&&this.maybeParseExportNamespaceSpecifier(e),o=n&&(!a||this.eat(12)),u=s||i;if(i&&!a){if(s&&this.unexpected(),t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(e);s&&n&&!i&&!c&&this.unexpected(null,5),a&&o&&this.unexpected(null,98);let p;if(u||c){if(p=!1,t)throw this.raise(b.UnsupportedDecoratorExport,e);this.parseExportFrom(e,u)}else p=this.maybeParseExportDeclaration(e);if(u||c||p){let l=e;if(this.checkExport(l,!0,!1,!!l.source),l.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(t,l.declaration,l);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(l,"ExportNamedDeclaration")}if(this.eat(65)){let l=e,h=this.parseExportDefaultExpression();if(l.declaration=h,h.type==="ClassDeclaration")this.maybeTakeDecorators(t,h,l);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(l,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(l,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.loc.start);let r=t||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,e.specifiers=[this.finishNode(s,"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)){let t=e;t.specifiers||(t.specifiers=[]);let r=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return 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")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(b.UnsupportedDefaultExport,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(ye(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||ye(this.state.type)&&r)return!0;if(this.match(65)&&r){let s=this.input.charCodeAt(this.nextTokenStartSince(t+4));return s===34||s===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(b.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,s){if(t){if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let n=e.declaration;n.type==="Identifier"&&n.name==="from"&&n.end-n.start===4&&!n.extra?.parenthesized&&this.raise(b.ExportDefaultFromAsIdentifier,n)}}else if(e.specifiers?.length)for(let n of e.specifiers){let{exported:i}=n,a=i.type==="Identifier"?i.name:i.value;if(this.checkDuplicateExports(n,a),!s&&n.local){let{local:o}=n;o.type!=="Identifier"?this.raise(b.ExportBindingIsString,n,{localName:o.value,exportName:a}):(this.checkReservedWord(o.name,o.loc.start,!0,!1),this.scope.checkLocalExport(o))}}else if(e.declaration){let n=e.declaration;if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){let{id:i}=n;if(!i)throw new Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if(n.type==="VariableDeclaration")for(let i of n.declarations)this.checkDeclaration(i.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern")for(let t of e.elements)t&&this.checkDeclaration(t);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(b.DuplicateDefaultExport,e):this.raise(b.DuplicateExport,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 s=this.isContextual(130),n=this.match(134),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,n,e,s))}return t}parseExportSpecifier(e,t,r,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=IP.exec(e.value);return t&&this.raise(b.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:t,value:r})=>r.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type")):!1}checkImportReflection(e){let{specifiers:t}=e,r=t.length===1?t[0].type:null;e.phase==="source"?r!=="ImportDefaultSpecifier"&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase==="defer"?r!=="ImportNamespaceSpecifier"&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(r!=="ImportDefaultSpecifier"&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(b.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let r=t.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});r!==void 0&&this.raise(b.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,t,r,s){t||(this.hasPlugin("importReflection")&&(e.module=!1),r==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):r==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let r=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(St(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(e,t,s,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,s))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return ye(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),s=r&&this.maybeParseStarImportSpecifier(e);return r&&!s&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),s=this.state.value;if(t.has(s)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),t.add(s),this.match(134)?r.key=this.parseStringLiteral(s):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type"&&this.raise(b.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(St(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}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(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),s=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();let i=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,s,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:i}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Py=class extends LP{constructor(e,t,r){let s=yk(e);super(s,t),this.options=s,this.initializeScopes(),this.plugins=r,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let n=0;s.allowAwaitOutsideFunction&&(n|=1),s.allowReturnOutsideFunction&&(n|=2),s.allowImportExportEverywhere&&(n|=8),s.allowSuperOutsideMethod&&(n|=16),s.allowUndeclaredExports&&(n|=64),s.allowNewTargetOutsideFunction&&(n|=4),s.allowYieldOutsideFunction&&(n|=32),s.ranges&&(n|=128),s.tokens&&(n|=256),s.createImportExpressions&&(n|=512),s.createParenthesizedExpressions&&(n|=1024),s.errorRecovery&&(n|=2048),s.attachComment&&(n|=4096),s.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return Yl}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}};function By(e,t){if(t?.sourceType==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=gi(t,e),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",gi(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(r){try{return t.sourceType="script",gi(t,e).parse()}catch{}throw r}}else return gi(t,e).parse()}function Ny(e,t){let r=gi(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function OP(e){let t={};for(let r of Object.keys(e))t[r]=fy(e[r]);return t}var G7=OP(xk);function gi(e,t){let r=Py,s=new Map;if(e?.plugins){for(let n of e.plugins){let i,a;typeof n=="string"?i=n:[i,a]=n,s.has(i)||s.set(i,a||{})}kP(s),r=MP(s)}return new r(e,t,s)}var Qm=new Map;function MP(e){let t=[];for(let n of PP)e.has(n)&&t.push(n);let r=t.join("|"),s=Qm.get(r);if(!s){s=Py;for(let n of t)s=ky[n](s);Qm.set(r,s)}return s}function to(e){return(t,r,s)=>{let n=!!s?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let o=t.charAt(a);if(e instanceof RegExp){if(!e.test(o))return a}else if(!e.includes(o))return a;n?a--:a++}return a===-1||a===i?a:!1}}var Y7=to(/\s/u),jP=to(" "),Q7=to(",; "),RP=to(/[^\n\r]/u);function UP(e,t){if(t===!1)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}var qP=UP,Zm=e=>e===`
|
|
122
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function $P(e,t,r){let s=!!r?.backwards;if(t===!1)return!1;let n=e.charAt(t);if(s){if(e.charAt(t-1)==="\r"&&n===`
|
|
123
|
+
`)return t-2;if(Zm(n))return t-1}else{if(n==="\r"&&e.charAt(t+1)===`
|
|
124
|
+
`)return t+2;if(Zm(n))return t+1}return t}var VP=$P;function WP(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?RP(e,t):t}var HP=WP;function zP(e,t){let r=null,s=t;for(;s!==r;)r=s,s=jP(e,s),s=qP(e,s),s=HP(e,s),s=VP(e,s);return s}var JP=zP;function XP(e){let t=[];for(let r of e)try{return r()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function KP(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
125
|
+
`);return t===-1?e:e.slice(0,t)}var Iy=KP,Ql=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n),GP=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},YP=Ql("findLast",function(){if(Array.isArray(this))return GP}),QP=YP;function ZP(e){return this[e<0?this.length+e:e]}var e3=Ql("at",function(){if(Array.isArray(this)||typeof this=="string")return ZP}),t3=e3;function yr(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(yr(r),t):t}function Xt(e){return e.range?.[1]??e.end}function r3(e){let t=new Set(e);return r=>t.has(r?.type)}var Zl=r3,s3=Zl(["Block","CommentBlock","MultiLine"]),ep=s3,n3=Zl(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),i3=n3,Pl=new WeakMap;function a3(e){return Pl.has(e)||Pl.set(e,ep(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Pl.get(e)}var o3=a3;function u3(e){if(!ep(e))return!1;let t=`*${e.value}*`.split(`
|
|
126
|
+
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Bl=new WeakMap;function l3(e){return Bl.has(e)||Bl.set(e,u3(e)),Bl.get(e)}var ey=l3;function p3(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let s=e[r];if(t&&Xt(s)===yr(t)&&ey(s)&&ey(t)&&(e.splice(r+1,1),s.value+="*//*"+t.value,s.range=[yr(s),Xt(t)]),!i3(s)&&!ep(s))throw new TypeError(`Unknown comment type: "${s.type}".`);t=s}}var c3=p3;function h3(e){return e!==null&&typeof e=="object"}var d3=h3,yi=null;function xi(e){if(yi!==null&&typeof yi.property){let t=yi;return yi=xi.prototype=null,t}return yi=xi.prototype=e??Object.create(null),new xi}var f3=10;for(let e=0;e<=f3;e++)xi();function m3(e){return xi(e)}function y3(e,t="type"){m3(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var D3=y3,C=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],g3={AccessorProperty:C[0],AnyTypeAnnotation:C[1],ArgumentPlaceholder:C[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:C[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:C[3],AsExpression:C[4],AssignmentExpression:C[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:C[6],BigIntLiteral:C[1],BigIntLiteralTypeAnnotation:C[1],BigIntTypeAnnotation:C[1],BinaryExpression:C[5],BindExpression:["object","callee"],BlockStatement:C[7],BooleanLiteral:C[1],BooleanLiteralTypeAnnotation:C[1],BooleanTypeAnnotation:C[1],BreakStatement:C[8],CallExpression:C[9],CatchClause:["param","body"],ChainExpression:C[3],ClassAccessorProperty:C[0],ClassBody:C[10],ClassDeclaration:C[11],ClassExpression:C[11],ClassImplements:C[12],ClassMethod:C[13],ClassPrivateMethod:C[13],ClassPrivateProperty:C[14],ClassProperty:C[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:C[15],ConditionalExpression:C[16],ConditionalTypeAnnotation:C[17],ContinueStatement:C[8],DebuggerStatement:C[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:C[18],DeclareEnum:C[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:C[20],DeclareFunction:["id","predicate"],DeclareHook:C[21],DeclareInterface:C[22],DeclareModule:C[19],DeclareModuleExports:C[23],DeclareNamespace:C[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:C[24],DeclareVariable:C[21],Decorator:C[3],Directive:C[18],DirectiveLiteral:C[1],DoExpression:C[10],DoWhileStatement:C[25],EmptyStatement:C[1],EmptyTypeAnnotation:C[1],EnumBigIntBody:C[26],EnumBigIntMember:C[27],EnumBooleanBody:C[26],EnumBooleanMember:C[27],EnumDeclaration:C[19],EnumDefaultedMember:C[21],EnumNumberBody:C[26],EnumNumberMember:C[27],EnumStringBody:C[26],EnumStringMember:C[27],EnumSymbolBody:C[26],ExistsTypeAnnotation:C[1],ExperimentalRestProperty:C[6],ExperimentalSpreadProperty:C[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:C[28],ExportNamedDeclaration:C[20],ExportNamespaceSpecifier:C[28],ExportSpecifier:["local","exported"],ExpressionStatement:C[3],File:["program"],ForInStatement:C[29],ForOfStatement:C[29],ForStatement:["init","test","update","body"],FunctionDeclaration:C[30],FunctionExpression:C[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:C[15],GenericTypeAnnotation:C[12],HookDeclaration:C[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:C[16],ImportAttribute:C[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:C[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:C[33],ImportSpecifier:["imported","local"],IndexedAccessType:C[34],InferredPredicate:C[1],InferTypeAnnotation:C[35],InterfaceDeclaration:C[22],InterfaceExtends:C[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:C[1],IntersectionTypeAnnotation:C[36],JsExpressionRoot:C[37],JsonRoot:C[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:C[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:C[1],JSXExpressionContainer:C[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:C[1],JSXMemberExpression:C[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:C[1],JSXSpreadAttribute:C[6],JSXSpreadChild:C[3],JSXText:C[1],KeyofTypeAnnotation:C[6],LabeledStatement:["label","body"],Literal:C[1],LogicalExpression:C[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:C[21],MatchExpression:C[39],MatchExpressionCase:C[40],MatchIdentifierPattern:C[21],MatchLiteralPattern:C[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:C[6],MatchStatement:C[39],MatchStatementCase:C[40],MatchUnaryPattern:C[6],MatchWildcardPattern:C[1],MemberExpression:C[38],MetaProperty:["meta","property"],MethodDefinition:C[42],MixedTypeAnnotation:C[1],ModuleExpression:C[10],NeverTypeAnnotation:C[1],NewExpression:C[9],NGChainedExpression:C[43],NGEmptyExpression:C[1],NGMicrosyntax:C[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:C[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:C[32],NGPipeExpression:["left","right","arguments"],NGRoot:C[37],NullableTypeAnnotation:C[23],NullLiteral:C[1],NullLiteralTypeAnnotation:C[1],NumberLiteralTypeAnnotation:C[1],NumberTypeAnnotation:C[1],NumericLiteral:C[1],ObjectExpression:["properties"],ObjectMethod:C[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:C[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:C[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:C[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:C[9],OptionalIndexedAccessType:C[34],OptionalMemberExpression:C[38],ParenthesizedExpression:C[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:C[1],PipelineTopicExpression:C[3],Placeholder:C[1],PrivateIdentifier:C[1],PrivateName:C[21],Program:C[7],Property:C[32],PropertyDefinition:C[14],QualifiedTypeIdentifier:C[44],QualifiedTypeofIdentifier:C[44],RegExpLiteral:C[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:C[6],SatisfiesExpression:C[4],SequenceExpression:C[43],SpreadElement:C[6],StaticBlock:C[10],StringLiteral:C[1],StringLiteralTypeAnnotation:C[1],StringTypeAnnotation:C[1],Super:C[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:C[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:C[1],TemplateLiteral:["quasis","expressions"],ThisExpression:C[1],ThisTypeAnnotation:C[1],ThrowStatement:C[6],TopicReference:C[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:C[45],TSAbstractKeyword:C[1],TSAbstractMethodDefinition:C[32],TSAbstractPropertyDefinition:C[45],TSAnyKeyword:C[1],TSArrayType:C[2],TSAsExpression:C[4],TSAsyncKeyword:C[1],TSBigIntKeyword:C[1],TSBooleanKeyword:C[1],TSCallSignatureDeclaration:C[46],TSClassImplements:C[47],TSConditionalType:C[17],TSConstructorType:C[46],TSConstructSignatureDeclaration:C[46],TSDeclareFunction:C[31],TSDeclareKeyword:C[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:C[26],TSEnumDeclaration:C[19],TSEnumMember:["id","initializer"],TSExportAssignment:C[3],TSExportKeyword:C[1],TSExternalModuleReference:C[3],TSFunctionType:C[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:C[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:C[35],TSInstantiationExpression:C[47],TSInterfaceBody:C[10],TSInterfaceDeclaration:C[22],TSInterfaceHeritage:C[47],TSIntersectionType:C[36],TSIntrinsicKeyword:C[1],TSJSDocAllType:C[1],TSJSDocNonNullableType:C[23],TSJSDocNullableType:C[23],TSJSDocUnknownType:C[1],TSLiteralType:C[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:C[10],TSModuleDeclaration:C[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:C[21],TSNeverKeyword:C[1],TSNonNullExpression:C[3],TSNullKeyword:C[1],TSNumberKeyword:C[1],TSObjectKeyword:C[1],TSOptionalType:C[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:C[23],TSPrivateKeyword:C[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:C[1],TSPublicKeyword:C[1],TSQualifiedName:C[5],TSReadonlyKeyword:C[1],TSRestType:C[23],TSSatisfiesExpression:C[4],TSStaticKeyword:C[1],TSStringKeyword:C[1],TSSymbolKeyword:C[1],TSTemplateLiteralType:["quasis","types"],TSThisType:C[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:C[23],TSTypeAssertion:C[4],TSTypeLiteral:C[26],TSTypeOperator:C[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:C[48],TSTypeParameterInstantiation:C[48],TSTypePredicate:C[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:C[1],TSUnionType:C[36],TSUnknownKeyword:C[1],TSVoidKeyword:C[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:C[24],TypeAnnotation:C[23],TypeCastExpression:C[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:C[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:C[48],TypeParameterInstantiation:C[48],TypePredicate:C[49],UnaryExpression:C[6],UndefinedTypeAnnotation:C[1],UnionTypeAnnotation:C[36],UnknownTypeAnnotation:C[1],UpdateExpression:C[6],V8IntrinsicIdentifier:C[1],VariableDeclaration:["declarations"],VariableDeclarator:C[27],Variance:C[1],VoidPattern:C[1],VoidTypeAnnotation:C[1],WhileStatement:C[25],WithStatement:["object","body"],YieldExpression:C[6]},E3=D3(g3),x3=E3;function Qa(e,t){if(!d3(e))return e;if(Array.isArray(e)){for(let s=0;s<e.length;s++)e[s]=Qa(e[s],t);return e}if(t.onEnter){let s=t.onEnter(e)??e;if(s!==e)return Qa(s,t);e=s}let r=x3(e);for(let s=0;s<r.length;s++)e[r[s]]=Qa(e[r[s]],t);return t.onLeave&&(e=t.onLeave(e)||e),e}var A3=Qa,Z7=Zl(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function C3(e,t){let{parser:r,text:s}=t,{comments:n}=e,i=r==="oxc"&&t.oxcAstType==="ts";c3(n);let a=e.type==="File"?e.program:e;a.interpreter&&(n.unshift(a.interpreter),delete a.interpreter),i&&e.hashbang&&(n.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,s.length]);let o;return e=A3(e,{onEnter(u){switch(u.type){case"ParenthesizedExpression":{let{expression:c}=u,p=yr(u);if(c.type==="TypeCastExpression")return c.range=[p,Xt(u)],c;let l=!1;if(!i){if(!o){o=[];for(let d of n)o3(d)&&o.push(Xt(d))}let h=QP(0,o,d=>d<=p);l=h&&s.slice(h,p).trim().length===0}return l?void 0:(c.extra={...c.extra,parenthesized:!0},c)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let c=yr(u)+1,p=Xt(u)-(u.tail?1:2);u.range=[c,p]}break;case"VariableDeclaration":{let c=t3(0,u.declarations,-1);c?.init&&s[Xt(c)]!==";"&&(u.range=[yr(u),Xt(c)]);break}case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"ImportExpression":r==="hermes"&&u.attributes&&!u.options&&(u.options=u.attributes);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(_y(u))return jl(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function _y(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function jl(e){return _y(e)?jl({type:"LogicalExpression",operator:e.operator,left:jl({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[yr(e.left),Xt(e.right.left)]}),right:e.right.right,range:[yr(e),Xt(e)]}):e}var F3=C3;function b3(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Ly=b3,ty="Unexpected parseExpression() input: ";function T3(e){let{message:t,loc:r,reasonCode:s}=e;if(!r)return e;let{line:n,column:i}=r,a=e;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(t="Unexpected token.",a=void 0);let o=` (${n}:${i})`;return t.endsWith(o)&&(t=t.slice(0,-o.length)),t.startsWith(ty)&&(t=t.slice(ty.length)),Ly(t,{loc:{start:{line:n,column:i+1}},cause:a})}var Oy=T3,v3=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},S3=Ql("replaceAll",function(){if(typeof this=="string")return v3}),Ja=S3,w3=/\*\/$/,k3=/^\/\*\*?/,P3=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,B3=/(^|\s+)\/\/([^\n\r]*)/g,ry=/^(\r?\n)+/,N3=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,sy=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,I3=/(\r?\n|^) *\* ?/g,_3=[];function L3(e){let t=e.match(P3);return t?t[0].trimStart():""}function O3(e){e=Ja(0,e.replace(k3,"").replace(w3,""),I3,"$1");let t="";for(;t!==e;)t=e,e=Ja(0,e,N3,`
|
|
127
|
+
$1 $2
|
|
128
|
+
`);e=e.replace(ry,"").trimEnd();let r=Object.create(null),s=Ja(0,e,sy,"").replace(ry,"").trimEnd(),n;for(;n=sy.exec(e);){let i=Ja(0,n[2],B3,"");if(typeof r[n[1]]=="string"||Array.isArray(r[n[1]])){let a=r[n[1]];r[n[1]]=[..._3,...Array.isArray(a)?a:[a],i]}else r[n[1]]=i}return{comments:s,pragmas:r}}var M3=["noformat","noprettier"],j3=["format","prettier"];function My(e){let t=Iy(e);t&&(e=e.slice(t.length+1));let r=L3(e),{pragmas:s,comments:n}=O3(r);return{shebang:t,text:e,pragmas:s,comments:n}}function R3(e){let{pragmas:t}=My(e);return j3.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function U3(e){let{pragmas:t}=My(e);return M3.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function q3(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:R3,hasIgnorePragma:U3,locStart:yr,locEnd:Xt,...e}}var Ai=q3,tp="module",jy="commonjs";function $3(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return tp;if(/\.(?:cjs|cts)$/iu.test(e))return jy}}function V3(e,t){let{type:r="JsExpressionRoot",rootMarker:s,text:n}=t,{tokens:i,comments:a}=e;return delete e.tokens,delete e.comments,{tokens:i,comments:a,type:r,node:e,range:[0,n.length],rootMarker:s}}var Ry=V3,nn=e=>Ai(X3(e)),W3={sourceType:tp,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},ny="v8intrinsic",iy=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Dr=(e,t=W3)=>({...t,plugins:[...t.plugins,...e]}),H3=/@(?:no)?flow\b/u;function z3(e,t){if(t?.endsWith(".js.flow"))return!0;let r=Iy(e);r&&(e=e.slice(r.length));let s=JP(e,0);return s!==!1&&(e=e.slice(0,s)),H3.test(e)}function J3(e,t,r){let s=e(t,r),n=s.errors.find(i=>!K3.has(i.reasonCode));if(n)throw n;return s}function X3({isExpression:e=!1,optionsCombinations:t}){return(r,s={})=>{let{filepath:n}=s;if(typeof n!="string"&&(n=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&z3(r,n))return s.parser="babel-flow",qy.parse(r,s);let i=t,a=s.__babelSourceType??$3(n);a&&a!==tp&&(i=i.map(p=>({...p,sourceType:a,...a===jy?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/u.test(r);r.includes("|>")?i=(o?[...iy,ny]:iy).flatMap(p=>i.map(l=>Dr([p],l))):o&&(i=i.map(p=>Dr([ny],p)));let u=e?Ny:By,c;try{c=XP(i.map(p=>()=>J3(u,r,p)))}catch({errors:[p]}){throw Oy(p)}return e&&(c=Ry(c,{text:r,rootMarker:s.rootMarker})),F3(c,{text:r})}}var K3=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),Uy=[Dr(["jsx"])],ay=nn({optionsCombinations:Uy}),oy=nn({optionsCombinations:[Dr(["jsx","typescript"]),Dr(["typescript"])]}),uy=nn({isExpression:!0,optionsCombinations:[Dr(["jsx"])]}),ly=nn({isExpression:!0,optionsCombinations:[Dr(["typescript"])]}),qy=nn({optionsCombinations:[Dr(["jsx",["flow",{all:!0}],"flowComments"])]}),G3=nn({optionsCombinations:Uy.map(e=>Dr(["estree"],e))}),$y={};Rl($y,{json:()=>Z3,"json-stringify":()=>rB,json5:()=>eB,jsonc:()=>tB});function Y3(e){return Array.isArray(e)&&e.length>0}var Vy=Y3,Wy={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function Q3(e){let t=By(e,Wy),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function ro(e,t={}){let{allowComments:r=!0,allowEmpty:s=!1}=t,n;try{n=Ny(e,Wy)}catch(i){if(s&&i.code==="BABEL_PARSER_SYNTAX_ERROR"&&i.reasonCode==="ParseExpressionEmptyInput")try{n=Q3(e)}catch{}if(!n)throw Oy(i)}if(!r&&Vy(n.comments))throw qr(n.comments[0],"Comment");return n=Ry(n,{type:"JsonRoot",text:e}),n.node.type==="File"?delete n.node:en(n.node),n}function qr(e,t){let[r,s]=[e.loc.start,e.loc.end].map(({line:n,column:i})=>({line:n,column:i+1}));return Ly(`${t} is not allowed in JSON.`,{loc:{start:r,end:s}})}function en(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&en(t);return;case"ObjectExpression":for(let t of e.properties)en(t);return;case"ObjectProperty":if(e.computed)throw qr(e.key,"Computed key");if(e.shorthand)throw qr(e.key,"Shorthand property");e.key.type!=="Identifier"&&en(e.key),en(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw qr(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw qr(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw qr(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(Vy(e.expressions))throw qr(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)en(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw qr(e,`'${e.type}'`)}}var Z3=Ai({parse:e=>ro(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),eB=Ai(e=>ro(e)),tB=Ai(e=>ro(e,{allowEmpty:!0})),rB=Ai({parse:e=>ro(e,{allowComments:!1}),astFormat:"estree-json"}),Hy={...cy,...$y};var lc={};Wi(lc,{default:()=>F0,languages:()=>Lg,options:()=>Ig,printers:()=>_g});var sB=Object.defineProperty,Bp=(e,t)=>{for(var r in t)sB(e,r,{get:t[r],enumerable:!0})},F0={};Bp(F0,{languages:()=>Lg,options:()=>Ig,printers:()=>_g});var nB=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],b0={};Bp(b0,{canAttachComment:()=>b8,embed:()=>yI,features:()=>G4,getVisitorKeys:()=>B0,handleComments:()=>iN,hasPrettierIgnore:()=>sc,insertPragma:()=>PI,isBlockComment:()=>_t,isGap:()=>oN,massageAstNode:()=>g8,print:()=>x0,printComment:()=>_I,printPrettierIgnored:()=>x0,willPrintOwnComments:()=>pN});var Np=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n),iB=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},aB=Np("replaceAll",function(){if(typeof this=="string")return iB}),Me=aB;function oB(e){return this[e<0?this.length+e:e]}var uB=Np("at",function(){if(Array.isArray(this)||typeof this=="string")return oB}),me=uB;function lB(e){return e!==null&&typeof e=="object"}var T0=lB;function*pB(e,t){let{getVisitorKeys:r,filter:s=()=>!0}=t,n=i=>T0(i)&&s(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let o of a)n(o)&&(yield o);else n(a)&&(yield a)}}function*cB(e,t){let r=[e];for(let s=0;s<r.length;s++){let n=r[s];for(let i of pB(n,t))yield i,r.push(i)}}function hB(e,{getVisitorKeys:t,predicate:r}){for(let s of cB(e,{getVisitorKeys:t}))if(r(s))return!0;return!1}var dB=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function fB(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function mB(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var yB="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07",DB=/[^\x20-\x7F]/u,gB=new Set(yB);function EB(e){if(!e)return 0;if(!DB.test(e))return e.length;e=e.replace(dB(),r=>gB.has(r)?" ":" ");let t=0;for(let r of e){let s=r.codePointAt(0);s<=31||s>=127&&s<=159||s>=768&&s<=879||s>=65024&&s<=65039||(t+=fB(s)||mB(s)?2:1)}return t}var ln=EB;function Do(e){return(t,r,s)=>{let n=!!s?.backwards;if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&a<i;){let o=t.charAt(a);if(e instanceof RegExp){if(!e.test(o))return a}else if(!e.includes(o))return a;n?a--:a++}return a===-1||a===i?a:!1}}var L5=Do(/\s/u),pn=Do(" "),xB=Do(",; "),AB=Do(/[^\n\r]/u),zy=e=>e===`
|
|
129
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function CB(e,t,r){let s=!!r?.backwards;if(t===!1)return!1;let n=e.charAt(t);if(s){if(e.charAt(t-1)==="\r"&&n===`
|
|
130
|
+
`)return t-2;if(zy(n))return t-1}else{if(n==="\r"&&e.charAt(t+1)===`
|
|
131
|
+
`)return t+2;if(zy(n))return t+1}return t}var cn=CB;function FB(e,t,r={}){let s=pn(e,r.backwards?t-1:t,r),n=cn(e,s,r);return s!==n}var nt=FB;function bB(e,t){if(t===!1)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}var Ip=bB;function TB(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?AB(e,t):t}var _p=TB;function vB(e,t){let r=null,s=t;for(;s!==r;)r=s,s=xB(e,s),s=Ip(e,s),s=pn(e,s);return s=_p(e,s),s=cn(e,s),s!==!1&&nt(e,s)}var Lp=vB;function SB(e){return Array.isArray(e)&&e.length>0}var Fe=SB,wB=()=>{},Fs=wB,v0=Object.freeze({character:"'",codePoint:39}),S0=Object.freeze({character:'"',codePoint:34}),kB=Object.freeze({preferred:v0,alternate:S0}),PB=Object.freeze({preferred:S0,alternate:v0});function BB(e,t){let{preferred:r,alternate:s}=t===!0||t==="'"?kB:PB,{length:n}=e,i=0,a=0;for(let o=0;o<n;o++){let u=e.charCodeAt(o);u===r.codePoint?i++:u===s.codePoint&&a++}return(i>a?s:r).character}var w0=BB,NB=/\\(["'\\])|(["'])/gu;function IB(e,t){let r=t==='"'?"'":'"',s=Me(0,e,NB,(n,i,a)=>i?i===r?r:n:a===t?"\\"+a:a);return t+s+t}var _B=IB;function LB(e,t){Fs(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),s=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":w0(r,t.singleQuote);return e.charAt(0)===s?e:_B(r,s)}var hn=LB,k0=e=>Number.isInteger(e)&&e>=0;function oe(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(oe(r),t):t}function ne(e){return e.range?.[1]??e.end}function go(e,t){let r=oe(e);return k0(r)&&r===oe(t)}function OB(e,t){let r=ne(e);return k0(r)&&r===ne(t)}function MB(e,t){return go(e,t)&&OB(e,t)}var Ci=null;function Ti(e){if(Ci!==null&&typeof Ci.property){let t=Ci;return Ci=Ti.prototype=null,t}return Ci=Ti.prototype=e??Object.create(null),new Ti}var jB=10;for(let e=0;e<=jB;e++)Ti();function RB(e){return Ti(e)}function UB(e,t="type"){RB(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var P0=UB,F=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],qB={AccessorProperty:F[0],AnyTypeAnnotation:F[1],ArgumentPlaceholder:F[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:F[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:F[3],AsExpression:F[4],AssignmentExpression:F[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:F[6],BigIntLiteral:F[1],BigIntLiteralTypeAnnotation:F[1],BigIntTypeAnnotation:F[1],BinaryExpression:F[5],BindExpression:["object","callee"],BlockStatement:F[7],BooleanLiteral:F[1],BooleanLiteralTypeAnnotation:F[1],BooleanTypeAnnotation:F[1],BreakStatement:F[8],CallExpression:F[9],CatchClause:["param","body"],ChainExpression:F[3],ClassAccessorProperty:F[0],ClassBody:F[10],ClassDeclaration:F[11],ClassExpression:F[11],ClassImplements:F[12],ClassMethod:F[13],ClassPrivateMethod:F[13],ClassPrivateProperty:F[14],ClassProperty:F[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:F[15],ConditionalExpression:F[16],ConditionalTypeAnnotation:F[17],ContinueStatement:F[8],DebuggerStatement:F[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:F[18],DeclareEnum:F[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:F[20],DeclareFunction:["id","predicate"],DeclareHook:F[21],DeclareInterface:F[22],DeclareModule:F[19],DeclareModuleExports:F[23],DeclareNamespace:F[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:F[24],DeclareVariable:F[21],Decorator:F[3],Directive:F[18],DirectiveLiteral:F[1],DoExpression:F[10],DoWhileStatement:F[25],EmptyStatement:F[1],EmptyTypeAnnotation:F[1],EnumBigIntBody:F[26],EnumBigIntMember:F[27],EnumBooleanBody:F[26],EnumBooleanMember:F[27],EnumDeclaration:F[19],EnumDefaultedMember:F[21],EnumNumberBody:F[26],EnumNumberMember:F[27],EnumStringBody:F[26],EnumStringMember:F[27],EnumSymbolBody:F[26],ExistsTypeAnnotation:F[1],ExperimentalRestProperty:F[6],ExperimentalSpreadProperty:F[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:F[28],ExportNamedDeclaration:F[20],ExportNamespaceSpecifier:F[28],ExportSpecifier:["local","exported"],ExpressionStatement:F[3],File:["program"],ForInStatement:F[29],ForOfStatement:F[29],ForStatement:["init","test","update","body"],FunctionDeclaration:F[30],FunctionExpression:F[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:F[15],GenericTypeAnnotation:F[12],HookDeclaration:F[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:F[16],ImportAttribute:F[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:F[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:F[33],ImportSpecifier:["imported","local"],IndexedAccessType:F[34],InferredPredicate:F[1],InferTypeAnnotation:F[35],InterfaceDeclaration:F[22],InterfaceExtends:F[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:F[1],IntersectionTypeAnnotation:F[36],JsExpressionRoot:F[37],JsonRoot:F[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:F[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:F[1],JSXExpressionContainer:F[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:F[1],JSXMemberExpression:F[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:F[1],JSXSpreadAttribute:F[6],JSXSpreadChild:F[3],JSXText:F[1],KeyofTypeAnnotation:F[6],LabeledStatement:["label","body"],Literal:F[1],LogicalExpression:F[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:F[21],MatchExpression:F[39],MatchExpressionCase:F[40],MatchIdentifierPattern:F[21],MatchLiteralPattern:F[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:F[6],MatchStatement:F[39],MatchStatementCase:F[40],MatchUnaryPattern:F[6],MatchWildcardPattern:F[1],MemberExpression:F[38],MetaProperty:["meta","property"],MethodDefinition:F[42],MixedTypeAnnotation:F[1],ModuleExpression:F[10],NeverTypeAnnotation:F[1],NewExpression:F[9],NGChainedExpression:F[43],NGEmptyExpression:F[1],NGMicrosyntax:F[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:F[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:F[32],NGPipeExpression:["left","right","arguments"],NGRoot:F[37],NullableTypeAnnotation:F[23],NullLiteral:F[1],NullLiteralTypeAnnotation:F[1],NumberLiteralTypeAnnotation:F[1],NumberTypeAnnotation:F[1],NumericLiteral:F[1],ObjectExpression:["properties"],ObjectMethod:F[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:F[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:F[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:F[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:F[9],OptionalIndexedAccessType:F[34],OptionalMemberExpression:F[38],ParenthesizedExpression:F[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:F[1],PipelineTopicExpression:F[3],Placeholder:F[1],PrivateIdentifier:F[1],PrivateName:F[21],Program:F[7],Property:F[32],PropertyDefinition:F[14],QualifiedTypeIdentifier:F[44],QualifiedTypeofIdentifier:F[44],RegExpLiteral:F[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:F[6],SatisfiesExpression:F[4],SequenceExpression:F[43],SpreadElement:F[6],StaticBlock:F[10],StringLiteral:F[1],StringLiteralTypeAnnotation:F[1],StringTypeAnnotation:F[1],Super:F[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:F[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:F[1],TemplateLiteral:["quasis","expressions"],ThisExpression:F[1],ThisTypeAnnotation:F[1],ThrowStatement:F[6],TopicReference:F[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:F[45],TSAbstractKeyword:F[1],TSAbstractMethodDefinition:F[32],TSAbstractPropertyDefinition:F[45],TSAnyKeyword:F[1],TSArrayType:F[2],TSAsExpression:F[4],TSAsyncKeyword:F[1],TSBigIntKeyword:F[1],TSBooleanKeyword:F[1],TSCallSignatureDeclaration:F[46],TSClassImplements:F[47],TSConditionalType:F[17],TSConstructorType:F[46],TSConstructSignatureDeclaration:F[46],TSDeclareFunction:F[31],TSDeclareKeyword:F[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:F[26],TSEnumDeclaration:F[19],TSEnumMember:["id","initializer"],TSExportAssignment:F[3],TSExportKeyword:F[1],TSExternalModuleReference:F[3],TSFunctionType:F[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:F[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:F[35],TSInstantiationExpression:F[47],TSInterfaceBody:F[10],TSInterfaceDeclaration:F[22],TSInterfaceHeritage:F[47],TSIntersectionType:F[36],TSIntrinsicKeyword:F[1],TSJSDocAllType:F[1],TSJSDocNonNullableType:F[23],TSJSDocNullableType:F[23],TSJSDocUnknownType:F[1],TSLiteralType:F[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:F[10],TSModuleDeclaration:F[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:F[21],TSNeverKeyword:F[1],TSNonNullExpression:F[3],TSNullKeyword:F[1],TSNumberKeyword:F[1],TSObjectKeyword:F[1],TSOptionalType:F[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:F[23],TSPrivateKeyword:F[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:F[1],TSPublicKeyword:F[1],TSQualifiedName:F[5],TSReadonlyKeyword:F[1],TSRestType:F[23],TSSatisfiesExpression:F[4],TSStaticKeyword:F[1],TSStringKeyword:F[1],TSSymbolKeyword:F[1],TSTemplateLiteralType:["quasis","types"],TSThisType:F[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:F[23],TSTypeAssertion:F[4],TSTypeLiteral:F[26],TSTypeOperator:F[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:F[48],TSTypeParameterInstantiation:F[48],TSTypePredicate:F[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:F[1],TSUnionType:F[36],TSUnknownKeyword:F[1],TSVoidKeyword:F[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:F[24],TypeAnnotation:F[23],TypeCastExpression:F[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:F[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:F[48],TypeParameterInstantiation:F[48],TypePredicate:F[49],UnaryExpression:F[6],UndefinedTypeAnnotation:F[1],UnionTypeAnnotation:F[36],UnknownTypeAnnotation:F[1],UpdateExpression:F[6],V8IntrinsicIdentifier:F[1],VariableDeclaration:["declarations"],VariableDeclarator:F[27],Variance:F[1],VoidPattern:F[1],VoidTypeAnnotation:F[1],WhileStatement:F[25],WithStatement:["object","body"],YieldExpression:F[6]},$B=P0(qB),B0=$B;function VB(e){let t=new Set(e);return r=>t.has(r?.type)}var te=VB;function WB(e){return e.extra?.raw??e.raw}var it=WB,HB=te(["Block","CommentBlock","MultiLine"]),_t=HB,zB=te(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),N0=zB,JB=te(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),_i=JB;function XB(e,t){let r=t.split(".");for(let s=r.length-1;s>=0;s--){let n=r[s];if(s===0)return e.type==="Identifier"&&e.name===n;if(s===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===n){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===n){e=e.object;continue}return!1}}function KB(e,t){return t.some(r=>XB(e,r))}var Op=KB;function GB({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var I0=GB;function YB({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var Mp=YB;function yp(e,t){return t(e)||hB(e,{getVisitorKeys:B0,predicate:t})}function jp(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||fe(e)||Ce(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||kt(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function QB(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function _0(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var ZB=te(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),$e=te(["ArrayExpression"]),Bt=te(["ObjectExpression"]);function e8(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Yt(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function t8(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function L0(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Yt(e.argument)}function Re(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function O0(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var Rp=te(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),r8=te(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),zr=te(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),ki=te(["FunctionExpression","ArrowFunctionExpression"]);function s8(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function sp(e){return fe(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var je=te(["JSXElement","JSXFragment"]);function Li(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function M0(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function n8(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!go(e,e.typeAnnotation)}var Er=te(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function un(e){return Ce(e)||e.type==="BindExpression"&&!!e.object}var i8=te(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Up(e){return I0(e)||N0(e)||i8(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function a8(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var o8=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function u8(e){return Op(e,o8)}function Eo(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=ft(e);if(r.length===1){if(sp(e)&&Eo(t))return ki(r[0]);if(a8(e.callee))return sp(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Re(r[0]))&&u8(e.callee))return r[2]&&!Yt(r[2])?!1:(r.length===2?ki(r[1]):s8(r[1])&&He(r[1]).length<=1)||sp(r[1]);return!1}var j0=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),fe=j0(te(["CallExpression","OptionalCallExpression"])),Ce=j0(te(["MemberExpression","OptionalMemberExpression"]));function Jy(e,t=5){return R0(e,t)<=t}function R0(e,t){let r=0;for(let s in e){let n=e[s];if(T0(n)&&typeof n.type=="string"&&(r++,r+=R0(n,t-r)),r>t)return r}return r}var l8=.25;function qp(e,t){let{printWidth:r}=t;if(V(e))return!1;let s=r*l8;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=s||L0(e)&&!V(e.argument))return!0;let n=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return n?n.length<=s:Re(e)?hn(it(e),t).length<=s:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=s&&!e.quasis[0].value.raw.includes(`
|
|
132
|
+
`):e.type==="UnaryExpression"?qp(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=s-2:Rp(e)}function Pt(e,t){return je(t)?xo(t):V(t,K.Leading,r=>nt(e,ne(r)))}function Xy(e){return e.quasis.some(t=>t.value.raw.includes(`
|
|
133
|
+
`))}function U0(e,t){return(e.type==="TemplateLiteral"&&Xy(e)||e.type==="TaggedTemplateExpression"&&Xy(e.quasi))&&!nt(t,oe(e),{backwards:!0})}function q0(e){if(!V(e))return!1;let t=me(0,As(e,K.Dangling),-1);return t&&!_t(t)}function p8(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(ki(r)){if(t+=1,t>1)return!0}else if(fe(r)){for(let s of ft(r))if(ki(s))return!0}return!1}function $0(e){let{node:t,parent:r,key:s}=e;return s==="callee"&&fe(t)&&fe(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var c8=new Set(["!","-","+","~"]);function wt(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return wt(e.expression,t);let r=s=>wt(s,t-1);if(O0(e))return ln(e.pattern??e.regex.pattern)<=5;if(Rp(e)||r8(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(s=>!s.value.raw.includes(`
|
|
134
|
+
`))&&e.expressions.every(r);if(Bt(e))return e.properties.every(s=>!s.computed&&(s.shorthand||s.value&&r(s.value)));if($e(e))return e.elements.every(s=>s===null||r(s));if(fn(e)){if(e.type==="ImportExpression"||wt(e.callee,t)){let s=ft(e);return s.length<=t&&s.every(r)}return!1}return Ce(e)?wt(e.object,t)&&wt(e.property,t):e.type==="UnaryExpression"&&c8.has(e.operator)||e.type==="UpdateExpression"?wt(e.argument,t):!1}function tr(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Xe(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Xe(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Xe(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Xe(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Xe(e.callee,t);case"ConditionalExpression":return Xe(e.test,t);case"UpdateExpression":return!e.prefix&&Xe(e.argument,t);case"BindExpression":return e.object&&Xe(e.object,t);case"SequenceExpression":return Xe(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Xe(e.expression,t);default:return t(e)}}var Ky={"==":!0,"!=":!0,"===":!0,"!==":!0},so={"*":!0,"/":!0,"%":!0},Dp={">>":!0,">>>":!0,"<<":!0};function $p(e,t){return!(po(t)!==po(e)||e==="**"||Ky[e]&&Ky[t]||t==="%"&&so[e]||e==="%"&&so[t]||t!==e&&so[t]&&so[e]||Dp[e]&&Dp[t])}var h8=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function po(e){return h8.get(e)}function d8(e){return!!Dp[e]||e==="|"||e==="^"||e==="&"}function f8(e){if(e.rest)return!0;let t=He(e);return me(0,t,-1)?.type==="RestElement"}var np=new WeakMap;function He(e){if(np.has(e))return np.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),np.set(e,t),t}function m8(e,t){let{node:r}=e,s=0,n=()=>t(e,s++);r.this&&e.call(n,"this"),e.each(n,"params"),r.rest&&e.call(n,"rest")}var ip=new WeakMap;function ft(e){if(ip.has(e))return ip.get(e);if(e.type==="ChainExpression")return ft(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,ip.set(e,t),t}function co(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>co(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function Gy(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...r,"arguments",t];throw new RangeError("Invalid argument index")}function dn(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function xo(e){return e?.prettierIgnore||V(e,K.PrettierIgnore)}var K={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},V0=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,s,n)=>!(e&K.Leading&&!r.leading||e&K.Trailing&&!r.trailing||e&K.Dangling&&(r.leading||r.trailing)||e&K.Block&&!_t(r)||e&K.Line&&!_i(r)||e&K.First&&s!==0||e&K.Last&&s!==n.length-1||e&K.PrettierIgnore&&!dn(r)||t&&!t(r))};function V(e,t,r){if(!Fe(e?.comments))return!1;let s=V0(t,r);return s?e.comments.some(s):!0}function As(e,t,r){if(!Array.isArray(e?.comments))return[];let s=V0(t,r);return s?e.comments.filter(s):e.comments}var rr=(e,{originalText:t})=>Lp(t,ne(e));function fn(e){return fe(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Xr(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!Li(e))}var kt=te(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Qt=te(["TSUnionType","UnionTypeAnnotation"]),Oi=te(["TSIntersectionType","IntersectionTypeAnnotation"]),Jr=te(["TSConditionalType","ConditionalTypeAnnotation"]),y8=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",gp=te(["TSTypeAliasDeclaration","TypeAlias"]);function W0({key:e,parent:t}){return!(e==="types"&&Qt(t)||e==="types"&&Oi(t))}var D8=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),an=e=>{for(let t of e.quasis)delete t.value};function H0(e,t,r){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Mp({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="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==="ImportAttribute")&&e.key&&!e.computed){let{key:n}=e;Re(n)||Yt(n)?t.key=String(n.value):n.type==="Identifier"&&(t.key=n.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx"))for(let{type:n,expression:i}of t.children)n==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&an(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&an(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=Me(0,e.value.value,/["']|"|'/gu,'"'));let s=e.expression||e.callee;if(e.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){let n=e.expression.arguments[0].properties;for(let[i,a]of t.expression.arguments[0].properties.entries())switch(n[i].key.name){case"styles":$e(a.value)&&an(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&an(a.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&an(t.quasi),e.type==="TemplateLiteral"&&an(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}H0.ignoredProperties=D8;var g8=H0,E8=te(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),x8=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!Li(t)&&t.value!==t.key,A8=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&He(e).length===0&&!e.returnType&&!Fe(e.typeParameters)&&e.body),Yy=(e,[t])=>t?.typeAnnotation===e&&y8(t),C8=(e,[t,...r])=>Yy(e,[t])||t?.typeName===e&&Yy(t,r);function F8(e,t){return E8(e)||x8(e,t)||A8(e,t)?!1:e.type==="EmptyStatement"?Mp({node:e,parent:t[0]}):!(C8(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var b8=F8;function T8(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Vp(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=T8(e)}function Be(e,t){t.leading=!0,t.trailing=!1,Vp(e,t)}function ct(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Vp(e,t)}function Te(e,t){t.leading=!1,t.trailing=!0,Vp(e,t)}function v8(e,t){let r=null,s=t;for(;s!==r;)r=s,s=pn(e,s),s=Ip(e,s),s=_p(e,s),s=cn(e,s);return s}var yn=v8;function S8(e,t){let r=yn(e,t);return r===!1?"":e.charAt(r)}var Nt=S8;function w8(e,t,r){for(let s=t;s<r;++s)if(e.charAt(s)===`
|
|
135
|
+
`)return!0;return!1}var ht=w8,ap=new WeakMap;function k8(e){return ap.has(e)||ap.set(e,_t(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),ap.get(e)}var z0=k8,Wp=(e,t)=>_i(e)||!ht(t,oe(e),ne(e));function P8(e){return[tD,X0,Q0,q8,_8,Hp,zp,J0,K0,z8,V8,W8,Xp,eD,J8,G0,Z0,Jp,L8,eN,rD,Kp].some(t=>t(e))}function B8(e){return[I8,Q0,X0,eD,Hp,zp,J0,K0,Z0,$8,H8,Xp,G8,Jp,Q8,Z8,tN,rD,sN,rN,Kp].some(t=>t(e))}function N8(e){return[tD,Hp,zp,U8,G0,Xp,R8,j8,Jp,Y8,Kp].some(t=>t(e))}function bs(e,t){let r=(e.body||e.properties).find(({type:s})=>s!=="EmptyStatement");r?Be(r,t):ct(e,t)}function Ep(e,t){e.type==="BlockStatement"?bs(e,t):Be(e,t)}function I8({comment:e,followingNode:t}){return t&&z0(e)?(Be(t,e),!0):!1}function Hp({comment:e,precedingNode:t,enclosingNode:r,followingNode:s,text:n}){if(r?.type!=="IfStatement"||!s)return!1;if(Nt(n,ne(e))===")")return Te(t,e),!0;if(s.type==="BlockStatement"&&s===r.consequent&&oe(e)>=ne(t)&&ne(e)<=oe(s))return Be(s,e),!0;if(t===r.consequent&&s===r.alternate){let i=yn(n,ne(r.consequent));if(s.type==="BlockStatement"&&oe(e)>=i&&ne(e)<=oe(s))return Be(s,e),!0;if(oe(e)<i||r.alternate.type==="BlockStatement")return t.type==="BlockStatement"||Wp(e,n)&&!ht(n,oe(t),oe(e))?(Te(t,e),!0):(ct(r,e),!0)}return s.type==="BlockStatement"?(bs(s,e),!0):s.type==="IfStatement"?(Ep(s.consequent,e),!0):r.consequent===s?(Be(s,e),!0):!1}function zp({comment:e,precedingNode:t,enclosingNode:r,followingNode:s,text:n}){return r?.type!=="WhileStatement"||!s?!1:Nt(n,ne(e))===")"?(Te(t,e),!0):s.type==="BlockStatement"?(bs(s,e),!0):r.body===s?(Be(s,e),!0):!1}function J0({comment:e,precedingNode:t,enclosingNode:r,followingNode:s}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!s?!1:r.type==="CatchClause"&&t?(Te(t,e),!0):s.type==="BlockStatement"?(bs(s,e),!0):s.type==="TryStatement"?(Ep(s.finalizer,e),!0):s.type==="CatchClause"?(Ep(s.body,e),!0):!1}function _8({comment:e,enclosingNode:t,followingNode:r}){return Ce(t)&&r?.type==="Identifier"?(Be(t,e),!0):!1}function L8({comment:e,enclosingNode:t,followingNode:r,options:s}){return!s.experimentalTernaries||!(t?.type==="ConditionalExpression"||Jr(t))?!1:r?.type==="ConditionalExpression"||Jr(r)?(ct(t,e),!0):!1}function X0({comment:e,precedingNode:t,enclosingNode:r,followingNode:s,text:n,options:i}){let a=t&&!ht(n,ne(t),oe(e));return(!t||!a)&&(r?.type==="ConditionalExpression"||Jr(r))&&s?i.experimentalTernaries&&r.alternate===s&&!(_t(e)&&!ht(i.originalText,oe(e),ne(e)))?(ct(r,e),!0):(Be(s,e),!0):!1}var O8=te(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function K0({comment:e,precedingNode:t,enclosingNode:r,followingNode:s}){if(O8(r)){if(Fe(r.decorators)&&s?.type!=="Decorator")return Te(me(0,r.decorators,-1),e),!0;if(r.body&&s===r.body)return bs(r.body,e),!0;if(s){if(r.superClass&&s===r.superClass&&t&&(t===r.id||t===r.typeParameters))return Te(t,e),!0;for(let n of["implements","extends","mixins"])if(r[n]&&s===r[n][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?Te(t,e):ct(r,e,n),!0}}return!1}var M8=te(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function G0({comment:e,precedingNode:t,enclosingNode:r,text:s}){return r&&t&&Nt(s,ne(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&Nt(s,ne(t))!==":"||t?.type==="Decorator"&&M8(r)&&(_i(e)||e.placement==="ownLine")?(Te(t,e),!0):!1}var Y0=te(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function j8({comment:e,precedingNode:t,enclosingNode:r,text:s}){return Nt(s,ne(e))!=="("?!1:t&&Y0(r)?(Te(t,e),!0):!1}function R8({comment:e,enclosingNode:t,text:r}){if(t?.type!=="ArrowFunctionExpression")return!1;let s=yn(r,ne(e));return s!==!1&&r.slice(s,s+2)==="=>"?(ct(t,e),!0):!1}function U8({comment:e,enclosingNode:t,text:r}){return Nt(r,ne(e))!==")"?!1:t&&(sD(t)&&He(t).length===0||fn(t)&&ft(t).length===0)?(ct(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&He(t.value).length===0?(ct(t.value,e),!0):!1}function q8({comment:e,precedingNode:t,enclosingNode:r,followingNode:s,text:n}){return t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&s?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&Nt(n,ne(e))===")"?(Te(t,e),!0):!1}function Q0({comment:e,precedingNode:t,enclosingNode:r,followingNode:s,text:n}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&s?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&sD(r)&&Nt(n,ne(e))===")"?(Te(t,e),!0):!_t(e)&&s?.type==="BlockStatement"&&Y0(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===s&&yn(n,ne(e))===oe(s)?(bs(s,e),!0):!1}function Z0({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(Be(t,e),!0):!1}function Jp({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(Te(t,e),!0):!1}function $8({comment:e,precedingNode:t,enclosingNode:r}){return fe(r)&&t&&r.callee===t&&r.arguments.length>0?(Be(r.arguments[0],e),!0):!1}function V8({comment:e,precedingNode:t,enclosingNode:r,followingNode:s}){return Qt(r)?(dn(e)&&(s.prettierIgnore=!0,e.unignore=!0),t?(Te(t,e),!0):!1):(Qt(s)&&dn(e)&&(s.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function W8({comment:e,precedingNode:t,enclosingNode:r,followingNode:s}){return r&&r.type==="MatchOrPattern"?(dn(e)&&(s.prettierIgnore=!0,e.unignore=!0),t?(Te(t,e),!0):!1):(s&&s.type==="MatchOrPattern"&&dn(e)&&(s.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function H8({comment:e,enclosingNode:t}){return Xr(t)?(Be(t,e),!0):!1}function Xp({comment:e,enclosingNode:t,ast:r,isLastComment:s}){return r?.body?.length===0?(s?ct(r,e):Be(r,e),!0):t?.type==="Program"&&t.body.length===0&&!Fe(t.directives)?(s?ct(t,e):Be(t,e),!0):!1}function z8({comment:e,enclosingNode:t,followingNode:r}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&r!==t.body?(Be(t,e),!0):!1}function eD({comment:e,precedingNode:t,enclosingNode:r,text:s}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Be(r,e),!0;let n=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(n||i)&&nt(s,ne(e))?(Te(t,e),!0):!1}function J8({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(Be(t,e),!0):!1}var X8=te(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),K8=te(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function G8({comment:e,enclosingNode:t,followingNode:r}){return X8(t)&&r&&(K8(r)||_t(e))?(Be(r,e),!0):!1}function Y8({comment:e,enclosingNode:t,precedingNode:r,followingNode:s,text:n}){return!s&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&Nt(n,ne(e))===";"?(Te(t,e),!0):!1}function tD({comment:e,enclosingNode:t,followingNode:r}){if(dn(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function rD({comment:e,precedingNode:t,enclosingNode:r}){if(r?.type==="TSMappedType"&&!t)return ct(r,e),!0}function Q8({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&_i(e)?bs(r,e):ct(t,e),!0)}function Z8({comment:e,precedingNode:t,enclosingNode:r,followingNode:s}){return Qt(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!s||Oi(r))?(Te(me(0,t.types,-1),e),!0):!1}function eN({comment:e,enclosingNode:t,precedingNode:r,followingNode:s}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&s?.type==="TSTypeAnnotation")return r?Te(r,e):ct(t,e),!0}function tN({comment:e,precedingNode:t,enclosingNode:r,followingNode:s,text:n}){return!s&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&ht(n,oe(r.argument),oe(t.right))&&Wp(e,n)&&!ht(n,oe(t.right),oe(e))?(Te(t.right,e),!0):!1}function rN({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(Qt(t)||Oi(t)))return Be(t,r),!0}function Kp({enclosingNode:e,precedingNode:t,followingNode:r,comment:s,text:n}){if(kt(e)&&t===e.expression&&!Wp(s,n))return r?Be(r,s):Te(e,s),!0}function sN({comment:e,enclosingNode:t,followingNode:r,precedingNode:s}){return t&&r&&s&&t.type==="ArrowFunctionExpression"&&t.returnType===s&&(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation")?(Be(r,e),!0):!1}var sD=te(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),nN={endOfLine:B8,ownLine:P8,remaining:N8},iN=nN;function aN(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Me(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var oN=aN,uN=te(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function lN(e){let{key:t,parent:r}=e;if(t==="types"&&Qt(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&uN(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:s}=e;return xo(s)?!1:Qt(s)?W0(e):!!je(s)}var pN=lN,Ts="string",xr="array",Dn="cursor",vs="indent",Ss="align",ws="trim",Tt="group",Kr="fill",Gt="if-break",ks="indent-if-break",Ps="line-suffix",Gr="line-suffix-boundary",at="line",Cr="label",Fr="break-parent",nD=new Set([Dn,vs,Ss,ws,Tt,Kr,Gt,ks,Ps,Gr,at,Cr,Fr]);function cN(e){if(typeof e=="string")return Ts;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(nD.has(t))return t}var Yr=cN,hN=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function dN(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
136
|
+
Expected it to be 'string' or 'object'.`;if(Yr(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=hN([...nD].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
|
|
137
|
+
Expected it to be ${s}.`}var fN=class extends Error{constructor(t){super(dN(t));U(this,"name","InvalidDocError");this.doc=t}},Pi=fN,Qy={};function mN(e,t,r,s){let n=[e];for(;n.length>0;){let i=n.pop();if(i===Qy){r(n.pop());continue}r&&n.push(i,Qy);let a=Yr(i);if(!a)throw new Pi(i);if(t?.(i)!==!1)switch(a){case xr:case Kr:{let o=a===xr?i:i.parts;for(let u=o.length,c=u-1;c>=0;--c)n.push(o[c]);break}case Gt:n.push(i.flatContents,i.breakContents);break;case Tt:if(s&&i.expandedStates)for(let o=i.expandedStates.length,u=o-1;u>=0;--u)n.push(i.expandedStates[u]);else n.push(i.contents);break;case Ss:case vs:case ks:case Cr:case Ps:n.push(i.contents);break;case Ts:case Dn:case ws:case Gr:case at:case Fr:break;default:throw new Pi(i)}}}var Gp=mN;function gn(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(Yr(i)){case xr:return t(i.map(s));case Kr:return t({...i,parts:i.parts.map(s)});case Gt:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Tt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Ss:case vs:case ks:case Cr:case Ps:return t({...i,contents:s(i.contents)});case Ts:case Dn:case ws:case Gr:case at:case Fr:return t(i);default:throw new Pi(i)}}}function iD(e,t,r){let s=r,n=!1;function i(a){if(n)return!1;let o=t(a);o!==void 0&&(n=!0,s=o)}return Gp(e,i),s}function yN(e){if(e.type===Tt&&e.break||e.type===at&&e.hard||e.type===Fr)return!0}function Ke(e){return iD(e,yN,!1)}function Zy(e){if(e.length>0){let t=me(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function DN(e){let t=new Set,r=[];function s(i){if(i.type===Fr&&Zy(r),i.type===Tt){if(r.push(i),t.has(i))return!1;t.add(i)}}function n(i){i.type===Tt&&r.pop().break&&Zy(r)}Gp(e,s,n,!0)}function gN(e){return e.type===at&&!e.hard?e.soft?"":" ":e.type===Gt?e.flatContents:e}function ho(e){return gn(e,gN)}function EN(e){switch(Yr(e)){case Kr:if(e.parts.every(t=>t===""))return"";break;case Tt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Tt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ss:case vs:case ks:case Ps:if(!e.contents)return"";break;case Gt:if(!e.flatContents&&!e.breakContents)return"";break;case xr:{let t=[];for(let r of e){if(!r)continue;let[s,...n]=Array.isArray(r)?r:[r];typeof s=="string"&&typeof me(0,t,-1)=="string"?t[t.length-1]+=s:t.push(s),t.push(...n)}return t.length===0?"":t.length===1?t[0]:t}case Ts:case Dn:case ws:case Gr:case at:case Cr:case Fr:break;default:throw new Pi(e)}return e}function Yp(e){return gn(e,t=>EN(t))}function Cs(e,t=pD){return gn(e,r=>typeof r=="string"?ce(t,r.split(`
|
|
138
|
+
`)):r)}function xN(e){if(e.type===at)return!0}function AN(e){return iD(e,xN,!1)}function xp(e,t){return e.type===Cr?{...e,contents:t(e.contents)}:t(e)}function CN(e){let t=!0;return Gp(e,r=>{switch(Yr(r)){case Ts:if(r==="")break;case ws:case Gr:case at:case Fr:return t=!1,!1}}),t}var Zt=Fs,aD=Fs,FN=Fs,bN=Fs;function M(e){return Zt(e),{type:vs,contents:e}}function It(e,t){return bN(e),Zt(t),{type:Ss,contents:t,n:e}}function TN(e){return It(Number.NEGATIVE_INFINITY,e)}function oD(e){return It(-1,e)}function vN(e,t,r){Zt(e);let s=e;if(t>0){for(let n=0;n<Math.floor(t/r);++n)s=M(s);s=It(t%r,s),s=It(Number.NEGATIVE_INFINITY,s)}return s}var Ar={type:Fr},no={type:Dn};function uD(e){return FN(e),{type:Kr,parts:e}}function w(e,t={}){return Zt(e),aD(t.expandedStates,!0),{type:Tt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function xs(e,t){return w(e[0],{...t,expandedStates:e})}function ee(e,t="",r={}){return Zt(e),t!==""&&Zt(t),{type:Gt,breakContents:e,flatContents:t,groupId:r.groupId}}function Bi(e,t){return Zt(e),{type:ks,contents:e,groupId:t.groupId,negate:t.negate}}function ce(e,t){Zt(e),aD(t);let r=[];for(let s=0;s<t.length;s++)s!==0&&r.push(e),r.push(t[s]);return r}function Mi(e,t){return Zt(t),e?{type:Cr,label:e,contents:t}:t}var H={type:at},L={type:at,soft:!0},lD={type:at,hard:!0},R=[lD,Ar],SN={type:at,hard:!0,literal:!0},pD=[SN,Ar];function e0(e){return Zt(e),{type:Ps,contents:e}}var er={type:Gr},wN="cr",kN="crlf",PN="\r",BN=`\r
|
|
139
|
+
`,NN=`
|
|
140
|
+
`,IN=NN;function _N(e){return e===wN?PN:e===kN?BN:IN}var LN={type:0},ON={type:1},cD={value:"",length:0,queue:[],get root(){return cD}};function hD(e,t,r){let s=t.type===1?e.queue.slice(0,-1):[...e.queue,t],n="",i=0,a=0,o=0;for(let m of s)switch(m.type){case 0:p(),r.useTabs?u(1):c(r.tabWidth);break;case 3:{let{string:f}=m;p(),n+=f,i+=f.length;break}case 2:{let{width:f}=m;a+=1,o+=f;break}default:throw new Error(`Unexpected indent comment '${m.type}'.`)}return h(),{...e,value:n,length:i,queue:s};function u(m){n+=" ".repeat(m),i+=r.tabWidth*m}function c(m){n+=" ".repeat(m),i+=m}function p(){r.useTabs?l():h()}function l(){a>0&&u(a),d()}function h(){o>0&&c(o),d()}function d(){a=0,o=0}}function MN(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let s;return typeof t=="number"?t<0?s=ON:s={type:2,width:t}:s={type:3,string:t},hD(e,s,r)}function jN(e,t){return hD(e,LN,t)}function RN(e){let t=0;for(let r=e.length-1;r>=0;r--){let s=e[r];if(s===" "||s===" ")t++;else break}return t}function dD(e){let t=RN(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var st=Symbol("MODE_BREAK"),Kt=Symbol("MODE_FLAT"),Ap=Symbol("DOC_FILL_PRINTED_LENGTH");function io(e,t,r,s,n,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,o=!1,u=[e],c="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(t[--a]);continue}let{mode:p,doc:l}=u.pop(),h=Yr(l);switch(h){case Ts:l&&(o&&(c+=" ",r-=1,o=!1),c+=l,r-=ln(l));break;case xr:case Kr:{let d=h===xr?l:l.parts,m=l[Ap]??0;for(let f=d.length-1;f>=m;f--)u.push({mode:p,doc:d[f]});break}case vs:case Ss:case ks:case Cr:u.push({mode:p,doc:l.contents});break;case ws:{let{text:d,count:m}=dD(c);c=d,r+=m;break}case Tt:{if(i&&l.break)return!1;let d=l.break?st:p,m=l.expandedStates&&d===st?me(0,l.expandedStates,-1):l.contents;u.push({mode:d,doc:m});break}case Gt:{let d=(l.groupId?n[l.groupId]||Kt:p)===st?l.breakContents:l.flatContents;d&&u.push({mode:p,doc:d});break}case at:if(p===st||l.hard)return!0;l.soft||(o=!0);break;case Ps:s=!0;break;case Gr:if(s)return!1;break}}return!1}function fD(e,t){let r=Object.create(null),s=t.printWidth,n=_N(t.endOfLine),i=0,a=[{indent:cD,mode:st,doc:e}],o="",u=!1,c=[],p=[],l=[],h=[],d=0;for(DN(e);a.length>0;){let{indent:y,mode:E,doc:A}=a.pop();switch(Yr(A)){case Ts:{let x=n!==`
|
|
141
|
+
`?Me(0,A,`
|
|
142
|
+
`,n):A;x&&(o+=x,a.length>0&&(i+=ln(x)));break}case xr:for(let x=A.length-1;x>=0;x--)a.push({indent:y,mode:E,doc:A[x]});break;case Dn:if(p.length>=2)throw new Error("There are too many 'cursor' in doc.");p.push(d+o.length);break;case vs:a.push({indent:jN(y,t),mode:E,doc:A.contents});break;case Ss:a.push({indent:MN(y,A.n,t),mode:E,doc:A.contents});break;case ws:g();break;case Tt:switch(E){case Kt:if(!u){a.push({indent:y,mode:A.break?st:Kt,doc:A.contents});break}case st:{u=!1;let x={indent:y,mode:Kt,doc:A.contents},T=s-i,S=c.length>0;if(!A.break&&io(x,a,T,S,r))a.push(x);else if(A.expandedStates){let v=me(0,A.expandedStates,-1);if(A.break){a.push({indent:y,mode:st,doc:v});break}else for(let k=1;k<A.expandedStates.length+1;k++)if(k>=A.expandedStates.length){a.push({indent:y,mode:st,doc:v});break}else{let N=A.expandedStates[k],B={indent:y,mode:Kt,doc:N};if(io(B,a,T,S,r)){a.push(B);break}}}else a.push({indent:y,mode:st,doc:A.contents});break}}A.id&&(r[A.id]=me(0,a,-1).mode);break;case Kr:{let x=s-i,T=A[Ap]??0,{parts:S}=A,v=S.length-T;if(v===0)break;let k=S[T+0],N=S[T+1],B={indent:y,mode:Kt,doc:k},q={indent:y,mode:st,doc:k},j=io(B,[],x,c.length>0,r,!0);if(v===1){j?a.push(B):a.push(q);break}let I={indent:y,mode:Kt,doc:N},W={indent:y,mode:st,doc:N};if(v===2){j?a.push(I,B):a.push(W,q);break}let X=S[T+2],Z={indent:y,mode:E,doc:{...A,[Ap]:T+2}},Se=io({indent:y,mode:Kt,doc:[k,N,X]},[],x,c.length>0,r,!0);a.push(Z),Se?a.push(I,B):j?a.push(W,B):a.push(W,q);break}case Gt:case ks:{let x=A.groupId?r[A.groupId]:E;if(x===st){let T=A.type===Gt?A.breakContents:A.negate?A.contents:M(A.contents);T&&a.push({indent:y,mode:E,doc:T})}if(x===Kt){let T=A.type===Gt?A.flatContents:A.negate?M(A.contents):A.contents;T&&a.push({indent:y,mode:E,doc:T})}break}case Ps:c.push({indent:y,mode:E,doc:A.contents});break;case Gr:c.length>0&&a.push({indent:y,mode:E,doc:lD});break;case at:switch(E){case Kt:if(A.hard)u=!0;else{A.soft||(o+=" ",i+=1);break}case st:if(c.length>0){a.push({indent:y,mode:E,doc:A},...c.reverse()),c.length=0;break}A.literal?(o+=n,i=0,y.root&&(y.root.value&&(o+=y.root.value),i=y.root.length)):(g(),o+=n+y.value,i=y.length);break}break;case Cr:a.push({indent:y,mode:E,doc:A.contents});break;case Fr:break;default:throw new Pi(A)}a.length===0&&c.length>0&&(a.push(...c.reverse()),c.length=0)}let m=l.join("")+o,f=[...h,...p];if(f.length!==2)return{formatted:m};let D=f[0];return{formatted:m,cursorNodeStart:D,cursorNodeText:m.slice(D,me(0,f,-1))};function g(){let{text:y,count:E}=dD(o);y&&(l.push(y),d+=y.length),o="",i-=E,p.length>0&&(h.push(...p.map(A=>Math.min(A,d))),p.length=0)}}function UN(e,t,r=0){let s=0;for(let n=r;n<e.length;++n)e[n]===" "?s=s+t-s%t:s++;return s}var qN=UN;function $N(e,t){let r=e.lastIndexOf(`
|
|
143
|
+
`);return r===-1?0:qN(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var VN=$N;function mD(e,t,r){let{node:s}=e;if(s.type==="TemplateLiteral"&&JN(e)){let u=HN(e,t,r);if(u)return u}let n="expressions";s.type==="TSTemplateLiteralType"&&(n="types");let i=[],a=e.map(r,n);i.push(er,"`");let o=0;return e.each(({index:u,node:c})=>{if(i.push(r()),c.tail)return;let{tabWidth:p}=t,l=c.value.raw,h=l.includes(`
|
|
144
|
+
`)?VN(l,p):o;o=h;let d=a[u],m=s[n][u],f=ht(t.originalText,ne(c),oe(s.quasis[u+1]));if(!f){let g=fD(d,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(`
|
|
145
|
+
`)?f=!0:d=g}f&&(V(m)||m.type==="Identifier"||Ce(m)||m.type==="ConditionalExpression"||m.type==="SequenceExpression"||kt(m)||Er(m))&&(d=[M([L,d]),L]);let D=h===0&&l.endsWith(`
|
|
146
|
+
`)?It(Number.NEGATIVE_INFINITY,d):vN(d,h,p);i.push(w(["${",D,er,"}"]))},"quasis"),i.push("`"),i}function WN(e,t,r){let s=r("quasi"),{node:n}=e,i="",a=As(n.quasi,K.Leading)[0];return a&&(ht(t.originalText,ne(n.typeArguments??n.tag),oe(a))?i=L:i=" "),Mi(s.label&&{tagged:!0,...s.label},[r("tag"),r("typeArguments"),i,er,s])}function HN(e,t,r){let{node:s}=e,n=s.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(n.length>1||n.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let a=i.map(l=>"${"+fD(l,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let l=1;l<s.quasis.length;l++){let h=me(0,o,-1),d=a[l-1];h.cells.push(d),d.includes(`
|
|
147
|
+
`)&&(h.hasLineBreak=!0),s.quasis[l].value.raw.includes(`
|
|
148
|
+
`)&&o.push({hasLineBreak:!1,cells:[]})}let u=Math.max(n.length,...o.map(l=>l.cells.length)),c=Array.from({length:u}).fill(0),p=[{cells:n},...o.filter(l=>l.cells.length>0)];for(let{cells:l}of p.filter(h=>!h.hasLineBreak))for(let[h,d]of l.entries())c[h]=Math.max(c[h],ln(d));return[er,"`",M([R,ce(R,p.map(l=>ce(" | ",l.cells.map((h,d)=>l.hasLineBreak?h:h+" ".repeat(c[d]-ln(h))))))]),R,"`"]}}function zN(e,t){let{node:r}=e,s=t();return V(r)&&(s=w([M([L,s]),L])),["${",s,er,"}"]}function Qp(e,t){return e.map(()=>zN(e,t),"expressions")}function yD(e,t){return gn(e,r=>typeof r=="string"?t?Me(0,r,/(\\*)`/gu,"$1$1\\`"):DD(r):r)}function DD(e){return Me(0,e,/([\\`]|\$\{)/gu,"\\$1")}function JN({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var Cp=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function XN(e){let t=s=>s.type==="TemplateLiteral",r=(s,n)=>Xr(s)&&!s.computed&&s.key.type==="Identifier"&&s.key.name==="styles"&&n==="value";return e.match(t,(s,n)=>$e(s)&&n==="elements",r,...Cp)||e.match(t,r,...Cp)}function KN(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Xr(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Cp)}function op(e,t){return V(e,K.Block|K.Leading,({value:r})=>r===` ${t} `)}function gD({node:e,parent:t},r){return op(e,r)||GN(t)&&op(t,r)||t.type==="ExpressionStatement"&&op(t,r)}function GN(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function YN(e,t,r){let{node:s}=r,n="";for(let[u,c]of s.quasis.entries()){let{raw:p}=c.value;u>0&&(n+="@prettier-placeholder-"+(u-1)+"-id"),n+=p}let i=await e(n,{parser:"scss"}),a=Qp(r,t),o=QN(i,a);if(!o)throw new Error("Couldn't insert all the expressions");return["`",M([R,o]),L,"`"]}function QN(e,t){if(!Fe(t))return e;let r=0,s=gn(Yp(e),n=>typeof n!="string"||!n.includes("@prettier-placeholder")?n:n.split(/@prettier-placeholder-(\d+)-id/u).map((i,a)=>a%2===0?Cs(i):(r++,t[i])));return t.length===r?s:null}function ZN(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&Op(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.type==="JSXIdentifier"&&s.name.name==="jsx"))}function ao(e){return e.type==="Identifier"&&e.name==="styled"}function t0(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function eI({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return ao(t.object)||t0(t);case"CallExpression":return ao(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(ao(t.callee.object.object)||t0(t.callee.object))||t.callee.object.type==="CallExpression"&&ao(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function tI({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var rI=e=>ZN(e)||eI(e)||tI(e)||XN(e);async function sI(e,t,r){let{node:s}=r,n=s.quasis.length,i=Qp(r,t),a=[];for(let o=0;o<n;o++){let u=s.quasis[o],c=o===0,p=o===n-1,l=u.value.cooked,h=l.split(`
|
|
149
|
+
`),d=h.length,m=i[o],f=d>2&&h[0].trim()===""&&h[1].trim()==="",D=d>2&&h[d-1].trim()===""&&h[d-2].trim()==="",g=h.every(E=>/^\s*(?:#[^\n\r]*)?$/u.test(E));if(!p&&/#[^\n\r]*$/u.test(h[d-1]))return null;let y=null;g?y=nI(h):y=await e(l,{parser:"graphql"}),y?(y=yD(y,!1),!c&&f&&a.push(""),a.push(y),!p&&D&&a.push("")):!c&&!p&&f&&a.push(""),m&&a.push(m)}return["`",M([R,ce(R,a)]),R,"`"]}function nI(e){let t=[],r=!1,s=e.map(n=>n.trim());for(let[n,i]of s.entries())i!==""&&(s[n-1]===""&&r?t.push([R,i]):t.push(i),r=!0);return t.length===0?null:ce(R,t)}function iI({node:e,parent:t}){return gD({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var up=0;async function ED(e,t,r,s,n){let{node:i}=s,a=up;up=up+1>>>0;let o=g=>`PRETTIER_HTML_PLACEHOLDER_${g}_${a}_IN_JS`,u=i.quasis.map((g,y,E)=>y===E.length-1?g.value.cooked:g.value.cooked+o(y)).join(""),c=Qp(s,r),p=new RegExp(o("(\\d+)"),"gu"),l=0,h=await t(u,{parser:e,__onHtmlRoot(g){l=g.children.length}}),d=gn(h,g=>{if(typeof g!="string")return g;let y=[],E=g.split(p);for(let A=0;A<E.length;A++){let x=E[A];if(A%2===0){x&&(x=DD(x),n.__embeddedInHtml&&(x=Me(0,x,/<\/(?=script\b)/giu,"<\\/")),y.push(x));continue}let T=Number(x);y.push(c[T])}return y}),m=/^\s/u.test(u)?" ":"",f=/\s$/u.test(u)?" ":"",D=n.htmlWhitespaceSensitivity==="ignore"?R:m&&f?H:null;return D?w(["`",M([D,w(d)]),D,"`"]):Mi({hug:!1},w(["`",m,l>1?M(w(d)):w(d),f,"`"]))}function aI(e){return gD(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var oI=ED.bind(void 0,"html"),uI=ED.bind(void 0,"angular");async function lI(e,t,r){let{node:s}=r,n=Me(0,s.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,c)=>"\\".repeat(c.length/2)+"`"),i=pI(n),a=i!=="";a&&(n=Me(0,n,new RegExp(`^${i}`,"gmu"),""));let o=yD(await e(n,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?M([L,o]):[pD,TN(o)],L,"`"]}function pI(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function cI({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var hI=[{test:rI,print:YN},{test:iI,print:sI},{test:aI,print:oI},{test:KN,print:uI},{test:cI,print:lI}].map(({test:e,print:t})=>({test:e,print:fI(t)}));function dI(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||mI(t))return;let r=hI.find(({test:s})=>s(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function fI(e){return async(...t)=>{let r=await e(...t);return r&&Mi({embed:!0,...r.label},r)}}function mI({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var yI=dI,DI=/\*\/$/,gI=/^\/\*\*?/,xD=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,EI=/(^|\s+)\/\/([^\n\r]*)/g,r0=/^(\r?\n)+/,xI=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,s0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,AI=/(\r?\n|^) *\* ?/g,AD=[];function CI(e){let t=e.match(xD);return t?t[0].trimStart():""}function FI(e){let t=e.match(xD)?.[0];return t==null?e:e.slice(t.length)}function bI(e){e=Me(0,e.replace(gI,"").replace(DI,""),AI,"$1");let t="";for(;t!==e;)t=e,e=Me(0,e,xI,`
|
|
150
|
+
$1 $2
|
|
151
|
+
`);e=e.replace(r0,"").trimEnd();let r=Object.create(null),s=Me(0,e,s0,"").replace(r0,"").trimEnd(),n;for(;n=s0.exec(e);){let i=Me(0,n[2],EI,"");if(typeof r[n[1]]=="string"||Array.isArray(r[n[1]])){let a=r[n[1]];r[n[1]]=[...AD,...Array.isArray(a)?a:[a],i]}else r[n[1]]=i}return{comments:s,pragmas:r}}function TI({comments:e="",pragmas:t={}}){let r=Object.keys(t),s=r.flatMap(i=>n0(i,t[i])).map(i=>` * ${i}
|
|
152
|
+
`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${n0(r[0],i)[0]} */`}}let n=e.split(`
|
|
153
|
+
`).map(i=>` * ${i}`).join(`
|
|
154
|
+
`)+`
|
|
155
|
+
`;return`/**
|
|
156
|
+
`+(e?n:"")+(e&&r.length>0?` *
|
|
157
|
+
`:"")+s+" */"}function n0(e,t){return[...AD,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var vI="format";function SI(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
158
|
+
`);return t===-1?e:e.slice(0,t)}var wI=SI;function kI(e){let t=wI(e);t&&(e=e.slice(t.length+1));let r=CI(e),{pragmas:s,comments:n}=bI(r);return{shebang:t,text:e,pragmas:s,comments:n}}function PI(e){let{shebang:t,text:r,pragmas:s,comments:n}=kI(e),i=FI(r),a=TI({pragmas:{[vI]:"",...s},comments:n.trimStart()});return(t?`${t}
|
|
159
|
+
`:"")+a+(i.startsWith(`
|
|
160
|
+
`)?`
|
|
161
|
+
`:`
|
|
162
|
+
|
|
163
|
+
`)+i}function BI(e){if(!_t(e))return!1;let t=`*${e.value}*`.split(`
|
|
164
|
+
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var lp=new WeakMap;function NI(e){return lp.has(e)||lp.set(e,BI(e)),lp.get(e)}var II=NI;function _I(e,t){let r=e.node;if(_i(r))return t.originalText.slice(oe(r),ne(r)).trimEnd();if(II(r))return LI(r);if(_t(r))return["/*",Cs(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function LI(e){let t=e.value.split(`
|
|
165
|
+
`);return["/*",ce(R,t.map((r,s)=>s===0?r.trimEnd():" "+(s<t.length-1?r.trim():r.trimStart()))),"*/"]}function Fp(e,t){if(e.isRoot)return!1;let{node:r,key:s,parent:n}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&RI(r)&&bi(e))return!0;if(OI(r))return!1;if(r.type==="Identifier"){if(r.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||s==="left"&&(r.name==="async"&&!n.await||r.name==="let")&&n.type==="ForOfStatement")return!0;if(r.name==="let"){let i=e.findAncestor(a=>a.type==="ForOfStatement")?.left;if(i&&Xe(i,a=>a===r))return!0}if(s==="object"&&r.name==="let"&&n.type==="MemberExpression"&&n.computed&&!n.optional){let i=e.findAncestor(o=>o.type==="ExpressionStatement"||o.type==="ForStatement"||o.type==="ForInStatement"),a=i?i.type==="ExpressionStatement"?i.expression:i.type==="ForStatement"?i.init:i.left:void 0;if(a&&Xe(a,o=>o===r))return!0}if(s==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let i=e.findAncestor(a=>!kt(a));if(i!==n&&i.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let i=e.findAncestor(a=>a.type==="ExpressionStatement")?.expression;if(i&&Xe(i,a=>a===r))return!0}if(r.type==="ObjectExpression"){let i=e.findAncestor(a=>a.type==="ArrowFunctionExpression")?.body;if(i&&i.type!=="SequenceExpression"&&i.type!=="AssignmentExpression"&&Xe(i,a=>a===r))return!0}switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(s==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&Fe(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return CD(e,t)||r.type==="SequenceExpression";case"Decorator":if(s==="expression"&&!qI(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression")&&jI(r))return!0;break;case"BinaryExpression":if(s==="left"&&(n.operator==="in"||n.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(s==="init"&&e.match(void 0,void 0,(i,a)=>a==="declarations"&&i.type==="VariableDeclaration",(i,a)=>a==="left"&&i.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(n.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&n.operator==="+"||r.operator==="--"&&n.operator==="-");case"UnaryExpression":switch(n.type){case"UnaryExpression":return r.operator===n.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"BinaryExpression":return s==="left"&&n.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(n.type==="UpdateExpression"||r.operator==="in"&&MI(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let i=e.grandparent;if(i.type==="BinaryExpression"&&i.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!kt(r);case"ConditionalExpression":return kt(r)||e8(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return s==="callee";case"ClassExpression":case"ClassDeclaration":return s==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"AssignmentExpression":case"AssignmentPattern":return s==="left"&&(r.type==="TSTypeAssertion"||kt(r));case"LogicalExpression":if(r.type==="LogicalExpression")return n.operator!==r.operator;case"BinaryExpression":{let{operator:i,type:a}=r;if(!i&&a!=="TSTypeAssertion")return!0;let o=po(i),u=n.operator,c=po(u);return!!(c>o||s==="right"&&c===o||c===o&&!$p(u,i)||c<o&&i==="%"&&(u==="+"||u==="-")||d8(u))}default:return!1}case"SequenceExpression":return n.type!=="ForStatement";case"YieldExpression":if(n.type==="AwaitExpression"||n.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return s==="test";case"BinaryExpression":return!(!r.argument&&n.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(i=>i.type==="TSFunctionType",(i,a)=>a==="typeAnnotation"&&i.type==="TSTypeAnnotation",(i,a)=>a==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(s==="extendsType"&&Jr(r)&&n.type===r.type||s==="checkType"&&Jr(n))return!0;if(s==="extendsType"&&n.type==="TSConditionalType"){let{typeAnnotation:i}=r.returnType||r.typeAnnotation;if(i.type==="TSTypePredicate"&&i.typeAnnotation&&(i=i.typeAnnotation.typeAnnotation),i.type==="TSInferType"&&i.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(Qt(n)||Oi(n))return!0;case"TSInferType":if(r.type==="TSInferType"){if(n.type==="TSRestType")return!1;if(s==="types"&&(n.type==="TSUnionType"||n.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return n.type==="TSArrayType"||n.type==="TSOptionalType"||n.type==="TSRestType"||s==="objectType"&&n.type==="TSIndexedAccessType"||n.type==="TSTypeOperator"||n.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return s==="objectType"&&n.type==="TSIndexedAccessType"||s==="elementType"&&n.type==="TSArrayType";case"TypeOperator":return n.type==="ArrayTypeAnnotation"||n.type==="NullableTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType")||n.type==="TypeOperator";case"TypeofTypeAnnotation":return s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType")||s==="elementType"&&n.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return n.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return n.type==="TypeOperator"||n.type==="KeyofTypeAnnotation"||n.type==="ArrayTypeAnnotation"||n.type==="NullableTypeAnnotation"||n.type==="IntersectionTypeAnnotation"||n.type==="UnionTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return n.type==="ArrayTypeAnnotation"||s==="objectType"&&(n.type==="IndexedAccessType"||n.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(a,o)=>o==="typeAnnotation"&&a.type==="TypeAnnotation",(a,o)=>o==="returnType"&&a.type==="ArrowFunctionExpression")||e.match(void 0,(a,o)=>o==="typeAnnotation"&&a.type==="TypePredicate",(a,o)=>o==="typeAnnotation"&&a.type==="TypeAnnotation",(a,o)=>o==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;let i=n.type==="NullableTypeAnnotation"?e.grandparent:n;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||s==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||s==="checkType"&&n.type==="ConditionalTypeAnnotation"||s==="extendsType"&&n.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||i.type==="NullableTypeAnnotation"||n.type==="FunctionTypeParam"&&n.name===null&&He(r).some(a=>a.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return s==="objectType"&&n.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&n.type==="ExpressionStatement"&&typeof n.directive!="string"){let i=e.grandparent;return i.type==="Program"||i.type==="BlockStatement"}return s==="object"&&Ce(n)&&Yt(r);case"AssignmentExpression":return!((s==="init"||s==="update")&&n.type==="ForStatement"||s==="expression"&&r.left.type!=="ObjectPattern"&&n.type==="ExpressionStatement"||s==="key"&&n.type==="TSPropertySignature"||n.type==="AssignmentExpression"||s==="expressions"&&n.type==="SequenceExpression"&&e.match(void 0,void 0,(i,a)=>(a==="init"||a==="update")&&i.type==="ForStatement")||s==="value"&&n.type==="Property"&&e.match(void 0,void 0,(i,a)=>a==="properties"&&i.type==="ObjectPattern")||n.type==="NGChainedExpression"||s==="node"&&n.type==="JsExpressionRoot");case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:s==="test";case"MemberExpression":case"OptionalMemberExpression":return s==="object";default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return n.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return s==="callee";case"MemberExpression":case"OptionalMemberExpression":return s==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return s==="expression";case"ConditionalExpression":return s==="test";default:return!1}case"ClassExpression":return n.type==="NewExpression"?s==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(UI(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(s==="callee"&&(n.type==="BindExpression"||n.type==="NewExpression")){let i=r;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return s==="callee"&&(n.type==="BindExpression"||n.type==="NewExpression")||s==="object"&&Ce(n);case"NGPipeExpression":return!(n.type==="NGRoot"||n.type==="NGMicrosyntaxExpression"||n.type==="ObjectProperty"&&!r.extra?.parenthesized||$e(n)||s==="arguments"&&fe(n)||s==="right"&&n.type==="NGPipeExpression"||s==="property"&&n.type==="MemberExpression"||n.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return s==="callee"||s==="left"&&n.type==="BinaryExpression"&&n.operator==="<"||!$e(n)&&n.type!=="ArrowFunctionExpression"&&n.type!=="AssignmentExpression"&&n.type!=="AssignmentPattern"&&n.type!=="BinaryExpression"&&n.type!=="NewExpression"&&n.type!=="ConditionalExpression"&&n.type!=="ExpressionStatement"&&n.type!=="JsExpressionRoot"&&n.type!=="JSXAttribute"&&n.type!=="JSXElement"&&n.type!=="JSXExpressionContainer"&&n.type!=="JSXFragment"&&n.type!=="LogicalExpression"&&!fe(n)&&!Xr(n)&&n.type!=="ReturnStatement"&&n.type!=="ThrowStatement"&&n.type!=="TypeCastExpression"&&n.type!=="VariableDeclarator"&&n.type!=="YieldExpression"&&n.type!=="MatchExpressionCase";case"TSInstantiationExpression":return s==="object"&&Ce(n);case"MatchOrPattern":return n.type==="MatchAsPattern"}return!1}var OI=te(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function MI(e){let t=0,{node:r}=e;for(;r;){let s=e.getParentNode(t++);if(s?.type==="ForStatement"&&s.init===r)return!0;r=s}return!1}function jI(e){return yp(e,t=>t.type==="ObjectTypeAnnotation"&&yp(t,r=>r.type==="FunctionTypeAnnotation"))}function RI(e){return Bt(e)}function bi(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(bi);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(bi);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(bi);break;case"UnaryExpression":if(t.prefix)return e.callParent(bi);break}return!1}function CD(e,t){let{node:r,parent:s}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?s.type==="ExportDefaultDeclaration"||!Fp(e,t):!jp(r)||s.type!=="ExportDefaultDeclaration"&&Fp(e,t)?!1:e.call(()=>CD(e,t),..._0(r))}function UI(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function bp(e){return e.type==="Identifier"?!0:Ce(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&bp(e.object):!1}function qI(e){return e.type==="ChainExpression"&&(e=e.expression),bp(e)||fe(e)&&!e.optional&&bp(e.callee)}var Qr=Fp;function $I(e,t){let r=t-1;r=pn(e,r,{backwards:!0}),r=cn(e,r,{backwards:!0}),r=pn(e,r,{backwards:!0});let s=cn(e,r,{backwards:!0});return r!==s}var VI=$I,WI=()=>!0;function Zp(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function HI(e,t){let r=e.node,s=[Zp(e,t)],{printer:n,originalText:i,locStart:a,locEnd:o}=t;if(n.isBlockComment?.(r)){let c=nt(i,o(r))?nt(i,a(r),{backwards:!0})?R:H:" ";s.push(c)}else s.push(R);let u=cn(i,pn(i,o(r)));return u!==!1&&nt(i,u)&&s.push(R),s}function zI(e,t,r){let s=e.node,n=Zp(e,t),{printer:i,originalText:a,locStart:o}=t,u=i.isBlockComment?.(s);if(r?.hasLineSuffix&&!r?.isBlock||nt(a,o(s),{backwards:!0})){let c=VI(a,o(s));return{doc:e0([R,c?R:"",n]),isBlock:u,hasLineSuffix:!0}}return!u||r?.hasLineSuffix?{doc:[e0([" ",n]),Ar],isBlock:u,hasLineSuffix:!0}:{doc:[" ",n],isBlock:u,hasLineSuffix:!1}}function Ae(e,t,r={}){let{node:s}=e;if(!Fe(s?.comments))return"";let{indent:n=!1,marker:i,filter:a=WI}=r,o=[];if(e.each(({node:c})=>{c.leading||c.trailing||c.marker!==i||!a(c)||o.push(Zp(e,t))},"comments"),o.length===0)return"";let u=ce(R,o);return n?M([R,u]):u}function Ao(e,t){let r=e.node;if(!r)return{};let s=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!s.has(o)).length===0)return{leading:"",trailing:""};let n=[],i=[],a;return e.each(()=>{let o=e.node;if(s?.has(o))return;let{leading:u,trailing:c}=o;u?n.push(HI(e,t)):c&&(a=zI(e,t,a),i.push(a.doc))},"comments"),{leading:n,trailing:i}}function bt(e,t,r){let{leading:s,trailing:n}=Ao(e,r);return!s&&!n?t:xp(t,i=>[s,i,n])}var fo=class extends Error{constructor(){super(...arguments);U(this,"name","ArgExpansionBailout")}};function Bs(e,t,r,s,n){let i=e.node,a=He(i),o=n&&i.typeParameters?r("typeParameters"):"";if(a.length===0)return[o,"(",Ae(e,t,{filter:d=>Nt(t.originalText,ne(d))===")"}),")"];let{parent:u}=e,c=Eo(u),p=FD(i),l=[];if(m8(e,(d,m)=>{let f=m===a.length-1;f&&i.rest&&l.push("..."),l.push(r()),!f&&(l.push(","),c||p?l.push(" "):rr(a[m],t)?l.push(R,R):l.push(H))}),s&&!XI(e)){if(Ke(o)||Ke(l))throw new fo;return w([ho(o),"(",ho(l),")"])}let h=a.every(d=>!Fe(d.decorators));return p&&h?[o,"(",...l,")"]:c?[o,"(",...l,")"]:(M0(u)||n8(u)||u.type==="TypeAlias"||u.type==="UnionTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="FunctionTypeAnnotation"&&u.returnType===i)&&a.length===1&&a[0].name===null&&i.this!==a[0]&&a[0].typeAnnotation&&i.typeParameters===null&&Up(a[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...l,")"]:l:[o,"(",M([L,...l]),ee(!f8(i)&&tr(t,"all")?",":""),L,")"]}function FD(e){if(!e)return!1;let t=He(e);if(t.length!==1)return!1;let[r]=t;return!V(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&zr(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&zr(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Bt(r.right)&&r.right.properties.length===0||$e(r.right)&&r.right.elements.length===0))}function JI(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function En(e,t){let r=JI(e);if(!r)return!1;let s=e.typeParameters?.params;if(s){if(s.length>1)return!1;if(s.length===1){let n=s[0];if(n.constraint||n.default)return!1}}return He(e).length===1&&(zr(r)||Ke(t))}function XI(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let s=t.callee.callee;return s.type==="Identifier"||s.type==="MemberExpression"&&!s.computed&&s.object.type==="Identifier"&&s.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function KI(e){let t=He(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function vi(e,t){return(t==="params"||t==="this"||t==="rest")&&FD(e)}function Ge(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":fe(t)||Ce(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function bD(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var GI=te(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function dt(e){let{node:t}=e;return t.declare||GI(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var YI=te(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Co({node:e}){return e.abstract||YI(e)?"abstract ":""}function Wr(e,t,r){return e.type==="EmptyStatement"?V(e,K.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:M([H,t])}function Fo(e){return e.accessibility?e.accessibility+" ":""}var QI=/^[\$A-Z_a-z\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][\$0-9A-Z_a-z\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]*$/,ZI=e=>QI.test(e),e6=ZI;function t6(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var mn=t6,r6=0;function TD(e,t,r){let{node:s,parent:n,grandparent:i,key:a}=e,o=a!=="body"&&(n.type==="IfStatement"||n.type==="WhileStatement"||n.type==="SwitchStatement"||n.type==="DoWhileStatement"),u=s.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,c=Tp(e,t,r,!1,o);if(o)return c;if(u)return w(c);if(a==="callee"&&(fe(n)||n.type==="NewExpression")||n.type==="UnaryExpression"||Ce(n)&&!n.computed)return w([M([L,...c]),L]);let p=n.type==="ReturnStatement"||n.type==="ThrowStatement"||n.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||s.operator!=="|"&&n.type==="JsExpressionRoot"||s.type!=="NGPipeExpression"&&(n.type==="NGRoot"&&t.parser==="__ng_binding"||n.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||s===n.body&&n.type==="ArrowFunctionExpression"||s!==n.body&&n.type==="ForStatement"||n.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!fe(i)&&i.type!=="NewExpression"||n.type==="TemplateLiteral"||n6(e),l=n.type==="AssignmentExpression"||n.type==="VariableDeclarator"||n.type==="ClassProperty"||n.type==="PropertyDefinition"||n.type==="TSAbstractPropertyDefinition"||n.type==="ClassPrivateProperty"||Xr(n),h=Er(s.left)&&$p(s.operator,s.left.operator);if(p||Ni(s)&&!h||!Ni(s)&&l)return w(c);if(c.length===0)return"";let d=je(s.right),m=c.findIndex(A=>typeof A!="string"&&!Array.isArray(A)&&A.type===Tt),f=c.slice(0,m===-1?1:m+1),D=c.slice(f.length,d?-1:void 0),g=Symbol("logicalChain-"+ ++r6),y=w([...f,M(D)],{id:g});if(!d)return y;let E=me(0,c,-1);return w([y,Bi(E,{groupId:g})])}function Tp(e,t,r,s,n){let{node:i}=e;if(!Er(i))return[w(r())];let a=[];$p(i.operator,i.left.operator)?a=e.call(()=>Tp(e,t,r,!0,n),"left"):a.push(w(r("left")));let o=Ni(i),u=i.right.type==="ChainExpression"?i.right.expression:i.right,c=(i.operator==="|>"||i.type==="NGPipeExpression"||s6(e,t))&&!Pt(t.originalText,u),p=!V(u,K.Leading,z0)&&Pt(t.originalText,u),l=i.type==="NGPipeExpression"?"|":i.operator,h=i.type==="NGPipeExpression"&&i.arguments.length>0?w(M([L,": ",ce([H,": "],e.map(()=>It(2,w(r())),"arguments"))])):"",d;if(o)d=[l,Pt(t.originalText,u)?M([H,r("right"),h]):[" ",r("right"),h]];else{let D=l==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>Tp(e,t,r,!0,n),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let g="";if(p)switch(Yr(D)){case xr:g=D.splice(0,1)[0];break;case Cr:g=D.contents.splice(0,1)[0];break}d=[H,g,l," ",D,h]}else d=[c?H:"",l,c?" ":H,D,h]}let{parent:m}=e,f=V(i.left,K.Trailing|K.Line);if((f||!(n&&i.type==="LogicalExpression")&&m.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(d=w(d,{shouldBreak:f})),t.experimentalOperatorPosition==="start"?a.push(o||p?" ":"",d):a.push(c?"":" ",d),s&&V(i)){let D=Yp(bt(e,a,t));return D.type===Kr?D.parts:Array.isArray(D)?D:[D]}return a}function Ni(e){return e.type!=="LogicalExpression"?!1:!!(Bt(e.right)&&e.right.properties.length>0||$e(e.right)&&e.right.elements.length>0||je(e.right))}var i0=e=>e.type==="BinaryExpression"&&e.operator==="|";function s6(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&i0(e.node)&&!e.hasAncestor(r=>!i0(r)&&r.type!=="JsExpressionRoot")}function n6(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(fe(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function vD(e,t,r){let{node:s}=e,{parent:n}=e,i=n.type!=="TypeParameterInstantiation"&&(!Jr(n)||!t.experimentalTernaries)&&n.type!=="TSTypeParameterInstantiation"&&n.type!=="GenericTypeAnnotation"&&n.type!=="TSTypeReference"&&n.type!=="TSTypeAssertion"&&n.type!=="TupleTypeAnnotation"&&n.type!=="TSTupleType"&&!(n.type==="FunctionTypeParam"&&!n.name&&e.grandparent.this!==n)&&!((gp(n)||n.type==="VariableDeclarator")&&Pt(t.originalText,s))&&!(gp(n)&&V(n.id,K.Trailing|K.Line)),a=SD(s),o=e.map(()=>{let d=r();return a||(d=It(2,d)),bt(e,d,t)},"types"),u="",c="";if(W0(e)&&({leading:u,trailing:c}=Ao(e,t)),a)return[u,ce(" | ",o),c];let p=i&&!Pt(t.originalText,s),l=[ee([p?H:"","| "]),ce([H,"| "],o)];if(Qr(e,t))return[u,w([M(l),L]),c];let h=[u,w(l)];return(n.type==="TupleTypeAnnotation"||n.type==="TSTupleType")&&n[n.type==="TupleTypeAnnotation"&&n.types?"types":"elementTypes"].length>1?[w([M([ee(["(",L]),h]),L,ee(")")]),c]:[w(i?M(h):h),c]}var i6=te(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),a6=te(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function SD(e){let{types:t}=e;if(t.some(s=>V(s)))return!1;let r=t.find(s=>a6(s));return r?t.every(s=>s===r||i6(s)):!1}function o6(e){return Up(e)||zr(e)?!0:Qt(e)?SD(e):!1}var u6=new WeakSet;function qe(e,t,r="typeAnnotation"){let{node:{[r]:s}}=e;if(!s)return"";let n=!1;if(s.type==="TSTypeAnnotation"||s.type==="TypeAnnotation"){let i=e.call(wD,r);(i==="=>"||i===":"&&V(s,K.Leading))&&(n=!0),u6.add(s)}return n?[" ",t(r)]:t(r)}var wD=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function kD(e,t,r){let s=wD(e);return s?[s," ",r("typeAnnotation")]:r("typeAnnotation")}function l6(e,t,r,s){let{node:n}=e,i=n.inexact?"...":"";return V(n,K.Dangling)?w([r,i,Ae(e,t,{indent:!0}),L,s]):[r,i,s]}function ec(e,t,r){let{node:s}=e,n=[],i="[",a="]",o=s.type==="TupleTypeAnnotation"&&s.types?"types":s.type==="TSTupleType"||s.type==="TupleTypeAnnotation"?"elementTypes":"elements",u=s[o];if(u.length===0)n.push(l6(e,t,i,a));else{let c=me(0,u,-1),p=c?.type!=="RestElement"&&!s.inexact,l=c===null,h=Symbol("array"),d=!t.__inJestEach&&u.length>1&&u.every((D,g,y)=>{let E=D?.type;if(!$e(D)&&!Bt(D))return!1;let A=y[g+1];if(A&&E!==A.type)return!1;let x=$e(D)?"elements":"properties";return D[x]&&D[x].length>1}),m=PD(s,t),f=p?l?",":tr(t)?m?ee(",","",{groupId:h}):ee(","):"":"";n.push(w([i,M([L,m?c6(e,t,r,f):[p6(e,t,r,o,s.inexact),f],Ae(e,t)]),L,a],{shouldBreak:d,id:h}))}return n.push(Ge(e),qe(e,r)),n}function PD(e,t){return $e(e)&&e.elements.length>0&&e.elements.every(r=>r&&(Yt(r)||L0(r)&&!V(r.argument))&&!V(r,K.Trailing|K.Line,s=>!nt(t.originalText,oe(s),{backwards:!0})))}function BD({node:e},{originalText:t}){let r=ne(e);if(r===oe(e))return!1;let{length:s}=t;for(;r<s&&t[r]!==",";)r=Ip(t,_p(t,r+1));return Lp(t,r)}function p6(e,t,r,s,n){let i=[];return e.each(({node:a,isLast:o})=>{i.push(a?w(r()):""),(!o||n)&&i.push([",",H,a&&BD(e,t)?L:""])},s),n&&i.push("..."),i}function c6(e,t,r,s){let n=[];return e.each(({isLast:i,next:a})=>{n.push([r(),i?s:","]),i||n.push(BD(e,t)?[R,R]:V(a,K.Leading|K.Line)?R:H)},"elements"),uD(n)}function h6(e,t,r){let{node:s}=e,n=ft(s);if(n.length===0)return["(",Ae(e,t),")"];let i=n.length-1;if(m6(n)){let l=["("];return co(e,(h,d)=>{l.push(r()),d!==i&&l.push(", ")}),l.push(")"),l}let a=!1,o=[];co(e,({node:l},h)=>{let d=r();h===i||(rr(l,t)?(a=!0,d=[d,",",R,R]):d=[d,",",H]),o.push(d)});let u=!t.parser.startsWith("__ng_")&&s.type!=="ImportExpression"&&s.type!=="TSImportType"&&s.type!=="TSExternalModuleReference"&&tr(t,"all")?",":"";function c(){return w(["(",M([H,...o]),u,H,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&p8(n))return c();if(f6(n)){let l=o.slice(1);if(l.some(Ke))return c();let h;try{h=r(Gy(s,0),{expandFirstArg:!0})}catch(d){if(d instanceof fo)return c();throw d}return Ke(h)?[Ar,xs([["(",w(h,{shouldBreak:!0}),", ",...l,")"],c()])]:xs([["(",h,", ",...l,")"],["(",w(h,{shouldBreak:!0}),", ",...l,")"],c()])}if(d6(n,o,t)){let l=o.slice(0,-1);if(l.some(Ke))return c();let h;try{h=r(Gy(s,-1),{expandLastArg:!0})}catch(d){if(d instanceof fo)return c();throw d}return Ke(h)?[Ar,xs([["(",...l,w(h,{shouldBreak:!0}),")"],c()])]:xs([["(",...l,h,")"],["(",...l,w(h,{shouldBreak:!0}),")"],c()])}let p=["(",M([L,...o]),ee(u),L,")"];return $0(e)?p:w(p,{shouldBreak:o.some(Ke)||a})}function Si(e,t=!1){return Bt(e)&&(e.properties.length>0||V(e))||$e(e)&&(e.elements.length>0||V(e))||e.type==="TSTypeAssertion"&&Si(e.expression)||kt(e)&&Si(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||y6(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Si(e.body,!0)||Bt(e.body)||$e(e.body)||!t&&(fe(e.body)||e.body.type==="ConditionalExpression")||je(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function d6(e,t,r){let s=me(0,e,-1);if(e.length===1){let i=me(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let n=me(0,e,-2);return!V(s,K.Leading)&&!V(s,K.Trailing)&&Si(s)&&(!n||n.type!==s.type)&&(e.length!==2||n.type!=="ArrowFunctionExpression"||!$e(s))&&!(e.length>1&&PD(s,r))}function f6(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&D6(r)?!0:!V(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&ND(r)&&!Si(r)}function ND(e){if(e.type==="ParenthesizedExpression")return ND(e.expression);if(kt(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return Up(t)&&wt(e.expression,1)}return fn(e)&&ft(e).length>1?!1:Er(e)?wt(e.left,1)&&wt(e.right,1):O0(e)||wt(e)}function m6(e){return e.length===2?a0(e,0):e.length===3?e[0].type==="Identifier"&&a0(e,1):!1}function a0(e,t){let r=e[t],s=e[t+1];return r.type==="ArrowFunctionExpression"&&He(r).length===0&&r.body.type==="BlockStatement"&&s.type==="ArrayExpression"&&!e.some(n=>V(n))}function y6(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||V(e,K.Dangling))}function D6(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Xr(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||Re(t.key)&&t.key.value==="type")&&Re(t.value)&&t.value.value==="module":!1}var vp=h6;function g6(e,t,r){return[r("object"),w(M([L,ID(e,t,r)]))]}function ID(e,t,r){return["::",r("callee")]}var E6=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),fe(e)&&ft(e).length>0);function x6(e){let{node:t,ancestors:r}=e;for(let s of r){if(!(Ce(s)&&s.object===t||s.type==="TSNonNullExpression"&&s.expression===t))return s.type==="NewExpression"&&s.callee===t;t=s}return!1}function A6(e,t,r){let s=r("object"),n=_D(e,t,r),{node:i}=e,a=e.findAncestor(c=>!(Ce(c)||c.type==="TSNonNullExpression")),o=e.findAncestor(c=>!(c.type==="ChainExpression"||c.type==="TSNonNullExpression")),u=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||x6(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!Ce(o)||(o.type==="AssignmentExpression"||o.type==="VariableDeclarator")&&(E6(i.object)||s.label?.memberChain);return Mi(s.label,[s,u?n:w(M([L,n]))])}function _D(e,t,r){let s=r("property"),{node:n}=e,i=Ge(e);return n.computed?!n.property||Yt(n.property)?[i,"[",s,"]"]:w([i,"[",M([L,s]),L,"]"]):[i,".",s]}function LD(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>LD(e,t,r),"expression");let s=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",n=[];function i(j){let{originalText:I}=t,W=yn(I,ne(j));return I.charAt(W)===")"?W!==!1&&Lp(I,W+1):rr(j,t)}function a(){let{node:j}=e;if(j.type==="ChainExpression")return e.call(a,"expression");if(fe(j)&&(un(j.callee)||fe(j.callee))){let I=i(j);n.unshift({node:j,hasTrailingEmptyLine:I,printed:[bt(e,[Ge(e),r("typeArguments"),vp(e,t,r)],t),I?R:""]}),e.call(a,"callee")}else un(j)?(n.unshift({node:j,needsParens:Qr(e,t),printed:bt(e,Ce(j)?_D(e,t,r):ID(e,t,r),t)}),e.call(a,"object")):j.type==="TSNonNullExpression"?(n.unshift({node:j,printed:bt(e,"!",t)}),e.call(a,"expression")):n.unshift({node:j,printed:r()})}let{node:o}=e;n.unshift({node:o,printed:[Ge(e),r("typeArguments"),vp(e,t,r)]}),o.callee&&e.call(a,"callee");let u=[],c=[n[0]],p=1;for(;p<n.length&&(n[p].node.type==="TSNonNullExpression"||fe(n[p].node)||Ce(n[p].node)&&n[p].node.computed&&Yt(n[p].node.property));++p)c.push(n[p]);if(!fe(n[0].node))for(;p+1<n.length&&un(n[p].node)&&un(n[p+1].node);++p)c.push(n[p]);u.push(c),c=[];let l=!1;for(;p<n.length;++p){if(l&&un(n[p].node)){if(n[p].node.computed&&Yt(n[p].node.property)){c.push(n[p]);continue}u.push(c),c=[],l=!1}(fe(n[p].node)||n[p].node.type==="ImportExpression")&&(l=!0),c.push(n[p]),V(n[p].node,K.Trailing)&&(u.push(c),c=[],l=!1)}c.length>0&&u.push(c);function h(j){return/^[A-Z]|^[$_]+$/u.test(j)}function d(j){return j.length<=t.tabWidth}function m(j){let I=j[1][0]?.node.computed;if(j[0].length===1){let X=j[0][0].node;return X.type==="ThisExpression"||X.type==="Identifier"&&(h(X.name)||s&&d(X.name)||I)}let W=me(0,j[0],-1).node;return Ce(W)&&W.property.type==="Identifier"&&(h(W.property.name)||I)}let f=u.length>=2&&!V(u[1][0].node)&&m(u);function D(j){let I=j.map(W=>W.printed);return j.length>0&&me(0,j,-1).needsParens?["(",...I,")"]:I}function g(j){return j.length===0?"":M([R,ce(R,j.map(D))])}let y=u.map(D),E=y,A=f?3:2,x=u.flat(),T=x.slice(1,-1).some(j=>V(j.node,K.Leading))||x.slice(0,-1).some(j=>V(j.node,K.Trailing))||u[A]&&V(u[A][0].node,K.Leading);if(u.length<=A&&!T&&!u.some(j=>me(0,j,-1).hasTrailingEmptyLine))return $0(e)?E:w(E);let S=me(0,u[f?1:0],-1).node,v=!fe(S)&&i(S),k=[D(u[0]),f?u.slice(1,2).map(D):"",v?R:"",g(u.slice(f?2:1))],N=n.map(({node:j})=>j).filter(fe);function B(){let j=me(0,me(0,u,-1),-1).node,I=me(0,y,-1);return fe(j)&&Ke(I)&&N.slice(0,-1).some(W=>W.arguments.some(ki))}let q;return T||N.length>2&&N.some(j=>!j.arguments.every(I=>wt(I)))||y.slice(0,-1).some(Ke)||B()?q=w(k):q=[Ke(E)||v?Ar:"",xs([E,k])],Mi({memberChain:!0},q)}var C6=LD;function mo(e,t,r){let{node:s}=e,n=s.type==="NewExpression",i=Ge(e),a=ft(s),o=s.type!=="TSImportType"&&s.typeArguments?r("typeArguments"):"",u=a.length===1&&U0(a[0],t.originalText);if(u||b6(e)||T6(e)||Eo(s,e.parent)){let l=[];if(co(e,()=>{l.push(r())}),!(u&&l[0].label?.embed))return[n?"new ":"",o0(e,r),i,o,"(",ce(", ",l),")"]}let c=s.type==="ImportExpression"||s.type==="TSImportType"||s.type==="TSExternalModuleReference";if(!c&&!n&&un(s.callee)&&!e.call(()=>Qr(e,t),"callee",...s.callee.type==="ChainExpression"?["expression"]:[]))return C6(e,t,r);let p=[n?"new ":"",o0(e,r),i,o,vp(e,t,r)];return c||fe(s.callee)?w(p):p}function o0(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var F6=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function b6(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Op(t.callee,F6)))return!1;let r=ft(t);return r.length===1&&Re(r[0])&&!V(r[0])}function T6(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=ft(t);return t.callee.name==="require"?(r.length===1&&Re(r[0])||r.length>1)&&!V(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Re(r[0])&&r[1].type==="ArrayExpression":!1}function ji(e,t,r,s,n,i){let a=w6(e,t,r,s,i),o=i?r(i,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return w([w(s),n,w(M([H,o]))]);case"never-break-after-operator":return w([w(s),n," ",o]);case"fluid":{let u=Symbol("assignment");return w([w(s),n,w(M(H),{id:u}),er,Bi(o,{groupId:u})])}case"break-lhs":return w([s,n," ",w(o)]);case"chain":return[w(s),n,H,o];case"chain-tail":return[w(s),n,M([H,o])];case"chain-tail-arrow-chain":return[w(s),n,o];case"only-left":return s}}function v6(e,t,r){let{node:s}=e;return ji(e,t,r,r("left"),[" ",s.operator],"right")}function S6(e,t,r){return ji(e,t,r,r("id")," =","init")}function w6(e,t,r,s,n){let{node:i}=e,a=i[n];if(!a)return"only-left";let o=!oo(a);if(e.match(oo,OD,p=>!o||p.type!=="ExpressionStatement"&&p.type!=="VariableDeclaration"))return o?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&oo(a.right)||Pt(t.originalText,a))return"break-after-operator";if(i.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let u=AN(s);if(P6(i)||I6(i)||MD(i)&&u)return"break-lhs";let c=_6(i,s,t);return e.call(()=>k6(e,t,r,c),n)?"break-after-operator":B6(i)?"break-lhs":!u&&(c||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||t8(a)||Yt(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function k6(e,t,r,s){let n=e.node;if(Er(n)&&!Ni(n))return!0;switch(n.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!M6(n))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:c}=n;return Er(c)&&!Ni(c)}let{consequent:o,alternate:u}=n;return o.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return Fe(n.decorators)}if(s)return!1;let i=n,a=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,a.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,a.push("expression");else break;return!!(Re(i)||e.call(()=>jD(e,t,r),...a))}function P6(e){if(OD(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Xr(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function oo(e){return e.type==="AssignmentExpression"}function OD(e){return oo(e)||e.type==="VariableDeclarator"}function B6(e){let t=N6(e);if(Fe(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(s=>s[r]||s.default))return!0}return!1}function N6(e){if(gp(e))return e.typeParameters?.params}function I6(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=u0(t.typeAnnotation);return Fe(r)&&r.length>1&&r.some(s=>Fe(u0(s))||s.type==="TSConditionalType")}function MD(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function u0(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function jD(e,t,r,s=!1){let{node:n}=e,i=()=>jD(e,t,r,!0);if(n.type==="ChainExpression"||n.type==="TSNonNullExpression")return e.call(i,"expression");if(fe(n)){if(mo(e,t,r).label?.memberChain)return!1;let a=ft(n);return!(a.length===0||a.length===1&&qp(a[0],t))||L6(n,r)?!1:e.call(i,"callee")}return Ce(n)?e.call(i,"object"):s&&(n.type==="Identifier"||n.type==="ThisExpression")}function _6(e,t,r){return Xr(e)?(t=Yp(t),typeof t=="string"&&ln(t)<r.tabWidth+3):!1}function L6(e,t){let r=O6(e);if(Fe(r)){if(r.length>1)return!0;if(r.length===1){let n=r[0];if(Qt(n)||Oi(n)||n.type==="TSTypeLiteral"||n.type==="ObjectTypeAnnotation")return!0}let s=e.typeParameters?"typeParameters":"typeArguments";if(Ke(t(s)))return!0}return!1}function O6(e){return(e.typeParameters??e.typeArguments)?.params}function l0(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function M6(e){return l0(e.checkType)||l0(e.extendsType)}var uo=new WeakMap;function RD(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function p0(e,t){return t.parser==="json"||t.parser==="jsonc"||!Re(e.key)||hn(it(e.key),t).slice(1,-1)!==e.key.value?!1:!!(e6(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||RD(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function j6(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Yt(r)&&RD(mn(it(r)))&&String(r.value)===mn(it(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&uo.get(e.parent))}function Ri(e,t,r){let{node:s}=e;if(s.computed)return["[",r("key"),"]"];let{parent:n}=e,{key:i}=s;if(t.quoteProps==="consistent"&&!uo.has(n)){let a=e.siblings.some(o=>!o.computed&&Re(o.key)&&!p0(o,t));uo.set(n,a)}if(j6(e,t)){let a=hn(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(()=>bt(e,a,t),"key")}return p0(s,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!uo.get(n))?e.call(()=>bt(e,/^\d/u.test(i.value)?mn(i.value):i.value,t),"key"):r("key")}function pp(e,t,r){let{node:s}=e;return s.shorthand?r("value"):ji(e,t,r,Ri(e,t,r),":","value")}var R6=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Li(r));function UD(e,t,r,s){if(R6(e))return tc(e,t,r);let{node:n}=e,i=!1;if((n.type==="FunctionDeclaration"||n.type==="FunctionExpression")&&s?.expandLastArg){let{parent:p}=e;fe(p)&&(ft(p).length>1||He(n).every(l=>l.type==="Identifier"&&!l.typeAnnotation))&&(i=!0)}let a=[dt(e),n.async?"async ":"",`function${n.generator?"*":""} `,n.id?r("id"):""],o=Bs(e,t,r,i),u=bo(e,r),c=En(n,u);return a.push(r("typeParameters"),w([c?w(o):o,u]),n.body?" ":"",r("body")),t.semi&&(n.declare||!n.body)&&a.push(";"),a}function Sp(e,t,r){let{node:s}=e,{kind:n}=s,i=s.value||s,a=[];return!n||n==="init"||n==="method"||n==="constructor"?i.async&&a.push("async "):(Fs(n==="get"||n==="set"),a.push(n," ")),i.generator&&a.push("*"),a.push(Ri(e,t,r),s.optional?"?":"",s===i?tc(e,t,r):r("value")),a}function tc(e,t,r){let{node:s}=e,n=Bs(e,t,r),i=bo(e,r),a=KI(s),o=En(s,i),u=[r("typeParameters"),w([a?w(n,{shouldBreak:!0}):o?w(n):n,i])];return s.body?u.push(" ",r("body")):u.push(t.semi?";":""),u}function U6(e){let t=He(e);return t.length===1&&!e.typeParameters&&!V(e,K.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!V(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function qD(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return U6(r)}return!1}function bo(e,t){let{node:r}=e,s=[qe(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function $D(e,t,r){let{node:s}=e,n=[];if(s.argument){let o=r("argument");V6(t,s.argument)?o=["(",M([R,o]),R,")"]:(Er(s.argument)||t.experimentalTernaries&&s.argument.type==="ConditionalExpression"&&(s.argument.consequent.type==="ConditionalExpression"||s.argument.alternate.type==="ConditionalExpression"))&&(o=w([ee("("),M([L,o]),L,ee(")")])),n.push(" ",o)}let i=V(s,K.Dangling),a=t.semi&&i&&V(s,K.Last|K.Line);return a&&n.push(";"),i&&n.push(" ",Ae(e,t)),!a&&t.semi&&n.push(";"),n}function q6(e,t,r){return["return",$D(e,t,r)]}function $6(e,t,r){return["throw",$D(e,t,r)]}function V6(e,t){if(Pt(e.originalText,t)||V(t,K.Leading,r=>ht(e.originalText,oe(r),ne(r)))&&!je(t))return!0;if(jp(t)){let r=t,s;for(;s=QB(r);)if(r=s,Pt(e.originalText,r))return!0}return!1}function W6(e,t){if(t.semi||WD(e,t)||zD(e,t)||HD(e,t))return!1;let{node:r,key:s,parent:n}=e;return!!(r.type==="ExpressionStatement"&&(s==="body"&&(n.type==="Program"||n.type==="BlockStatement"||n.type==="StaticBlock"||n.type==="TSModuleBlock")||s==="consequent"&&n.type==="SwitchCase")&&e.call(()=>VD(e,t),"expression"))}function VD(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!qD(e,t))return!0;break;case"UnaryExpression":{let{prefix:s,operator:n}=r;if(s&&(n==="+"||n==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(je(r))return!0}return Qr(e,t)?!0:jp(r)?e.call(()=>VD(e,t),..._0(r)):!1}var rc=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function WD(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&rc(e)&&je(e.node.expression)}function HD(e,t){return t.__isHtmlInlineEventHandler&&rc(e)}function zD(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&rc(e)}var H6=class extends Error{constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`);U(this,"name","UnexpectedNodeError");this.node=t}},xn=H6;function z6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ft,yo,JD,C0,J6=(C0=class{constructor(e){kr(this,yo);kr(this,Ft);Hi(this,Ft,new Set(e))}getLeadingWhitespaceCount(e){let t=Le(this,Ft),r=0;for(let s=0;s<e.length&&t.has(e.charAt(s));s++)r++;return r}getTrailingWhitespaceCount(e){let t=Le(this,Ft),r=0;for(let s=e.length-1;s>=0&&t.has(e.charAt(s));s--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return Le(this,Ft).has(e.charAt(0))}hasTrailingWhitespace(e){return Le(this,Ft).has(me(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${z6([...Le(this,Ft)].join(""))}]+`,s=new RegExp(t?`(${r})`:r,"u");return e.split(s)}hasWhitespaceCharacter(e){let t=Le(this,Ft);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=Le(this,Ft);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=Le(this,Ft);return Array.prototype.every.call(e,r=>t.has(r))}dedentString(e){let t=Ot(this,yo,JD).call(this,e);return t===0?e:e.split(`
|
|
166
|
+
`).map(r=>r.slice(t)).join(`
|
|
167
|
+
`)}},Ft=new WeakMap,yo=new WeakSet,JD=function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
|
|
168
|
+
`)){if(r.length===0)continue;let s=this.getLeadingWhitespaceCount(r);if(s===0)return 0;r.length!==s&&s<t&&(t=s)}return t===Number.POSITIVE_INFINITY?0:t},C0),X6=J6,lo=new X6(`
|
|
169
|
+
\r `),cp=e=>e===""||e===H||e===R||e===L;function K6(e,t,r){let{node:s}=e;if(s.type==="JSXElement"&&c9(s))return[r("openingElement"),r("closingElement")];let n=s.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=s.type==="JSXElement"?r("closingElement"):r("closingFragment");if(s.children.length===1&&s.children[0].type==="JSXExpressionContainer"&&(s.children[0].expression.type==="TemplateLiteral"||s.children[0].expression.type==="TaggedTemplateExpression"))return[n,...e.map(r,"children"),i];s.children=s.children.map(E=>h9(E)?{type:"JSXText",value:" ",raw:" "}:E);let a=s.children.some(je),o=s.children.filter(E=>E.type==="JSXExpressionContainer").length>1,u=s.type==="JSXElement"&&s.openingElement.attributes.length>1,c=Ke(n)||a||u||o,p=e.parent.rootMarker==="mdx",l=t.singleQuote?"{' '}":'{" "}',h=p?H:ee([l,L]," "),d=s.openingElement?.name?.name==="fbt",m=G6(e,t,r,h,d),f=s.children.some(E=>Ii(E));for(let E=m.length-2;E>=0;E--){let A=m[E]===""&&m[E+1]==="",x=m[E]===R&&m[E+1]===""&&m[E+2]===R,T=(m[E]===L||m[E]===R)&&m[E+1]===""&&m[E+2]===h,S=m[E]===h&&m[E+1]===""&&(m[E+2]===L||m[E+2]===R),v=m[E]===h&&m[E+1]===""&&m[E+2]===h,k=m[E]===L&&m[E+1]===""&&m[E+2]===R||m[E]===R&&m[E+1]===""&&m[E+2]===L;x&&f||A||T||v||k?m.splice(E,2):S&&m.splice(E+1,2)}for(;m.length>0&&cp(me(0,m,-1));)m.pop();for(;m.length>1&&cp(m[0])&&cp(m[1]);)m.shift(),m.shift();let D=[""];for(let[E,A]of m.entries()){if(A===h){if(E===1&&CN(m[E-1])){if(m.length===2){D.push([D.pop(),l]);continue}D.push([l,R],"");continue}else if(E===m.length-1){D.push([D.pop(),l]);continue}else if(m[E-1]===""&&m[E-2]===R){D.push([D.pop(),l]);continue}}E%2===0?D.push([D.pop(),A]):D.push(A,""),Ke(A)&&(c=!0)}let g=f?uD(D):w(D,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&s.children.includes(t.cursorNode)?g=[no,g,no]:t.nodeBeforeCursor?.type==="JSXText"&&s.children.includes(t.nodeBeforeCursor)?g=[no,g]:t.nodeAfterCursor?.type==="JSXText"&&s.children.includes(t.nodeAfterCursor)&&(g=[g,no]),p)return g;let y=w([n,M([R,g]),R,i]);return c?y:xs([w([n,...m,i]),y])}function G6(e,t,r,s,n){let i="",a=[i];function o(c){i=c,a.push([a.pop(),c])}function u(c){c!==""&&(i=c,a.push(c,""))}return e.each(({node:c,next:p})=>{if(c.type==="JSXText"){let l=it(c);if(Ii(c)){let h=lo.split(l,!0);h[0]===""&&(h.shift(),/\n/u.test(h[0])?u(h0(n,h[1],c,p)):u(s),h.shift());let d;if(me(0,h,-1)===""&&(h.pop(),d=h.pop()),h.length===0)return;for(let[m,f]of h.entries())m%2===1?u(H):o(f);d!==void 0?/\n/u.test(d)?u(h0(n,i,c,p)):u(s):u(c0(n,i,c,p))}else/\n/u.test(l)?l.match(/\n/gu).length>1&&u(R):u(s)}else{let l=r();if(o(l),p&&Ii(p)){let h=lo.trim(it(p)),[d]=lo.split(h);u(c0(n,d,c,p))}else u(R)}},"children"),a}function c0(e,t,r,s){return e?"":r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?t.length===1?L:R:L}function h0(e,t,r,s){return e?R:t.length===1?r.type==="JSXElement"&&!r.closingElement||s?.type==="JSXElement"&&!s.closingElement?R:L:R}var Y6=te(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function Q6(e,t,r){let{parent:s}=e;if(Y6(s))return t;let n=Z6(e),i=Qr(e,r);return w([i?"":ee("("),M([L,t]),L,i?"":ee(")")],{shouldBreak:n})}function Z6(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&fe(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function e9(e,t,r){let{node:s}=e,n=[r("name")];if(s.value){let i;if(Re(s.value)){let a=it(s.value),o=Me(0,Me(0,a.slice(1,-1),"'","'"),""",'"'),u=w0(o,t.jsxSingleQuote);o=u==='"'?Me(0,o,'"',"""):Me(0,o,"'","'"),i=e.call(()=>bt(e,Cs(u+o+u),t),"value")}else i=r("value");n.push("=",i)}return n}function t9(e,t,r){let{node:s}=e,n=(i,a)=>i.type==="JSXEmptyExpression"||!V(i)&&($e(i)||Bt(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(n(i.argument,i)||i.argument.type==="JSXElement")||fe(i)||i.type==="ChainExpression"&&fe(i.expression)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||je(a)&&(i.type==="ConditionalExpression"||Er(i)));return n(s.expression,e.parent)?w(["{",r("expression"),er,"}"]):w(["{",M([L,r("expression")]),L,er,"}"])}function r9(e,t,r){let{node:s}=e,n=V(s.name)||V(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!n)return["<",r("name"),r("typeArguments")," />"];if(s.attributes?.length===1&&Re(s.attributes[0].value)&&!s.attributes[0].value.value.includes(`
|
|
170
|
+
`)&&!n&&!V(s.attributes[0]))return w(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),s.selfClosing?" />":">"]);let i=s.attributes?.some(o=>Re(o.value)&&o.value.value.includes(`
|
|
171
|
+
`)),a=t.singleAttributePerLine&&s.attributes.length>1?R:H;return w(["<",r("name"),r("typeArguments"),M(e.map(()=>[a,r()],"attributes")),...s9(s,t,n)],{shouldBreak:i})}function s9(e,t,r){return e.selfClosing?[H,"/>"]:n9(e,t,r)?[">"]:[L,">"]}function n9(e,t,r){let s=e.attributes.length>0&&V(me(0,e.attributes,-1),K.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!s}function i9(e,t,r){let{node:s}=e,n=["</"],i=r("name");return V(s.name,K.Leading|K.Line)?n.push(M([R,i]),R):V(s.name,K.Leading|K.Block)?n.push(" ",i):n.push(i),n.push(">"),n}function a9(e,t){let{node:r}=e,s=V(r),n=V(r,K.Line),i=r.type==="JSXOpeningFragment";return[i?"<":"</",M([n?R:s&&!i?" ":"",Ae(e,t)]),n?R:"",">"]}function o9(e,t,r){let s=bt(e,K6(e,t,r),t);return Q6(e,s,t)}function u9(e,t){let{node:r}=e,s=V(r,K.Line);return[Ae(e,t,{indent:s}),s?R:""]}function l9(e,t,r){let{node:s}=e;return["{",e.call(({node:n})=>{let i=["...",r()];return V(n)?[M([L,bt(e,i,t)]),L]:i},s.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function p9(e,t,r){let{node:s}=e;if(s.type.startsWith("JSX"))switch(s.type){case"JSXAttribute":return e9(e,t,r);case"JSXIdentifier":return s.name;case"JSXNamespacedName":return ce(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return ce(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return l9(e,t,r);case"JSXExpressionContainer":return t9(e,t,r);case"JSXFragment":case"JSXElement":return o9(e,t,r);case"JSXOpeningElement":return r9(e,t,r);case"JSXClosingElement":return i9(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return a9(e,t);case"JSXEmptyExpression":return u9(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new xn(s,"JSX")}}function c9(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Ii(t)}function Ii(e){return e.type==="JSXText"&&(lo.hasNonWhitespaceCharacter(it(e))||!/\n/u.test(it(e)))}function h9(e){return e.type==="JSXExpressionContainer"&&Re(e.expression)&&e.expression.value===" "&&!V(e.expression)}function d9(e){let{node:t,parent:r}=e;if(!je(t)||!je(r))return!1;let{index:s,siblings:n}=e,i;for(let a=s;a>0;a--){let o=n[a-1];if(!(o.type==="JSXText"&&!Ii(o))){i=o;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&xo(i.expression)}function f9(e){return xo(e.node)||d9(e)}var sc=f9;function m9(e,t,r){let{node:s}=e;if(s.type.startsWith("NG"))switch(s.type){case"NGRoot":return r("node");case"NGPipeExpression":return TD(e,t,r);case"NGChainedExpression":return w(ce([";",H],e.map(()=>g9(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":d0(e)?" ":[";",H],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(s.name)?s.name:JSON.stringify(s.name);case"NGMicrosyntaxExpression":return[r("expression"),s.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:n,parent:i}=e,a=d0(e)||y9(e)||(n===1&&(s.key.name==="then"||s.key.name==="else"||s.key.name==="as")||n===2&&(s.key.name==="else"&&i.body[n-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[n-1].key.name==="then"||s.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),s.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new xn(s,"Angular")}}function d0({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function y9(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var D9=te(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function g9({node:e}){return yp(e,D9)}function XD(e,t,r){let{node:s}=e;return w([ce(H,e.map(r,"decorators")),KD(s,t)?R:H])}function E9(e,t,r){return GD(e.node)?[ce(R,e.map(r,"declaration","decorators")),R]:""}function x9(e,t,r){let{node:s,parent:n}=e,{decorators:i}=s;if(!Fe(i)||GD(n)||sc(e))return"";let a=s.type==="ClassExpression"||s.type==="ClassDeclaration"||KD(s,t);return[e.key==="declaration"&&ZB(n)?R:a?Ar:"",ce(H,e.map(r,"decorators")),H]}function KD(e,t){return e.decorators.some(r=>nt(t.originalText,ne(r)))}function GD(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return Fe(t)&&go(e,t[0])}var hp=new WeakMap;function YD(e){return hp.has(e)||hp.set(e,e.type==="ConditionalExpression"&&!Xe(e,t=>t.type==="ObjectExpression")),hp.get(e)}var A9=e=>e.type==="SequenceExpression";function C9(e,t,r,s={}){let n=[],i,a=[],o=!1,u=!s.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",c;(function g(){let{node:y}=e,E=F9(e,t,r,s);if(n.length===0)n.push(E);else{let{leading:A,trailing:x}=Ao(e,t);n.push([A,E]),a.unshift(x)}u&&(o||(o=y.returnType&&He(y).length>0||y.typeParameters||He(y).some(A=>A.type!=="Identifier"))),!u||y.body.type!=="ArrowFunctionExpression"?(i=r("body",s),c=y.body):e.call(g,"body")})();let p=!Pt(t.originalText,c)&&(A9(c)||b9(c,i,t)||!o&&YD(c)),l=e.key==="callee"&&fn(e.parent),h=Symbol("arrow-chain"),d=T9(e,s,{signatureDocs:n,shouldBreak:o}),m=!1,f=!1,D=!1;return u&&(l||s.assignmentLayout)&&(f=!0,D=!V(e.node,K.Leading&K.Line),m=s.assignmentLayout==="chain-tail-arrow-chain"||l&&!p),i=v9(e,t,s,{bodyDoc:i,bodyComments:a,functionBody:c,shouldPutBodyOnSameLine:p}),w([w(f?M([D?L:"",d]):d,{shouldBreak:m,id:h})," =>",u?Bi(i,{groupId:h}):w(i),u&&l?ee(L,"",{groupId:h}):""])}function F9(e,t,r,s){let{node:n}=e,i=[];if(n.async&&i.push("async "),qD(e,t))i.push(r(["params",0]));else{let o=s.expandLastArg||s.expandFirstArg,u=bo(e,r);if(o){if(Ke(u))throw new fo;u=w(ho(u))}i.push(w([Bs(e,t,r,o,!0),u]))}let a=Ae(e,t,{filter(o){let u=yn(t.originalText,ne(o));return u!==!1&&t.originalText.slice(u,u+2)==="=>"}});return a&&i.push(" ",a),i}function b9(e,t,r){return $e(e)||Bt(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||je(e)||t.label?.hug!==!1&&(t.label?.embed||U0(e,r.originalText))}function T9(e,t,{signatureDocs:r,shouldBreak:s}){if(r.length===1)return r[0];let{parent:n,key:i}=e;return i!=="callee"&&fn(n)||Er(n)?w([r[0]," =>",M([H,ce([" =>",H],r.slice(1))])],{shouldBreak:s}):i==="callee"&&fn(n)||t.assignmentLayout?w(ce([" =>",H],r),{shouldBreak:s}):w(M(ce([" =>",H],r)),{shouldBreak:s})}function v9(e,t,r,{bodyDoc:s,bodyComments:n,functionBody:i,shouldPutBodyOnSameLine:a}){let{node:o,parent:u}=e,c=r.expandLastArg&&tr(t,"all")?ee(","):"",p=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!V(o)?L:"";return a&&YD(i)?[" ",w([ee("","("),M([L,s]),ee("",")"),c,p]),n]:a?[" ",s,n]:[M([H,s,n]),c,p]}var S9=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},w9=Np("findLast",function(){if(Array.isArray(this))return S9}),k9=w9;function wp(e,t,r,s){let{node:n}=e,i=[],a=k9(0,n[s],o=>o.type!=="EmptyStatement");return e.each(({node:o})=>{o.type!=="EmptyStatement"&&(i.push(r()),o!==a&&(i.push(R),rr(o,t)&&i.push(R)))},s),i}function QD(e,t,r){let s=P9(e,t,r),{node:n,parent:i}=e;if(n.type==="Program"&&i?.type!=="ModuleExpression")return s?[s,R]:"";let a=[];if(n.type==="StaticBlock"&&a.push("static "),a.push("{"),s)a.push(M([R,s]),R);else{let o=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!o.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||n.type==="StaticBlock"||a.push(R)}return a.push("}"),a}function P9(e,t,r){let{node:s}=e,n=Fe(s.directives),i=s.body.some(u=>u.type!=="EmptyStatement"),a=V(s,K.Dangling);if(!n&&!i&&!a)return"";let o=[];return n&&(o.push(wp(e,t,r,"directives")),(i||a)&&(o.push(R),rr(me(0,s.directives,-1),t)&&o.push(R))),i&&o.push(wp(e,t,r,"body")),a&&o.push(Ae(e,t)),o}function B9(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var N9=B9;function nc(e,t,r){let{node:s}=e,n=[],i=s.type==="ObjectTypeAnnotation",a=!ZD(e),o=a?H:R,u=V(s,K.Dangling),[c,p]=i&&s.exact?["{|","|}"]:"{}",l;if(I9(e,({node:h,next:d,isLast:m})=>{if(l??(l=h),n.push(r()),a&&i){let{parent:f}=e;f.inexact||!m?n.push(","):tr(t)&&n.push(ee(","))}!a&&(_9({node:h,next:d},t)||tg({node:h,next:d},t))&&n.push(";"),m||(n.push(o),rr(h,t)&&n.push(R))}),u&&n.push(Ae(e,t)),s.type==="ObjectTypeAnnotation"&&s.inexact){let h;V(s,K.Dangling)?h=[V(s,K.Line)||nt(t.originalText,ne(me(0,As(s),-1)))?R:H,"..."]:h=[l?H:"","..."],n.push(h)}if(a){let h=u||t.objectWrap==="preserve"&&l&&ht(t.originalText,oe(s),oe(l)),d;if(n.length===0)d=c+p;else{let m=t.bracketSpacing?H:L;d=[c,M([m,...n]),m,p]}return e.match(void 0,(m,f)=>f==="typeAnnotation",(m,f)=>f==="typeAnnotation",vi)||e.match(void 0,(m,f)=>m.type==="FunctionTypeParam"&&f==="typeAnnotation",vi)?d:w(d,{shouldBreak:h})}return[c,n.length>0?[M([R,n]),R]:"",p]}function ZD(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:s}=e;return r==="body"&&(s.type==="InterfaceDeclaration"||s.type==="DeclareInterface"||s.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function I9(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let s=["properties","indexers","callProperties","internalSlots"].flatMap(n=>e.map(({node:i,index:a})=>({node:i,loc:oe(i),selector:[n,a]}),n)).sort((n,i)=>n.loc-i.loc);for(let[n,{node:i,selector:a}]of s.entries())e.call(()=>t({node:i,next:s[n+1]?.node,isLast:n===s.length-1}),...a)}}function gr(e,t){let{parent:r}=e;return e.callParent(ZD)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?ee(";"):"":t.semi||tg({node:e.node,next:e.next},t)?";":ee("",";"):""}var f0=te(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),eg=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function _9({node:e,next:t},r){if(r.semi||!f0(e))return!1;if(!e.value&&eg(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let s=t.key?.name;if(s==="in"||s==="instanceof")return!0}if(f0(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)||t.kind==="get"||t.kind==="set")return!1;let s=t.value?t.value.generator:t.generator;return!!(t.computed||s)}case"TSIndexSignature":return!0}return!1}var L9=te(["TSPropertySignature"]);function tg({node:e,next:t},r){return r.semi||!L9(e)?!1:eg(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}var O9=N9("heritageGroup"),M9=te(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function ic(e,t,r){let{node:s}=e,n=M9(s),i=[dt(e),Co(e),n?"interface":"class"],a=sg(e),o=[],u=[];if(s.type!=="InterfaceTypeAnnotation"){s.id&&o.push(" ");for(let p of["id","typeParameters"])if(s[p]){let{leading:l,trailing:h}=e.call(()=>Ao(e,t),p);o.push(l,r(p),M(h))}}if(s.superClass){let p=[U9(e,t,r),r(s.superTypeArguments?"superTypeArguments":"superTypeParameters")],l=e.call(()=>["extends ",bt(e,p,t)],"superClass");a?u.push(H,w(l)):u.push(" ",l)}else u.push(fp(e,t,r,"extends"));u.push(fp(e,t,r,"mixins"),fp(e,t,r,"implements"));let c;return a?(c=O9(s),i.push(w([...o,M(u)],{id:c}))):i.push(...o,...u),!n&&a&&j9(s.body)?i.push(ee(R," ",{groupId:c})):i.push(" "),i.push(r("body")),i}function j9(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>Fe(e[t])):Fe(e.body)}function rg(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function R9(e){let{node:t}=e;if(V(t.id,K.Trailing)||V(t.typeParameters,K.Trailing)||V(t.superClass)||rg(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&Ce(t.superClass);let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&Ce(r.expression)&&!r.typeArguments:!1}var dp=new WeakMap;function sg(e){let{node:t}=e;return dp.has(t)||dp.set(t,R9(e)),dp.get(t)}function fp(e,t,r,s){let{node:n}=e;if(!Fe(n[s]))return"";let i=Ae(e,t,{marker:s}),a=ce([",",H],e.map(r,s));if(!rg(n)){let o=[`${s} `,i,a];return sg(e)?[H,w(o)]:[" ",o]}return[H,i,i&&R,s,w(M([H,a]))]}function U9(e,t,r){let s=r("superClass"),{parent:n}=e;return n.type==="AssignmentExpression"?w(ee(["(",M([L,s]),L,")"],s)):s}function ng(e,t,r){let{node:s}=e,n=[];return Fe(s.decorators)&&n.push(XD(e,t,r)),n.push(Fo(s)),s.static&&n.push("static "),n.push(Co(e)),s.override&&n.push("override "),n.push(Sp(e,t,r)),n}function ig(e,t,r){let{node:s}=e,n=[];Fe(s.decorators)&&n.push(XD(e,t,r)),n.push(dt(e),Fo(s)),s.static&&n.push("static "),n.push(Co(e)),s.override&&n.push("override "),s.readonly&&n.push("readonly "),s.variance&&n.push(r("variance")),(s.type==="ClassAccessorProperty"||s.type==="AccessorProperty"||s.type==="TSAbstractAccessorProperty")&&n.push("accessor "),n.push(Ri(e,t,r),Ge(e),bD(e),qe(e,r));let i=s.type==="TSAbstractPropertyDefinition"||s.type==="TSAbstractAccessorProperty";return[ji(e,t,r,n," =",i?void 0:"value"),t.semi?";":""]}var q9=te(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function ag(e){return q9(e)?ag(e.expression):e}var $9=te(["FunctionExpression","ArrowFunctionExpression"]);function V9(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function W9(e,t){if(zD(e,t)){let r=ag(e.node.expression);return $9(r)||V9(r)}return!(!t.semi||WD(e,t)||HD(e,t))}function H9(e,t,r){return[r("expression"),W9(e,t)?";":""]}function z9(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let s=e.map(r,"program","body",0,"params");if(s.length===1)return s[0];let n=ce([",",H],s);return t.__isVueForBindingLeft?["(",M([L,w(n)]),L,")"]:n}if(t.__isEmbeddedTypescriptGenericParameters){let s=e.map(r,"program","body",0,"typeParameters","params");return ce([",",H],s)}}function J9(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return m0(r);case"BigIntLiteral":return kp(r.extra.raw);case"NumericLiteral":return mn(r.extra.raw);case"StringLiteral":return Cs(hn(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return y0(r.extra.raw,t);case"Literal":{if(r.regex)return m0(r.regex);if(r.bigint)return kp(r.raw);let{value:s}=r;return typeof s=="number"?mn(r.raw):typeof s=="string"?X9(e)?y0(r.raw,t):Cs(hn(r.raw,t)):String(s)}}}function X9(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function kp(e){return e.toLowerCase()}function m0({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var K9="use strict";function y0(e,t){let r=e.slice(1,-1);if(r===K9||!(r.includes('"')||r.includes("'"))){let s=t.singleQuote?"'":'"';return s+r+s}return e}function G9(e,t,r){let s=e.originalText.slice(t,r);for(let n of e[Symbol.for("comments")]){let i=oe(n);if(i>r)break;let a=ne(n);if(a<t)continue;let o=i-t,u=a-t;s=s.slice(0,o)+Me(0,s.slice(o,u),/[^\n]/gu," ")+s.slice(u)}return s}var To=G9,og=te(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),Y9=te(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function ac(e,t,r){let{node:s,parent:n}=e,i=Y9(s),a=s.type==="TSEnumBody"||i,o=og(s),u=i&&s.hasUnknownMembers,c=a?"members":o?"attributes":"properties",p=s[c],l=a||s.type==="ObjectPattern"&&n.type!=="FunctionDeclaration"&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ObjectMethod"&&n.type!=="ClassMethod"&&n.type!=="ClassPrivateMethod"&&n.type!=="AssignmentPattern"&&n.type!=="CatchClause"&&s.properties.some(D=>D.value&&(D.value.type==="ObjectPattern"||D.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&p.length>0&&Q9(s,p[0],t),h=[],d=e.map(({node:D})=>{let g=[...h,w(r())];return h=[",",H],rr(D,t)&&h.push(R),g},c);if(u){let D;if(V(s,K.Dangling)){let g=V(s,K.Line);D=[Ae(e,t),g||nt(t.originalText,ne(me(0,As(s),-1)))?R:H,"..."]}else D=["..."];d.push([...h,...D])}let m=!(u||me(0,p,-1)?.type==="RestElement"),f;if(d.length===0){if(!V(s,K.Dangling))return["{}",qe(e,r)];f=w(["{",Ae(e,t,{indent:!0}),L,"}",Ge(e),qe(e,r)])}else{let D=t.bracketSpacing?H:L;f=["{",M([D,...d]),ee(m&&tr(t)?",":""),D,"}",Ge(e),qe(e,r)]}return e.match(D=>D.type==="ObjectPattern"&&!Fe(D.decorators),vi)||zr(s)&&(e.match(void 0,(D,g)=>g==="typeAnnotation",(D,g)=>g==="typeAnnotation",vi)||e.match(void 0,(D,g)=>D.type==="FunctionTypeParam"&&g==="typeAnnotation",vi))||!l&&e.match(D=>D.type==="ObjectPattern",D=>D.type==="AssignmentExpression"||D.type==="VariableDeclarator")?f:w(f,{shouldBreak:l})}function Q9(e,t,r){let s=r.originalText,n=oe(e),i=oe(t);if(og(e)){let a=oe(e),o=To(r,a,i);n=a+o.lastIndexOf("{")}return ht(s,n,i)}function Z9(e,t,r){let{node:s}=e;return["import",s.phase?` ${s.phase}`:"",pg(s),hg(e,t,r),cg(e,t,r),fg(e,t,r),t.semi?";":""]}var ug=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function lg(e,t,r){let{node:s}=e,n=[E9(e,t,r),dt(e),"export",ug(s)?" default":""],{declaration:i,exported:a}=s;return V(s,K.Dangling)&&(n.push(" ",Ae(e,t)),q0(s)&&n.push(R)),i?n.push(" ",r("declaration")):(n.push(r4(s)),s.type==="ExportAllDeclaration"||s.type==="DeclareExportAllDeclaration"?(n.push(" *"),a&&n.push(" as ",r("exported"))):n.push(hg(e,t,r)),n.push(cg(e,t,r),fg(e,t,r))),n.push(t4(s,t)),n}var e4=te(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function t4(e,t){return t.semi&&(!e.declaration||ug(e)&&!e4(e.declaration))?";":""}function oc(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function pg(e,t){return oc(e.importKind,t)}function r4(e){return oc(e.exportKind)}function cg(e,t,r){let{node:s}=e;return s.source?[dg(s,t)?" from":""," ",r("source")]:""}function hg(e,t,r){let{node:s}=e;if(!dg(s,t))return"";let n=[" "];if(Fe(s.specifiers)){let i=[],a=[];e.each(()=>{let o=e.node.type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")i.push(r());else if(o==="ExportSpecifier"||o==="ImportSpecifier")a.push(r());else throw new xn(s,"specifier")},"specifiers"),n.push(ce(", ",i)),a.length>0&&(i.length>0&&n.push(", "),a.length>1||i.length>0||s.specifiers.some(o=>V(o))?n.push(w(["{",M([t.bracketSpacing?H:L,ce([",",H],a)]),ee(tr(t)?",":""),t.bracketSpacing?H:L,"}"])):n.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else n.push("{}");return n}function dg(e,t){return e.type!=="ImportDeclaration"||Fe(e.specifiers)||e.importKind==="type"?!0:To(t,oe(e),oe(e.source)).trimEnd().endsWith("from")}function s4(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let r=To(t,ne(e.source),e.attributes?.[0]?oe(e.attributes[0]):ne(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||Fe(e.attributes)?"with":void 0}var n4=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:s,key:n,value:i}=r;return s==="ImportAttribute"&&(n.type==="Identifier"&&n.name==="type"||Re(n)&&n.value==="type")&&Re(i)&&!V(r)&&!V(n)&&!V(i)};function fg(e,t,r){let{node:s}=e;if(!s.source)return"";let n=s4(s,t);if(!n)return"";let i=ac(e,t,r);return n4(s)&&(i=ho(i)),[` ${n} `,i]}function i4(e,t,r){let{node:s}=e,{type:n}=s,i=n.startsWith("Import"),a=i?"imported":"local",o=i?"local":"exported",u=s[a],c=s[o],p="",l="";return n==="ExportNamespaceSpecifier"||n==="ImportNamespaceSpecifier"?p="*":u&&(p=r(a)),c&&!a4(s)&&(l=r(o)),[oc(n==="ImportSpecifier"?s.importKind:s.exportKind,!1),p,p&&l?" as ":"",l]}function a4(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;return t.type!==r.type||!MB(t,r)?!1:Re(t)?t.value===r.value&&it(t)===it(r):t.type==="Identifier"?t.name===r.name:!1}function Pp(e,t){return["...",t("argument"),qe(e,t)]}function o4(e){let t=[e];for(let r=0;r<t.length;r++){let s=t[r];for(let n of["test","consequent","alternate"]){let i=s[n];if(je(i))return!0;i.type==="ConditionalExpression"&&t.push(i)}}return!1}function u4(e,t,r){let{node:s}=e,n=s.type==="ConditionalExpression",i=n?"alternate":"falseType",{parent:a}=e,o=n?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return a.type===s.type&&a[i]===s?It(2,o):o}var l4=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function p4(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,s=t;for(let n=0;!r;n++){let i=e.getParentNode(n);if(i.type==="ChainExpression"&&i.expression===s||fe(i)&&i.callee===s||Ce(i)&&i.object===s||i.type==="TSNonNullExpression"&&i.expression===s){s=i;continue}i.type==="NewExpression"&&i.callee===s||kt(i)&&i.expression===s?(r=e.getParentNode(n+1),s=i):r=i}return s===t?!1:r[l4.get(r.type)]===s}function c4(e,t,r){let{node:s}=e,n=s.type==="ConditionalExpression",i=n?"consequent":"trueType",a=n?"alternate":"falseType",o=n?["test"]:["checkType","extendsType"],u=s[i],c=s[a],p=[],l=!1,{parent:h}=e,d=h.type===s.type&&o.some(v=>h[v]===s),m=h.type===s.type&&!d,f,D,g=0;do D=f||s,f=e.getParentNode(g),g++;while(f&&f.type===s.type&&o.every(v=>f[v]!==D));let y=f||h,E=D;if(n&&(je(s[o[0]])||je(u)||je(c)||o4(E))){l=!0,m=!0;let v=N=>[ee("("),M([L,N]),L,ee(")")],k=N=>N.type==="NullLiteral"||N.type==="Literal"&&N.value===null||N.type==="Identifier"&&N.name==="undefined";p.push(" ? ",k(u)?r(i):v(r(i))," : ",c.type===s.type||k(c)?r(a):v(r(a)))}else{let v=N=>t.useTabs?M(r(N)):It(2,r(N)),k=[H,"? ",u.type===s.type?ee("","("):"",v(i),u.type===s.type?ee("",")"):"",H,": ",v(a)];p.push(h.type!==s.type||h[a]===s||d?k:t.useTabs?oD(M(k)):It(Math.max(0,t.tabWidth-2),k))}let A=v=>h===y?w(v):v,x=!l&&(Ce(h)||h.type==="NGPipeExpression"&&h.left===s)&&!h.computed,T=p4(e),S=A([u4(e,t,r),m?p:M(p),n&&x&&!T?L:""]);return d||T?w([M([L,S]),L]):S}function h4(e,t){return(Ce(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function d4(e,t,r,s){return[...e.map(n=>As(n)),As(t),As(r)].flat().some(n=>_t(n)&&ht(s.originalText,oe(n),ne(n)))}var f4=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function m4(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,s=t;for(let n=0;!r;n++){let i=e.getParentNode(n);if(i.type==="ChainExpression"&&i.expression===s||fe(i)&&i.callee===s||Ce(i)&&i.object===s||i.type==="TSNonNullExpression"&&i.expression===s){s=i;continue}i.type==="NewExpression"&&i.callee===s||kt(i)&&i.expression===s?(r=e.getParentNode(n+1),s=i):r=i}return s===t?!1:r[f4.get(r.type)]===s}var mp=e=>[ee("("),M([L,e]),L,ee(")")];function uc(e,t,r,s){if(!t.experimentalTernaries)return c4(e,t,r);let{node:n}=e,i=n.type==="ConditionalExpression",a=Jr(n),o=i?"consequent":"trueType",u=i?"alternate":"falseType",c=i?["test"]:["checkType","extendsType"],p=n[o],l=n[u],h=c.map(ge=>n[ge]),{parent:d}=e,m=d.type===n.type,f=m&&c.some(ge=>d[ge]===n),D=m&&d[u]===n,g=p.type===n.type,y=l.type===n.type,E=y||D,A=t.tabWidth>2||t.useTabs,x,T,S=0;do T=x||n,x=e.getParentNode(S),S++;while(x&&x.type===n.type&&c.every(ge=>x[ge]!==T));let v=x||d,k=s&&s.assignmentLayout&&s.assignmentLayout!=="break-after-operator"&&(d.type==="AssignmentExpression"||d.type==="VariableDeclarator"||d.type==="ClassProperty"||d.type==="PropertyDefinition"||d.type==="ClassPrivateProperty"||d.type==="ObjectProperty"||d.type==="Property"),N=(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&!(g||y),B=i&&v.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",q=m4(e),j=h4(n,d),I=a&&Qr(e,t),W=A?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",X=d4(h,p,l,t)||g||y,Z=!E&&!m&&!a&&(B?p.type==="NullLiteral"||p.type==="Literal"&&p.value===null:qp(p,t)&&Jy(n.test,3)),Se=E||D||a&&!m||m&&i&&Jy(n.test,1)||Z,ue=[];!g&&V(p,K.Dangling)&&e.call(()=>{ue.push(Ae(e,t),R)},"consequent");let we=[];V(n.test,K.Dangling)&&e.call(()=>{we.push(Ae(e,t))},"test"),!y&&V(l,K.Dangling)&&e.call(()=>{we.push(Ae(e,t))},"alternate"),V(n,K.Dangling)&&we.push(Ae(e,t));let De=Symbol("test"),br=Symbol("consequent"),vt=Symbol("test-and-consequent"),be=i?[mp(r("test")),n.test.type==="ConditionalExpression"?Ar:""]:[r("checkType")," ","extends"," ",Jr(n.extendsType)||n.extendsType.type==="TSMappedType"?r("extendsType"):w(mp(r("extendsType")))],Tr=w([be," ?"],{id:De}),An=r(o),J=M([g||B&&(je(p)||m||E)?R:H,ue,An]),_=Se?w([Tr,E?J:ee(J,w(J,{id:br}),{groupId:De})],{id:vt}):[Tr,J],O=r(u),ie=Z?ee(O,oD(mp(O)),{groupId:vt}):O,he=[_,we.length>0?[M([R,we]),R]:y?R:Z?ee(H," ",{groupId:vt}):H,":",y?" ":A?Se?ee(W,ee(E||Z?" ":W," "),{groupId:vt}):ee(W," "):" ",y?ie:w([M(ie),B&&!Z?L:""]),j&&!q?L:"",X?Ar:""];return k&&!X?w(M([L,w(he)])):k||N?w(M(he)):q||a&&f?w([M([L,he]),I?L:""]):d===v?w(he):he}function y4(e,t,r,s){let{node:n}=e;if(Rp(n))return J9(e,t);switch(n.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[Ae(e,t),r("node"),R];case"File":return z9(e,t,r)??r("program");case"ExpressionStatement":return H9(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!V(n.expression)&&(Bt(n.expression)||$e(n.expression))?["(",r("expression"),")"]:w(["(",M([L,r("expression")]),L,")"]);case"AssignmentExpression":return v6(e,t,r);case"VariableDeclarator":return S6(e,t,r);case"BinaryExpression":case"LogicalExpression":return TD(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return A6(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return g6(e,t,r);case"Identifier":return[n.name,Ge(e),bD(e),qe(e,r)];case"V8IntrinsicIdentifier":return["%",n.name];case"SpreadElement":return Pp(e,r);case"RestElement":return Pp(e,r);case"FunctionDeclaration":case"FunctionExpression":return UD(e,t,r,s);case"ArrowFunctionExpression":return C9(e,t,r,s);case"YieldExpression":return[`yield${n.delegate?"*":""}`,n.argument?[" ",r("argument")]:""];case"AwaitExpression":{let i=["await"];if(n.argument){i.push(" ",r("argument"));let{parent:a}=e;if(fe(a)&&a.callee===n||Ce(a)&&a.object===n){i=[M([L,...i]),L];let o=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if(o?.type!=="AwaitExpression"||!Xe(o.argument,u=>u===n))return w(i)}}return i}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return lg(e,t,r);case"ImportDeclaration":return Z9(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return i4(e,t,r);case"ImportAttribute":return pp(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return QD(e,t,r);case"ClassBody":return nc(e,t,r);case"ThrowStatement":return $6(e,t,r);case"ReturnStatement":return q6(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return mo(e,t,r);case"ObjectExpression":case"ObjectPattern":return ac(e,t,r);case"Property":return Li(n)?Sp(e,t,r):pp(e,t,r);case"ObjectProperty":return pp(e,t,r);case"ObjectMethod":return Sp(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return ec(e,t,r);case"SequenceExpression":{let{parent:i}=e;if(i.type==="ExpressionStatement"||i.type==="ForStatement"){let o=[];return e.each(({isFirst:u})=>{u?o.push(r()):o.push(",",M([H,r()]))},"expressions"),w(o)}let a=ce([",",H],e.map(r,"expressions"));return(i.type==="ReturnStatement"||i.type==="ThrowStatement")&&e.key==="argument"||i.type==="ArrowFunctionExpression"&&e.key==="body"?w(ee([M([L,a]),L],a)):w(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let i=[n.operator];return/[a-z]$/u.test(n.operator)&&i.push(" "),V(n.argument)?i.push(w(["(",M([L,r("argument")]),L,")"])):i.push(r("argument")),i}case"UpdateExpression":return[n.prefix?n.operator:"",r("argument"),n.prefix?"":n.operator];case"ConditionalExpression":return uc(e,t,r,s);case"VariableDeclaration":{let i=e.map(r,"declarations"),a=e.parent,o=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",u=n.declarations.some(p=>p.init),c;return i.length===1&&!V(n.declarations[0])?c=i[0]:i.length>0&&(c=M(i[0])),w([dt(e),n.kind,c?[" ",c]:"",M(i.slice(1).map(p=>[",",u&&!o?R:H,p])),t.semi&&!(o&&a.body!==n)?";":""])}case"WithStatement":return w(["with (",r("object"),")",Wr(n.body,r("body"))]);case"IfStatement":{let i=Wr(n.consequent,r("consequent")),a=[w(["if (",w([M([L,r("test")]),L]),")",i])];if(n.alternate){let o=V(n.consequent,K.Trailing|K.Line)||q0(n),u=n.consequent.type==="BlockStatement"&&!o;a.push(u?" ":R),V(n,K.Dangling)&&a.push(Ae(e,t),o?R:" "),a.push("else",w(Wr(n.alternate,r("alternate"),n.alternate.type==="IfStatement")))}return a}case"ForStatement":{let i=Wr(n.body,r("body")),a=Ae(e,t),o=a?[a,L]:"";return!n.init&&!n.test&&!n.update?[o,w(["for (;;)",i])]:[o,w(["for (",w([M([L,r("init"),";",H,r("test"),";",n.update?[H,r("update")]:ee("",H)]),L]),")",i])]}case"WhileStatement":return w(["while (",w([M([L,r("test")]),L]),")",Wr(n.body,r("body"))]);case"ForInStatement":return w(["for (",r("left")," in ",r("right"),")",Wr(n.body,r("body"))]);case"ForOfStatement":return w(["for",n.await?" await":""," (",r("left")," of ",r("right"),")",Wr(n.body,r("body"))]);case"DoWhileStatement":{let i=Wr(n.body,r("body"));return[w(["do",i]),n.body.type==="BlockStatement"?" ":R,"while (",w([M([L,r("test")]),L]),")",t.semi?";":""]}case"DoExpression":return[n.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[n.type==="BreakStatement"?"break":"continue",n.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${n.body.type==="EmptyStatement"&&!V(n.body,K.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),n.handler?[" ",r("handler")]:"",n.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(n.param){let i=V(n.param,o=>!_t(o)||o.leading&&nt(t.originalText,ne(o))||o.trailing&&nt(t.originalText,oe(o),{backwards:!0})),a=r("param");return["catch ",i?["(",M([L,a]),L,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[w(["switch (",M([L,r("discriminant")]),L,")"])," {",n.cases.length>0?M([R,ce(R,e.map(({node:i,isLast:a})=>[r(),!a&&rr(i,t)?R:""],"cases"))]):"",R,"}"];case"SwitchCase":{let i=[];n.test?i.push("case ",r("test"),":"):i.push("default:"),V(n,K.Dangling)&&i.push(" ",Ae(e,t));let a=n.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=wp(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:M([R,o]))}return i}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return ic(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ng(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return ig(e,t,r);case"TemplateElement":return Cs(n.value.raw);case"TemplateLiteral":return mD(e,t,r);case"TaggedTemplateExpression":return WN(e,t,r);case"PrivateIdentifier":return["#",n.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Mp(e))return";";default:throw new xn(n,"ESTree")}}function mg(e){return[e("elementType"),"[]"]}var D4=te(["SatisfiesExpression","TSSatisfiesExpression"]);function yg(e,t,r){let{parent:s,node:n,key:i}=e,a=n.type==="AsConstExpression"?"const":r("typeAnnotation"),o=[r("expression")," ",D4(n)?"satisfies":"as"," ",a];return i==="callee"&&fe(s)||i==="object"&&Ce(s)?w([M([L,...o]),L]):o}function g4(e,t,r){let{node:s}=e,n=[dt(e),"component"];s.id&&n.push(" ",r("id")),n.push(r("typeParameters"));let i=E4(e,t,r);return s.rendersType?n.push(w([i," ",r("rendersType")])):n.push(w([i])),s.body&&n.push(" ",r("body")),t.semi&&s.type==="DeclareComponent"&&n.push(";"),n}function E4(e,t,r){let{node:s}=e,n=s.params;if(s.rest&&(n=[...n,s.rest]),n.length===0)return["(",Ae(e,t,{filter:a=>Nt(t.originalText,ne(a))===")"}),")"];let i=[];return A4(e,(a,o)=>{let u=o===n.length-1;u&&s.rest&&i.push("..."),i.push(r()),!u&&(i.push(","),rr(n[o],t)?i.push(R,R):i.push(H))}),["(",M([L,...i]),ee(tr(t,"all")&&!x4(s,n)?",":""),L,")"]}function x4(e,t){return e.rest||me(0,t,-1)?.type==="RestElement"}function A4(e,t){let{node:r}=e,s=0,n=i=>t(i,s++);e.each(n,"params"),r.rest&&e.call(n,"rest")}function C4(e,t,r){let{node:s}=e;return s.shorthand?r("local"):[r("name")," as ",r("local")]}function F4(e,t,r){let{node:s}=e,n=[];return s.name&&n.push(r("name"),s.optional?"?: ":": "),n.push(r("typeAnnotation")),n}function Dg(e,t,r){return ac(e,t,r)}function b4(e,t,r){let{node:s}=e;return[s.type==="EnumSymbolBody"||s.explicitType?`of ${s.type.slice(4,-4).toLowerCase()} `:"",Dg(e,t,r)]}function gg(e,t){let{node:r}=e,s=t("id");r.computed&&(s=["[",s,"]"]);let n="";return r.initializer&&(n=t("initializer")),r.init&&(n=t("init")),n?[s," = ",n]:s}function Eg(e,t){let{node:r}=e;return[dt(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function xg(e,t,r){let{node:s}=e,n=[Co(e)];(s.type==="TSConstructorType"||s.type==="TSConstructSignatureDeclaration")&&n.push("new ");let i=Bs(e,t,r,!1,!0),a=[];return s.type==="FunctionTypeAnnotation"?a.push(T4(e)?" => ":": ",r("returnType")):a.push(qe(e,r,"returnType")),En(s,a)&&(i=w(i)),n.push(i,a),[w(n),s.type==="TSConstructSignatureDeclaration"||s.type==="TSCallSignatureDeclaration"?gr(e,t):""]}function T4(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(M0(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&go(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function v4(e,t,r){let{node:s}=e,n=["hook"];s.id&&n.push(" ",r("id"));let i=Bs(e,t,r,!1,!0),a=bo(e,r),o=En(s,a);return n.push(w([o?w(i):i,a]),s.body?" ":"",r("body")),n}function S4(e,t,r){let{node:s}=e,n=[dt(e),"hook"];return s.id&&n.push(" ",r("id")),t.semi&&n.push(";"),n}function D0(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function w4(e,t,r){let{node:s}=e,n=Bs(e,t,r,!1,!0),i=[D0(e)?": ":" => ",r("returnType")];return w([D0(e)?"":"hook ",En(s,i)?w(n):n,i])}function Ag(e,t,r){return[r("objectType"),Ge(e),"[",r("indexType"),"]"]}function Cg(e,t,r){return["infer ",r("typeParameter")]}function Fg(e,t,r){let s=!1;return w(e.map(({isFirst:n,previous:i,node:a,index:o})=>{let u=r();if(n)return u;let c=zr(a),p=zr(i);return p&&c?[" & ",s?M(u):u]:!p&&!c||Pt(t.originalText,a)?t.experimentalOperatorPosition==="start"?M([H,"& ",u]):M([" &",H,u]):(o>1&&(s=!0),[" & ",o>1?M(u):u])},"types"))}function k4(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function P4(e,t,r){let{node:s}=e;return[w([s.variance?r("variance"):"","[",M([r("keyTparam")," in ",r("sourceType")]),"]",k4(s.optional),": ",r("propType")]),gr(e,t)]}function g0(e,t){return e==="+"||e==="-"?e+t:t}function B4(e,t,r){let{node:s}=e,n=!1;if(t.objectWrap==="preserve"){let i=oe(s),a=To(t,i+1,oe(s.key)),o=i+1+a.search(/\S/u);ht(t.originalText,i,o)&&(n=!0)}return w(["{",M([t.bracketSpacing?H:L,V(s,K.Dangling)?w([Ae(e,t),R]):"",w([s.readonly?[g0(s.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),s.nameType?[" as ",r("nameType")]:"","]",s.optional?g0(s.optional,"?"):"",s.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?ee(";"):""]),t.bracketSpacing?H:L,"}"],{shouldBreak:n})}function N4(e,t,r){let{node:s}=e;return[w(["match (",M([L,r("argument")]),L,")"])," {",s.cases.length>0?M([R,ce(R,e.map(({node:n,isLast:i})=>[r(),!i&&rr(n,t)?R:""],"cases"))]):"",R,"}"]}function I4(e,t,r){let{node:s}=e,n=V(s,K.Dangling)?[" ",Ae(e,t)]:[],i=s.type==="MatchStatementCase"?[" ",r("body")]:M([H,r("body"),","]);return[r("pattern"),s.guard?w([M([H,"if (",r("guard"),")"])]):"",w([" =>",n,i])]}function _4(e,t,r){let{node:s}=e;switch(s.type){case"MatchOrPattern":return M4(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[s.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let n=s.property.type==="Identifier"?[".",r("property")]:["[",M([L,r("property")]),L,"]"];return w([r("base"),n])}case"MatchBindingPattern":return[s.kind," ",r("id")];case"MatchObjectPattern":{let n=e.map(r,"properties");return s.rest&&n.push(r("rest")),w(["{",M([L,ce([",",H],n)]),s.rest?"":ee(","),L,"}"])}case"MatchArrayPattern":{let n=e.map(r,"elements");return s.rest&&n.push(r("rest")),w(["[",M([L,ce([",",H],n)]),s.rest?"":ee(","),L,"]"])}case"MatchObjectPatternProperty":return s.shorthand?r("pattern"):w([r("key"),":",M([H,r("pattern")])]);case"MatchRestPattern":{let n=["..."];return s.argument&&n.push(r("argument")),n}}}var bg=te(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function L4(e){let{patterns:t}=e;if(t.some(s=>V(s)))return!1;let r=t.find(s=>s.type==="MatchObjectPattern");return r?t.every(s=>s===r||bg(s)):!1}function O4(e){return bg(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?L4(e):!1}function M4(e,t,r){let{node:s}=e,{parent:n}=e,i=n.type!=="MatchStatementCase"&&n.type!=="MatchExpressionCase"&&n.type!=="MatchArrayPattern"&&n.type!=="MatchObjectPatternProperty"&&!Pt(t.originalText,s),a=O4(s),o=e.map(()=>{let c=r();return a||(c=It(2,c)),bt(e,c,t)},"patterns");if(a)return ce(" | ",o);let u=[ee(["| "]),ce([H,"| "],o)];return Qr(e,t)?w([M([ee([L]),u]),L]):n.type==="MatchArrayPattern"&&n.elements.length>1?w([M([ee(["(",L]),u]),L,ee(")")]):w(i?M(u):u)}function j4(e,t,r){let{node:s}=e,n=[dt(e),"opaque type ",r("id"),r("typeParameters")];if(s.supertype&&n.push(": ",r("supertype")),s.lowerBound||s.upperBound){let i=[];s.lowerBound&&i.push(M([H,"super ",r("lowerBound")])),s.upperBound&&i.push(M([H,"extends ",r("upperBound")])),n.push(w(i))}return s.impltype&&n.push(" = ",r("impltype")),n.push(t.semi?";":""),n}function Tg(e,t,r){let{node:s}=e;return["...",...s.type==="TupleTypeSpreadElement"&&s.label?[r("label"),": "]:[],r("typeAnnotation")]}function vg(e,t,r){let{node:s}=e;return[s.variance?r("variance"):"",r("label"),s.optional?"?":"",": ",r("elementType")]}function Sg(e,t,r){let{node:s}=e,n=[dt(e),"type ",r("id"),r("typeParameters")],i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ji(e,t,r,n," =",i),t.semi?";":""]}function R4(e,t,r){let{node:s}=e;return He(s).length===1&&s.type.startsWith("TS")&&!s[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function wi(e,t,r,s){let{node:n}=e;if(!n[s])return"";if(!Array.isArray(n[s]))return r(s);let i=Eo(e.grandparent),a=e.match(u=>!(u[s].length===1&&zr(u[s][0])),void 0,(u,c)=>c==="typeAnnotation",u=>u.type==="Identifier",MD);if(n[s].length===0||!a&&(i||n[s].length===1&&(n[s][0].type==="NullableTypeAnnotation"||o6(n[s][0]))))return["<",ce(", ",e.map(r,s)),U4(e,t),">"];let o=n.type==="TSTypeParameterInstantiation"?"":R4(e,t,s)?",":tr(t)?ee(","):"";return w(["<",M([L,ce([",",H],e.map(r,s))]),o,L,">"])}function U4(e,t){let{node:r}=e;if(!V(r,K.Dangling))return"";let s=!V(r,K.Line),n=Ae(e,t,{indent:!s});return s?n:[n,R]}function wg(e,t,r){let{node:s}=e,n=[s.const?"const ":""],i=s.type==="TSTypeParameter"?r("name"):s.name;if(s.variance&&n.push(r("variance")),s.in&&n.push("in "),s.out&&n.push("out "),n.push(i),s.bound&&(s.usesExtendsBound&&n.push(" extends "),n.push(qe(e,r,"bound"))),s.constraint){let a=Symbol("constraint");n.push(" extends",w(M(H),{id:a}),er,Bi(r("constraint"),{groupId:a}))}if(s.default){let a=Symbol("default");n.push(" =",w(M(H),{id:a}),er,Bi(r("default"),{groupId:a}))}return w(n)}function kg(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",qe(e,t)]:""]}function Pg({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function q4(e,t,r){let{node:s}=e;if(N0(s))return s.type.slice(0,-14).toLowerCase();switch(s.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return g4(e,t,r);case"ComponentParameter":return C4(e,t,r);case"ComponentTypeParameter":return F4(e,t,r);case"HookDeclaration":return v4(e,t,r);case"DeclareHook":return S4(e,t,r);case"HookTypeAnnotation":return w4(e,t,r);case"DeclareFunction":return[dt(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",qe(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[dt(e),s.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return lg(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return j4(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Sg(e,t,r);case"IntersectionTypeAnnotation":return Fg(e,t,r);case"UnionTypeAnnotation":return vD(e,t,r);case"ConditionalTypeAnnotation":return uc(e,t,r);case"InferTypeAnnotation":return Cg(e,t,r);case"FunctionTypeAnnotation":return xg(e,t,r);case"TupleTypeAnnotation":return ec(e,t,r);case"TupleTypeLabeledElement":return vg(e,t,r);case"TupleTypeSpreadElement":return Tg(e,t,r);case"GenericTypeAnnotation":return[r("id"),wi(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ag(e,t,r);case"TypeAnnotation":return kD(e,t,r);case"TypeParameter":return wg(e,t,r);case"TypeofTypeAnnotation":return Pg(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return mg(r);case"DeclareEnum":case"EnumDeclaration":return Eg(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return b4(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return gg(e,r);case"FunctionTypeParam":{let n=s.name?r("name"):e.parent.this===s?"this":"";return[n,Ge(e),n?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return ic(e,t,r);case"ObjectTypeAnnotation":return nc(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:n}=s;return Fs(n==="plus"||n==="minus"),n==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[s.static?"static ":"",r("value"),gr(e,t)];case"ObjectTypeMappedTypeProperty":return P4(e,t,r);case"ObjectTypeIndexer":return[s.static?"static ":"",s.variance?r("variance"):"","[",r("id"),s.id?": ":"",r("key"),"]: ",r("value"),gr(e,t)];case"ObjectTypeProperty":{let n="";return s.proto?n="proto ":s.static&&(n="static "),[n,s.kind!=="init"?s.kind+" ":"",s.variance?r("variance"):"",Ri(e,t,r),Ge(e),Li(s)?"":": ",r("value"),gr(e,t)]}case"ObjectTypeInternalSlot":return[s.static?"static ":"","[[",r("id"),"]]",Ge(e),s.method?"":": ",r("value"),gr(e,t)];case"ObjectTypeSpreadProperty":return Pp(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(s.value);case"StringLiteralTypeAnnotation":return Cs(hn(it(s),t));case"NumberLiteralTypeAnnotation":return mn(it(s));case"BigIntLiteralTypeAnnotation":return kp(it(s));case"TypeCastExpression":return["(",r("expression"),qe(e,r),")"];case"TypePredicate":return kg(e,r);case"TypeOperator":return[s.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return wi(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...s.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return yg(e,t,r);case"MatchExpression":case"MatchStatement":return N4(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return I4(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return _4(e,t,r)}}function $4(e,t,r){let{node:s}=e,n=s.parameters.length>1?ee(tr(t)?",":""):"",i=w([M([L,ce([", ",L],e.map(r,"parameters"))]),n,L]);return[e.key==="body"&&e.parent.type==="ClassBody"&&s.static?"static ":"",s.readonly?"readonly ":"","[",s.parameters?i:"","]",qe(e,r),gr(e,t)]}function E0(e,t,r){let{node:s}=e;return[s.postfix?"":r,qe(e,t),s.postfix?r:""]}function V4(e,t,r){let{node:s}=e,n=[],i=s.kind&&s.kind!=="method"?`${s.kind} `:"";n.push(Fo(s),i,s.computed?"[":"",r("key"),s.computed?"]":"",Ge(e));let a=Bs(e,t,r,!1,!0),o=qe(e,r,"returnType"),u=En(s,o);return n.push(u?w(a):a),s.returnType&&n.push(w(o)),[w(n),gr(e,t)]}function W4(e,t,r){let{node:s}=e;return[dt(e),s.kind==="global"?"":`${s.kind} `,r("id"),s.body?[" ",w(r("body"))]:t.semi?";":""]}function H4(e,t,r){let{node:s}=e,n=!($e(s.expression)||Bt(s.expression)),i=w(["<",M([L,r("typeAnnotation")]),L,">"]),a=[ee("("),M([L,r("expression")]),L,ee(")")];return n?xs([[i,r("expression")],[i,w(a,{shouldBreak:!0})],[i,r("expression")]]):w([i,r("expression")])}function z4(e,t,r){let{node:s}=e;if(s.type.startsWith("TS")){if(I0(s))return s.type.slice(2,-7).toLowerCase();switch(s.type){case"TSThisType":return"this";case"TSTypeAssertion":return H4(e,t,r);case"TSDeclareFunction":return UD(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return QD(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return nc(e,t,r);case"TSTypeAliasDeclaration":return Sg(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return ng(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return ig(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return mD(e,t,r);case"TSNamedTupleMember":return vg(e,t,r);case"TSRestType":return Tg(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return ic(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return wi(e,t,r,"params");case"TSTypeParameter":return wg(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return yg(e,t,r);case"TSArrayType":return mg(r);case"TSPropertySignature":return[s.readonly?"readonly ":"",Ri(e,t,r),Ge(e),qe(e,r),gr(e,t)];case"TSParameterProperty":return[Fo(s),s.static?"static ":"",s.override?"override ":"",s.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Pg(e,r);case"TSIndexSignature":return $4(e,t,r);case"TSTypePredicate":return kg(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[mo(e,t,r),s.qualifier?[".",r("qualifier")]:"",wi(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Ag(e,t,r);case"TSTypeOperator":return[s.operator," ",r("typeAnnotation")];case"TSMappedType":return B4(e,t,r);case"TSMethodSignature":return V4(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return Eg(e,r);case"TSEnumBody":return Dg(e,t,r);case"TSEnumMember":return gg(e,r);case"TSImportEqualsDeclaration":return["import ",pg(s,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return mo(e,t,r);case"TSModuleDeclaration":return W4(e,t,r);case"TSConditionalType":return uc(e,t,r);case"TSInferType":return Cg(e,t,r);case"TSIntersectionType":return Fg(e,t,r);case"TSUnionType":return vD(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return xg(e,t,r);case"TSTupleType":return ec(e,t,r);case"TSTypeReference":return[r("typeName"),wi(e,t,r,"typeArguments")];case"TSTypeAnnotation":return kD(e,t,r);case"TSEmptyBodyFunctionExpression":return tc(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return E0(e,r,"?");case"TSJSDocNonNullableType":return E0(e,r,"!");default:throw new xn(s,"TypeScript")}}}function J4(e,t,r,s){for(let n of[m9,p9,q4,z4,y4]){let i=n(e,t,r,s);if(i!==void 0)return i}}var X4=te(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function K4(e,t,r,s){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:n}=e,i=sc(e)?t.originalText.slice(oe(n),ne(n)):J4(e,t,r,s);if(!i)return"";if(X4(n))return i;let a=Fe(n.decorators),o=x9(e,t,r),u=n.type==="ClassExpression";if(a&&!u)return xp(i,l=>w([o,l]));let c=Qr(e,t),p=W6(e,t);return!o&&!c&&!p?i:xp(i,l=>[p?";":"",c?"(":"",c&&u&&a?[M([H,o,l]),H]:[o,l],c?")":""])}var x0=K4,G4={experimental_avoidAstMutation:!0},Y4=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".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:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Bg={};Bp(Bg,{getVisitorKeys:()=>e_,massageAstNode:()=>Ng,print:()=>t_});var on=[[]],Q4={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:on[0],BooleanLiteral:on[0],StringLiteral:on[0],NumericLiteral:on[0],Identifier:on[0],TemplateLiteral:["quasis"],TemplateElement:on[0]},Z4=P0(Q4),e_=Z4;function t_(e,t,r){let{node:s}=e;switch(s.type){case"JsonRoot":return[r("node"),R];case"ArrayExpression":{if(s.elements.length===0)return"[]";let n=e.map(()=>e.node===null?"null":r(),"elements");return["[",M([R,ce([",",R],n)]),R,"]"]}case"ObjectExpression":return s.properties.length===0?"{}":["{",M([R,ce([",",R],e.map(r,"properties"))]),R,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[s.operator==="+"?"":s.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return s.value?"true":"false";case"StringLiteral":return JSON.stringify(s.value);case"NumericLiteral":return A0(e)?JSON.stringify(String(s.value)):JSON.stringify(s.value);case"Identifier":return A0(e)?JSON.stringify(s.name):s.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(s.value.cooked);default:throw new xn(s,"JSON")}}function A0(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var r_=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Ng(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:s}=e;s.type==="Identifier"?t.key={type:"StringLiteral",value:s.name}:s.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(s.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[s,n]of e.elements.entries())n===null&&t.elements.splice(s,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Ng.ignoredProperties=r_;var Fi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Hr="JavaScript",s_={arrowParens:{category:Hr,type:"choice",default:"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:Fi.bracketSameLine,objectWrap:Fi.objectWrap,bracketSpacing:Fi.bracketSpacing,jsxBracketSameLine:{category:Hr,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Hr,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Hr,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Hr,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Fi.singleQuote,jsxSingleQuote:{category:Hr,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Hr,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:{category:Hr,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Fi.singleAttributePerLine},Ig=s_,_g={estree:b0,"estree-json":Bg},Lg=[...nB,...Y4];function q5(e,t={}){return ia(e,{parser:"html",plugins:[$u,Fl,rp,lc],printWidth:100,tabWidth:2,...t})}export{q5 as formatSource};
|